1 Star 0 Fork 0

Yumi_a/Enjoy+

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
app.js 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
Yumi_a 提交于 2023-03-30 08:49 . 提交
// app.js
import { $http } from '@escook/request-miniprogram'
$http.baseUrl = 'https://live-api.itheima.net'
wx.$http = $http
App({
onLaunch() {
// 展示本地存储能力
const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now())
wx.setStorageSync('logs', logs)
// 登录
wx.login({
success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId
}
})
},
globalData: {
userInfo: null,
list: wx.getStorageSync('noticeItem')
}
})
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yumi_a/enjoy.git
git@gitee.com:yumi_a/enjoy.git
yumi_a
enjoy
Enjoy+
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385