|
@@ -87,6 +87,17 @@
|
|
this.area_id = item.area_id;
|
|
this.area_id = item.area_id;
|
|
this.getadress();
|
|
this.getadress();
|
|
},
|
|
},
|
|
|
|
+ changeshow() {
|
|
|
|
+ this.adress = '';
|
|
|
|
+ this.area_id = '';
|
|
|
|
+ this.getadress();
|
|
|
|
+ this.show = !this.show;
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ cancelCity() {
|
|
|
|
+ this.addressData.addressName = this.adress;
|
|
|
|
+ this.show = false;
|
|
|
|
+ },
|
|
upper(e) {
|
|
upper(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
console.log("顶部")
|
|
console.log("顶部")
|
|
@@ -120,19 +131,9 @@
|
|
switchChange(e){
|
|
switchChange(e){
|
|
this.addressData.default = e.detail;
|
|
this.addressData.default = e.detail;
|
|
},
|
|
},
|
|
- changeshow() {
|
|
|
|
-
|
|
|
|
- this.adress = '';
|
|
|
|
- this.area_id = '';
|
|
|
|
- this.getadress();
|
|
|
|
- this.show = !this.show;
|
|
|
|
-
|
|
|
|
- },
|
|
|
|
|
|
|
|
-
|
|
|
|
- cancelCity() {
|
|
|
|
- this.show = false;
|
|
|
|
- },
|
|
|
|
|
|
+
|
|
|
|
+
|
|
// choseCity(e) {
|
|
// choseCity(e) {
|
|
// console.log(e);
|
|
// console.log(e);
|
|
// this.show = false;
|
|
// this.show = false;
|
|
@@ -176,10 +177,16 @@
|
|
method: 'post',
|
|
method: 'post',
|
|
data: params,
|
|
data: params,
|
|
success: (res) => {
|
|
success: (res) => {
|
|
- uni.$emit('refeshadress')
|
|
|
|
- setTimeout(()=>{
|
|
|
|
- uni.navigateBack();
|
|
|
|
- }, 800)
|
|
|
|
|
|
+ console.log(res.data.code);
|
|
|
|
+ if(res.data.code == 1000) {
|
|
|
|
+ uni.$emit('refeshadress')
|
|
|
|
+ setTimeout(()=>{
|
|
|
|
+ uni.navigateBack();
|
|
|
|
+ }, 800)
|
|
|
|
+ }else {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|