Commit 8da67fb3 authored by youjie's avatar youjie

签证

parent acafe8f1
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
uni.redirectTo({ uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" + url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
this.price + this.price +
"&isFrom=1", "&isFrom=4",
}); });
}, 100); }, 100);
}, },
......
...@@ -57,6 +57,16 @@ ...@@ -57,6 +57,16 @@
:borderBottom="true" :borderBottom="true"
required> required>
</u-field> </u-field>
<!-- #ifdef MP-DI -->
<u-field
v-model="Mailbox"
label="邮箱地址"
placeholder="请填写邮箱地址"
padding="20rpx 28rpx"
:borderBottom="true"
required>
</u-field>
<!-- #endif -->
</view> </view>
<!-- #ifdef MP-AG --> <!-- #ifdef MP-AG -->
<view class="flight-card q-mt-md" v-if="sales.length>1"> <view class="flight-card q-mt-md" v-if="sales.length>1">
...@@ -250,6 +260,7 @@ ...@@ -250,6 +260,7 @@
backVisible:false, backVisible:false,
goVisible:false, goVisible:false,
orderInfo: {}, orderInfo: {},
Mailbox: '',
} }
}, },
components: { components: {
...@@ -337,8 +348,8 @@ ...@@ -337,8 +348,8 @@
SurName: this.contactName, SurName: this.contactName,
Name: '', Name: '',
ContactNumber: this.contactPhone, ContactNumber: this.contactPhone,
Mailbox: this.customer.Mailbox, Mailbox: this.Mailbox,
GoodsId: this.currentPriceInfo.tcid, GoodsId: this.id,
GoodsName: `${this.goList[0].DepartureName}${this.backList[0].DepartureName}`, GoodsName: `${this.goList[0].DepartureName}${this.backList[0].DepartureName}`,
GoodsPic: this.goList[0].AirlineUrl? this.goList[0].AirlineUrl : '', GoodsPic: this.goList[0].AirlineUrl? this.goList[0].AirlineUrl : '',
GoodsType: 16, GoodsType: 16,
...@@ -389,7 +400,7 @@ ...@@ -389,7 +400,7 @@
uni.redirectTo({ uni.redirectTo({
url: "/pages/jiuzhai/paysuccess?PreferPrice=" + url: "/pages/jiuzhai/paysuccess?PreferPrice=" +
that.price + that.price +
"&isFrom=1", "&isFrom=4",
}); });
}, 100); }, 100);
}, },
...@@ -462,6 +473,7 @@ ...@@ -462,6 +473,7 @@
}) })
}, },
validate(){ validate(){
let email = /^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/
let msg = '' let msg = ''
if(this.crCount+this.etCount+this.babyCount==0){ if(this.crCount+this.etCount+this.babyCount==0){
msg = '请选择乘机人' msg = '请选择乘机人'
...@@ -475,6 +487,10 @@ ...@@ -475,6 +487,10 @@
msg = '请输入联系人名称' msg = '请输入联系人名称'
} else if(this.contactPhone=='' || this.contactPhone.length!=11){ } else if(this.contactPhone=='' || this.contactPhone.length!=11){
msg = '请输入11位联系电话' msg = '请输入11位联系电话'
}else if(this.Mailbox==''){
msg = '请输入邮箱地址'
}else if (!email.test(this.Mailbox)) {
msg = '请输入正确的邮箱地址'
} else if(this.createBy.CreateBy==0){ } else if(this.createBy.CreateBy==0){
// #ifdef MP-AG // #ifdef MP-AG
msg = '请选择与你对接的服务人员' msg = '请选择与你对接的服务人员'
...@@ -511,7 +527,12 @@ ...@@ -511,7 +527,12 @@
const p = { const p = {
OrderId:0, OrderId:0,
TCID:this.id, TCID:this.id,
CustomerType:2, // #ifdef MP-DI
CustomerType: 4,
// #endif
// #ifdef MP-AG
CustomerType: 2,
// #endif
GroupType:5, GroupType:5,
ContactName:this.contactName, ContactName:this.contactName,
ContactMobile:this.contactPhone, ContactMobile:this.contactPhone,
......
...@@ -78,6 +78,11 @@ export default { ...@@ -78,6 +78,11 @@ export default {
uni.redirectTo({ uni.redirectTo({
url: "/pages/visa/visa_MyOrder", url: "/pages/visa/visa_MyOrder",
}); });
} else if (this.isLineOrder == 4) {
//机票订单
uni.redirectTo({
url: "/pages/airTicket/TicketOrderList",
});
} }
}, },
goHome() { goHome() {
......
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