Commit b39fa354 by cen

fix: xiangqing

1 parent 044ffaf3

3 MB | W: | H:

3 MB | W: | H:

assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
const target = ['ip', 'dev', 'uat', 'prod', 'beta'] const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 3 const index = 2
/** /**
* *
0本地 0本地
......
...@@ -35,21 +35,16 @@ ...@@ -35,21 +35,16 @@
<view class="log-info box" v-if="orderInfo.goodsOrderApplyStatus == 1 || orderInfo.goodsOrderApplyStatus == 2"> <view class="log-info box" v-if="orderInfo.goodsOrderApplyStatus == 1 || orderInfo.goodsOrderApplyStatus == 2">
<view class="log-box"> <view class="log-box">
<template v-for="(i,index) in logList" > <template v-for="(i, index) in logList">
<view <view class="log-item" :key="index">
class="log-item"
:key="index"
>
<view class="item flex"> <view class="item flex">
<view class="label">{{ i.name }}</view> <view class="label">{{ i.name }}</view>
<view class="value" :style="{ color: i.statusColor }">{{ i.status }}</view> <view class="value" :style="{ color: i.statusColor }">{{ i.status }}</view>
</view> </view>
<view class="item-mark"> <view class="item-mark">
<view <view :class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中' }]"></view>
:class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中' }]" <template>
></view> <view class="mark-line" v-if="index != logList.length - 1"></view>
<template v-if="index != logList.length - 1">
<view class="mark-line"></view>
</template> </template>
</view> </view>
</view> </view>
...@@ -343,19 +338,11 @@ export default { ...@@ -343,19 +338,11 @@ export default {
}, },
computed: { computed: {
logList() { logList() {
const status = this.orderInfo.goodsOrderApplyStatus
if (status == 1) {
// 状态为1时,只显示一个:区域经理 - 审批中
return [{ name: '区域经理', value: '1', status: '审批中', statusColor: '#ff9d0a' }]
} else if (status == 2) {
// 状态为2时,显示两个:区域经理 - 审批通过,线上运营 - 审批中
return [ return [
{ name: '区域经理', value: '1', status: '审批通过', statusColor: '#2cca74' }, { name: '区域经理', value: '1', status: '审批通过', statusColor: '#2cca74' },
{ name: '线上运营', value: '2', status: '审批中', statusColor: '#ff9d0a' } { name: '线上运营', value: '2', status: '审批中', statusColor: '#ff9d0a' }
] ]
} }
return []
}
}, },
data() { data() {
return { return {
...@@ -1039,28 +1026,28 @@ export default { ...@@ -1039,28 +1026,28 @@ export default {
border: toRpx(2) solid #2cca74; border: toRpx(2) solid #2cca74;
} }
.status-tag-4 { .status-tag-4 {
color: #F24724; color: #f24724;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
padding: toRpx(4) toRpx(8); padding: toRpx(4) toRpx(8);
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #F24724; border: toRpx(2) solid #f24724;
} }
.status-tag-2 { .status-tag-2 {
color: #FAA827; color: #faa827;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
padding: toRpx(4) toRpx(8); padding: toRpx(4) toRpx(8);
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #FAA827; border: toRpx(2) solid #faa827;
} }
.status-tag-1 { .status-tag-1 {
color: #FAA827; color: #faa827;
font-size: toRpx(24); font-size: toRpx(24);
font-weight: 400; font-weight: 400;
padding: toRpx(4) toRpx(8); padding: toRpx(4) toRpx(8);
border-radius: toRpx(4); border-radius: toRpx(4);
border: toRpx(2) solid #FAA827; border: toRpx(2) solid #faa827;
} }
.log-info { .log-info {
margin-bottom: 0; margin-bottom: 0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!