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

View File

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

View File

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

View File

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

View File

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