6
0
Fork 0

sku小程序无反应

hui.zhou
ihzero 2023-02-12 18:56:44 +08:00
parent fe38402b7f
commit 65b19d985e
4 changed files with 1989 additions and 17049 deletions

15338
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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">

View File

@ -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
}) })

3685
yarn.lock

File diff suppressed because it is too large Load Diff