|
@@ -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() {}
|
|
|
});
|
|
|
}
|