|
|
|
@ -4,8 +4,8 @@ |
|
|
|
<image class="user-img" :src="info.avatar" @click="lookImg(info.avatar)" v-if="info.avatar"></image> |
|
|
|
<image class="user-img" src="../../static/logo.png" v-else></image> |
|
|
|
<view class="user-info"> |
|
|
|
<view class="lf-font-40 lf-font-bold" style="width: 500rpx;"> |
|
|
|
<text>{{ info.nickname }}</text> |
|
|
|
<view class="lf-font-40" style="width: 500rpx;"> |
|
|
|
<text class="lf-font-bold">{{ info.nickname }}</text> |
|
|
|
<text class="user-label" v-for="(item, index) in info.tags" :key="index">{{ item }}</text> |
|
|
|
</view> |
|
|
|
<view class="lf-m-t-20 lf-font-28"> |
|
|
|
@ -21,7 +21,7 @@ |
|
|
|
<text class="lf-text-vertical lf-m-l-20 lf-font-32">我的收藏</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="lf-row-between list-item" hover-class="lf-opacity" @click="$url('/pages/contactService/index')"> |
|
|
|
@ -30,7 +30,7 @@ |
|
|
|
<text class="lf-text-vertical lf-m-l-16 lf-font-32">联系客服</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="lf-row-between list-item" hover-class="lf-opacity"> |
|
|
|
@ -39,7 +39,7 @@ |
|
|
|
<text class="lf-text-vertical lf-m-l-16 lf-font-32">意见反馈</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
<button class="feedback-btn" open-type="feedback"></button> |
|
|
|
</view> |
|
|
|
@ -49,19 +49,18 @@ |
|
|
|
<text class="lf-text-vertical lf-m-l-16 lf-font-32">常见问题</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- TODO 退出登录逻辑 --> |
|
|
|
<view class="lf-row-between list-item" hover-class="lf-opacity"> |
|
|
|
<!-- <view class="lf-row-between list-item" hover-class="lf-opacity" @click="quitLogin"> |
|
|
|
<view class="lf-row-center"> |
|
|
|
<image class="icon-img" src="../../static/center/loginout.png"></image> |
|
|
|
<text class="lf-text-vertical lf-m-l-16 lf-font-32">退出登录</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
<!-- 商家工具 --> |
|
|
|
<view class="lf-m-b-20 shop-list" v-if="isRight(info.store)"> |
|
|
|
@ -75,7 +74,7 @@ |
|
|
|
<text class="lf-text-vertical lf-m-l-16 lf-font-32">商家订单</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="lf-row-between list-item" hover-class="lf-opacity" @click="chargeOff"> |
|
|
|
@ -84,7 +83,7 @@ |
|
|
|
<text class="lf-text-vertical lf-m-l-16 lf-font-32">卡券核销</text> |
|
|
|
</view> |
|
|
|
<view> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-40"></text> |
|
|
|
<text class="lf-iconfont lf-icon-xiangyou-copy lf-color-gray lf-font-32"></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
@ -123,11 +122,17 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.verifyUserInfo(); |
|
|
|
this.getData(); |
|
|
|
}, |
|
|
|
onShow(){ |
|
|
|
this.verifyUserInfo(); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
verifyUserInfo(){ |
|
|
|
// let quit_login_state = uni.getStorageSync('quit_login_state'); |
|
|
|
// if(quit_login_state){ |
|
|
|
// return; |
|
|
|
// } |
|
|
|
let userInfo = uni.getStorageSync('userinfo') || {}; |
|
|
|
if(!userInfo.id || !userInfo.nickname || !userInfo.avatar){ |
|
|
|
this.$url('/pages/login/index?type=userinfo'); |
|
|
|
@ -158,6 +163,21 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 退出登录 |
|
|
|
quitLogin(){ |
|
|
|
uni.showModal({ |
|
|
|
title: '温馨提示', |
|
|
|
content: '您确定退出当前登录状态吗?', |
|
|
|
success: result => { |
|
|
|
console.log(result); |
|
|
|
if(result.confirm){ |
|
|
|
uni.setStorageSync('quit_login_state', true); |
|
|
|
uni.removeStorageSync('userinfo'); |
|
|
|
this.$msg('退出成功', {icon: 'success'}); |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -212,8 +232,8 @@ |
|
|
|
box-sizing: border-box; |
|
|
|
position: relative; |
|
|
|
.icon-img{ |
|
|
|
width: 42rpx; |
|
|
|
height: 42rpx; |
|
|
|
width: 50rpx; |
|
|
|
height: 50rpx; |
|
|
|
} |
|
|
|
.feedback-btn{ |
|
|
|
position: absolute; |
|
|
|
|