123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <template>
- <view class="bg">
- <view class="steps">
- <view class="steps_item" v-for="(i, index) in infoList" :key="index">
- <view class="s_r">
- <view class="line" :style="{ backgroundColor: index != 0 ? '#EAEAEA' : 'rgba(0,0,0,0)' }"></view>
- <view class="index" :style="{ backgroundColor: i.backgroundColor, color: color }"></view>
- <view class="line"
- :style="{ backgroundColor: index != infoList.length - 1 ? '#EAEAEA' : 'rgba(0,0,0,0)' }"></view>
- </view>
- <view class="s_l">
- <view class="info_item">
- <!-- 真是节点名称、时间 -->
- <view class="top_info">
- <text class="title_scacm">{{ i.text }}
- <span v-if="i.phone">
- 联系电话:<span style="color: #f29100;margin-right: 15rpx;">{{i.phone}}</span>
- </span>
- {{ i.text1 }}
- </text>
- <text class="date">{{ i.createdAt || ''}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'XSteps',
- props: {
- infoList: {
- type: Array,
- default: [],
- },
- color: {
- type: String,
- default: '#fff',
- },
- backgroundColor: {
- type: String,
- default: '#2979ff',
- },
- lineNum: {
- type: Number,
- default: 0,
- },
- },
- methods: {
- // 审核状态
- auditStatus(i) {
- if (i == 2) {
- return {
- text: '通过',
- color: '#00D288',
- bgColor: '#EAFFF8',
- }
- } else if (i == 3) {
- return {
- text: '驳回',
- color: '#FF4141',
- bgColor: '#FFDCD5',
- }
- }
- },
- handlePreview(url) {
- uni.previewImage({
- urls: [url]
- })
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .steps {
- display: flex;
- flex-direction: column;
- .steps_item {
- display: flex;
- flex-direction: row;
- .s_r {
- padding: 0 20rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- .line {
- flex: 1;
- width: 5rpx;
- }
- .index {
- width: 24rpx;
- height: 24rpx;
- border-radius: 50rpx;
- border: 4rpx solid #e3eeff;
- box-sizing: border-box;
- }
- }
- .s_l {
- display: flex;
- flex-direction: column;
- padding: 20rpx 0;
- flex: 1;
- .info_item {
- background-color: #ffffff;
- margin-right: 10rpx;
- border-radius: 10rpx;
- display: flex;
- flex-direction: column;
- justify-content: center;
- .top_info {
- display: flex;
- flex-direction: column;
- }
- text {
- font-size: 28rpx;
- font-weight: 500;
- color: rgba(51, 51, 51, 1);
- }
- .date {
- font-size: 23rpx;
- color: #afb4be;
- }
- }
- .info_item:active {
- background-color: #f4f4f4;
- }
- }
- }
- }
- .title_scacm {
- display: -webkit-box !important;
- width: 100%;
- font-size: 32rpx;
- font-weight: 500;
- color: rgba(102, 102, 102, 1);
- word-break: break-all;
- }
- .ml5 {
- margin-left: 10rpx;
- }
- .mt10 {
- margin-top: 20rpx;
- }
- </style>
|