Commit b587434e by wangjian

1

parent 00152c32
<template> <template>
<view class="container"> <view class="container">
<view class="goods"> <view class="goods">
<view class="title">商品信息</view> <view class="title">商品信息</view>
<view class="info"> <view class="info">
<image class="img" :src="goods.img" mode=""></image> <image class="img" :src="goods.img" mode=""></image>
...@@ -93,6 +93,17 @@ ...@@ -93,6 +93,17 @@
this.errorAlertText = res.message this.errorAlertText = res.message
this.errorAlert = true this.errorAlert = true
} }
if (res.code === 1001) {
this.getDetail()
}
})
},
getDetail() {
let params = {'skuNo': this.goods.skuNo, 'spuNo': this.goods.spuNo}
this.$net.get('/goods/sku/detail', params).then(res => {
if (res.code === 200) {
this.goods.sellingPrice = res.data.skuDetail.sellingPrice
}
}) })
}, },
clickAlert() { clickAlert() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment