提交 9463e85d authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 0d512496
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<div> <div>
<ol> <ol>
<li v-for="item in selfProductList" :key="item.id"> <li v-for="item in selfProductList" :key="item.id">
{{ item.name }}{{ item.desc }} {{ item.price }} {{ item.name }}{{ item.desc }} {{ item.price / 100 }}
</li> </li>
</ol> </ol>
</div> </div>
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
<div> <div>
<ol> <ol>
<li v-for="item in otherProductList" :key="item.id"> <li v-for="item in otherProductList" :key="item.id">
{{ item.name }}{{ item.desc }} {{ item.price }} {{ item.name }}{{ item.desc }} {{ item.price / 100 }}
</li> </li>
</ol> </ol>
</div> </div>
...@@ -94,9 +94,7 @@ ...@@ -94,9 +94,7 @@
<el-radio :label="item.value" v-for="item in payList" :key="item.value">{{ item.label }}</el-radio> <el-radio :label="item.value" v-for="item in payList" :key="item.value">{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="支付金额" prop="payment" <el-form-item label="支付金额" prop="payment"><em class="price"></em>{{ payPrice }} </el-form-item>
><em class="price"></em>{{ formatValue(payPrice) }}
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" :disabled="disabled" @click="handleSubmit">立即支付</el-button> <el-button type="primary" :disabled="disabled" @click="handleSubmit">立即支付</el-button>
</el-form-item> </el-form-item>
...@@ -170,13 +168,10 @@ export default { ...@@ -170,13 +168,10 @@ export default {
} }
}) })
} }
return price return price / 100
} }
}, },
methods: { methods: {
formatValue(value = 0) {
return value.toLocaleString()
},
// 返回 // 返回
goBack() { goBack() {
this.$router.push({ path: '/app/offices', query: { id: this.affairId } }) this.$router.push({ path: '/app/offices', query: { id: this.affairId } })
......
...@@ -63,9 +63,9 @@ export default { ...@@ -63,9 +63,9 @@ export default {
const { list, total } = response const { list, total } = response
this.page.total = total this.page.total = total
this.list = list.map(item => { this.list = list.map(item => {
let list = JSON.parse(item.product_desc) || [] let list = item.product_desc ? JSON.parse(item.product_desc) || [] : []
list = list.map(item => { list = list.map(item => {
item.product = JSON.parse(item.product) item.product = item.product ? JSON.parse(item.product) || {} : {}
return item return item
}) })
const [personal, ...others] = list const [personal, ...others] = list
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论