This commit is contained in:
GaoHao 2025-01-14 11:41:20 +08:00
commit 485b306ef2
2 changed files with 109 additions and 112 deletions

21
App.vue
View File

@ -1,22 +1,15 @@
<script>
import { ref } from 'vue';
import {
ref
} from 'vue';
export default {
onLaunch: function() {
console.log('App Launch');
// const systemInfo = uni.getSystemInfoSync();
// const isA = systemInfo.platform === 'android'
// if (isA) {
// uni.setStorageSync('isAI', true)
// } else {
// uni.setStorageSync('isAI', false)
// }
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
uni.setStorageSync('isIos', isIos)
},
onShow: function() {
},
onHide: function() {
console.log('App Hide');
@ -114,9 +107,11 @@ web-view {
top: 800rpx;
transform: translateX(-50%);
}
.u-image {
background-color: transparent !important;
}
.u-status-bar {
height: var(--status-bar-height);
}

View File

@ -106,7 +106,9 @@ import {
onShow(() => {
getTaskdata()
getsignIn()
const sysInfo = uni.getSystemInfoSync();
let isIos = sysInfo.platform == 'ios'
console.log("is ios ", isIos);
// nextTick(() => {
// currentInstance.ctx.$refs.adRewardedVideo.load();
// })