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