增加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>
<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)
}
});