This commit is contained in:
13410271814 2024-12-07 14:07:33 +08:00
parent 9e2b448d28
commit 742d8a4459
5 changed files with 14 additions and 6 deletions

View File

@ -4,6 +4,11 @@ const {
App({
onLaunch(opts, data) {
if (opts && opts.scene === 1154) {
this.globalData.singlePage = true;
} else {
this.globalData.singlePage = false;
}
this.etmsLogin("onLaunch");
},
onShow() {
@ -23,6 +28,9 @@ App({
},
async login() {
if (this.globalData.singlePage) {
return;
}
return new Promise((resolve, reject) => {
wx.login({
success: (res) => {
@ -65,6 +73,6 @@ App({
microWebHomeUrl: "https://baidu.com",
currentActivityBag: {},
currentActivityBag2: {},
singlePage: false
},
});

View File

@ -195,7 +195,7 @@ Page({
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage']
menus: ['shareAppMessage', 'shareTimeline']
})
},
@ -207,7 +207,7 @@ Page({
this.setData({
isLoadFinish: true
})
if (!app.globalData.s) {
if (!app.globalData.s && !app.globalData.singlePage) {
setTimeout(() => {
this.setData({
isLoadFinish: false

View File

@ -227,7 +227,7 @@ Page({
this.setData({
isLoadFinish: true
})
if (!app.globalData.s) {
if (!app.globalData.s&& !app.globalData.singlePage) {
setTimeout(() => {
this.setData({
isLoadFinish: false

View File

@ -136,7 +136,7 @@ Page({
this.setData({
isLoadFinish: true
})
if (!app.globalData.s) {
if (!app.globalData.s&& !app.globalData.singlePage) {
setTimeout(() => {
this.setData({
isLoadFinish: false

View File

@ -228,7 +228,7 @@ Page({
this.setData({
isLoadFinish: true
})
if (!app.globalData.s) {
if (!app.globalData.s&& !app.globalData.singlePage) {
setTimeout(() => {
this.setData({
isLoadFinish: false