|
@@ -585,7 +585,7 @@
|
|
|
specs,
|
|
|
discount,
|
|
|
countDown,
|
|
|
- homeList
|
|
|
+ homeList
|
|
|
},
|
|
|
directives: {
|
|
|
trigger: {
|
|
@@ -780,7 +780,10 @@
|
|
|
// #ifndef MP
|
|
|
that.navH = 96;
|
|
|
// #endif
|
|
|
- that.id = options.id;
|
|
|
+ that.id = options.id;
|
|
|
+ if(options.store_id) {
|
|
|
+ that.store_id = options.store_id;
|
|
|
+ }
|
|
|
that.isShow = options.isShow;
|
|
|
that.promotions_type = options.promotions_type || 0;
|
|
|
that.fromType = options.fromType;
|
|
@@ -967,7 +970,8 @@
|
|
|
this.addressId = row.id
|
|
|
},
|
|
|
// 获取自提地址id
|
|
|
- onstoreId(row) {
|
|
|
+ onstoreId(row) {
|
|
|
+ console.log('获取自提地址id',row.id)
|
|
|
this.store_id = row.id;
|
|
|
this.store_name = row.name;
|
|
|
},
|
|
@@ -1877,9 +1881,9 @@
|
|
|
getCartCount: function(isAnima) {
|
|
|
let that = this;
|
|
|
const isLogin = that.isLogin;
|
|
|
- let id = uni.getStorageSync('user_store_id') || 0;
|
|
|
+ // let id = uni.getStorageSync('user_store_id') || 0;
|
|
|
if (isLogin) {
|
|
|
- getCartCounts(0,id).then(res => {
|
|
|
+ getCartCounts(0,that.store_id).then(res => {
|
|
|
that.CartCount = res.data.count;
|
|
|
this.$store.commit('indexData/setCartNum', that.CartCount > 99 ? '...' : that
|
|
|
.CartCount + '')
|