Commit b0f50925 authored by Administrator's avatar Administrator

Merge branch 'release' into 'jd_dev'

Release最新代码合并入捷道研发分支20241115

See merge request !35
parents 873bfa66 61c3c02f
...@@ -5,7 +5,7 @@ export default { ...@@ -5,7 +5,7 @@ export default {
props:{ props:{
value:{ value:{
type:Array, type:Array,
default:[] default: () => []
}, },
readonly:{ readonly:{
type:Boolean, type:Boolean,
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<image src="../../static/img/corder-1.png" mode=""></image> <image src="../../static/img/corder-1.png" mode=""></image>
<view class="flex items-center flex-1"> <view class="flex items-center flex-1">
<view class="title">{{$lang.lang.create.consignee}}</view> <view class="title">{{$lang.lang.create.consignee}}</view>
<radio-group @change="changeHasConsignee" class="flex items-center"> <radio-group @change="changeHasConsignee" class="flex items-center" v-if="noConsignee">
<label class="radio"> <label class="radio">
<radio value="1" :checked="hasConsignee" /><text></text> <radio value="1" :checked="hasConsignee" /><text></text>
</label> </label>
...@@ -23,12 +23,12 @@ ...@@ -23,12 +23,12 @@
</label> </label>
</radio-group> </radio-group>
</view> </view>
<view class="flex items-center" style="width: 30px"> <view class="flex items-center" style="width: 30px" v-if="hasConsignee">
<image src="../../static/img/add.png" class="icon" v-if="!showFullConsignee" @click="showFullConsignee=true"></image> <image src="../../static/img/add.png" class="icon" v-if="!showFullConsignee" @click="showFullConsignee=true"></image>
<image src="../../static/img/sub.png" class="icon" v-else @click="showFullConsignee=false"></image> <image src="../../static/img/sub.png" class="icon" v-else @click="showFullConsignee=false"></image>
</view> </view>
</view> </view>
<view class="corder-tab1-item corder-picker"> <view class="corder-tab1-item corder-picker" v-if="hasConsignee">
<image src="../../static/img/order-user.png" mode=""></image> <image src="../../static/img/order-user.png" mode=""></image>
<text><span class="redcolor">*</span>{{$lang.lang.create.name}}</text> <text><span class="redcolor">*</span>{{$lang.lang.create.name}}</text>
<view class="addname"> <view class="addname">
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<view v-if="hasConsignee" class="choiceBtn" @click="tochoice">{{$lang.lang.create.choiceConsignee}}</view> <view v-if="hasConsignee" class="choiceBtn" @click="tochoice">{{$lang.lang.create.choiceConsignee}}</view>
</view> </view>
</view> </view>
<view class="corder-tab1-item"> <view class="corder-tab1-item" v-if="hasConsignee">
<image src="../../static/img/order-tel.png" mode=""></image> <image src="../../static/img/order-tel.png" mode=""></image>
<text><span class="redcolor">*</span>{{$lang.lang.create.phone}}</text> <text><span class="redcolor">*</span>{{$lang.lang.create.phone}}</text>
<!-- <input v-model="params.consigneePhone" type="text" :placeholder="请输入电话" /> --> <!-- <input v-model="params.consigneePhone" type="text" :placeholder="请输入电话" /> -->
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
:placeholder="$lang.lang.notices.phone" /> :placeholder="$lang.lang.notices.phone" />
</view> </view>
</view> </view>
<template v-if="showFullConsignee"> <template v-if="showFullConsignee && hasConsignee">
<!-- v1.7新增 --> <!-- v1.7新增 -->
<view class="corder-tab1-item corder-picker"> <view class="corder-tab1-item corder-picker">
<image src="../../static/img/order-user.png" mode=""></image> <image src="../../static/img/order-user.png" mode=""></image>
...@@ -175,12 +175,12 @@ ...@@ -175,12 +175,12 @@
</picker> </picker>
<image class="rgt" src="../../static/img/rgt.png" mode=""></image> <image class="rgt" src="../../static/img/rgt.png" mode=""></image>
</view> </view>
<view class="corder-tab1-item corder-picker" v-if="lineMethod"> <view class="corder-tab1-item corder-picker" v-if="otherService.indexOf('1') > -1 || otherService.indexOf('4') > -1">
<image src="../../static/img/corder-1-2.png" mode=""></image> <image src="../../static/img/corder-1-2.png" mode=""></image>
<text>{{$lang.lang.create.type}}</text> <text>{{$lang.lang.create.type}}</text>
<view class="order_type"> <view class="order_type">
<checkbox-group @change="changeType"> <checkbox-group @change="changeType">
<view v-for="item in items" :key="item.value" v-if="item.show"> <view v-for="item in items" :key="item.value" v-if="otherService.indexOf(item.value) > -1">
<checkbox style="transform:scale(0.8)" :value="item.value" :checked="item.checked" />{{item.name}} <checkbox style="transform:scale(0.8)" :value="item.value" :checked="item.checked" />{{item.name}}
</view> </view>
</checkbox-group> </checkbox-group>
...@@ -1269,7 +1269,11 @@ ...@@ -1269,7 +1269,11 @@
}, },
harvestRangeKey(){ harvestRangeKey(){
return this.$lang.locale == 'zh' ? 'label' : 'labelEn' return this.$lang.locale == 'zh' ? 'label' : 'labelEn'
} },
otherService(){
const currentRoute = this.currentRouteIndex !== null ? this.routerList[this.currentRouteIndex] : null
return currentRoute?.otherService?.split(",") || []
},
}, },
watch:{ watch:{
'params.countryCode'(){ 'params.countryCode'(){
...@@ -1995,10 +1999,6 @@ ...@@ -1995,10 +1999,6 @@
if(!that.params.consigneeVO){ if(!that.params.consigneeVO){
that.hasConsignee = false that.hasConsignee = false
} }
// 如果用户当前不支持无收货人,则强制显示收货人信息
if(!that.noConsignee){
that.hasConsignee = true
}
// 回显目的城市和目的国 // 回显目的城市和目的国
const dstCityIndex = this.filteredDstCityList.findIndex(item => item.shi === that.params.objectiveId) const dstCityIndex = this.filteredDstCityList.findIndex(item => item.shi === that.params.objectiveId)
...@@ -2035,6 +2035,10 @@ ...@@ -2035,6 +2035,10 @@
} }
this.hasConsignee = res.data.hasConsignee this.hasConsignee = res.data.hasConsignee
// 如果用户当前不支持无收货人,则强制显示收货人信息
if(!that.noConsignee){
that.hasConsignee = true
}
} }
}) })
}, },
......
...@@ -180,7 +180,8 @@ ...@@ -180,7 +180,8 @@
</view> </view>
</view> </view>
<view class="addicon" @click="basicShowMore=!basicShowMore"> <view class="addicon" @click="basicShowMore=!basicShowMore">
<image src="/static/img/addicon.png"></image> <image src="/static/img/add.png" v-if="!basicShowMore"></image>
<image src="/static/img/sub.png" v-else></image>
</view> </view>
<view :class="basicShowMore?'showInfoClass':'hideInfoClass'" > <view :class="basicShowMore?'showInfoClass':'hideInfoClass'" >
<view class="order-info-line" > <view class="order-info-line" >
...@@ -263,7 +264,8 @@ ...@@ -263,7 +264,8 @@
</view> </view>
</view> </view>
<view class="addicon" @click="shopShowMore=!shopShowMore"> <view class="addicon" @click="shopShowMore=!shopShowMore">
<image src="/static/img/addicon.png"></image> <image src="/static/img/add.png" v-if="!shopShowMore"></image>
<image src="/static/img/sub.png" v-else></image>
</view> </view>
<view :class="shopShowMore?'showInfoClass':'hideInfoClass'" > <view :class="shopShowMore?'showInfoClass':'hideInfoClass'" >
<view class="order-info-line"> <view class="order-info-line">
......
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