|
@@ -92,7 +92,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view>
|
|
<view>
|
|
- <u-modal v-model="show" @confirm="confirm" show-cancel-button="true" ref="uModal" :asyncClose="true" :content="content"></u-modal>
|
|
|
|
|
|
+ <u-modal v-model="show" @confirm="confirm" show-cancel-button=true ref="uModal" :asyncClose="true" :content="content"></u-modal>
|
|
</view>
|
|
</view>
|
|
<view class="user-cell-item">
|
|
<view class="user-cell-item">
|
|
<view class="user-cell-l" @click="logout">
|
|
<view class="user-cell-l" @click="logout">
|
|
@@ -139,12 +139,13 @@
|
|
updatePublicNot(e){
|
|
updatePublicNot(e){
|
|
console.log('updatePublicNot'+JSON.stringify(_self.personalInfo.publicNot))
|
|
console.log('updatePublicNot'+JSON.stringify(_self.personalInfo.publicNot))
|
|
|
|
|
|
- _self.personalInfo.publicNot = !_self.personalInfo.publicNot;
|
|
|
|
- console.log('publicNot1 '+_self.personalInfo.publicNot)
|
|
|
|
|
|
+ //_self.personalInfo.publicNot = !_self.personalInfo.publicNot;
|
|
|
|
+ console.log('publicNotx1 '+_self.personalInfo.publicNot)
|
|
let personal_info = {};
|
|
let personal_info = {};
|
|
//personal_info.type = 1;
|
|
//personal_info.type = 1;
|
|
|
|
+ personal_info.subject = '';
|
|
personal_info.status = _self.personalInfo.publicNot;
|
|
personal_info.status = _self.personalInfo.publicNot;
|
|
- console.log('publicNot2 '+_self.personalInfo.publicNot)
|
|
|
|
|
|
+ console.log('publicNotx2 '+_self.personalInfo.publicNot)
|
|
|
|
|
|
//let personalInfo = this.carhelp.getPersonInfo();
|
|
//let personalInfo = this.carhelp.getPersonInfo();
|
|
//personal_info.id = _self.personalInfo.id;
|
|
//personal_info.id = _self.personalInfo.id;
|
|
@@ -233,6 +234,10 @@
|
|
},1000)
|
|
},1000)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ /*uni.showLoading({
|
|
|
|
+ title: "加载中",
|
|
|
|
+ mask: true,
|
|
|
|
+ })*/
|
|
uni.request({
|
|
uni.request({
|
|
method:'get',
|
|
method:'get',
|
|
url: process.car.BASE_URL + "/mobile/regUser/findByOpenId",
|
|
url: process.car.BASE_URL + "/mobile/regUser/findByOpenId",
|
|
@@ -249,7 +254,7 @@
|
|
// console.log('res'+JSON.stringify(res))
|
|
// console.log('res'+JSON.stringify(res))
|
|
if (res.data.code == 200 && res.data.result) {
|
|
if (res.data.code == 200 && res.data.result) {
|
|
var token = res ? res.data.data.token : '';
|
|
var token = res ? res.data.data.token : '';
|
|
-
|
|
|
|
|
|
+ //console.log('token'+JSON.stringify(token))
|
|
this.carhelp.setPersonInfo(res.data.data.memberInfo );
|
|
this.carhelp.setPersonInfo(res.data.data.memberInfo );
|
|
this.carhelp.setToken(token);
|
|
this.carhelp.setToken(token);
|
|
this.carhelp.setPersonInfoPlus(res.data.data);
|
|
this.carhelp.setPersonInfoPlus(res.data.data);
|
|
@@ -258,8 +263,9 @@
|
|
}else{
|
|
}else{
|
|
_self.logined = false;
|
|
_self.logined = false;
|
|
}
|
|
}
|
|
|
|
+ //uni.hideLoading()
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
-
|
|
|
|
|
|
+ //uni.hideLoading();
|
|
})
|
|
})
|
|
},
|
|
},
|
|
preparedPersonalData(){
|
|
preparedPersonalData(){
|
|
@@ -435,6 +441,8 @@
|
|
onLoad(){
|
|
onLoad(){
|
|
_self = this;
|
|
_self = this;
|
|
console.log('mylogined onLoad')
|
|
console.log('mylogined onLoad')
|
|
|
|
+
|
|
|
|
+
|
|
},
|
|
},
|
|
onShow(){
|
|
onShow(){
|
|
console.log('mylogined onShow');
|
|
console.log('mylogined onShow');
|