Commit 374fb370 by 李伟康

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

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