Commit 6f082372 authored by Facius's avatar Facius

远距离签到按钮灰色

parent f6d988c8
...@@ -261,7 +261,7 @@ ...@@ -261,7 +261,7 @@
disabled: this.centerBtnDisabled, disabled: this.centerBtnDisabled,
id: 0, id: 0,
customStyle: { customStyle: {
'background-color': this.title == '待抢单' ? '#FF930D' : '#2272FF' 'background-color': this.title == '待抢单' ? '#FF930D' : (this.centerBtnDisabled ? '#D1D4D4' : '#2272FF')
} }
}] }]
}, },
...@@ -787,10 +787,10 @@ ...@@ -787,10 +787,10 @@
/** /**
* echo distance(116.3896,39.91917,116.3940,39.91726); * echo distance(116.3896,39.91917,116.3940,39.91726);
* 计算两点之间直线距离 * 计算两点之间直线距离
* @param float $lon1 经度 * @param float $lon1 纬度
* @param float $lat1 维度 * @param float $lat1 经度
* @param float $lon2 经度 * @param float $lon2 纬度
* @param float $lat2 维度 * @param float $lat2 经度
* @return float 浮点数 * @return float 浮点数
*/ */
distance(lat1, lng1, lat2, lng2) { distance(lat1, lng1, lat2, lng2) {
......
...@@ -20,18 +20,18 @@ ...@@ -20,18 +20,18 @@
data() { data() {
return { return {
labels: [], // 标签列表 labels: [], // 标签列表
selectedId: '', selectedId: '', // 已选中标签的id
type: '1' type: '1', // '1': '合作商', '2': '品牌'
}; };
}, },
onLoad(e) { onLoad(e) {
if (e && e.selectedId) { if (e && e.selectedId) { // 有已选中标签的id
this.selectedId = e.selectedId this.selectedId = e.selectedId
} }
if (e && e.partnerCompanyId) { // 合作商id if (e && e.partnerCompanyId) { // 有合作商id,获取品牌标签
this.type = '2' this.type = '2'
this.loadFileLabel(e.partnerCompanyId) this.loadFileLabel(e.partnerCompanyId)
} else { // 获取所有文件资料 } else { // 无合作商id,获取合作商标签
this.type = '1' this.type = '1'
this.loadFileLabel() this.loadFileLabel()
} }
......
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