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