【调整】因微信地址库与数据库地址库不匹配,存在导入对应不了的问题,特移除此录入地址方式。

This commit is contained in:
大灰灰
2024-08-07 11:29:37 +08:00
parent a5762f9bb7
commit c14c1add34

View File

@@ -85,10 +85,6 @@
<view class="coreshop-bottomBox">
<button class="coreshop-btn coreshop-btn-square coreshop-btn-w" @click="delShip" v-if="id && id != 0"
:disabled='submitStatus' :loading='submitStatus'>删除</button>
<!-- #ifdef MP-WEIXIN -->
<button class="coreshop-btn coreshop-btn-square coreshop-btn-w" @click="wechatAddress"
v-if="!id">从微信获取</button>
<!-- #endif -->
<button class="coreshop-btn coreshop-btn-square coreshop-btn-b" @click="saveShip" :disabled='submitStatus'
:loading='submitStatus'>保存</button>
</view>
@@ -497,47 +493,7 @@ export default {
}
});
// #endif
},
// #ifdef MP-WEIXIN
wechatAddress() {
this.getType = 0;
let _that = this;
wx.chooseAddress({
success: res => {
if (res.errMsg == "chooseAddress:ok") {
//获取成功
_that.form.name = res.userName;
_that.form.mobile = res.telNumber;
_that.form.address = res.detailInfo;
_that.pickerValue = res.provinceName + " " + res.cityName + " " + res.countyName;
let data = {
provinceName: res.provinceName,
cityName: res.cityName,
countyName: res.countyName,
};
this.$u.api.getAreaId(data).then(res => {
if (res.status) {
this.areaId = res.data;
this.init();
} else {
uni.showModal({
title: '提示',
content: '地区选择出现问题,请重新选择地区',
showCancel: false
});
}
});
console.log(res);
} else {
this.$refs.uToast.show({ title: '获取微信地址失败', type: 'error' });
}
}
});
},
// #endif
}
},
}