From 7f13e1c48dbb619b532ee6536f3bbc4e99eedb97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BA=9A?= <14945720+ligengrose@user.noreply.gitee.com> Date: Wed, 20 Nov 2024 11:19:31 +0800 Subject: [PATCH] second commit --- yuan ma/mp-shop-server/database/mpshop.sql | 1 + yuan ma/mp-shop/app.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/yuan ma/mp-shop-server/database/mpshop.sql b/yuan ma/mp-shop-server/database/mpshop.sql index f7bbfad..a71ef5b 100644 --- a/yuan ma/mp-shop-server/database/mpshop.sql +++ b/yuan ma/mp-shop-server/database/mpshop.sql @@ -20,6 +20,7 @@ SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for banner -- ---------------------------- +--菜单栏定义实现不同功能-- DROP TABLE IF EXISTS `banner`; CREATE TABLE `banner` ( `id` int(11) NOT NULL AUTO_INCREMENT, diff --git a/yuan ma/mp-shop/app.js b/yuan ma/mp-shop/app.js index 12f79f0..c526aa4 100644 --- a/yuan ma/mp-shop/app.js +++ b/yuan ma/mp-shop/app.js @@ -1,12 +1,12 @@ // app.js App({ onLaunch() { - // 展示本地存储能力 6 + // 展示本地存储能力 const logs = wx.getStorageSync('logs') || [] logs.unshift(Date.now()) wx.setStorageSync('logs', logs) - // 登录 + // 定义登录 wx.login({ success: res => { // 发送 res.code 到后台换取 openId, sessionKey, unionId