Commit 145071dc by 孙美琪

价格的单位为分,展示的时候需要/100

parent feb6faee
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<el-table-column prop="name" label="型号" width="190px" sortable/> <el-table-column prop="name" label="型号" width="190px" sortable/>
<!-- <el-table-column v-for="item in productType" prop="cpu" label="CPU" sortable/>--> <!-- <el-table-column v-for="item in productType" prop="cpu" label="CPU" sortable/>-->
<el-table-column <el-table-column
v-for="(item, index) in tableData[0].properties.length!==0?tableData[0].properties.slice(0,6):tableData[0].properties" v-for="(item, index) in tableData[0]?.properties.length!==0?tableData[0]?.properties.slice(0,6):tableData[0]?.properties"
:key="index" :key="index"
:label="item.propertyName" :label="item.propertyName"
sortable sortable
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<div class="bottom-info"> <div class="bottom-info">
<el-row> <el-row>
<el-col :span="24" <el-col :span="24"
v-for="(i,x) in item.properties.length!==0?item.properties.slice(0,4):item.properties" v-for="(i,x) in item?.properties.length!==0 ? item?.properties.slice(0,4):item.properties"
:key="x"> :key="x">
<div class="parameter-item"> <div class="parameter-item">
<div class="label">{{ i.propertyName }}</div> <div class="label">{{ i.propertyName }}</div>
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-divider></el-divider> <el-divider></el-divider>
<div class="flex-justify-end price">¥{{ item.price }}/{{ item.feeInfo }}</div> <div class="flex-justify-end price">¥{{ item.price ? item.price / 100 : '-' }}/{{ item.feeInfo }}</div>
<!--<div class="flex-justify-end month-expenses">约¥15/月</div>--> <!--<div class="flex-justify-end month-expenses">约¥15/月</div>-->
<el-divider></el-divider> <el-divider></el-divider>
<div class="footer-action flex"> <div class="footer-action flex">
...@@ -168,7 +168,7 @@ ...@@ -168,7 +168,7 @@
<div class="flex-align-center"> <div class="flex-align-center">
<div class="mr20"> <div class="mr20">
<div class="price">{{ orderPrice }}</div> <div class="price">{{ orderPrice/100 }}</div>
</div> </div>
<el-button type="primary" @click="create">{{ selectedType === 1 ? '加入购物车' : '立即购买' }} <el-button type="primary" @click="create">{{ selectedType === 1 ? '加入购物车' : '立即购买' }}
</el-button> </el-button>
...@@ -325,8 +325,8 @@ function create() { ...@@ -325,8 +325,8 @@ function create() {
}) })
.catch(() => { .catch(() => {
ElMessageBox.confirm( ElMessageBox.confirm(
'提示',
'订单已创建,请前往控制台-我的订单查看', '订单已创建,请前往控制台-我的订单查看',
'提示',
{ {
confirmButtonText: '确认', confirmButtonText: '确认',
showCancelButton: false, showCancelButton: false,
......
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 sign in to comment