Commit b814f151 authored by youjie's avatar youjie

修复选项 bug

parent 2efc8099
...@@ -514,6 +514,7 @@ ...@@ -514,6 +514,7 @@
}, },
// 用户点击确定按钮 // 用户点击确定按钮
getResult(event = null) { getResult(event = null) {
setTimeout(() => {
let result = {}; let result = {};
// 只返回用户在this.params中配置了为true的字段 // 只返回用户在this.params中配置了为true的字段
if (this.mode == 'time') { if (this.mode == 'time') {
...@@ -534,6 +535,8 @@ ...@@ -534,6 +535,8 @@
} }
if (event) this.$emit(event, result); if (event) this.$emit(event, result);
this.close(); this.close();
}, 1000);
} }
} }
} }
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
</view> </view>
<view style="display: flex; align-items: center"> <view style="display: flex; align-items: center">
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<button @click="showDownload=true" class="jz_ConButton" v-if="dataList.VisaProductInfo&&dataList.VisaProductInfo.DownloadMaterialsFileList.length>0"> <button @click="dataList.VisaProductInfo.DownloadMaterialsFileList.length>1?showDownload=true:downloadTripPlanHandler(dataList.VisaProductInfo.DownloadMaterialsFileList[0])" class="jz_ConButton" v-if="dataList.VisaProductInfo&&dataList.VisaProductInfo.DownloadMaterialsFileList.length>0">
<img style="width: 36rpx; height: 38rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1695376860000_131.png" <img style="width: 36rpx; height: 38rpx" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1695376860000_131.png"
alt="" /> alt="" />
<view style="color: #111111; font-size: 22rpx">下载文件</view> <view style="color: #111111; font-size: 22rpx">下载文件</view>
......
...@@ -633,17 +633,14 @@ ...@@ -633,17 +633,14 @@
</view> </view>
<u-picker mode="selector" v-model="showCountry" :default-selector="[0]" <u-picker mode="selector" v-model="showCountry" :default-selector="[0]"
:range="countrys" @confirm='(e)=>{changeDown(e,CountryType)}' :range="countrys" @confirm='(e)=>{changeDown(e,CountryType)}'
@change="(e)=>{columnChange(e,CountryType)}"
range-key="label" @input="showCountry=false"></u-picker> range-key="label" @input="showCountry=false"></u-picker>
<u-picker mode="selector" v-model="showProvince" :default-selector="[0]" <u-picker mode="selector" v-model="showProvince" :default-selector="[0]"
:range="provinceList" @confirm='(e)=>{changeDown(e,3)}' :range="provinceList" @confirm='(e)=>{changeDown(e,3)}'
@change="(e)=>{columnChange(e,3)}"
range-key="label" @input="showProvince=false"></u-picker> range-key="label" @input="showProvince=false"></u-picker>
<u-picker mode="selector" v-model="showCity" :default-selector="[0]" <u-picker mode="selector" v-model="showCity" :default-selector="[0]"
:range="cityList" @confirm='(e)=>{changeDown(e,4)}' :range="cityList" @confirm='(e)=>{changeDown(e,4)}'
@change="(e)=>{columnChange(e,4)}"
range-key="label" @input="showProvince=false"></u-picker> range-key="label" @input="showProvince=false"></u-picker>
<template v-if="couponList.length>0"> <template v-if="couponList.length>0">
...@@ -872,28 +869,6 @@ ...@@ -872,28 +869,6 @@
} }
}, err => {}) }, err => {})
}, },
columnChange(e,type){
let i = e
if(type == 1){
this.customer.count = this.countrys[i].ID
this.optionsTitle[0] = this.countrys[i].Name
this.customer.PhoneCountryStr = '+'+this.countrys[i].PhoneCode
}
if(type == 2){
this.orderMsg.RelationPhoneType = '+'+this.countrys[i].PhoneCode
this.optionsTitle[1] = this.countrys[i].Name
}
if(type == 3){
this.orderMsg.ReceiverProvince = this.provinceList[i].Name
this.orderMsg.ReceiverProvinceId = this.provinceList[i].ID
this.optionsTitle[2] = this.provinceList[i].Name
this.getCity()
}
if(type == 4){
this.orderMsg.ReceiverCity = this.cityList[i].Name
this.optionsTitle[3] = this.cityList[i].Name
}
},
changeDown(e,type){ changeDown(e,type){
let i = [e] let i = [e]
if(type == 1){ if(type == 1){
......
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