Commit 83a646d3 authored by Facius's avatar Facius

feat: 样式修改

parent eba94f8e
Pipeline #3193 canceled with stages
......@@ -6,16 +6,25 @@
@click.stop="$u.throttle(handleSelect, 500)"
>
<view class="title-view">
<view>维修单号:{{ info.id }}</view>
<view class="status-view"
><text
:style="'color:' + statusSetting[info.settleState.code].color"
>{{ statusSetting[info.settleState.code].text }}</text
>·<text
:style="'color:' + statusSetting[info.sendStatus.code].color"
>{{ statusSetting[info.sendStatus.code].text }}</text
></view
>
<view>{{ info.id }}</view>
<view class="status-view">
<view class="item-view">
<view class="image-view">
<image :src="statusSetting[info.settleState.code].image"></image>
</view>
<view class="status-text">{{
statusSetting[info.settleState.code].text
}}</view>
</view>
<view class="item-view">
<view class="image-view">
<image :src="statusSetting[info.sendStatus.code].image"></image>
</view>
<view class="status-text">{{
statusSetting[info.sendStatus.code].text
}}</view>
</view>
</view>
</view>
<!-- <view class="middle-view">
<image :src="middleImage"></image>
......@@ -40,12 +49,18 @@
</view>
<!-- <view class="line-view"></view> -->
<view class="bottom-view">
<view
class="bottom-view"
:style="statusSetting[info.settleState.code].style"
>
<view v-for="(item, index) in bottoms" :key="index" class="item-view">
<view :style="'color:' + item.color" class="count-view">{{
item.value
}}</view>
<view>{{ item.title }}</view>
<view v-if="index % 2" class="line-view"> </view>
<template v-else>
<view>{{ item.title }}</view>
<view :style="'color:' + item.color" class="count-view">{{
item.value
}}</view>
</template>
</view>
</view>
</view>
......@@ -84,15 +99,37 @@ export default {
timeImage() {
return this.baseUrl + 'weixiushijian@3x.png'
},
yijieqingImage() {
return this.baseUrl + 'yijieqing@3x.png'
},
weiquerenImage() {
return this.baseUrl + 'weiqueren@3x.png'
},
weijieqingImage() {
return this.baseUrl + 'weijieqing@3x.png'
},
weifasongImage() {
return this.baseUrl + 'weifasong@3x.png'
},
// sendStatus WAIT:未发送;WAIT_SURE:未确定;SURE:已确定
// settleState NO:未结清;YES:已结清
statusSetting() {
return {
WAIT_SURE: { color: '#333333', text: '未确定' },
NO: { color: '#FC524D', text: '未结清' },
WAIT: { color: '#02A074', text: '未发送' },
YES: { color: '#8D8D8D', text: '已结清' },
SURE: { color: '#8D8D8D', text: '已确定' },
WAIT_SURE: { text: '未确认', image: this.weiquerenImage },
NO: {
text: '未结清',
image: this.weijieqingImage,
style:
'background-image: linear-gradient(to right, #FFF9F9 0%, #ffffff 100%);',
},
WAIT: { text: '未发送', image: this.weifasongImage },
YES: {
text: '已结清',
image: this.yijieqingImage,
style:
'background-image: linear-gradient(to right, #F2FFFB 0%, #ffffff 100%);',
},
SURE: { text: '已确认', image: this.yijieqingImage },
}
},
bottoms() {
......@@ -106,12 +143,14 @@ export default {
color: '#333333',
value: this.formatCount(this.info['receivableAmount']),
},
{},
{
key: 'actualAmount',
title: '实收',
color: '#333333',
value: this.formatCount(this.info['actualAmount']),
},
{},
{
key: 'result',
title: '欠款',
......@@ -135,19 +174,42 @@ export default {
<style scoped lang="scss">
.cell-maintain-bill {
.content-view {
padding: 32rpx 0;
padding: 32rpx 0 0 0;
background-color: #ffffff;
border-radius: 16rpx;
overflow: hidden;
.title-view {
padding: 0 24rpx;
display: flex;
justify-content: space-between;
align-items: center;
color: #8d8d8d;
color: #333333;
font-size: 28rpx;
.status-view {
font-weight: bold;
font-size: 24rpx;
color: #ffffff;
display: flex;
align-items: center;
justify-content: flex-end;
.item-view {
width: 116rpx;
height: 40rpx;
position: relative;
.image-view {
position: absolute;
width: 116rpx;
height: 40rpx;
}
.status-text {
position: relative;
text-align: center;
line-height: 40rpx;
height: 40rpx;
width: 116rpx;
}
}
}
}
// .middle-view {
......@@ -157,8 +219,8 @@ export default {
// }
.info-view {
margin: 32rpx 24rpx;
background-color: #f6f7fa;
// margin: 32rpx 24rpx;
// background-color: #f6f7fa;
padding: 32rpx 24rpx;
.name-view {
font-weight: bold;
......@@ -214,16 +276,23 @@ export default {
display: flex;
justify-content: space-between;
align-items: center;
color: #bdbdbd;
font-size: 28rpx;
color: #333333;
font-size: 24rpx;
height: 92rpx;
.item-view {
// display: flex;
// align-items: center;
display: flex;
align-items: center;
text-align: center;
.count-view {
font-weight: bold;
font-size: 36rpx;
margin-bottom: 8rpx;
margin-left: 16rpx;
font-size: 24rpx;
}
.line-view {
background-color: #eeeeee;
width: 2rpx;
height: 28rpx;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment