diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js
index 8a7dc85..06d7dcb 100644
--- a/static/js/CommonFunction.js
+++ b/static/js/CommonFunction.js
@@ -251,7 +251,7 @@ Vue.prototype.gotoWebUrl = url => {
Vue.prototype.gotoDetailByType = item => {
let url = ''
if(item.is_package) {
- url = '/subPackages/food/detail?id=' + item.id
+ url = '/subPackages/food/detail?id=' + item.product_id
Vue.prototype.gotoPath(url)
return;
@@ -267,7 +267,7 @@ Vue.prototype.gotoDetailByType = item => {
url = '/subPackages/ticket/detail?id=' + (item.scene_id || item.id)
break;
case 'post':
- url = '/subPackages/techan/detail?id=' + item.id
+ url = '/subPackages/techan/detail?id=' + (item.product_id || item.id)
break;
default:
break;
diff --git a/subPackages/line/order.vue b/subPackages/line/order.vue
index 15c6dd7..33eb19e 100644
--- a/subPackages/line/order.vue
+++ b/subPackages/line/order.vue
@@ -218,11 +218,13 @@
return;
}
const info = this.getPriceInfo(selectMonth, day);
- if (info && info.product_price && info.product_price !== null && info.stock !== 0) {
+ console.log(info)
+ if (info && info.stock !== 0) {
info.selectMonth = selectMonth;
info.selectDate = day;
this.selectDate = info;
}
+ this.$forceUpdate()
},
// 减少数量
minus(index) {
diff --git a/subPackages/line/orders.vue b/subPackages/line/orders.vue
index 3918ef3..32ffc9d 100644
--- a/subPackages/line/orders.vue
+++ b/subPackages/line/orders.vue
@@ -254,8 +254,6 @@
data: JSON.stringify(data),
method: 'POST',
},'/api/order/create').then(res => {
- console.log(res)
- return;
if(res.code == 1) {
let order_id = res.data.order_id
this.$store.commit("changeLineInfo", null);
@@ -263,9 +261,9 @@
this.Post({
order_id: order_id,
- type: "miniprogram",
- platform: 'miniprogram'
- }, '/api/pay/unify').then(res => {
+ pay_platform: "miniprogram",
+ pay_method: 'abc'
+ }, '/api/order/pay').then(res => {
if (res.data) {
uni.requestPayment({
nonceStr: res.data.nonceStr,
diff --git a/subPackages/order/orderDetail.vue b/subPackages/order/orderDetail.vue
index c703612..8534a4a 100644
--- a/subPackages/order/orderDetail.vue
+++ b/subPackages/order/orderDetail.vue
@@ -1,33 +1,84 @@
-
+
订单状态
-
+
{{info.state_text}}
-
+
- 订单将在{{info.close_time.slice(-8)}}自动取消
-
+
+ 订单将在{{info.close_time.slice(-8)}}自动取消
+
系统将在1-7个工作日内原路退回您的原支付账户
-
+
您的退款金额已退还到您的原支付账户
-
+
-
+
+
+
+ 还剩{{item.remainNum}}张未核销
+
+
+
+
+
+ {{item.sku_name}}
+
+
+
+ 核销码:{{qrItem.use_code}}
+
+
+
+ 已核销
+
+
+ 已失效
+
+
+
+
+
+
+
+
+
+
+
+
+ 左右滑动核销其他二维码
+
+
+
+
+ 收货信息
+ {{item.consignee_info.name}} {{item.consignee_info.tel}}
+ {{item.consignee_info.address}}
+
+
+
+
{{item.product_title}}
-
+
出行时间:{{item.use_date}}
- 开放时间:{{item.use_date}}
+ 开放时间:{{item.scene_detail.open_time}}
{{item.sku_name}}
@@ -38,14 +89,87 @@
-
+
+
+ 自提信息
+
+
+
+
+ {{item.pickup_shop_info.title}}
+
+
+ {{item.pickup_shop_info.address}}
+
+
+
+
+
+ 电话
+
+
+
+ 导航
+
+
+
+
+
+
+
+
+
+
+ {{item.product_title}}
+ {{item.sku_name}}
+
+
+ ¥{{item.product_price / 100}}
+ x{{item.product_num}}
+
+
+
+
+
+
+ 入住信息
+
+ {{item.product_title}}
+
+
+
+
+
+
出行人
-
+
手机号:{{item.phone}}
-
+
商品总额:¥{{info.total_money / 100}}
@@ -54,10 +178,11 @@
优惠券:-¥{{info.preference_money / 100}}
- 实付金额:{{info.paid_money / 100}}
+ 实付金额:
+ {{info.paid_money / 100}}
-
+
订单信息
@@ -71,22 +196,25 @@
下单时间:{{info.close_time}}
-
-
-
- 联系客服
-
+
+