增加ios判断条件

This commit is contained in:
GaoHao
2024-12-24 09:53:00 +08:00
parent 2ff5ebfd71
commit 33e462c64f

View File

@@ -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)
} }
}); });