Commit 7b1be410 by zhangquan

回显商品

1 parent 9534ecc0
......@@ -44,7 +44,7 @@ const addCaseApi = params => {
const getCarSeriesApi= params => {
params.method = 'scrm.api.carlife.common.getOnlyCarBrandList'
params.method = 'scrm.api.carlife.common.getCarBrandList'
return http({
url: 'rop-scrm-carlife/router',
method: 'GET',
......
......@@ -126,12 +126,20 @@ export default {
default: ()=> {}
}
},
created() {
let { smartcarlifeInfoId, goodsName, coverList, goodsImage, minSellPrice, retailPrice } = this.goodsInfo || {}
this.curInfo = {
id: smartcarlifeInfoId,
goodsName,
goodsImage: coverList?.[0] || '',
minSellPrice: minSellPrice ? Number(Number(minSellPrice*10*10).toFixed(0)) : 0,
retailPrice: retailPrice ? Number(Number(retailPrice*10*10).toFixed(0)) : 0,
}
},
mounted() {
let clientHeight = document.documentElement.clientHeight
this.heightBox = clientHeight - 0.15 * clientHeight - 425
console.log(this.goodsInfo)
this.curInfo = this.goodsInfo || {}
this.getList()
},
......
......@@ -183,7 +183,7 @@
},
// 获取数据源
getCarSeriesData() {
this.$apis.case.getCarSeriesApi({}).then(res => {
this.$apis.case.getCarSeriesApi({needCarSeries:true}).then(res => {
console.log(res)
if(res?.length){
this.carSeriesData = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!