zs 1 rok pred
rodič
commit
f66f7befce
2 zmenil súbory, kde vykonal 4380 pridanie a 4381 odobranie
  1. 4378 4377
      config.js
  2. 2 4
      pages/index/index.vue

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 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() {}
 					});
 				}