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 @@ + + + + + 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 @@ 关闭订单 + + + 立即评价 + index ? 'star-seld.png' : 'star.png')" + v-for="(item,index) in 5" :key="index" @click="changeStar(item)" class="starImg"/> + --> + +