调整我的页面,调整手动绑定字段错误和接口调用的错误

This commit is contained in:
2025-01-03 10:57:46 +08:00
parent bcaefbe1cb
commit 293a5c8682
11 changed files with 44 additions and 23 deletions

18
app.js
View File

@@ -1,14 +1,32 @@
import { checkUpgrade, getConfigByEnv } from "./utils/index"
function share() {
wx.onAppRoute(function(res) {
const pages = getCurrentPages()
const view = pages[pages.length - 1];
if (view) {
wx.showShareMenu()
}
})
}
// app.js
App({
onShow() {
checkUpgrade();
},
onLaunch() {
// wx.showShareMenu()
// share()
const { api } = getConfigByEnv();
this.globalData = { ...this.globalData, api, }
},
// onShareAppMessage:function(){
// wx.showShareMenu({
// withShareTicket:true,
// menu:['shareAppMessage','shareTimeline']
// })
// },
globalData: {
primaryColor: '#52c41a'
}