1
This commit is contained in:
@@ -194,11 +194,12 @@
|
||||
我的团队
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="isAndroid"
|
||||
class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
<view v-if="isAndroid" class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||
@click="goNav('/pages/login/appEq')">
|
||||
<view class="tool-box-content-item-img" style="display: flex;align-items: center;justify-content: center;">
|
||||
<image src="../../static/images/me/xiazai.png" mode="" style="height: 45rpx;width: 45rpx;"></image>
|
||||
<view class="tool-box-content-item-img"
|
||||
style="display: flex;align-items: center;justify-content: center;">
|
||||
<image src="../../static/images/me/xiazai.png" mode="" style="height: 45rpx;width: 45rpx;">
|
||||
</image>
|
||||
</view>
|
||||
<view class="tool-box-content-item-txt">
|
||||
APP下载
|
||||
@@ -272,7 +273,9 @@
|
||||
import ttMsg from '../../components/ttMsg/ttMsg.vue'
|
||||
import httpsRequest from '../../common/httpRequest.js'
|
||||
import otherXuanfu from '@/components/other-xuafu.vue'
|
||||
import {$cache_user} from '@/store/cashe.js'
|
||||
import {
|
||||
$cache_user
|
||||
} from '@/store/cashe.js'
|
||||
console.log($cache_user);
|
||||
export default {
|
||||
components: {
|
||||
@@ -299,8 +302,8 @@
|
||||
invitationCode: '',
|
||||
token: '',
|
||||
endTime: '', //会员到期时间
|
||||
moneyNum:$cache_user.moneyNum|| 0, //余额
|
||||
jifen:$cache_user.jifen|| 0, //积分
|
||||
moneyNum: $cache_user.moneyNum || 0, //余额
|
||||
jifen: $cache_user.jifen || 0, //积分
|
||||
isVips: '否', //是否显示会员
|
||||
myLoveNum: 0, //我的喜欢个数
|
||||
myZhui: 0, //我的追剧数量
|
||||
@@ -310,7 +313,7 @@
|
||||
twoRate: 0,
|
||||
kmPaySel: '否',
|
||||
isWxIosPay: true, //微信下是否显示支付功能
|
||||
userInfo:$cache_user.userInfo|| {},
|
||||
userInfo: $cache_user.userInfo || {},
|
||||
isShowMoneyPay: true,
|
||||
isAndroid: false,
|
||||
}
|
||||
@@ -326,9 +329,9 @@
|
||||
},
|
||||
onShow() {
|
||||
|
||||
if ( uni.getSystemInfoSync().platform == 'android' ) {
|
||||
if (uni.getSystemInfoSync().platform == 'android') {
|
||||
// #ifdef H5
|
||||
this.isAndroid= true
|
||||
this.isAndroid = true
|
||||
// #endif
|
||||
}
|
||||
// this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
||||
@@ -351,11 +354,11 @@
|
||||
this.invitationCode = res.data.invitationCode
|
||||
this.rate = res.data.rate || 0
|
||||
this.twoRate = res.data.twoRate || 0
|
||||
$cache_user.set('userName',this.userName)
|
||||
$cache_user.set('avatar',this.avatar)
|
||||
$cache_user.set('invitationCode',this.invitationCode)
|
||||
$cache_user.set('rate',this.rate)
|
||||
$cache_user.set('twoRate',this.twoRate)
|
||||
$cache_user.set('userName', this.userName)
|
||||
$cache_user.set('avatar', this.avatar)
|
||||
$cache_user.set('invitationCode', this.invitationCode)
|
||||
$cache_user.set('rate', this.rate)
|
||||
$cache_user.set('twoRate', this.twoRate)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -459,11 +462,13 @@
|
||||
//获取我喜欢的数量
|
||||
getMyLoveNum() {
|
||||
let data = {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
classify: 2
|
||||
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', {
|
||||
page: 1,
|
||||
limit: 999,
|
||||
classify: 2
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.myLoveNum = res.data.totalCount
|
||||
} else {
|
||||
@@ -473,12 +478,12 @@
|
||||
},
|
||||
//获取我追剧的数量
|
||||
getMyFansNum() {
|
||||
let data = {
|
||||
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', {
|
||||
page: 1,
|
||||
limit: 1,
|
||||
limit: 999,
|
||||
classify: 1
|
||||
}
|
||||
this.$Request.getT('/app/courseCollect/selectByUserId', data).then(res => {
|
||||
}).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.myZhui = res.data.totalCount
|
||||
} else {
|
||||
@@ -496,7 +501,7 @@
|
||||
} else {
|
||||
this.jifen = 0
|
||||
}
|
||||
$cache_user.set('jifen',this.jifen)
|
||||
$cache_user.set('jifen', this.jifen)
|
||||
})
|
||||
},
|
||||
/**
|
||||
@@ -519,8 +524,8 @@
|
||||
if (res.code === 0) {
|
||||
this.moneyNum = res.data.money
|
||||
this.userInfo = res.data
|
||||
$cache_user.set('userInfo',res.data)
|
||||
$cache_user.set('moneyNum',res.data.money)
|
||||
$cache_user.set('userInfo', res.data)
|
||||
$cache_user.set('moneyNum', res.data.money)
|
||||
// this.$Request.getT('/app/invite/selectInviteMoney').then(ret => {
|
||||
// if (ret.code == 0) {
|
||||
// if (ret.data.inviteMoney && ret.data.inviteMoney.money) {
|
||||
@@ -610,7 +615,7 @@
|
||||
}
|
||||
},
|
||||
|
||||
goNav(e,type) {
|
||||
goNav(e, type) {
|
||||
let token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
if (type === 'tabbar') {
|
||||
|
||||
Reference in New Issue
Block a user