Commit 38c41ab0 authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/zk123/jz_travel into master

parents 3e313944 61fe4da7
...@@ -565,6 +565,8 @@ ...@@ -565,6 +565,8 @@
"path":"jz_ActivityList" //活动列表 "path":"jz_ActivityList" //活动列表
},{ },{
"path":"jz_ActiveInfo" //活动详情 "path":"jz_ActiveInfo" //活动详情
},{
"path":"jz_ActivePaySuccess" //活动下单成功
}] }]
}, },
......
...@@ -750,10 +750,14 @@ export default { ...@@ -750,10 +750,14 @@ export default {
ID: orderId, ID: orderId,
IsGetGuest: 1, IsGetGuest: 1,
}; };
uni.showLoading({
title: '加载中'
});
this.apipost( this.apipost(
"sellorder_post_GetOrderEntity", "sellorder_post_GetOrderEntity",
msg, msg,
(res) => { (res) => {
uni.hideLoading();
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.orderData = res.data; this.orderData = res.data;
this.formatStatus( this.formatStatus(
......
...@@ -272,13 +272,14 @@ ...@@ -272,13 +272,14 @@
</style> </style>
<template> <template>
<view class="jz_Reserve"> <view class="jz_Reserve">
<view class="jz_ReserTop"> <view class="jz_ReserTop" v-if="currentPriceInfo">
<view class="o-timer flex"> <view class="o-timer flex">
<view class="time-item" <view class="time-item" v-if="currentPriceInfo.startDate">
>{{ getDate(currentPriceInfo.startDate) }} {{ getDate(currentPriceInfo.startDate) }}
{{ getWeek(currentPriceInfo.startDate) }}</view {{ getWeek(currentPriceInfo.startDate) }}
</view
> >
<view class="time-split"> <view class="time-split" v-if="currentPriceInfo.dayNum">
<view>{{ currentPriceInfo.dayNum }}</view> <view>{{ currentPriceInfo.dayNum }}</view>
</view> </view>
<view <view
...@@ -292,7 +293,7 @@ ...@@ -292,7 +293,7 @@
<text v-if="orderMsg.BabyNum > 0">{{ orderMsg.BabyNum }}婴儿</text> <text v-if="orderMsg.BabyNum > 0">{{ orderMsg.BabyNum }}婴儿</text>
</view> </view>
</view> </view>
<view class="jz_ReserTitle"> <view class="jz_ReserTitle" v-if="currentPriceInfo.title">
{{ currentPriceInfo.title }} {{ currentPriceInfo.title }}
</view> </view>
<view class="jz_ReserIn" style="margin: 33rpx 0 18rpx 0"> <view class="jz_ReserIn" style="margin: 33rpx 0 18rpx 0">
...@@ -596,11 +597,14 @@ export default { ...@@ -596,11 +597,14 @@ export default {
}, },
//获取详情 //获取详情
getDetails(id) { getDetails(id) {
uni.showLoading({
title: '加载中'
});
this.apipost( this.apipost(
"b2b_get_GetB2BTravelInfoNoDesV1", "b2b_get_GetB2BTravelInfoNoDesV1",
{ tcid: id }, { tcid: id },
(res) => { (res) => {
console.log(res,'数据'); uni.hideLoading();
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.tips = res.data.feature.importantTipText; this.tips = res.data.feature.importantTipText;
this.ltName = res.data.ltName; this.ltName = res.data.ltName;
...@@ -613,9 +617,11 @@ export default { ...@@ -613,9 +617,11 @@ export default {
); );
}, },
getWeek(date) { getWeek(date) {
var weekArray = new Array("日", "一", "二", "三", "四", "五", "六"); if(date){
var week = weekArray[new Date(date).getDay()]; //注意此处必须是先new一个Date var weekArray = new Array("日", "一", "二", "三", "四", "五", "六");
return "周" + week; var week = weekArray[new Date(date).getDay()]; //注意此处必须是先new一个Date
return "周" + week;
}
}, },
getDate(date) { getDate(date) {
if (date) { if (date) {
...@@ -814,7 +820,6 @@ export default { ...@@ -814,7 +820,6 @@ export default {
}, },
}, },
(res) => { (res) => {
console.log(res,'数据');
this.orderInfo = JSON.parse(res.data); this.orderInfo = JSON.parse(res.data);
// this.Pay(OrderId); // this.Pay(OrderId);
this.subscribeMsg(OrderId); this.subscribeMsg(OrderId);
......
...@@ -590,10 +590,14 @@ export default { ...@@ -590,10 +590,14 @@ export default {
}, },
//获取详情 //获取详情
getDetails(id) { getDetails(id) {
uni.showLoading({
title: '加载中'
});
this.apipost( this.apipost(
"b2b_get_GetB2BTravelInfoNoDesV1", "b2b_get_GetB2BTravelInfoNoDesV1",
{ tcid: id }, { tcid: id },
(res) => { (res) => {
uni.hideLoading();
if (res.resultCode == 1) { if (res.resultCode == 1) {
this.tips = res.data.feature.importantTipText; this.tips = res.data.feature.importantTipText;
this.ltName = res.data.ltName; this.ltName = res.data.ltName;
......
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