Browse Source

修改店铺id

zs 1 year ago
parent
commit
f66f7befce
2 changed files with 4380 additions and 4381 deletions
  1. 4378 4377
      config.js
  2. 2 4
      pages/index/index.vue

File diff suppressed because it is too large
+ 4378 - 4377
config.js


+ 2 - 4
pages/index/index.vue

@@ -12,8 +12,6 @@
 	export default {
 		data() {
 			return {
-				// 店铺id
-				shop: '6350f909a4d1c1253468bdb2',
 				logoUrl: '',
 			};
 		},
@@ -26,7 +24,7 @@
 			async searchConfig() {
 				const that = this;
 				let res = await that.$api(`/config`, 'GET', {
-					shop: that.shop
+					shop: that.$config.shop
 				});
 				if (res.errcode == '0') {
 					uni.getStorage({
@@ -65,7 +63,7 @@
 					})
 					uni.setStorage({
 						key: 'shop',
-						data: that.shop || '6350f909a4d1c1253468bdb2',
+						data: that.$config.shop,
 						success: function() {}
 					});
 				}