|
@@ -18,6 +18,8 @@ Page({
|
|
|
areaList: [] as any,
|
|
areaList: [] as any,
|
|
|
currentValues: [] as any,
|
|
currentValues: [] as any,
|
|
|
|
|
|
|
|
|
|
+ showTextarea: true,
|
|
|
|
|
+
|
|
|
// 添加地址表单信息
|
|
// 添加地址表单信息
|
|
|
id: "",
|
|
id: "",
|
|
|
name: '',
|
|
name: '',
|
|
@@ -222,6 +224,18 @@ Page({
|
|
|
selectAddressId: e.target.dataset.id
|
|
selectAddressId: e.target.dataset.id
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
+ setShowTextarea() {
|
|
|
|
|
+ const _this = this
|
|
|
|
|
+ _this.setData({
|
|
|
|
|
+ showTextarea: false
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ _this.setData({
|
|
|
|
|
+ showTextarea: true
|
|
|
|
|
+ })
|
|
|
|
|
+ }, 100);
|
|
|
|
|
+ },
|
|
|
/** 修改地址 */
|
|
/** 修改地址 */
|
|
|
onUpdateAddress(e: any) {
|
|
onUpdateAddress(e: any) {
|
|
|
const id = e.target.dataset.id
|
|
const id = e.target.dataset.id
|
|
@@ -240,6 +254,7 @@ Page({
|
|
|
regionCode: addressInfo.region,
|
|
regionCode: addressInfo.region,
|
|
|
regionName: addressInfo.regionName,
|
|
regionName: addressInfo.regionName,
|
|
|
}, () => {
|
|
}, () => {
|
|
|
|
|
+ this.setShowTextarea()
|
|
|
const cityCode: any = this.formateCityCode(true)
|
|
const cityCode: any = this.formateCityCode(true)
|
|
|
this.setData({
|
|
this.setData({
|
|
|
cityCode
|
|
cityCode
|