增加ios判断条件
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<!-- 任务中心 -->
|
||||
<template>
|
||||
<view class="container">
|
||||
<!-- <u-navbar :background="background" :is-back="false" :title="title" :border-bottom="false"></u-navbar> -->
|
||||
<view class="task_bg u-absolute">
|
||||
<image class="task_bg" src="../../static/images/me/task_bg.png" ></image>
|
||||
</view>
|
||||
<view class="navTitle">
|
||||
<u-navbar v-if="!isIos" :background="background" :is-back="false" :title="title" :border-bottom="false"></u-navbar>
|
||||
<view class="navTitle" v-else>
|
||||
<view></view>
|
||||
<view class="title">任务大厅</view>
|
||||
<image @click="goNav({jumpType:1,buttonUrl:'/pages/me/index'})" class="navTitleIcon" src="../../static/images/my.png" ></image>
|
||||
@@ -96,15 +96,18 @@
|
||||
],
|
||||
signInBtn: '点击签到',
|
||||
isShowMoneyPay: true,
|
||||
isIos: false,
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
|
||||
this.getTaskdata()
|
||||
this.getsignIn()
|
||||
this.$Request.getT("app/common/type/919", {}).then(res => {
|
||||
if (res.code == 0) {
|
||||
const sysInfo = uni.getSystemInfoSync();
|
||||
let isIos = sysInfo.platform == 'ios'
|
||||
this.isIos = /iOS/.test(systemInfo.platform);
|
||||
this.isShowMoneyPay = !(res.data.value == '1' && isIos)
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user