Commit 2dbdd7ba authored by Damon's avatar Damon

Merge branch 'dev' of https://git.banshouhui.com/lijundan/self-support into dev

parents f399215a 3d14258b
...@@ -203,8 +203,7 @@ ...@@ -203,8 +203,7 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.con-box { .con-box {
margin-top: 30rpx; padding: 30rpx 30rpx 10rpx 30rpx;
padding: 30rpx 30rpx 20rpx;
border-radius: 12rpx; border-radius: 12rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<view> <view>
<view v-if="showCountTime" class="bottom-left-view"> <view v-if="showCountTime" class="bottom-left-view">
<view :class="['bottom-tag-view', {'timeout': timeout}]"><text>{{tagText}}</text></view> <view :class="['bottom-tag-view', {'timeout': timeout}]"><text>{{tagText}}</text></view>
<u-count-down :timestamp="timestamp" font-size="40" show-days separator="zh" hide-zero-day <u-count-down :timestamp="timestamp" font-size="40" show-days separator="zh"
:color="timeout ? '#FA5A49' : '#FF930D'" @change="handleChange" separator-color="#666666" ref="order-count-down"></u-count-down> :color="timeout ? '#FA5A49' : '#FF930D'" @change="handleChange" separator-color="#666666" ref="order-count-down"></u-count-down>
</view> </view>
<view v-else-if="showTime"> <view v-else-if="showTime">
......
<template> <template>
<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" title-bold></u-navbar> <u-navbar :title="title" title-color="#FFFFFF" title-size="32" back-icon-color="#FFFFFF" :background="background" :border-bottom="false" title-bold></u-navbar>
<view class="header" v-if="showCountTime || (order.currentOverTime && showTimeOut)"> <view class="content">
<image class="bottom-tag-view" :src="tagImage"></image> <view class="header" v-if="showCountTime || (order.currentOverTime && showTimeOut)">
<!-- 倒计时 --> <image class="bottom-tag-view" :src="tagImage"></image>
<view class="title"> <!-- 倒计时 -->
<u-count-down :timestamp="timestamp" font-size="28" show-days separator="zh" separator-size="32" height="40" hide-zero-day <view class="title">
:color="countColor" separator-color="#FFFFFF" @change="timeOutChange" ref="order-count-down" bg-color="#FFFFFF"></u-count-down> <u-count-down :timestamp="timestamp" font-size="28" show-days separator="zh" separator-size="32" height="40"
<view class="header-content"> :color="countColor" separator-color="#FFFFFF" @change="timeOutChange" ref="order-count-down" bg-color="#FFFFFF"></u-count-down>
<!-- 抓紧时间提示 --> <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>
<view class="content">
<!-- 订单详情 --> <!-- 订单详情 -->
<view class="card base-item"> <view class="card base-item">
<Detail :order="order" :readMore.sync="readMore" :operate="isAllowDianhuaAndDaohang"></Detail> <Detail :order="order" :readMore.sync="readMore" :operate="isAllowDianhuaAndDaohang"></Detail>
...@@ -221,6 +221,8 @@ ...@@ -221,6 +221,8 @@
return this.timeout ? '您的订单已超时,请及时接单' : '请您注意剩余时间,及时接单' return this.timeout ? '您的订单已超时,请及时接单' : '请您注意剩余时间,及时接单'
case '预约': case '预约':
return this.timeout ? '您的订单已超时,请及时预约' : '请您注意剩余时间,及时预约' return this.timeout ? '您的订单已超时,请及时预约' : '请您注意剩余时间,及时预约'
case '签到':
return this.timeout ? '您的订单已超时,请及时签到' : '请您注意剩余时间,及时签到'
case '去完工': case '去完工':
return this.timeout ? '您的订单已超时,请及时完工' : '请您注意剩余时间,及时完工' return this.timeout ? '您的订单已超时,请及时完工' : '请您注意剩余时间,及时完工'
default: default:
...@@ -261,7 +263,7 @@ ...@@ -261,7 +263,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')
} }
}] }]
}, },
...@@ -776,9 +778,25 @@ ...@@ -776,9 +778,25 @@
dataValue.push(res.latitude) dataValue.push(res.latitude)
self.dataValue = dataValue self.dataValue = dataValue
}, },
fail(err) { complete: function(res) {
if (res.errMsg.indexOf('auth') != -1) {
} uni.showModal({
title: '提示',
content: '获取权限失败,请到设置页面开启权限',
confirmText: '好的',
success(res) {
if (res.confirm) {
uni.openSetting({
success(res) {
console.log(res.authSetting)
}
});
}
}
})
}
},
}); });
}, },
getDistance(Latitud, Longitud){ getDistance(Latitud, Longitud){
...@@ -787,10 +805,10 @@ ...@@ -787,10 +805,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) {
...@@ -853,7 +871,7 @@ ...@@ -853,7 +871,7 @@
flex-direction: column; flex-direction: column;
.header { .header {
padding: 4rpx 32rpx 20rpx 32rpx; padding: 4rpx 2rpx 24rpx 2rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.bottom-tag-view { .bottom-tag-view {
...@@ -894,7 +912,7 @@ ...@@ -894,7 +912,7 @@
height: 100%; height: 100%;
border-radius: 12rpx; border-radius: 12rpx;
overflow: auto; overflow: auto;
margin: 6rpx 30rpx 30rpx 30rpx; margin: 0rpx 30rpx 30rpx 30rpx;
.card { .card {
background-color: #FFFFFF; background-color: #FFFFFF;
......
...@@ -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()
} }
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
} }
let res = await this.$u.api.fileLabel(param) let res = await this.$u.api.fileLabel(param)
if (res && res.code == 200) { if (res && res.code == 200) {
this.labels = res.data || [] this.labels = res.data || []
} }
}, },
...@@ -93,10 +93,11 @@ ...@@ -93,10 +93,11 @@
align-items: center; align-items: center;
overflow: auto; overflow: auto;
flex-wrap: wrap; flex-wrap: wrap;
padding: 0 10rpx 44rpx 30rpx; padding: 0 10rpx 14rpx 30rpx;
.label-item { .label-item {
padding-right: 20rpx; padding-right: 20rpx;
padding-bottom: 30rpx;
flex-shrink: 0; flex-shrink: 0;
.label-normal { .label-normal {
......
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