Commit b4ff0eb0 by 胡悦

Merge branch 'SAAS+V5.6.1' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V5.6.1

2 parents de911833 b39fa354
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 3
const index = 2
/**
*
0本地
......
......@@ -35,21 +35,16 @@
<view class="log-info box" v-if="orderInfo.goodsOrderApplyStatus == 1 || orderInfo.goodsOrderApplyStatus == 2">
<view class="log-box">
<template v-for="(i,index) in logList" >
<view
class="log-item"
:key="index"
>
<template v-for="(i, index) in logList">
<view class="log-item" :key="index">
<view class="item flex">
<view class="label">{{ i.name }}</view>
<view class="value" :style="{ color: i.statusColor }">{{ i.status }}</view>
</view>
<view class="item-mark">
<view
:class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中' }]"
></view>
<template v-if="index != logList.length - 1">
<view class="mark-line"></view>
<view :class="['circle', { first: index == 0, 'status-approved': i.status === '审批通过', 'status-pending': i.status === '审批中' }]"></view>
<template>
<view class="mark-line" v-if="index != logList.length - 1"></view>
</template>
</view>
</view>
......@@ -343,18 +338,10 @@ export default {
},
computed: {
logList() {
const status = this.orderInfo.goodsOrderApplyStatus
if (status == 1) {
// 状态为1时,只显示一个:区域经理 - 审批中
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 []
return [
{ name: '区域经理', value: '1', status: '审批通过', statusColor: '#2cca74' },
{ name: '线上运营', value: '2', status: '审批中', statusColor: '#ff9d0a' }
]
}
},
data() {
......@@ -1039,126 +1026,126 @@ export default {
border: toRpx(2) solid #2cca74;
}
.status-tag-4 {
color: #F24724;
color: #f24724;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #F24724;
border: toRpx(2) solid #f24724;
}
.status-tag-2 {
color: #FAA827;
color: #faa827;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #FAA827;
border: toRpx(2) solid #faa827;
}
.status-tag-1 {
color: #FAA827;
.status-tag-1 {
color: #faa827;
font-size: toRpx(24);
font-weight: 400;
padding: toRpx(4) toRpx(8);
border-radius: toRpx(4);
border: toRpx(2) solid #FAA827;
border: toRpx(2) solid #faa827;
}
.log-info {
margin-bottom: 0;
.log-box {
padding-top: toRpx(32);
.log-item {
min-height: toRpx(84);
position: relative;
padding-left: toRpx(60);
.item {
margin-top: toRpx(16);
.label {
width: toRpx(168);
color: #292d33;
}
.value {
width: calc(100% - #{toRpx(168)});
word-break: break-all;
margin-bottom: 0;
.log-box {
padding-top: toRpx(32);
.log-item {
min-height: toRpx(84);
position: relative;
padding-left: toRpx(60);
.item {
margin-top: toRpx(16);
.label {
width: toRpx(168);
color: #292d33;
}
.value {
width: calc(100% - #{toRpx(168)});
word-break: break-all;
}
}
}
.item-mark {
position: absolute;
top: 0;
left: 0;
width: toRpx(32);
.mark-line {
height: toRpx(80);
width: toRpx(2);
background: #d6e4ff;
.item-mark {
position: absolute;
top: toRpx(8);
left: 50%;
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 {
top: 0;
left: 0;
width: toRpx(32);
height: toRpx(32);
background: #d6e4ff;
position: relative;
&::before,
&::after {
content: '';
.mark-line {
height: toRpx(80);
width: toRpx(2);
background: #d6e4ff;
position: absolute;
border-radius: 100%;
top: 50%;
top: toRpx(8);
left: 50%;
transform: translate(-50%, -50%);
transform: translateX(-50%);
}
&::before {
.circle {
position: relative;
width: toRpx(20);
height: toRpx(20);
background: var(--status-color, #2c66f7);
background: #8eb2fb;
border-radius: 100%;
margin: toRpx(8) auto 0;
z-index: 2;
}
&::after {
width: toRpx(10);
height: toRpx(10);
background: #fff;
.first {
width: toRpx(32);
height: toRpx(32);
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 {
color: #222222;
font-size: toRpx(26);
flex: 1;
word-break: break-all;
word-wrap: break-word;
overflow-wrap: break-word;
white-space: normal;
.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 {
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 {
border-radius: toRpx(24);
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!