听书页面
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
columnDatas: [], //区地址
|
||||
switchTrue: true,
|
||||
switchFalse: false,
|
||||
|
||||
addressChanged:false, // 地址修改标记
|
||||
navName: '', // 顶部导航栏标题
|
||||
provId: '', // 存储省id
|
||||
cityId: '', // 存储市id
|
||||
@@ -237,6 +237,7 @@
|
||||
|
||||
},
|
||||
changeHandler(e) { //城市选择时触发
|
||||
this.addressChanged = true
|
||||
const {
|
||||
columnIndex, //当前选择的列,省 / 市 / 区
|
||||
value, // 当前选择的数组内容
|
||||
@@ -259,13 +260,14 @@
|
||||
},
|
||||
|
||||
addconfirm(e) { //点击确定按钮
|
||||
this.addressChanged = true
|
||||
this.addreShow = false;
|
||||
this.addressForm.areaidpathtext = e.value[0].UName + ' ' + e.value[1].UName + ' ' + e.value[2].UName
|
||||
this.provId = e.value[0].provId
|
||||
this.cityId = e.value[1].cityId
|
||||
this.countyId = e.value[2].countyId
|
||||
},
|
||||
|
||||
|
||||
addcancel() { //点击取消按钮
|
||||
this.addreShow = false;
|
||||
},
|
||||
@@ -280,6 +282,7 @@
|
||||
link_add = 'book/useraddress/save'
|
||||
} else {
|
||||
link_add = 'book/useraddress/update'
|
||||
// this.addconfirm(e)
|
||||
}
|
||||
if (this.addressForm.areaidpath == '') {
|
||||
uni.showToast({
|
||||
@@ -289,7 +292,10 @@
|
||||
return
|
||||
}
|
||||
this.addressForm.userid = this.userInfo.id
|
||||
this.addressForm.areaidpath = `${this.provId}_${this.cityId}_${this.countyId}`
|
||||
if(this.addressChanged){ // 如果修改过地址区域,就重新赋值,否则保持不变
|
||||
this.addressForm.areaidpath = `${this.provId}_${this.cityId}_${this.countyId}`
|
||||
this.addressChanged = false
|
||||
}
|
||||
this.addressForm.areaid = this.countyId
|
||||
this.addressForm.isdefault = this.addressForm.isDafault ? 1 : 0
|
||||
|
||||
|
||||
@@ -155,15 +155,19 @@
|
||||
title: '手机验证成功',
|
||||
duration: 1000,
|
||||
});
|
||||
console.log(res)
|
||||
|
||||
res.userInfo.token = res.token.token;
|
||||
this.setUserInfo(res.userInfo);
|
||||
setTimeout(() => {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
});
|
||||
|
||||
}, 1000);
|
||||
this.setUserInfo(res.userInfo);
|
||||
|
||||
// socket.init();
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/peanut/home'
|
||||
});
|
||||
}, 1000);
|
||||
|
||||
|
||||
// uni.showModal({
|
||||
// title: '提示',
|
||||
|
||||
Reference in New Issue
Block a user