second commit

master
李庚 3 days ago
parent d3c073aeb9
commit 7f13e1c48d

@ -20,6 +20,7 @@ SET FOREIGN_KEY_CHECKS = 0;
-- ---------------------------- -- ----------------------------
-- Table structure for banner -- Table structure for banner
-- ---------------------------- -- ----------------------------
----
DROP TABLE IF EXISTS `banner`; DROP TABLE IF EXISTS `banner`;
CREATE TABLE `banner` ( CREATE TABLE `banner` (
`id` int(11) NOT NULL AUTO_INCREMENT, `id` int(11) NOT NULL AUTO_INCREMENT,

@ -1,12 +1,12 @@
// app.js // app.js
App({ App({
onLaunch() { onLaunch() {
// 展示本地存储能力 6 // 展示本地存储能力
const logs = wx.getStorageSync('logs') || [] const logs = wx.getStorageSync('logs') || []
logs.unshift(Date.now()) logs.unshift(Date.now())
wx.setStorageSync('logs', logs) wx.setStorageSync('logs', logs)
// 登录 // 定义登录
wx.login({ wx.login({
success: res => { success: res => {
// 发送 res.code 到后台换取 openId, sessionKey, unionId // 发送 res.code 到后台换取 openId, sessionKey, unionId

Loading…
Cancel
Save