Commit f9620873 authored by Facius's avatar Facius

工单cell 增加location传参

parent ac5f81fd
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
<u-count-down :timestamp="orderData.currentWillOverTime || orderData.currentOverTime" font-size="44" <u-count-down :timestamp="orderData.currentWillOverTime || orderData.currentOverTime" 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>
<u-button class="right-btn" @click.stop="handleClick" :custom-style="buttonStyle" type="primary" shape="circle"> <u-button class="right-btn" @click.stop="handleClick" :custom-style="buttonStyle" type="primary"
shape="circle">
{{orderText}} {{orderText}}
</u-button> </u-button>
</view> </view>
...@@ -64,10 +65,10 @@ ...@@ -64,10 +65,10 @@
} }
}, },
orderType: Number, // 0:待接单 1:'去预约', 2:'去签到', 3:'去完工', 4:'审核中', 5:'去处理', 6'已完工' orderType: Number, // 0:待接单 1:'去预约', 2:'去签到', 3:'去完工', 4:'审核中', 5:'去处理', 6'已完工'
location: { location: { // 当前坐标
type: Array, type: Array,
default () { default () {
return [116.3896, 39.91917] return [116.3896, 39.91917] // 经度,纬度
} }
} }
}, },
...@@ -111,7 +112,7 @@ ...@@ -111,7 +112,7 @@
} }
return this.typeTexts[this.orderType] return this.typeTexts[this.orderType]
}, },
buttonStyle() { // 按钮样式 buttonStyle() { // 按钮样式
switch (this.orderData.orderStatus) { switch (this.orderData.orderStatus) {
case 0: case 0:
if (this.orderData.currentWillOverTime) { if (this.orderData.currentWillOverTime) {
...@@ -145,15 +146,15 @@ ...@@ -145,15 +146,15 @@
buttonStyles() { buttonStyles() {
return [{ return [{
'background-color': '#2272FF', 'background-color': '#2272FF',
'color': '#FFFFFF', 'color': '#FFFFFF',
'font-size': '32rpx' 'font-size': '32rpx'
}, { }, {
'background-color': '#FF930D', 'background-color': '#FF930D',
'color': '#FFFFFF', 'color': '#FFFFFF',
'font-size': '32rpx' 'font-size': '32rpx'
}, { }, {
'background-color': 'transparent', 'background-color': 'transparent',
'color': '#2272FF', 'color': '#2272FF',
'font-size': '32rpx' 'font-size': '32rpx'
}] }]
}, },
...@@ -294,8 +295,6 @@ ...@@ -294,8 +295,6 @@
.address-right-view {} .address-right-view {}
} }
} }
.line-view { .line-view {
...@@ -310,6 +309,7 @@ ...@@ -310,6 +309,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-top: 30rpx; margin-top: 30rpx;
.bottom-left-view { .bottom-left-view {
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -323,16 +323,17 @@ ...@@ -323,16 +323,17 @@
font-size: 26rpx; font-size: 26rpx;
background-color: #FA5A49; background-color: #FA5A49;
margin-right: 20rpx; margin-right: 20rpx;
&.will { &.will {
background-color: #FF930D; background-color: #FF930D;
} }
} }
} }
.right-btn { .right-btn {
width: 200rpx; width: 200rpx;
height: 80rpx; height: 80rpx;
color: #FFFFFF; color: #FFFFFF;
} }
} }
} }
......
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