Commit c2618abe authored by Facius's avatar Facius

详情页面超时和剩余样式修改

parent c277d327
...@@ -2,17 +2,17 @@ ...@@ -2,17 +2,17 @@
<view class="order-wrap"> <view class="order-wrap">
<u-navbar :title="title" title-color="#FFFFFF" title-size="32" back-icon-color="#FFFFFF" :background="background" :border-bottom="false"></u-navbar> <u-navbar :title="title" title-color="#FFFFFF" title-size="32" back-icon-color="#FFFFFF" :background="background" :border-bottom="false"></u-navbar>
<view class="header" v-if="order.currentOverTime && showTimeOut"> <view class="header" v-if="order.currentOverTime && showTimeOut">
<image class="bottom-tag-view" :src="tagImage"></image>
<!-- 倒计时 --> <!-- 倒计时 -->
<view class="title"> <view class="title">
<view class="bottom-tag-view"><text>{{timeout ? '超时' : '剩余'}}</text></view>
<u-count-down :timestamp="timestamp" font-size="28" show-days separator="zh" separator-size="32" height="40" hide-zero-day <u-count-down :timestamp="timestamp" font-size="28" show-days separator="zh" separator-size="32" height="40" hide-zero-day
color="#2272FF" separator-color="#FFFFFF" @change="timeOutChange" ref="order-count-down" bg-color="#FFFFFF"></u-count-down> :color="countColor" separator-color="#FFFFFF" @change="timeOutChange" ref="order-count-down" bg-color="#FFFFFF"></u-count-down>
</view> <view class="header-content">
<view class="header-content"> <!-- 抓紧时间提示 -->
<!-- 抓紧时间提示 --> <view class="tip-text">{{tipText}}</view>
<view class="tip-text">{{tipText}}</view> <!-- 拒单 -->
<!-- 拒单 --> <view v-show="allowRejection" class="reject-button" @click="$u.throttle(rejectOrder, 500)">拒单</view>
<view v-show="allowRejection" class="reject-button" @click="$u.throttle(rejectOrder, 500)">拒单</view> </view>
</view> </view>
</view> </view>
<view class="content"> <view class="content">
...@@ -260,9 +260,21 @@ ...@@ -260,9 +260,21 @@
} }
}] }]
}, },
countColor() {
return this.timeout ? '#FA5A49' : '#2272FF'
},
wenjianImage() { wenjianImage() {
return process.uniEnv.qn_base_url + 'wenjian.png' return process.uniEnv.qn_base_url + 'wenjian.png'
}, },
tagImage() {
return this.timeout ? this.chaoshiImage : this.shengyuImage
},
chaoshiImage() {
return process.uniEnv.qn_base_url + 'chaoshi.png'
},
shengyuImage() {
return process.uniEnv.qn_base_url + 'shengyu.png'
},
}, },
methods: { methods: {
updateLocation(){ updateLocation(){
...@@ -814,6 +826,14 @@ ...@@ -814,6 +826,14 @@
} }
}; };
</script> </script>
<style lang="scss">
.order-wrap {
.u-countdown-colon {
margin-left: 6rpx;
margin-right: 6rpx;
}
}
</style>
<style lang="scss" scoped> <style lang="scss" scoped>
.order-wrap { .order-wrap {
...@@ -828,36 +848,37 @@ ...@@ -828,36 +848,37 @@
flex-direction: column; flex-direction: column;
.header { .header {
padding: 4rpx 32rpx 14rpx 32rpx; padding: 4rpx 32rpx 20rpx 32rpx;
display: flex;
.header-content { align-items: center;
display: flex; .bottom-tag-view {
justify-content: space-between; width: 116rpx;
align-items: center; height: 116rpx;
margin-top: 12rpx; flex-shrink: 0;
.tip-text {
font-size: 26rpx;
color: #EFEFEF;
}
.reject-button {
text-align: center;
width: 106rpx;
height: 52rpx;
border-radius: 40rpx;
font-size: 24rpx;
font-weight: 400;
line-height: 52rpx;
color: #DEDEDE;
text-align: right;
}
} }
.title { .title {
display: flex; margin-left: 24rpx;
align-items: center; margin-top: 6rpx;
.bottom-tag-view { .header-content {
color: #FFFFFF; display: flex;
font-size: 40rpx; justify-content: space-between;
margin-right: 10rpx; align-items: center;
margin-top: 24rpx;
.tip-text {
font-size: 26rpx;
color: #EFEFEF;
}
.reject-button {
text-align: center;
width: 106rpx;
height: 52rpx;
border-radius: 40rpx;
font-size: 24rpx;
font-weight: 400;
line-height: 52rpx;
color: #DEDEDE;
text-align: right;
}
} }
} }
} }
......
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