Commit 2be06ad6 authored by 18224442217's avatar 18224442217

no message

parent 8eeca68e
......@@ -377,6 +377,9 @@
.PX4{
padding: 0 4rpx;
}
.PX10{
padding: 0 10rpx;
}
.PX20{
padding: 0 20rpx;
}
......
......@@ -211,6 +211,7 @@
},
onLoad(options){
this.msg.DepartCityId = this.OriginAddress.DepartCityId = options.DepartCityId?options.DepartCityId:0,
console.log(options.ArriveCityId,'-----')
this.msg.ArriveCityId = this.OriginAddress.DepartCityId = options.ArriveCityId?options.ArriveCityId:0
this.U = uni.getStorageSync("mall_UserInfo")
if(this.U&&this.U.Token){
......@@ -413,13 +414,13 @@
let DepartCityName = this.DepartureCityList.filter(x=>{
return x.ID==this.msg.DepartCityId
})
this.OriginAddress.DepartCityName = DepartCityName[0].Name
this.OriginAddress.DepartCityName = DepartCityName.length>0?DepartCityName[0].Name:''
}
if(this.msg.ArriveCityId){
let ArriveCityName = this.ArrivalCity.filter(x=>{
return x.ID==this.msg.ArriveCityId
})
this.OriginAddress.ArriveCityName = ArriveCityName[0].Name
this.OriginAddress.ArriveCityName = ArriveCityName.length>0?ArriveCityName[0].Name:''
}
}
});
......
<template>
<view class="addressIndex-box">
<view class="fz30 fontBold textCenter MB30 PX53">选择{{AddressType==1?'出发地':'目的地'}}</view>
<view class="fz30 fontBold textCenter MB30 PX53 relative">选择{{AddressType==1?'出发地':'目的地'}}
<text class="fz24 color9999A5 absolute PX10" style="right: 53rpx;top: 0;bottom: 0;" @click="Clear">清空</text>
</view>
<view class="fz30 fontBold MB30 PX53">当前{{AddressType==1?'出发地':'目的地'}}</view>
<view class="MT30 PX53">
<view class="addressIndex-Orientation inlineblock bgF5 row-ajc-n textCenter">
......@@ -70,6 +72,13 @@
},
methods: {
Clear(){
this.SelectObj = {
Name: '',
ID: 0,
}
this.$emit('RenewalAddres',this.SelectObj ,this.AddressType)
},
getAddress(item){
if(item.ID==this.SelectObj.ID){
this.SelectObj = {
......
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