sku小程序无反应
parent
fe38402b7f
commit
65b19d985e
File diff suppressed because it is too large
Load Diff
|
|
@ -14,7 +14,7 @@
|
||||||
</view>
|
</view>
|
||||||
<scroll-view scroll-y="true" class="max-h-900rpx">
|
<scroll-view scroll-y="true" class="max-h-900rpx">
|
||||||
<view>
|
<view>
|
||||||
<view v-for="(item, index) in specs" :key="index">
|
<view v-for="(item, index) in tempSkus" :key="index">
|
||||||
<view class="font-semibold py-30rpx text-333333 text-30rpx"> {{ item.name }} </view>
|
<view class="font-semibold py-30rpx text-333333 text-30rpx"> {{ item.name }} </view>
|
||||||
<view class="-mr-24rpx">
|
<view class="-mr-24rpx">
|
||||||
<view class="inline-block mr-24rpx mb-16rpx" v-for="(spce,index2) in item.items" :key="index2">
|
<view class="inline-block mr-24rpx mb-16rpx" v-for="(spce,index2) in item.items" :key="index2">
|
||||||
|
|
@ -162,6 +162,7 @@ export default {
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
tempSkus:[],
|
||||||
stepper: this.quotaUsed,
|
stepper: this.quotaUsed,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
@ -194,6 +195,15 @@ export default {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch:{
|
||||||
|
specs:{
|
||||||
|
immediate:true,
|
||||||
|
handler(e){
|
||||||
|
this.tempSkus = e
|
||||||
|
},
|
||||||
|
deep:true
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,7 @@ export default {
|
||||||
},
|
},
|
||||||
// 选择sku, 更新价格
|
// 选择sku, 更新价格
|
||||||
handleSkuSelect(e) {
|
handleSkuSelect(e) {
|
||||||
|
this.skuId = e.sku_id
|
||||||
this.$api.get(`/v1/store/${this.mid}/product-sku/${e.sku_id}`).then(res => {
|
this.$api.get(`/v1/store/${this.mid}/product-sku/${e.sku_id}`).then(res => {
|
||||||
this.sku = res
|
this.sku = res
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue