shop-applet/pages/product/addGood/specGood.vue

34 lines
624 B
Vue

<template>
<view>
<block v-for="item in attrValue">
<priceComponent ref="priceRef" :product_id="item.product_id" :bar_code="item.code" @updateCode="updateCode">
</priceComponent>
</block>
</view>
</template>
<script>
import priceComponent from "./components/price.vue";
export default {
components:{
priceComponent
},
data(){
return{
attrValue: [],
product_id: ''
}
},
onLoad(options) {
this.product_id = options.product_id
},
methods:{
updateCode(e){
console.log(e);
}
}
}
</script>
<style>
</style>