|
@@ -91,6 +91,9 @@
|
|
|
<u-icon custom-prefix="custom-icon" name="youjiantou" color="#B3B3B3"></u-icon>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view>
|
|
|
+ <u-modal v-model="show" @confirm="confirm" show-cancel-button="true" ref="uModal" :asyncClose="true" :content="content"></u-modal>
|
|
|
+ </view>
|
|
|
<view class="user-cell-item">
|
|
|
<view class="user-cell-l" @click="logout">
|
|
|
<u-icon custom-prefix="custom-icon" name="logout-box-r-fill" color="#FF695B" size="40"></u-icon>
|
|
@@ -122,9 +125,10 @@
|
|
|
faceImage:'/static/img/sexMan.png'
|
|
|
},
|
|
|
personalInfoProgress:0,
|
|
|
- logined:false
|
|
|
+ logined:false,
|
|
|
+ show: false,
|
|
|
+ content: '是否退出账号'
|
|
|
}
|
|
|
-
|
|
|
|
|
|
},
|
|
|
|
|
@@ -182,16 +186,11 @@
|
|
|
})
|
|
|
},
|
|
|
logout(){
|
|
|
- // if(!_self.logined)
|
|
|
- // return;
|
|
|
- // var openId=this.carhelp.getOpenId()
|
|
|
- // console.log('openId1'+openId)
|
|
|
- // this.carhelp.logoff()
|
|
|
- // openId=this.carhelp.getOpenId()
|
|
|
- // console.log('openId2'+openId)
|
|
|
- // _self.logined = false;
|
|
|
- // _self.personalInfo = {};
|
|
|
-
|
|
|
+ if(this.carhelp.getPersonInfo().id != null) {
|
|
|
+ this.show = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ confirm() {
|
|
|
if(this.carhelp.getPersonInfo().id != null) {
|
|
|
var id = this.carhelp.getPersonInfo().id
|
|
|
}
|