From f15081d210ecef676dd0d75e826ce80848131fd8 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Thu, 16 Apr 2026 10:29:37 +0800 Subject: [PATCH] 11 --- package1/order/orderDetail.vue | 8 +-- package1/order/orderEvaluate.vue | 110 ++++++++++++++++++++++++------- package1/order/orderList.vue | 7 +- 3 files changed, 98 insertions(+), 27 deletions(-) diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue index f862415..9b12064 100644 --- a/package1/order/orderDetail.vue +++ b/package1/order/orderDetail.vue @@ -446,7 +446,7 @@ + :value="orderDetail.id + '@@'+ orderDetail.shopId"> @@ -666,11 +666,11 @@ this.$refs.imgPopup.open() this.$refs.uqrcode.toTempFilePath({ success: res => { - data.path = res.tempFilePath - that.newQRList = data + console.log(res) + that.newQRList = res.tempFilePath }, fail: err => { - + console.log(err) } }); }, diff --git a/package1/order/orderEvaluate.vue b/package1/order/orderEvaluate.vue index 9c861bb..7a808bb 100644 --- a/package1/order/orderEvaluate.vue +++ b/package1/order/orderEvaluate.vue @@ -14,27 +14,27 @@ - 竹仔园牛仔农庄(第六分店) + {{shopData.shopName}} - + - + - 牛仔农庄(医专店) + {{item.productName}} - 打分;不要啦 + {{item.specs}} - X1 + X{{item.quantity}} - ¥90.00 + ¥{{item.price}} @@ -46,7 +46,7 @@ - 竹仔园牛仔农庄(第六分店) + {{shopData.shopName}} @@ -60,6 +60,24 @@ + + + + + + + + + + + + + 发图/发视频能更有效地帮助他人哦~ + + + 您对本次配送人员还满意吗? @@ -73,17 +91,17 @@ - + - - - + 发图/发视频能更有效地帮助他人哦~ @@ -105,7 +123,7 @@ - + 发布 @@ -118,10 +136,13 @@ data() { return { selected:'niming', - orderPicture:'', menuButtonInfo: {}, - shopEvaluateNum:0, - manEvaluateNum:0, + shopEvaluateNum:5, + manEvaluateNum:5, + shopRemark:'', + manRemark:'', + shopPicture:'', + manPicture:'', evalNumList:[{ name:'很糟糕', checked:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/aa045ef1faca4130a9483688054e5620.png', @@ -147,20 +168,61 @@ checked:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/90ef5af58d314c1bbabe8bd48aa49d22.png', noChecked:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/c1cce0db39264c6ea9b533137153fc36.png', index:5 - }] + }], + shopData:{} } }, onLoad(option) { - + this.shopData = JSON.parse(option.item) }, onShow() { this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() }, methods: { + submit(){ + let that = this; + let data = [{ //店铺 + parentId:'', + leve:0, + remark:this.shopRemark, + picture:this.shopPicture, + createBy:uni.getStorageSync('id'), + createByName:'微信用户', + createByIcon:'https://ooo.0o0.ooo/2019/04/28/5cc5a71a6e3b6.png', + score:this.shopEvaluateNum, + orderId:this.shopData.id, + shopId:this.shopData.shopId, + },{ //配送员 + parentId:'', + leve:0, + remark:this.shopRemark, + picture:this.manPicture, + createBy:uni.getStorageSync('id'), + createByName:'微信用户', + createByIcon:'https://ooo.0o0.ooo/2019/04/28/5cc5a71a6e3b6.png', + score:this.manEvaluateNum, + orderId:this.shopData.id, + shopId:this.shopData.shopId, + }] + that.tui.request("/app/comment/save", "POST", data, false, true).then((res) => { + if (res.code == 200) { + uni.showToast({ + title: "评论成功", + icon: 'none' + }) + setTimeout(res => { + this.back() + }, 1000) + } else { + that.tui.toast(res.message); + } + uni.hideLoading(); + }).catch((res) => {}); + }, checkVoucher(type) { this.selected = type; }, - pictureAdd(id, huan) { + pictureAdd(type) { let that = this uni.chooseMedia({ count: 1, @@ -172,13 +234,13 @@ mask: true }) for (let i = 0; i < res.tempFiles.length; i++) { - that.upLoadFile(res.tempFiles[i].tempFilePath) + that.upLoadFile(res.tempFiles[i].tempFilePath,type) } } }) }, - async upLoadFile(path) { + async upLoadFile(path,type) { let that = this; let hiver_token = uni.getStorageSync("hiver_token") await uni.uploadFile({ @@ -192,7 +254,11 @@ formData: {}, success: (uploadFileRes) => { let pathData = JSON.parse(uploadFileRes.data) - this.orderPicture = pathData.result + if(type == 'shop'){ + this.shopPicture = pathData.result + }else{ + this.manPicture = pathData.result + } that.$forceUpdate() }, fail: (err) => { diff --git a/package1/order/orderList.vue b/package1/order/orderList.vue index 6444f88..cea2bb1 100644 --- a/package1/order/orderList.vue +++ b/package1/order/orderList.vue @@ -195,7 +195,7 @@ 查看订单 - + 去评价