更新
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<view class="page-content">
|
||||
<image src="../../../static/img/start.jpg" width="" mode="widthFix"></image>
|
||||
<image src="../../../static/img/start-second.jpg" width="" mode="widthFix"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -59,50 +59,61 @@
|
||||
this.getFilterData()
|
||||
}
|
||||
}
|
||||
setTimeout(() => {
|
||||
if (key == '在线') {
|
||||
uni.switchTab({
|
||||
url: '/pages/tabbar/home/home',
|
||||
})
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/BagAuth/pages/login/login'
|
||||
})
|
||||
}
|
||||
}, 2500)
|
||||
// 在页面中定义插屏广告
|
||||
let interstitialAd = null
|
||||
// let interstitialAd = null
|
||||
|
||||
// 在页面onLoad回调事件中创建插屏广告实例
|
||||
if (wx.createInterstitialAd) {
|
||||
interstitialAd = wx.createInterstitialAd({
|
||||
adUnitId: 'adunit-a7faf57adeed211f'
|
||||
})
|
||||
}
|
||||
interstitialAd.onLoad((err) => {
|
||||
// console.log('onLoad event emit', err)
|
||||
})
|
||||
interstitialAd.onError((err) => {
|
||||
setTimeout(() => {
|
||||
if (key == '在线') {
|
||||
uni.switchTab({
|
||||
url: '/pages/tabbar/home/home',
|
||||
})
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/BagAuth/pages/login/login'
|
||||
})
|
||||
}
|
||||
}, 2000)
|
||||
})
|
||||
// if (wx.createInterstitialAd) {
|
||||
// interstitialAd = wx.createInterstitialAd({
|
||||
// adUnitId: 'adunit-a7faf57adeed211f'
|
||||
// })
|
||||
// }
|
||||
// interstitialAd.onLoad((err) => {
|
||||
// // console.log('onLoad event emit', err)
|
||||
// })
|
||||
// interstitialAd.onError((err) => {
|
||||
// setTimeout(() => {
|
||||
// if (key == '在线') {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/tabbar/home/home',
|
||||
// })
|
||||
// } else {
|
||||
// uni.redirectTo({
|
||||
// url: '/BagAuth/pages/login/login'
|
||||
// })
|
||||
// }
|
||||
// }, 2000)
|
||||
// })
|
||||
// 在适合的场景显示插屏广告
|
||||
if (interstitialAd) {
|
||||
interstitialAd.show().catch((err) => {
|
||||
// console.error(err)
|
||||
})
|
||||
}
|
||||
interstitialAd.onClose(res => {
|
||||
setTimeout(() => {
|
||||
if (key == '在线') {
|
||||
uni.switchTab({
|
||||
url: '/pages/tabbar/home/home',
|
||||
})
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/BagAuth/pages/login/login'
|
||||
})
|
||||
}
|
||||
}, 1000)
|
||||
})
|
||||
// if (interstitialAd) {
|
||||
// interstitialAd.show().catch((err) => {
|
||||
// // console.error(err)
|
||||
// })
|
||||
// }
|
||||
// interstitialAd.onClose(res => {
|
||||
// setTimeout(() => {
|
||||
// if (key == '在线') {
|
||||
// uni.switchTab({
|
||||
// url: '/pages/tabbar/home/home',
|
||||
// })
|
||||
// } else {
|
||||
// uni.redirectTo({
|
||||
// url: '/BagAuth/pages/login/login'
|
||||
// })
|
||||
// }
|
||||
// }, 1000)
|
||||
// })
|
||||
},
|
||||
onReady(option) {
|
||||
const updateManager = uni.getUpdateManager();
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="page-content">
|
||||
<cu-custom class="bg-main-oil" bgColor="bg-main-oil">
|
||||
<block slot="content">佰川加油</block>
|
||||
<block slot="content">清正源油加油</block>
|
||||
</cu-custom>
|
||||
<view class="margin-top-lg">
|
||||
<swiper class="screen-swiper text-center square-dot" :indicator-dots="true"
|
||||
|
||||
@@ -484,7 +484,7 @@
|
||||
// } else {
|
||||
// uni.showModal({
|
||||
// title: '请您登录',
|
||||
// content: "登录佰川加油才可以加油 |˛˙꒳˙)♡",
|
||||
// content: "登录清正源油加油才可以加油 |˛˙꒳˙)♡",
|
||||
// confirmText: '去登陆',
|
||||
// success: (res) => {
|
||||
// if (res.confirm) {
|
||||
|
||||
Reference in New Issue
Block a user