新增分享,找回密码,实名认证,签约

This commit is contained in:
唐明明
2023-08-25 14:04:31 +08:00
parent 32cc588ae7
commit 0f7c37d548
106 changed files with 2130 additions and 1313 deletions

View File

@@ -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()
})
}