feat: 工单列表样式微调;非生产环境不限制完成上门距离。

This commit is contained in:
gcd 2025-04-21 23:09:30 +08:00
parent 769c75adcb
commit 9b8fe0ea07
3 changed files with 15 additions and 6 deletions

View File

@ -1,7 +1,7 @@
const accountInfo = wx.getAccountInfoSync();
const hosts = {
"develop": 'https://develop',
"trial": 'https://trial',
"develop": 'http://121.40.24.248',
"trial": 'http://121.40.24.248',
"release": 'https://release',
}

View File

@ -43,9 +43,13 @@
<view class="title flex-l">客户地址</view>
<view class="value flex-l">{{helpers.removeCommas(data.order_info.area.merge_name) + data.order_info.address}}</view>
</view>
<view class="item-multi-line">
<view class="title flex-l">详情</view>
<view class="value flex-l">{{data.order_info.detail ? data.order_info.detail : '暂无详情'}}</view>
</view>
<view class="item-multi-line">
<view class="title flex-l">客户备注</view>
<view class="value flex-l">{{data.remark ? data.remark : '无备注信息'}}</view>
<view class="value flex-l">{{data.order_info.remark ? data.order_info.remark : '无备注信息'}}</view>
</view>
<view class="report-order-exception flex-c" v-if="canReportOrderException">
<view @click="reportOrderException(data.order_info.id)" class="report-ctr flex-c" hover-class="auto-mask-layer-radius4" hover-start-time="0" hover-stay-time="50">
@ -201,8 +205,10 @@ const arrivedOnSite = () => {
uni.getLocation({
type: 'gcj02',
success(res) {
let envVersion = wx.getAccountInfoSync().miniProgram.envVersion
let distances = helpers.getDistances(res.latitude, res.longitude, data.value.order_info.lat, data.value.order_info.lng);
if (distances.unit === '公里' || distances.distance > 500) {
if (envVersion === 'release' && (distances.unit === '公里' || distances.distance > 500)) {
return helpers.showToast(`上门失败!距离客户地址超过 500米当前距离${distances.distance}${distances.unit}`)
}

View File

@ -268,15 +268,18 @@ swiper .wx-swiper-dots .wx-swiper-dot{
box-sizing: border-box;
margin-top: 32rpx;
.top {
height: 60rpx;
min-height: 80rpx;
.type,.price {
width: 323rpx;
height: 100%;
min-height: 80rpx;
padding: 8rpx 0;
box-sizing: border-box;
}
.type {
font-weight: 500;
font-size: 34rpx;
color: var(--titleColor);
line-height: 48rpx;
}
.price {
font-size: 30rpx;