新增分享,找回密码,实名认证,签约
This commit is contained in:
@@ -9,10 +9,10 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
nameValue : '', // 姓名
|
||||
mobile : '', // 电话
|
||||
address : '', // 地址
|
||||
isDefault : '', // 默认地址
|
||||
nameValue : '', // 姓名
|
||||
mobile : '', // 电话
|
||||
address : '', // 地址
|
||||
isDefault : '', // 默认地址
|
||||
// 省份选择
|
||||
areasArr : [],
|
||||
areaId : 0,
|
||||
@@ -28,6 +28,7 @@ Page({
|
||||
regiId : 0,
|
||||
regiIndex : 0,
|
||||
|
||||
// 提交信息
|
||||
disabled : false
|
||||
},
|
||||
|
||||
@@ -55,7 +56,6 @@ Page({
|
||||
wx.$api.site.create().then(res => {
|
||||
let areas = res.data,
|
||||
areaIndex = this.data.areaIndex
|
||||
|
||||
this.setData({
|
||||
areasArr : areas,
|
||||
areaId : areas[areaIndex].id,
|
||||
@@ -74,8 +74,14 @@ Page({
|
||||
atcode = area[index].id
|
||||
if (index != this.data.areaIndex) {
|
||||
this.setData({
|
||||
areaIndex : index,
|
||||
areaId : atcode
|
||||
areaIndex : index,
|
||||
areaId : atcode,
|
||||
cityArr : [],
|
||||
cityId : 0,
|
||||
cityIndex : 0,
|
||||
regiArr : [],
|
||||
regiId : 0,
|
||||
regiIndex : 0,
|
||||
})
|
||||
// 获取市级列表
|
||||
this.citylist(atcode)
|
||||
@@ -91,9 +97,12 @@ Page({
|
||||
}).then(res=>{
|
||||
let cityArr = res.data
|
||||
this.setData({
|
||||
cityId : cityArr[0].id,
|
||||
cityIndex : 0,
|
||||
cityArr : cityArr
|
||||
cityId : cityArr[0].id,
|
||||
cityIndex : 0,
|
||||
cityArr : cityArr,
|
||||
regiArr : [],
|
||||
regiId : 0,
|
||||
regiIndex : 0,
|
||||
})
|
||||
|
||||
// 获取区级列表
|
||||
|
||||
Reference in New Issue
Block a user