Commit 6f082372 authored by Facius's avatar Facius

远距离签到按钮灰色

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