修复地址性别问题

This commit is contained in:
TOP糯米 2023-04-01 18:15:00 +08:00
parent 1ea416f015
commit 9489139da3
4 changed files with 12 additions and 12 deletions

View File

@ -73,7 +73,7 @@ export default {
address: response.data.address.address, address: response.data.address.address,
detail: response.data.address.doorplate, detail: response.data.address.doorplate,
name: response.data.address.name, name: response.data.address.name,
gender: response.data.address.sex, gender: response.data.address.sex == "男" ? 1 : 2,
mobile: response.data.address.mobil, mobile: response.data.address.mobil,
lng: response.data.address.lng, lng: response.data.address.lng,
lat: response.data.address.lat, lat: response.data.address.lat,
@ -96,7 +96,7 @@ export default {
address: response.data.address_a.address, address: response.data.address_a.address,
detail: response.data.address_a.doorplate, detail: response.data.address_a.doorplate,
name: response.data.address_a.name, name: response.data.address_a.name,
gender: response.data.address_a.sex, gender: response.data.address_a.sex == "男" ? 1 : 2,
mobile: response.data.address_a.mobil, mobile: response.data.address_a.mobil,
lng: response.data.address_a.lng, lng: response.data.address_a.lng,
lat: response.data.address_a.lat, lat: response.data.address_a.lat,
@ -105,7 +105,7 @@ export default {
address: response.data.address_b.address, address: response.data.address_b.address,
detail: response.data.address_b.doorplate, detail: response.data.address_b.doorplate,
name: response.data.address_b.name, name: response.data.address_b.name,
gender: response.data.address_b.sex, gender: response.data.address_b.sex == "男" ? 1 : 2,
mobile: response.data.address_b.mobil, mobile: response.data.address_b.mobil,
lng: response.data.address_b.lng, lng: response.data.address_b.lng,
lat: response.data.address_b.lat, lat: response.data.address_b.lat,

View File

@ -116,7 +116,7 @@ export default {
address: response.data.address.address, address: response.data.address.address,
detail: response.data.address.doorplate, detail: response.data.address.doorplate,
name: response.data.address.name, name: response.data.address.name,
gender: response.data.address.sex, gender: response.data.address.sex == "男" ? 1 : 2,
mobile: response.data.address.mobil, mobile: response.data.address.mobil,
lng: response.data.address.lng, lng: response.data.address.lng,
lat: response.data.address.lat, lat: response.data.address.lat,
@ -139,7 +139,7 @@ export default {
address: response.data.address_a.address, address: response.data.address_a.address,
detail: response.data.address_a.doorplate, detail: response.data.address_a.doorplate,
name: response.data.address_a.name, name: response.data.address_a.name,
gender: response.data.address_a.sex, gender: response.data.address_a.sex == "男" ? 1 : 2,
mobile: response.data.address_a.mobil, mobile: response.data.address_a.mobil,
lng: response.data.address_a.lng, lng: response.data.address_a.lng,
lat: response.data.address_a.lat, lat: response.data.address_a.lat,
@ -148,7 +148,7 @@ export default {
address: response.data.address_b.address, address: response.data.address_b.address,
detail: response.data.address_b.doorplate, detail: response.data.address_b.doorplate,
name: response.data.address_b.name, name: response.data.address_b.name,
gender: response.data.address_b.sex, gender: response.data.address_b.sex == "男" ? 1 : 2,
mobile: response.data.address_b.mobil, mobile: response.data.address_b.mobil,
lng: response.data.address_b.lng, lng: response.data.address_b.lng,
lat: response.data.address_b.lat, lat: response.data.address_b.lat,

View File

@ -59,7 +59,7 @@
<view> <view>
<view class="contact limit-line clamp-1"> <view class="contact limit-line clamp-1">
<text class="name"> <text class="name">
{{ order.address.name }}({{ order.address.gender == "男" ? "先生" : "女士" }}) {{ order.address.name }}({{ order.address.gender == 1 ? "先生" : "女士" }})
</text> </text>
<text class="mobile">{{ order.address.mobile }}</text> <text class="mobile">{{ order.address.mobile }}</text>
</view> </view>
@ -91,7 +91,7 @@
<view> <view>
<view class="contact limit-line clamp-1"> <view class="contact limit-line clamp-1">
<text class="name"> <text class="name">
{{ order.pickupAddress.name }}({{ order.pickupAddress.gender == "男" ? "先生" : "女士" }}) {{ order.pickupAddress.name }}({{ order.pickupAddress.gender == 1 ? "先生" : "女士" }})
</text> </text>
<text class="mobile">{{ order.pickupAddress.mobile }}</text> <text class="mobile">{{ order.pickupAddress.mobile }}</text>
</view> </view>
@ -108,7 +108,7 @@
<view> <view>
<view class="contact limit-line clamp-1"> <view class="contact limit-line clamp-1">
<text class="name"> <text class="name">
{{ order.unloadAddress.name }}({{ order.unloadAddress.gender == "男" ? "先生" : "女士" }}) {{ order.unloadAddress.name }}({{ order.unloadAddress.gender == 1 ? "先生" : "女士" }})
</text> </text>
<text class="mobile">{{ order.unloadAddress.mobile }}</text> <text class="mobile">{{ order.unloadAddress.mobile }}</text>
</view> </view>

View File

@ -58,7 +58,7 @@
<view> <view>
<view class="contact limit-line clamp-1"> <view class="contact limit-line clamp-1">
<text class="name"> <text class="name">
{{ order.address.name }}({{ order.address.gender == "男" ? "先生" : "女士" }}) {{ order.address.name }}({{ order.address.gender == 1 ? "先生" : "女士" }})
</text> </text>
<text class="mobile">{{ order.address.mobile }}</text> <text class="mobile">{{ order.address.mobile }}</text>
<text class="call" @click.stop="utils.callPhone(order.address.mobile)">拨号</text> <text class="call" @click.stop="utils.callPhone(order.address.mobile)">拨号</text>
@ -92,7 +92,7 @@
<view> <view>
<view class="contact limit-line clamp-1"> <view class="contact limit-line clamp-1">
<text class="name"> <text class="name">
{{ order.pickupAddress.name }}({{ order.pickupAddress.gender == "男" ? "先生" : "女士" }}) {{ order.pickupAddress.name }}({{ order.pickupAddress.gender == 1 ? "先生" : "女士" }})
</text> </text>
<text class="mobile">{{ order.pickupAddress.mobile }}</text> <text class="mobile">{{ order.pickupAddress.mobile }}</text>
<text class="call" @click.stop="utils.callPhone(order.pickupAddress.mobile)">拨号</text> <text class="call" @click.stop="utils.callPhone(order.pickupAddress.mobile)">拨号</text>
@ -110,7 +110,7 @@
<view> <view>
<view class="contact limit-line clamp-1"> <view class="contact limit-line clamp-1">
<text class="name"> <text class="name">
{{ order.unloadAddress.name }}({{ order.unloadAddress.gender == "男" ? "先生" : "女士" }}) {{ order.unloadAddress.name }}({{ order.unloadAddress.gender == 1 ? "先生" : "女士" }})
</text> </text>
<text class="mobile">{{ order.unloadAddress.mobile }}</text> <text class="mobile">{{ order.unloadAddress.mobile }}</text>
<text class="call" @click.stop="utils.callPhone(order.unloadAddress.mobile)">拨号</text> <text class="call" @click.stop="utils.callPhone(order.unloadAddress.mobile)">拨号</text>