improve: 优化体验

This commit is contained in:
From-wh 2023-03-29 15:58:10 +08:00
parent b0b4243d61
commit d676bb1e21
3 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@
<div class="box">
<div class="box-item" v-for="(item, index) in goodsList" :key="index">
<img :src="item.image" alt="" />
<Icon type="ios-close-circle" size="20" @click="bindDelete(index)" />
<Icon type="ios-close-circle" size="20" @click="bindDelete(index,item)" />
</div>
<div class="upload-box" @click="selectGoods">
<Icon type="ios-camera-outline" size="36" />
@ -182,10 +182,10 @@ export default {
}, 300);
});
},
bindDelete(index) {
bindDelete(index,item) {
this.goodsList.splice(index, 1);
if (this.tabList.length) {
let i = this.tabList.findIndex((e) => e.id == row.id);
let i = this.tabList.findIndex((e) => e.id == item.product_id);
this.tabList.splice(i, 1);
}
},

View File

@ -636,8 +636,9 @@ export default {
h('InputNumber', {
props: {
min: 0,
precision: key === 'price' ? 2 : 0,
value: key === 'price' ? params.row.price : params.row.quota,
formatter: (value) =>
key === 'price' ? `${value}`.match(/^\d+(?:\.\d{0,2})?/) : `${value}`.match(/^\d+(?:\.\d{0,-1})?/),
},
on: {
'on-change': (e) => {

View File

@ -152,7 +152,7 @@
<div class="title row">联系信息</div>
<Row class="row">
<Col span="12">真实姓名: {{ invoiceDetails.name }}</Col>
<Col span="12">联系电话: {{ invoiceDetails.user_phone }}</Col>
<Col span="12">联系电话: {{ invoiceDetails.drawer_phone }}</Col>
</Row>
<Row class="row">
<Col span="12">联系邮箱: {{ invoiceDetails.email }}</Col>