Commit 374fb370 by 李伟康

refactor(boutique): 优化代码结构和显示逻辑

- 删除了 case.vue 中未使用的注释代码
- 优化了 case.vue 中的条件判断逻辑
- 在 history.vue 中统一了商品数量的显示格式
- 修复了 history.vue 中支付方式图片的显示问题
- 调整了 history.vue 中标签和值的样式
1 parent 8f6588b5
......@@ -170,7 +170,6 @@ export default {
show: Boolean,
madiaId: Number,
penSwitch: Boolean,
// caseMaterials: Array
},
computed: {
watchStatus () {
......@@ -189,8 +188,7 @@ export default {
if (newValue) {
this.init()
this.getCaseTags()
}
if (!newValue) this.handleLeavePage()
} else this.handleLeavePage()
},
immediate: true
},
......@@ -209,14 +207,6 @@ export default {
},
immediate: true
},
// caseMaterials: {
// handler (val) {
// if (val.length) {
// this.carModelName = val[0].label
// }
// },
// immediate: true
// }
},
mounted () {
const userInfo = uni.$storage.get("userInfo")
......
......@@ -58,7 +58,7 @@
? item.goodsList[0].goodsName
: "-"
}}</view>
X{{ item.goodsList.length }}件
x {{ item.goodsList.length }}件
<image
class="image-look"
src="../../assets/images/boutique/look.png"
......@@ -70,7 +70,7 @@
:key="ind"
>
<view class="label">{{ k.label }}</view>
<view :class="{ value: true, bold: k.isBold }">{{
<view :class="['value text-hide',{bold: k.isBold}]">{{
k.format
? formatTime(item[k.key])
: item[k.key] || "-"
......@@ -83,7 +83,7 @@
<image
class="image-pay"
:src="
require(`@/assets/images/boutique/pay_${item.payType}.png`)
require(`@/assets/images/boutique/pay_${item.payType > 5 ? 5 : item.payType}.png`)
"
/>
</view>
......@@ -465,6 +465,7 @@ export default {
color: #999ea8;
.label {
width: toRpx(160);
flex-shrink: 0;
}
.value {
margin-left: toRpx(20);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!