|
@@ -7,7 +7,8 @@
|
|
|
</navigator>
|
|
|
</view>
|
|
|
<view class="box_center">
|
|
|
- <view class="user_name">{{ userInfo.username }}</view>
|
|
|
+ <view class="user_name" v-if="is_login">{{ userInfo.username }}</view>
|
|
|
+ <navigator class="user_name" url="/pages/login/index" v-if="!is_login">请登录</navigator>
|
|
|
<view class="user_info">{{ userInfo.phone }}</view>
|
|
|
</view>
|
|
|
<view class="box_right">
|
|
@@ -80,7 +81,11 @@ export default {
|
|
|
phone: 'kailin',
|
|
|
status: 0,
|
|
|
city_id: 0,
|
|
|
+ is_video_vip:0,
|
|
|
+ amount:0.00,
|
|
|
+ transfer_amount:0.00
|
|
|
},
|
|
|
+ is_login:0,
|
|
|
packetList: [],
|
|
|
show_packet: false,
|
|
|
};
|
|
@@ -130,8 +135,10 @@ export default {
|
|
|
return shareObj;
|
|
|
},
|
|
|
onShow() {
|
|
|
- // 登录提示
|
|
|
- if (!this.$checkAccess.alterLogin()) return;
|
|
|
+
|
|
|
+ this.is_login = this.$checkAccess.checkLogin()
|
|
|
+ // 未登录不请求
|
|
|
+ if ( !this.is_login ) return;
|
|
|
// 判断数据
|
|
|
this.$http.request('api/custom/get_info').then((callback) => {
|
|
|
if (callback.code == 'success') {
|