123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- const util = require('../../utils/utils.js')
- let videoAd = null;
- var app = getApp();
- Page({
- data: {
- img:app.globalData.imgUrl,
- number:''
- },
- onLoad: function (options) {
- this.setData({number:options.number})
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- },
- home: util.throttle(function (e) {
- if(app.globalData.compatible){
- my.reLaunch({
- url: '/pages/compatible/index/index',
- })
- }else{
- my.reLaunch({
- url: '/pages/index/index',
- })
- }
- },1000),
- ad(){
- if (videoAd) {
- videoAd.show().catch(() => {
-
- videoAd.load()
- .then(() => videoAd.show())
- .catch(err => {
- console.log('激励视频 广告显示失败')
- })
- })
- }
- },
- onReady: function () {
- },
- onShow: function () {
- },
- onHide: function () {
- },
- onUnload: function () {
- },
- onPullDownRefresh: function () {
- },
- onReachBottom: function () {
- },
- onShareAppMessage: function () {
-
- }
- })
|