|
@@ -180,8 +180,6 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
- // 店铺id
|
|
|
- shop: '',
|
|
|
// 设备平台信息
|
|
|
system: {},
|
|
|
user: {},
|
|
@@ -238,7 +236,7 @@
|
|
|
// 设备平台信息
|
|
|
let config = that.$config;
|
|
|
that.$set(that, `system`, config.system);
|
|
|
- that.searchShop()
|
|
|
+ that.search()
|
|
|
},
|
|
|
fail: function(err) {
|
|
|
uni.navigateTo({
|
|
@@ -255,8 +253,7 @@
|
|
|
let info = {
|
|
|
skip: that.skip,
|
|
|
limit: that.limit,
|
|
|
- customer: user._id,
|
|
|
- shop: that.shop
|
|
|
+ customer: user._id
|
|
|
}
|
|
|
let res;
|
|
|
if (that.tabs.active == '1') {
|
|
@@ -687,17 +684,6 @@
|
|
|
that.$set(that, `skip`, 0)
|
|
|
that.$set(that, `limit`, 6)
|
|
|
that.$set(that, `page`, 0)
|
|
|
- },
|
|
|
- // 店铺信息
|
|
|
- searchShop() {
|
|
|
- const that = this;
|
|
|
- uni.getStorage({
|
|
|
- key: 'shop',
|
|
|
- success: async function(res) {
|
|
|
- that.$set(that, `shop`, res.data);
|
|
|
- await that.search();
|
|
|
- }
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
}
|