地址的更改

This commit is contained in:
952108534@qq.com 2022-01-20 14:10:19 +08:00
parent 4d41716532
commit 5cf7ebfe00
3 changed files with 20 additions and 4 deletions

View File

@ -89,6 +89,7 @@ export default {
},
pickValue(pickId,pickName){
let areaObj={id:pickId,name:pickName};
console.log(pickId,pickName);
this.returnValueArr[this.curDisplayingColIndex]=areaObj;
this.validatePickedValues();
@ -113,6 +114,9 @@ export default {
onChange(picker,values) { //values = [{id:this.columns[0].id, name:this.columns[0].name},{id:this.columns[1].id, name:this.columns[1].name},{id:this.columns[3].id, name:this.columns[3].name}];
//Support single choice only , index = 0 province, index = 1 city, index = 2 area
let curSelection={'province':'','city':'','area':''};
// console.log(picker,values);
this.$emit('getmenu',values)
this.$emit("closeDialog");
if(!values)
return;
let _self=this;
@ -201,7 +205,7 @@ export default {
this.hideAddress();
},
onCancel() {
},
fitlerValuesInArray(stringStartWith,dataColArea){
let result=[];

View File

@ -24,6 +24,8 @@
</textarea>
</div>
<addressInput @getmenu="onGetMenu" @closeDialog = "handleClose1" :dialogInfo1="dialogInfo1"></addressInput>
</div>
<div class="rc-button">
@ -38,6 +40,8 @@
</div> -->
<MyFooter></MyFooter>
</div>
</template>
@ -46,6 +50,7 @@
import Myheader from '~/components/header.vue'
import MyFooter from '~/components/rc-footer.vue'
import addressInput from '~/components/addressInput.vue'
export default {
data() {
return {
@ -53,6 +58,7 @@ export default {
checked: true,
userid: null,
usermessage:null,
dialogInfo1:false,
list: [
{
id: 1,
@ -77,6 +83,12 @@ export default {
};
},
methods: {
onGetMenu(values){
console.log(values,+'111111');
},
handleClose1(){
this.dialogInfo1 = false
},
onEdit(item, index) {
// let userid = item.id;
console.log(item);
@ -119,7 +131,8 @@ export default {
},
components: {
Myheader,
MyFooter
MyFooter,
addressInput
},
mounted() {

View File

@ -63,7 +63,7 @@
</template>
<script>
import { areaList } from '@vant/area-data';
import Myheader from '~/components/header.vue'
import MyFooter from '~/components/rc-footer.vue'
export default {
@ -94,7 +94,6 @@ export default {
address: "浙江省杭州市拱墅区莫干山路 50 号",
},
],
areaList,
};
},
methods: {