baolei hace 5 meses
padre
commit
4e0a7c054f

+ 0 - 64
08.src/Xingxi-mp/app.js

@@ -1,64 +0,0 @@
-// app.js
-
-const { baseUrl } = require('./config.js');
-
-App({
-
-// config.service.pathUrl
-// https://mpapitest.gululuq.com/
-
-  data: {
-    loginSuccess: false,
-  },
-
-  globalData: {
-    storeId: null,
-    mUser: null,
-  },
-
-  onLaunch() {
-
-    // 登录
-    wx.login({
-      success: res => {
-        // 发送 res.code 到后台换取 openId, sessionKey, unionId
-        console.log("code", res);
-        if (res.code){
-          wx.request({
-            url: baseUrl + '/api/store/wxlogin',
-            method: 'POST',
-            data: {
-              code: res.code
-            },
-            header: {
-              'content-type': 'application/x-www-form-urlencoded',
-              // 'X-Referrer-Id': codeUrl[1] || '',
-              // 'X-Store-Id': codeUrl[0] || ''
-              'X-Referrer-Id': '',
-              'X-Store-Id': ''
-            },
-            success:(res)=> {
-              console.log(res);
-              // this.globalData.mUser = res.data.data;
-              // this.globalData.storeId = '';
-              // this.data.loginSuccess = true;
-            },
-            fail: function(res){
-              console.log(res);
-            }
-          })
-        }
-      },
-      fail: function(e){
-        console.log(e);
-      }
-    })
-  },
-})
-
-
-wx.login({
-  success: res => {
-    // 发送 res.code 到后台换取 openId, sessionKey, unionId
-  },
-})

+ 0 - 6
08.src/Xingxi-mp/config.js

@@ -1,6 +0,0 @@
-export const baseUrl = "https://mpapitest.gululuq.com/"; // 服务器地址
-// export const baseUrl = "http://测试接口地址"; // 测试服务器地址
-
-// export const ossHost = "https://res.zrug.top";
-export const version = "0.0.1"; // 版本号
-export const version_desc = "接口基础";

+ 0 - 8
08.src/Xingxi-mp/project.private.config.json

@@ -1,8 +0,0 @@
-{
-  "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
-  "projectname": "Xingxi-mp",
-  "setting": {
-    "compileHotReLoad": true
-  },
-  "libVersion": "3.8.0"
-}