diff --git a/pages/index/index.vue b/pages/index/index.vue index f8fd2fc..7fd694f 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -438,6 +438,7 @@ this.videoInfo = [] } + // #ifdef APP httpsRequest.getT("app/common/type/919", {}).then(res => { if (res.code == 0) { const sysInfo = uni.getSystemInfoSync(); @@ -445,6 +446,8 @@ this.isShowMoneyPay = !(res.data.value == '1' && isIos) } }); + // #endif + }, onReachBottom() { if (this.page < this.pages) { diff --git a/pages/me/index.vue b/pages/me/index.vue index cef097f..001b268 100644 --- a/pages/me/index.vue +++ b/pages/me/index.vue @@ -1,6 +1,6 @@ @@ -261,11 +262,12 @@ import ttMsg from '../../components/ttMsg/ttMsg.vue' import httpsRequest from '../../common/httpRequest.js' import otherXuanfu from '@/components/other-xuafu.vue' - - + + export default { components: { - ttMsg,otherXuanfu + ttMsg, + otherXuanfu }, data() { return { @@ -295,7 +297,7 @@ showCard: false, numCount: 0, rate: 0, - twoRate:0, + twoRate: 0, kmPaySel: '否', isWxIosPay: true, //微信下是否显示支付功能 userInfo: {}, @@ -306,10 +308,10 @@ this.getBannerList() }, onShow() { - + const systemInfo = uni.getSystemInfoSync(); const isIOS = /iOS/.test(systemInfo.platform); - if ( !isIOS ) { + if (!isIOS) { this.isBack = true } this.isWxIosPay = uni.getStorageSync('isWxIosPay') @@ -329,8 +331,8 @@ this.userName = res.data.userName this.avatar = res.data.avatar this.invitationCode = res.data.invitationCode - this.rate = res.data.rate||0 - this.twoRate = res.data.twoRate||0 + this.rate = res.data.rate || 0 + this.twoRate = res.data.twoRate || 0 } }) @@ -368,6 +370,7 @@ } this.avatar = uni.getStorageSync('avatar') ? uni.getStorageSync('avatar') : '../../static/images/logo.png' + // #ifdef APP httpsRequest.getT("app/common/type/919", {}).then(res => { console.log(res); if (res.code === 0) { @@ -376,6 +379,8 @@ this.isShowMoneyPay = !(res.data.value === '1' && isIos) } }); + // #endif + }, methods: { //兑换卡密 @@ -578,7 +583,7 @@ // #endif } }, - goNav(e,type) { + goNav(e, type) { console.log(e) let token = uni.getStorageSync('token') if (token) { @@ -591,7 +596,7 @@ url: e }) } - + } else { uni.navigateTo({ url: "/pages/login/login"