|
@@ -78,7 +78,7 @@
|
|
<image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/car.png" class="car_icon"></image>
|
|
<image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/car.png" class="car_icon"></image>
|
|
</navigator>
|
|
</navigator>
|
|
<button class="show_order" data-eventsync="true" @click="showSpecPopup(3)">{{ this.productInfo.regiment_title }}专享/{{ this.productInfo.regiment_price }}</button>
|
|
<button class="show_order" data-eventsync="true" @click="showSpecPopup(3)">{{ this.productInfo.regiment_title }}专享/{{ this.productInfo.regiment_price }}</button>
|
|
- <button class="show_car" data-eventsync="true" @click="showSpecPopup(1)">单独预约/{{ this.productInfo.price }}</button>
|
|
|
|
|
|
+ <button class="show_car" data-eventsync="true" @click="showSpecPopup(1)">单独购买/{{ this.productInfo.price }}</button>
|
|
</view>
|
|
</view>
|
|
<view class="order_car" v-else-if="productInfo.regiment_type === 1">
|
|
<view class="order_car" v-else-if="productInfo.regiment_type === 1">
|
|
<navigator url="/pages/car/index" open-type="switchTab" class="to_car">
|
|
<navigator url="/pages/car/index" open-type="switchTab" class="to_car">
|
|
@@ -101,7 +101,7 @@
|
|
<navigator url="/pages/car/index" open-type="switchTab" class="to_car">
|
|
<navigator url="/pages/car/index" open-type="switchTab" class="to_car">
|
|
<image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/car.png" class="car_icon"></image>
|
|
<image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/car.png" class="car_icon"></image>
|
|
</navigator>
|
|
</navigator>
|
|
- <button class="show_order" v-if="!productInfo.hide_orderbtn" data-eventsync="true" @click="showSpecPopup(1)">立即预约</button>
|
|
|
|
|
|
+ <button class="show_order" v-if="!productInfo.hide_orderbtn" data-eventsync="true" @click="showSpecPopup(1)">立即购买</button>
|
|
<button :class="productInfo.hide_orderbtn?'show_car hide_orderbtn ':'show_car'" data-eventsync="true" @click="showSpecPopup(2)">加入购物车</button>
|
|
<button :class="productInfo.hide_orderbtn?'show_car hide_orderbtn ':'show_car'" data-eventsync="true" @click="showSpecPopup(2)">加入购物车</button>
|
|
</view>
|
|
</view>
|
|
<view class="to_bottom"> --- 到底了 --- </view>
|
|
<view class="to_bottom"> --- 到底了 --- </view>
|
|
@@ -170,10 +170,10 @@
|
|
</view>
|
|
</view>
|
|
<view class="order_price" v-if="specBtnType == 1 || specBtnType == 3">合计: ¥{{ priceTotal }}</view>
|
|
<view class="order_price" v-if="specBtnType == 1 || specBtnType == 3">合计: ¥{{ priceTotal }}</view>
|
|
<view class="order_btn">
|
|
<view class="order_btn">
|
|
- <button class="to_order" @click="createOrder()" v-if="specBtnType == 1" data-eventsync="true">预约</button>
|
|
|
|
|
|
+ <button class="to_order" @click="createOrder()" v-if="specBtnType == 1" data-eventsync="true">购买</button>
|
|
<button class="to_car" @click="createCart()" v-if="specBtnType == 2" data-eventsync="true">加入购物车</button>
|
|
<button class="to_car" @click="createCart()" v-if="specBtnType == 2" data-eventsync="true">加入购物车</button>
|
|
- <button class="to_order" @click="createOrder()" v-if="specBtnType == 3" data-eventsync="true">拼团预约</button>
|
|
|
|
- <button class="to_order" @click="createOrder()" v-if="specBtnType == 4" data-eventsync="true">{{ productInfo.regiment_title }}预约</button>
|
|
|
|
|
|
+ <button class="to_order" @click="createOrder()" v-if="specBtnType == 3" data-eventsync="true">拼团购买</button>
|
|
|
|
+ <button class="to_order" @click="createOrder()" v-if="specBtnType == 4" data-eventsync="true">{{ productInfo.regiment_title }}购买</button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</uni-popup>
|
|
</uni-popup>
|
|
@@ -687,10 +687,12 @@ export default {
|
|
this.productInfo.stock = this.productInfo.stock - this.quantity;
|
|
this.productInfo.stock = this.productInfo.stock - this.quantity;
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
this.$refs.specPopup.close();
|
|
this.$refs.specPopup.close();
|
|
- // 跳转到报单完成页面
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/orders/completion?params=${encodedArray}`,
|
|
|
|
- });
|
|
|
|
|
|
+ //订单详情
|
|
|
|
+ let orderInfo = re.data;
|
|
|
|
+ orderInfo = JSON.stringify(orderInfo)
|
|
|
|
+ let params = encodeURIComponent(orderInfo);
|
|
|
|
+ // 跳转到确认支付页面
|
|
|
|
+ uni.navigateTo({url:`/pages/orders/confirm?params=${params}`});
|
|
} else {
|
|
} else {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: re.msg,
|
|
title: re.msg,
|
|
@@ -717,10 +719,12 @@ export default {
|
|
this.productInfo.stock = this.productInfo.stock - this.quantity;
|
|
this.productInfo.stock = this.productInfo.stock - this.quantity;
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
this.$refs.specPopup.close();
|
|
this.$refs.specPopup.close();
|
|
- // 跳转到报单完成页面
|
|
|
|
- uni.navigateTo({
|
|
|
|
- url: `/pages/orders/completion?params=${encodedArray}`,
|
|
|
|
- });
|
|
|
|
|
|
+ //订单详情
|
|
|
|
+ let orderInfo = re.data;
|
|
|
|
+ orderInfo = JSON.stringify(orderInfo)
|
|
|
|
+ let params = encodeURIComponent(orderInfo);
|
|
|
|
+ // 跳转到确认支付页面
|
|
|
|
+ uni.navigateTo({url:`/pages/orders/confirm?params=${params}`});
|
|
} else {
|
|
} else {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: re.msg,
|
|
title: re.msg,
|