guhongwei 2 年之前
父節點
當前提交
a621fd14f8
共有 5 個文件被更改,包括 10 次插入10 次删除
  1. 5 5
      common/api.js
  2. 2 2
      config.js
  3. 1 1
      manifest.json
  4. 1 1
      pages/login/index.vue
  5. 1 1
      pagesMy/order/after.vue

+ 5 - 5
common/api.js

@@ -51,11 +51,11 @@ export const requestBase = async (uri, method = 'GET', data, type) => {
   let header = {};
   let views = JSON.stringify({ uri, method, data });
   views = encodeURIComponent(views)
-  if (method !== 'GET') {
-    let rk = await getRequestKey(views);
-    header.rk = rk;
-    header.views = views;
-  }
+  // if (method !== 'GET') {
+  //   let rk = await getRequestKey(views);
+  //   header.rk = rk;
+  //   header.views = views;
+  // }
   if (token) header.token = token;
   return new Promise((resolve, reject) => {
     uni.request({

+ 2 - 2
config.js

@@ -2,7 +2,7 @@
 const wx_min = uni.getAccountInfoSync();
 // 设备信息
 const system = uni.getSystemInfoSync();
-let wx_projectkey = 'pointApp';//tehqApp   pointApp
+let wx_projectkey = 'tehqApp'; //tehqApp   pointApp
 
 if (system.uniPlatform == 'mp-weixin') {
 	let envV = wx_min.miniProgram.envVersion;
@@ -13,7 +13,7 @@ export default {
 	// serverUrl: 'http://192.168.223.1:12211',
 	wx_projectkey: wx_projectkey,
 	wx_miniProgram: wx_min.miniProgram,
-	wx_dev: '/dev', // 
+	wx_dev: '', // /dev
 	system: system,
 	share: {},
 	my_menu: [ //

+ 1 - 1
manifest.json

@@ -128,7 +128,7 @@
 	"quickapp": {},
 	/* 小程序特有相关 */
 	"mp-weixin": {
-		"appid": "wx8cdd28824dfcdf19",
+		"appid": "wx928648edf0df1882",
 		"setting": {
 			"urlCheck": true,
 			"postcss": true,

+ 1 - 1
pages/login/index.vue

@@ -436,7 +436,7 @@
 						if (e == 'wx') {
 							if (openid) {
 								const res = await that.$api(`/user/wxLogin`, 'POST', {
-									openid: openid
+									openid: 'oQO3i5evGgoJbTbERuHRmrbHFRfk'
 								})
 								if (res.errcode == '0') {
 									uni.setStorage({

+ 1 - 1
pagesMy/order/after.vue

@@ -181,7 +181,7 @@
 				});
 				if (res.errcode == '0') {
 					let type = res.data.filter(i => i.value != '4' && i.value != '5')
-					that.$set(that, `typeList`, type)
+					that.$set(that, `typeList`, res.data)
 					var menu = type.map((item) => {
 						return {
 							title: item.label,