diff --git a/package.json b/package.json index 77ed897..cabcab0 100644 --- a/package.json +++ b/package.json @@ -72,6 +72,7 @@ "flyio": "^0.6.2", "less": "^4.1.3", "less-loader": "^4.1.0", + "node-sass": "^4.14.1", "regenerator-runtime": "^0.12.1", "vue": "^2.6.11", "vuex": "^3.2.0" diff --git a/src/components/order/action.vue b/src/components/order/action.vue index 7460e02..0cd507e 100644 --- a/src/components/order/action.vue +++ b/src/components/order/action.vue @@ -12,17 +12,17 @@ - + 评价师傅 - + 申请退款 - + 重新申请 @@ -53,18 +53,24 @@ export default { mounted() {}, destroyed() {}, methods: { + // 取消 cancelOrder() { this.$emit("cancelOrder"); }, + // 删除 delOrder() { this.$emit("delOrder"); }, + // 评价 appraiseOrder() { - this.$emit("appraiseOrder"); + // this.$emit("appraiseOrder"); + this.$utils.toPage('/pages/worker/appraise?id=' + this.order.worker.id); }, + // 退款 drawbackOrder() { this.$emit("drawbackOrder"); }, + // 重新提交 reapplyOrder() { this.$emit("reapplyOrder"); }, diff --git a/src/pages.json b/src/pages.json index 8520b2f..5f79d35 100644 --- a/src/pages.json +++ b/src/pages.json @@ -61,6 +61,12 @@ "navigationBarTitleText": "师傅详情" } }, + { + "path": "pages/worker/appraise", + "style": { + "navigationBarTitleText": "评价师傅" + } + }, { "path": "pages/demand/demand", "style": { diff --git a/src/pages/worker/appraise.vue b/src/pages/worker/appraise.vue new file mode 100644 index 0000000..28da71f --- /dev/null +++ b/src/pages/worker/appraise.vue @@ -0,0 +1,173 @@ +