Commit f9620873 authored by Facius's avatar Facius

工单cell 增加location传参

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