Commit 7b1be410 by zhangquan

回显商品

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