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/api/base.js b/yuan ma/mp-shop/api/base.js index 8419a49..95e7819 100644 --- a/yuan ma/mp-shop/api/base.js +++ b/yuan ma/mp-shop/api/base.js @@ -1,5 +1,5 @@ /** - * 存储接口地址 + * 定义存储接口地址 */ module.exports = { baseUrl:"http://iwenwiki.com:3001", // 公共地址 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 diff --git a/yuan ma/mp-shop/pages/user/user.js b/yuan ma/mp-shop/pages/user/user.js index a21ecdd..404f9f6 100644 --- a/yuan ma/mp-shop/pages/user/user.js +++ b/yuan ma/mp-shop/pages/user/user.js @@ -1,5 +1,5 @@ const { getLogin } = require("../../api/index.js") - +//1231344 Page({ data: { userInfo: {},