|
@@ -59,6 +59,11 @@
|
|
<u-icon size="36" name="phone"></u-icon> <text>联系汽配商</text>
|
|
<u-icon size="36" name="phone"></u-icon> <text>联系汽配商</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="list-box" v-if="hasLogin">
|
|
|
|
+ <view class="list-title flex justify_center phone" @click="quitOut">
|
|
|
|
+ <text>退出登录</text>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<!-- 去认证 -->
|
|
<!-- 去认证 -->
|
|
<u-popup v-model="showPopup" mode="center" :border-radius="20" closeable>
|
|
<u-popup v-model="showPopup" mode="center" :border-radius="20" closeable>
|
|
<view style="background-color: #fff;padding: 1rem;">
|
|
<view style="background-color: #fff;padding: 1rem;">
|
|
@@ -157,6 +162,22 @@
|
|
},
|
|
},
|
|
call(){
|
|
call(){
|
|
this.callPhone(this.dealerPhone)
|
|
this.callPhone(this.dealerPhone)
|
|
|
|
+ },
|
|
|
|
+ quitOut(){
|
|
|
|
+ let _this = this
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content: '确定退出登录吗?',
|
|
|
|
+ success: (ret) => {
|
|
|
|
+ if(ret.confirm){
|
|
|
|
+ _this.$store.dispatch('userLogout');
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/login/login'
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|