更改规格字段

This commit is contained in:
2022-07-08 10:41:53 +08:00
parent 9f6c343d05
commit 6bd30919e8
2 changed files with 5 additions and 4 deletions

View File

@@ -24,7 +24,7 @@
<view class="sales" v-if="goods.skus">库存量{{goods.skus[0].stock}}</view> <view class="sales" v-if="goods.skus">库存量{{goods.skus[0].stock}}</view>
</view> </view>
<view class="unit" v-if="goods.skus && goods.skus[0].unit !== ''"> <view class="unit" v-if="goods.skus && goods.skus[0].unit !== ''">
规格 : {{goods.skus[0].unit}} 规格 : {{goods.skus[0].unit_text}}
</view> </view>
<!-- 店铺信息 --> <!-- 店铺信息 -->
@@ -77,6 +77,7 @@
methods:{ methods:{
getGoods(){ getGoods(){
goods(this.$Route.query.id).then(res => { goods(this.$Route.query.id).then(res => {
console.log(res)
this.goods = res this.goods = res
}) })
}, },

File diff suppressed because one or more lines are too long