Commit 71cc172a authored by Facius's avatar Facius

首页高保真

parent ea7284f4
<template> <template>
<view class="order-cell"> <view class="order-view" @click="handleClickCell">
<view class="order-view" @click="handleClickCell"> <view class="order-top-view">
<view class="order-top-view"> <view class="left-view">
<view class="left-view"> <view :class="['tag-view', {'active': active}]">
<view :class="['tag-view', {'active': active}]"> {{ orderData.orderServiceType }}
{{ orderData.orderServiceType }}
</view>
<view class="store-view">{{ orderData.categoryName }}</view>
</view> </view>
<view class="right-view">{{ orderData.orderBusinessTypeText }}</view> <view class="store-view">{{ orderData.categoryName }}</view>
</view> </view>
<view class="content-view"> <view class="right-view">{{ orderData.orderBusinessTypeText }}</view>
<view class="info-view" v-for="(item, key) in infoTexts" :key="key"> </view>
<text>{{item + ':'}}</text> <view class="content-view">
<text>{{orderData[key]}}</text> <view class="info-view" v-for="(item, key) in infoTexts" :key="key">
<text>{{item + ':'}}</text>
<text>{{orderData[key]}}</text>
</view>
<view class="address-view">
<view class="address-left-view">
<image class="address-image" :src="dizhiImage" mode="widthFix"></image>
<text>{{orderData.contactAddress }}</text>
</view> </view>
<view class="address-view"> <view v-if="showDistance">
<view class="address-left-view"> {{getDistance(orderData.contactAddressLatitud,orderData.contactAddressLongitud)}}km
<image class="address-image" :src="dizhiImage" mode="widthFix"></image>
<text>{{orderData.contactAddress }}</text>
</view>
<view v-if="showDistance">
{{getDistance(orderData.contactAddressLatitud,orderData.contactAddressLongitud)}}km
</view>
</view> </view>
</view> </view>
</view>
<view class="line-view"></view> <view class="line-view"></view>
<view class="reason-view" v-if="showReason"><text>未通过原因:</text> <view class="reason-view" v-if="showReason"><text>未通过原因:</text>
<text class="reason-text">{{orderData.auditResults.remark}}</text> <text class="reason-text">{{orderData.auditResults.remark}}</text>
</view> </view>
<view class="bottom-view"> <view class="bottom-view">
<view> <view>
<view v-if="showCountTime" class="bottom-left-view"> <view v-if="showCountTime" class="bottom-left-view">
<view :class="['bottom-tag-view', {'will': orderData.currentWillOverTime}]">{{tagText}}</view> <view :class="['bottom-tag-view', {'will': orderData.currentWillOverTime}]">{{tagText}}</view>
<u-count-down :timestamp="orderData.currentWillOverTime || orderData.currentOverTime" <u-count-down :timestamp="orderData.currentWillOverTime || orderData.currentOverTime" font-size="44"
font-size="44" color="#FF930D" @change="handleChange" ref="order-count-down"></u-count-down> color="#FF930D" @change="handleChange" ref="order-count-down"></u-count-down>
</view> </view>
<view v-else-if="showTime"> <view v-else-if="showTime">
<text>{{timeTitle}}</text> <text>{{timeTitle}}</text>
<text>{{timeText}}</text> <text>{{timeText}}</text>
</view>
</view> </view>
<u-button class="right-btn" @click.stop="handleClick" :custom-style="buttonStyle" type="primary"
shape="circle">
{{orderText}}
</u-button>
</view> </view>
<u-button class="right-btn" @click.stop="handleClick" :custom-style="buttonStyle" type="primary"
shape="circle">
{{orderText}}
</u-button>
</view> </view>
</view> </view>
</view> </view>
...@@ -251,138 +249,134 @@ ...@@ -251,138 +249,134 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.order-cell { .order-view {
padding-bottom: 20rpx; width: 100%;
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 30rpx;
margin-bottom: 20rpx;
.order-view { .order-top-view {
width: 100%; display: flex;
background-color: #FFFFFF; align-items: center;
border-radius: 12rpx; justify-content: space-between;
padding: 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
.order-top-view { .left-view {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
margin-bottom: 20rpx;
.left-view {
display: flex;
align-items: center;
.tag-view { .tag-view {
width: 84rpx; width: 84rpx;
height: 40rpx; height: 40rpx;
color: #FFFFFF; color: #FFFFFF;
border-radius: 8rpx; border-radius: 8rpx;
background-image: linear-gradient(to right, #FF930D, #FFC174); background-image: linear-gradient(to right, #FF930D, #FFC174);
&.active {
background-image: linear-gradient(to right, #2272FF, #47ABFF);
}
}
.store-view { &.active {
color: #333333; background-image: linear-gradient(to right, #2272FF, #47ABFF);
font-size: 36rpx;
font-weight: bold;
margin-left: 20rpx;
} }
} }
.right-view { .store-view {
width: 100rpx;
height: 40rpx;
background-color: #F4F5F7;
border-radius: 20rpx;
color: #333333; color: #333333;
font-size: 22rpx; font-size: 36rpx;
line-height: 40rpx; font-weight: bold;
margin-left: 20rpx;
} }
} }
.content-view { .right-view {
.info-view { width: 100rpx;
text-align: left; height: 40rpx;
color: #333333; background-color: #F4F5F7;
font-size: 26rpx; border-radius: 20rpx;
margin-top: 12rpx; color: #333333;
margin-bottom: 12rpx; font-size: 22rpx;
} line-height: 40rpx;
}
}
.content-view {
.info-view {
text-align: left;
color: #333333;
font-size: 26rpx;
margin-top: 12rpx;
margin-bottom: 12rpx;
}
.address-view { .address-view {
display: flex;
align-items: flex-start;
justify-content: space-between;
color: #333333;
font-size: 24rpx;
margin-top: 12rpx;
.address-left-view {
display: flex; display: flex;
align-items: center;
align-items: flex-start; align-items: flex-start;
justify-content: space-between;
color: #333333;
font-size: 24rpx;
margin-top: 12rpx;
.address-left-view { .address-image {
display: flex; width: 26rpx;
align-items: center; height: 28rpx;
align-items: flex-start; margin-right: 8rpx;
flex-shrink: 0;
.address-image { margin-top: 4rpx;
width: 26rpx;
height: 28rpx;
margin-right: 8rpx;
flex-shrink: 0;
margin-top: 4rpx;
}
} }
.address-right-view {}
} }
}
.line-view { .address-right-view {}
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
margin-top: 30rpx;
} }
}
.reason-view { .line-view {
text-align: left; background-color: #F4F5F7;
margin-top: 30rpx; height: 2rpx;
font-size: 26rpx; width: 100%;
color: #666666; margin-top: 30rpx;
}
.reason-text { .reason-view {
color: #FA5A49; text-align: left;
} margin-top: 30rpx;
font-size: 26rpx;
color: #666666;
.reason-text {
color: #FA5A49;
} }
}
.bottom-view { .bottom-view {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 30rpx;
.bottom-left-view {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between;
margin-top: 30rpx;
.bottom-left-view { .bottom-tag-view {
display: flex; width: 52rpx;
align-items: center; height: 52rpx;
border-radius: 26rpx;
.bottom-tag-view { line-height: 56rpx;
width: 52rpx; color: #FFFFFF;
height: 52rpx; font-size: 26rpx;
border-radius: 26rpx; background-color: #FA5A49;
line-height: 56rpx; margin-right: 20rpx;
color: #FFFFFF;
font-size: 26rpx;
background-color: #FA5A49;
margin-right: 20rpx;
&.will { &.will {
background-color: #FF930D; background-color: #FF930D;
}
} }
} }
.right-btn {}
} }
.right-btn {}
} }
} }
</style> </style>
This diff is collapsed.
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