2.6提交

This commit is contained in:
zoujiandong
2026-02-06 17:30:16 +08:00
parent db9ca707ae
commit ae9a961a42
17 changed files with 416 additions and 181 deletions
+15 -4
View File
@@ -117,9 +117,12 @@
import { ref, onMounted } from 'vue';
import {onShow,onBackPress,onLoad,onHide} from '@dcloudio/uni-app';
import docUrl from '@/utils/docUrl.js';
const from = ref('');
onBackPress(() => {
plus.runtime.quit();
return true;
if(!from.value){
plus.runtime.quit();
return true;
}
});
//import jifenImg from "@/static/duihuan.png"
import api from '@/api/api';
@@ -190,7 +193,11 @@
// 方法
const goBack = () => {
plus.runtime.quit();
if(!from.value){
plus.runtime.quit();
}else{
uni.navigateBack();
}
};
const showRules = () => {
@@ -239,6 +246,10 @@
}
};
onLoad((options) => {
if(options.from){
from.value = options.from;
}
getWelfarePage();
});
onHide(() => {
@@ -261,7 +272,7 @@
});
}else if(benefit.name == 'video'){
navTo({
url: '/pages_app/video/video'
url: '/pages_app/video/video?from=myWelfare'
});
}else if(benefit.name == 'kejian'){
navTo({