新增分享,找回密码,实名认证,签约
This commit is contained in:
@@ -11,17 +11,14 @@ Page({
|
||||
address : '',
|
||||
isDefault : '',
|
||||
disabled : false,
|
||||
|
||||
//省份选择
|
||||
areas : [],
|
||||
areaId : '',
|
||||
areaIndex : 0,
|
||||
|
||||
//市级选择
|
||||
cityList : [],
|
||||
cityId : 0,
|
||||
cityIndex : 0,
|
||||
|
||||
//区域选择
|
||||
regiList : [],
|
||||
regiId : 0,
|
||||
@@ -90,8 +87,14 @@ Page({
|
||||
atcode = area[index].id
|
||||
if (index != this.data.areaIndex) {
|
||||
this.setData({
|
||||
areaIndex : index,
|
||||
areaId : atcode
|
||||
areaIndex : index,
|
||||
areaId : atcode,
|
||||
cityList : [],
|
||||
cityId : 0,
|
||||
cityIndex : 0,
|
||||
regiList : [],
|
||||
regiId : 0,
|
||||
regiIndex : 0,
|
||||
})
|
||||
// 获取市级列表
|
||||
this.citylist(atcode)
|
||||
@@ -107,9 +110,12 @@ Page({
|
||||
}).then(res=>{
|
||||
let cityArr = res.data
|
||||
this.setData({
|
||||
cityId : cityArr[0].id,
|
||||
cityIndex : 0,
|
||||
cityList : cityArr
|
||||
cityId : cityArr[0].id,
|
||||
cityIndex : 0,
|
||||
cityList : cityArr,
|
||||
regiList : [],
|
||||
regiId : 0,
|
||||
regiIndex : 0,
|
||||
})
|
||||
|
||||
// 获取区级列表
|
||||
@@ -208,14 +214,17 @@ Page({
|
||||
*/
|
||||
addressRemove(){
|
||||
wx.showModal({
|
||||
title : '提示',
|
||||
content : '是否删除地址',
|
||||
success : res=> {
|
||||
title : '提示',
|
||||
content : '是否删除地址',
|
||||
confirmText : '删除',
|
||||
confirmColor: '#e92152',
|
||||
success : res => {
|
||||
if (res.confirm) {
|
||||
wx.showLoading({
|
||||
title: '删除中',
|
||||
})
|
||||
wx.$api.site.siteDel(this.data.addressId).then(res=>{
|
||||
wx.$api.site.siteDel(this.data.addressId).then(() => {
|
||||
wx.hideLoading()
|
||||
wx.navigateBack()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user