微信小程序 提审时隐藏功能;微信小程序添加微信快捷登录、随便看看(登的user用户)
This commit is contained in:
@@ -1,20 +1,27 @@
|
||||
// app.js
|
||||
App({
|
||||
onLaunch() {
|
||||
// 展示本地存储能力
|
||||
const logs = wx.getStorageSync('logs') || []
|
||||
logs.unshift(Date.now())
|
||||
wx.setStorageSync('logs', logs)
|
||||
|
||||
// 登录
|
||||
wx.login({
|
||||
success: res => {
|
||||
// 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||
}
|
||||
})
|
||||
const toggleCustomTabBar = require('./custom-tab-bar/toggleCustomTabBar')
|
||||
|
||||
App({
|
||||
async onLaunch() {
|
||||
|
||||
// 获取下拉框信息
|
||||
toggleCustomTabBar.updateConfig(this.globalData.baseUrl)
|
||||
|
||||
// // 展示本地存储能力
|
||||
// const logs = wx.getStorageSync('logs') || []
|
||||
// logs.unshift(Date.now())
|
||||
// wx.setStorageSync('logs', logs)
|
||||
|
||||
// // 登录
|
||||
// wx.login({
|
||||
// success: res => {
|
||||
// // 发送 res.code 到后台换取 openId, sessionKey, unionId
|
||||
// }
|
||||
// })
|
||||
},
|
||||
globalData: {
|
||||
debugMode: true, // 是否展示调试内容
|
||||
// debugMode: true, // 是否展示调试内容
|
||||
baseUrl: true ? // Api 请求域名 不带最后的 /
|
||||
"https://epp.only4.work" :
|
||||
"http://localhost",
|
||||
|
Reference in New Issue
Block a user