diff --git a/pages.json b/pages.json
index c71cc4b..507c667 100644
--- a/pages.json
+++ b/pages.json
@@ -267,6 +267,12 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "order/writeComment",
+ "style": {
+ "navigationBarTitleText": "填写评价"
+ }
+ },
{
"path": "user/bindTel",
"style": {
@@ -351,6 +357,12 @@
"navigationBarTitleText": "游踪指南",
"navigationStyle": "custom"
}
+ },
+ {
+ "path": "order/commentList",
+ "style": {
+ "navigationBarTitleText": "用户评价"
+ }
}
]
}],
diff --git a/static/js/CommonFunction.js b/static/js/CommonFunction.js
index 46e8e72..5ff37f0 100644
--- a/static/js/CommonFunction.js
+++ b/static/js/CommonFunction.js
@@ -283,7 +283,28 @@ Vue.prototype.goDetailByType= function(item){
url: `${detailData.url}?id=${(['ticket','hotel'].includes(detailData.genre)?item.scenic_id:item.id)}`
})
}
-
-
-
}
+
+// 是否接收订阅消息
+Vue.prototype.getSubscribeMessage = () => {
+ const templateIds = [
+ // 退款成功通知
+ 'hRZoiEES2BWtKb6Xgsnn8khLQH9un5j_11qu0bwlhfE',
+ // 订单核销通知
+ // '7D-JP7o0nQ_NiQk2w8mBs8jdT1_7ofvyBN-G9NLY2Zk',
+ // 订单支付成功通知
+ // '6cHez9KDlCDp1_nWUlUSV7qEaahIQWmYVlOCE-J6ODQ',
+ // 出票失败提醒
+ // 'G-N85zK2gPwgTRZWQrtHZo_-5TFcdAqBxSk4qsqcvVc',
+ // 出票结果通知
+ 'YyTCUIYBnrj9CyKks8cOjNX_Rk8a4yVdswMP-zXVbhc'
+ ]
+ uni.requestSubscribeMessage({
+ tmplIds: templateIds,
+ complete (res) {
+ uni.navigateTo({
+ url: '/subPackages/order/trades'
+ })
+ }
+ })
+}
\ No newline at end of file
diff --git a/subPackages/order/commentList.vue b/subPackages/order/commentList.vue
new file mode 100644
index 0000000..1cddc55
--- /dev/null
+++ b/subPackages/order/commentList.vue
@@ -0,0 +1,349 @@
+
+
+
+
+
+
+
+ {{item.user.username ? item.user.username : '匿名用户'}}
+
+
+ {{item.create_time.substring(0,10)}}
+
+
+
+
+ |
+
+ {{item.goods_name}}
+
+
+
+
+ {{item.content}}
+
+
+
+ 收起
+
+
+ 展开
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 暂无评论~
+
+
+
+
+
+
+
+
diff --git a/subPackages/order/detail.vue b/subPackages/order/detail.vue
index 90f129c..3691c61 100644
--- a/subPackages/order/detail.vue
+++ b/subPackages/order/detail.vue
@@ -382,6 +382,10 @@
关闭订单
+
+
+ 立即评价
+
+
+
+
+
+
+ {{info.specifications_name}}
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
diff --git a/subPackages/ticketBooking/order.vue b/subPackages/ticketBooking/order.vue
index eeb0d74..8d25512 100644
--- a/subPackages/ticketBooking/order.vue
+++ b/subPackages/ticketBooking/order.vue
@@ -1052,7 +1052,10 @@
paySign: res.data.paySign,
signType: res.data.signType,
timeStamp: res.data.timeStamp,
- complete() {
+ success: () => {
+ this.getSubscribeMessage()
+ },
+ fail() {
uni.navigateTo({
url: '/subPackages/order/trades'
})