|
|
@@ -25,7 +25,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
-
|
|
|
<view class="scroll-middle_bx">
|
|
|
<scroll-view scroll-y scroll-with-animation class="tab-view">
|
|
|
<div v-for="(item, index) in filterProductInfo" :key="index" class="tab-bar-item" :class="[classIndex == index ? 'active' : '']" :data-current="index" @tap.stop="swichClass(index)">
|
|
|
@@ -192,7 +191,8 @@ export default {
|
|
|
cartItemShow:false,
|
|
|
shopName:'',
|
|
|
shopImg:'',
|
|
|
- hdId:0
|
|
|
+ hdId:0,
|
|
|
+ autoLoad:false
|
|
|
};
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
@@ -234,9 +234,7 @@ export default {
|
|
|
|
|
|
if(this.xjData.hasUpdate == 1){
|
|
|
const list = this.selectList;
|
|
|
-
|
|
|
this.customData = this.xjDataInfo
|
|
|
-
|
|
|
if(this.xjData.cancel == 1){
|
|
|
this.customData.bigCount = 0
|
|
|
this.customData.smallCount = 0
|
|
|
@@ -252,27 +250,17 @@ export default {
|
|
|
has = true
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
if(has == false){
|
|
|
- let params = {
|
|
|
- ...this.xjDataInfo,
|
|
|
- bigCount: null,
|
|
|
- smallCount: null,
|
|
|
- autoPrice: null,
|
|
|
- realityWeight: null,
|
|
|
- userPrice: null,
|
|
|
- };
|
|
|
+ let params = { ...this.xjDataInfo, bigCount: null, smallCount: null, autoPrice: null, realityWeight: null, userPrice: null, }
|
|
|
list.push(params);
|
|
|
this.setSelectInfoByType({ type: this.pageType, info: list });
|
|
|
}
|
|
|
-
|
|
|
this.customData.bigCount = this.xjData.stock
|
|
|
this.customData.smallCount = 0
|
|
|
this.customData.bigPrice = this.xjData.price
|
|
|
this.customData.price = this.xjData.price
|
|
|
this.customData.itemPrice = this.xjData.price
|
|
|
this.customData.userPrice = (Number(this.xjData.stock) * Number(this.xjData.price)).toFixed(2)
|
|
|
-
|
|
|
this.affirm({index:1})
|
|
|
}
|
|
|
}
|
|
|
@@ -347,6 +335,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
+ this.initData()
|
|
|
},
|
|
|
scroll_detail(options){
|
|
|
if(!uni.getStorageSync("resolve")){
|