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,18 +338,10 @@ export default { ...@@ -343,18 +338,10 @@ export default {
}, },
computed: { computed: {
logList() { logList() {
const status = this.orderInfo.goodsOrderApplyStatus return [
if (status == 1) { { name: '区域经理', value: '1', status: '审批通过', statusColor: '#2cca74' },
// 状态为1时,只显示一个:区域经理 - 审批中 { name: '线上运营', value: '2', status: '审批中', statusColor: '#ff9d0a' }
return [{ name: '区域经理', value: '1', status: '审批中', statusColor: '#ff9d0a' }] ]
} else if (status == 2) {
// 状态为2时,显示两个:区域经理 - 审批通过,线上运营 - 审批中
return [
{ name: '区域经理', value: '1', status: '审批通过', statusColor: '#2cca74' },
{ name: '线上运营', value: '2', status: '审批中', statusColor: '#ff9d0a' }
]
}
return []
} }
}, },
data() { data() {
...@@ -1039,126 +1026,126 @@ export default { ...@@ -1039,126 +1026,126 @@ 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;
.log-box { .log-box {
padding-top: toRpx(32); padding-top: toRpx(32);
.log-item { .log-item {
min-height: toRpx(84); min-height: toRpx(84);
position: relative; position: relative;
padding-left: toRpx(60); padding-left: toRpx(60);
.item { .item {
margin-top: toRpx(16); margin-top: toRpx(16);
.label { .label {
width: toRpx(168); width: toRpx(168);
color: #292d33; color: #292d33;
} }
.value { .value {
width: calc(100% - #{toRpx(168)}); width: calc(100% - #{toRpx(168)});
word-break: break-all; word-break: break-all;
}
} }
} .item-mark {
.item-mark {
position: absolute;
top: 0;
left: 0;
width: toRpx(32);
.mark-line {
height: toRpx(80);
width: toRpx(2);
background: #d6e4ff;
position: absolute; position: absolute;
top: toRpx(8); top: 0;
left: 50%; left: 0;
transform: translateX(-50%);
}
.circle {
position: relative;
width: toRpx(20);
height: toRpx(20);
background: #8eb2fb;
border-radius: 100%;
margin: toRpx(8) auto 0;
z-index: 2;
}
.first {
width: toRpx(32); width: toRpx(32);
height: toRpx(32); .mark-line {
background: #d6e4ff; height: toRpx(80);
position: relative; width: toRpx(2);
&::before, background: #d6e4ff;
&::after {
content: '';
position: absolute; position: absolute;
border-radius: 100%; top: toRpx(8);
top: 50%;
left: 50%; left: 50%;
transform: translate(-50%, -50%); transform: translateX(-50%);
} }
&::before { .circle {
position: relative;
width: toRpx(20); width: toRpx(20);
height: toRpx(20); height: toRpx(20);
background: var(--status-color, #2c66f7); background: #8eb2fb;
border-radius: 100%;
margin: toRpx(8) auto 0;
z-index: 2;
} }
&::after { .first {
width: toRpx(10); width: toRpx(32);
height: toRpx(10); height: toRpx(32);
background: #fff; background: #d6e4ff;
position: relative;
&::before,
&::after {
content: '';
position: absolute;
border-radius: 100%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
&::before {
width: toRpx(20);
height: toRpx(20);
background: var(--status-color, #2c66f7);
}
&::after {
width: toRpx(10);
height: toRpx(10);
background: #fff;
}
} }
} }
} }
.log-title {
color: #333333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(44);
}
} }
.log-title {
color: #333333;
font-size: toRpx(32);
font-weight: 500;
line-height: toRpx(44);
}
}
}
.remarkBox {
margin-top: toRpx(32);
.labelremark {
color: #999999;
font-size: toRpx(26);
font-weight: 400;
width: toRpx(156);
margin-right: toRpx(16);
flex-shrink: 0;
} }
.valueremark { .remarkBox {
color: #222222; margin-top: toRpx(32);
font-size: toRpx(26); .labelremark {
flex: 1; color: #999999;
word-break: break-all; font-size: toRpx(26);
word-wrap: break-word; font-weight: 400;
overflow-wrap: break-word; width: toRpx(156);
white-space: normal; margin-right: toRpx(16);
flex-shrink: 0;
}
.valueremark {
color: #222222;
font-size: toRpx(26);
flex: 1;
word-break: break-all;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
}
} }
}
.meal-box { .meal-box {
border-radius: toRpx(24); border-radius: toRpx(24);
border: toRpx(2) solid #dce0e6; border: toRpx(2) solid #dce0e6;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!