Commit 83a646d3 authored by Facius's avatar Facius

feat: 样式修改

parent eba94f8e
Pipeline #3193 canceled with stages
...@@ -6,16 +6,25 @@ ...@@ -6,16 +6,25 @@
@click.stop="$u.throttle(handleSelect, 500)" @click.stop="$u.throttle(handleSelect, 500)"
> >
<view class="title-view"> <view class="title-view">
<view>维修单号:{{ info.id }}</view> <view>{{ info.id }}</view>
<view class="status-view" <view class="status-view">
><text <view class="item-view">
:style="'color:' + statusSetting[info.settleState.code].color" <view class="image-view">
>{{ statusSetting[info.settleState.code].text }}</text <image :src="statusSetting[info.settleState.code].image"></image>
>·<text </view>
:style="'color:' + statusSetting[info.sendStatus.code].color" <view class="status-text">{{
>{{ statusSetting[info.sendStatus.code].text }}</text statusSetting[info.settleState.code].text
></view }}</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>
<!-- <view class="middle-view"> <!-- <view class="middle-view">
<image :src="middleImage"></image> <image :src="middleImage"></image>
...@@ -40,12 +49,18 @@ ...@@ -40,12 +49,18 @@
</view> </view>
<!-- <view class="line-view"></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 v-for="(item, index) in bottoms" :key="index" class="item-view">
<view :style="'color:' + item.color" class="count-view">{{ <view v-if="index % 2" class="line-view"> </view>
item.value <template v-else>
}}</view> <view>{{ item.title }}</view>
<view>{{ item.title }}</view> <view :style="'color:' + item.color" class="count-view">{{
item.value
}}</view>
</template>
</view> </view>
</view> </view>
</view> </view>
...@@ -84,15 +99,37 @@ export default { ...@@ -84,15 +99,37 @@ export default {
timeImage() { timeImage() {
return this.baseUrl + 'weixiushijian@3x.png' 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:已确定 // sendStatus WAIT:未发送;WAIT_SURE:未确定;SURE:已确定
// settleState NO:未结清;YES:已结清 // settleState NO:未结清;YES:已结清
statusSetting() { statusSetting() {
return { return {
WAIT_SURE: { color: '#333333', text: '未确定' }, WAIT_SURE: { text: '未确认', image: this.weiquerenImage },
NO: { color: '#FC524D', text: '未结清' }, NO: {
WAIT: { color: '#02A074', text: '未发送' }, text: '未结清',
YES: { color: '#8D8D8D', text: '已结清' }, image: this.weijieqingImage,
SURE: { color: '#8D8D8D', text: '已确定' }, 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() { bottoms() {
...@@ -106,12 +143,14 @@ export default { ...@@ -106,12 +143,14 @@ export default {
color: '#333333', color: '#333333',
value: this.formatCount(this.info['receivableAmount']), value: this.formatCount(this.info['receivableAmount']),
}, },
{},
{ {
key: 'actualAmount', key: 'actualAmount',
title: '实收', title: '实收',
color: '#333333', color: '#333333',
value: this.formatCount(this.info['actualAmount']), value: this.formatCount(this.info['actualAmount']),
}, },
{},
{ {
key: 'result', key: 'result',
title: '欠款', title: '欠款',
...@@ -135,19 +174,42 @@ export default { ...@@ -135,19 +174,42 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.cell-maintain-bill { .cell-maintain-bill {
.content-view { .content-view {
padding: 32rpx 0; padding: 32rpx 0 0 0;
background-color: #ffffff; background-color: #ffffff;
border-radius: 16rpx; border-radius: 16rpx;
overflow: hidden;
.title-view { .title-view {
padding: 0 24rpx; padding: 0 24rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
color: #8d8d8d; color: #333333;
font-size: 28rpx; font-size: 28rpx;
.status-view { .status-view {
font-weight: bold; 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 { // .middle-view {
...@@ -157,8 +219,8 @@ export default { ...@@ -157,8 +219,8 @@ export default {
// } // }
.info-view { .info-view {
margin: 32rpx 24rpx; // margin: 32rpx 24rpx;
background-color: #f6f7fa; // background-color: #f6f7fa;
padding: 32rpx 24rpx; padding: 32rpx 24rpx;
.name-view { .name-view {
font-weight: bold; font-weight: bold;
...@@ -214,16 +276,23 @@ export default { ...@@ -214,16 +276,23 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
color: #bdbdbd; color: #333333;
font-size: 28rpx; font-size: 24rpx;
height: 92rpx;
.item-view { .item-view {
// display: flex; display: flex;
// align-items: center; align-items: center;
text-align: center; text-align: center;
.count-view { .count-view {
font-weight: bold; font-weight: bold;
font-size: 36rpx; 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