h5显示首页红包
This commit is contained in:
@@ -438,6 +438,7 @@
|
|||||||
this.videoInfo = []
|
this.videoInfo = []
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// #ifdef APP
|
||||||
httpsRequest.getT("app/common/type/919", {}).then(res => {
|
httpsRequest.getT("app/common/type/919", {}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
const sysInfo = uni.getSystemInfoSync();
|
const sysInfo = uni.getSystemInfoSync();
|
||||||
@@ -445,6 +446,8 @@
|
|||||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if (this.page < this.pages) {
|
if (this.page < this.pages) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view style="padding-bottom: 40rpx;">
|
<view style="padding-bottom: 40rpx;">
|
||||||
<u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
<u-navbar :background="background" :is-back="isBack" :title="title" :border-bottom="false">
|
||||||
</u-navbar>
|
</u-navbar>
|
||||||
<!-- 登录信息 -->
|
<!-- 登录信息 -->
|
||||||
<view class="info flex align-center justify-center">
|
<view class="info flex align-center justify-center">
|
||||||
@@ -184,7 +184,8 @@
|
|||||||
观看历史
|
观看历史
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="rate>0 && isShowMoneyPay" class="tool-box-content-item flex align-center justify-center flex-wrap"
|
<view v-if="rate>0 && isShowMoneyPay"
|
||||||
|
class="tool-box-content-item flex align-center justify-center flex-wrap"
|
||||||
@click="goNav('/me/invite/inviteDet')">
|
@click="goNav('/me/invite/inviteDet')">
|
||||||
<view class="tool-box-content-item-img">
|
<view class="tool-box-content-item-img">
|
||||||
<image src="../../static/images/me/vtd.png" mode=""></image>
|
<image src="../../static/images/me/vtd.png" mode=""></image>
|
||||||
@@ -265,7 +266,8 @@
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ttMsg,otherXuanfu
|
ttMsg,
|
||||||
|
otherXuanfu
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -295,7 +297,7 @@
|
|||||||
showCard: false,
|
showCard: false,
|
||||||
numCount: 0,
|
numCount: 0,
|
||||||
rate: 0,
|
rate: 0,
|
||||||
twoRate:0,
|
twoRate: 0,
|
||||||
kmPaySel: '否',
|
kmPaySel: '否',
|
||||||
isWxIosPay: true, //微信下是否显示支付功能
|
isWxIosPay: true, //微信下是否显示支付功能
|
||||||
userInfo: {},
|
userInfo: {},
|
||||||
@@ -309,7 +311,7 @@
|
|||||||
|
|
||||||
const systemInfo = uni.getSystemInfoSync();
|
const systemInfo = uni.getSystemInfoSync();
|
||||||
const isIOS = /iOS/.test(systemInfo.platform);
|
const isIOS = /iOS/.test(systemInfo.platform);
|
||||||
if ( !isIOS ) {
|
if (!isIOS) {
|
||||||
this.isBack = true
|
this.isBack = true
|
||||||
}
|
}
|
||||||
this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
this.isWxIosPay = uni.getStorageSync('isWxIosPay')
|
||||||
@@ -329,8 +331,8 @@
|
|||||||
this.userName = res.data.userName
|
this.userName = res.data.userName
|
||||||
this.avatar = res.data.avatar
|
this.avatar = res.data.avatar
|
||||||
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
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -368,6 +370,7 @@
|
|||||||
}
|
}
|
||||||
this.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/images/logo.png'
|
this.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/images/logo.png'
|
||||||
|
|
||||||
|
// #ifdef APP
|
||||||
httpsRequest.getT("app/common/type/919", {}).then(res => {
|
httpsRequest.getT("app/common/type/919", {}).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -376,6 +379,8 @@
|
|||||||
this.isShowMoneyPay = !(res.data.value === '1' && isIos)
|
this.isShowMoneyPay = !(res.data.value === '1' && isIos)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// #endif
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//兑换卡密
|
//兑换卡密
|
||||||
@@ -578,7 +583,7 @@
|
|||||||
// #endif
|
// #endif
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
goNav(e,type) {
|
goNav(e, type) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
let token = uni.getStorageSync('token')
|
let token = uni.getStorageSync('token')
|
||||||
if (token) {
|
if (token) {
|
||||||
|
|||||||
Reference in New Issue
Block a user