修改支付跳转修改打包版本

This commit is contained in:
2024-12-13 16:46:16 +08:00
parent f0edf9f419
commit b344413b2a
3 changed files with 19 additions and 5 deletions

View File

@@ -14,7 +14,7 @@
}, },
"usingComponents" : true, "usingComponents" : true,
"nvueStyleCompiler" : "uni-app", "nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3, "compilerVersion" : 4,
"splashscreen" : { "splashscreen" : {
"alwaysShowBeforeRender" : true, "alwaysShowBeforeRender" : true,
"waiting" : true, "waiting" : true,
@@ -57,8 +57,8 @@
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>" "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
], ],
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
"minSdkVersion" : 26, "minSdkVersion" : 28,
"targetSdkVersion" : 28, "targetSdkVersion" : 33,
"schemes" : "com.hnsiyao.duanju" "schemes" : "com.hnsiyao.duanju"
}, },
/* ios */ /* ios */

View File

@@ -618,6 +618,16 @@
// #endif // #endif
}, },
onShow() { onShow() {
console.log('onSHow video');
//当应用从后台进入前台时自动播放
if (this.videoContext) {
this.videoContext.play()
}
const noBuyVideoIndex= uni.getStorageSync('noBuyVideoIndex')
if(noBuyVideoIndex!==null&&noBuyVideoIndex!==undefined){
this.noBuyVideoIndex=noBuyVideoIndex
}
try { try {
this.playType = Number(uni.getStorageSync('playType')) this.playType = Number(uni.getStorageSync('playType'))
} catch (e) { } catch (e) {

View File

@@ -51,16 +51,20 @@
uni.navigateBack() uni.navigateBack()
},500) },500)
}else{ }else{
// #ifdef APP
uni.showLoading({ uni.showLoading({
title:'支付中' title:'支付中'
}) })
// #endif
} }
}); });
}, },
onHide() { onHide() {
clearInterval(this.timer) clearInterval(this.timer)
uni.hideLoading()
},
onUnload() {
uni.hideLoading()
}, },
onLoad: function(option) { onLoad: function(option) {
console.log(option) console.log(option)