diff --git a/package1/group/shopEvaluate.vue b/package1/group/shopEvaluate.vue index 5a74243..5043c31 100644 --- a/package1/group/shopEvaluate.vue +++ b/package1/group/shopEvaluate.vue @@ -263,9 +263,7 @@ }).catch((res) => {}); }, toggleReply(i,m) { - this.shopComments[i].comments[m].isOpen = !this.shopComments[i].comments[m].isOpen; - console.log("11111",this.shopComments) this.$forceUpdate() }, changeStatus(v){ diff --git a/package1/order/orderDetail.vue b/package1/order/orderDetail.vue index 70509fc..b155036 100644 --- a/package1/order/orderDetail.vue +++ b/package1/order/orderDetail.vue @@ -519,22 +519,43 @@ 选择退款原因 - + 全额退款(商家原因) - + 全额退款(配送员原因) - + 全额退款(商家+配送员原因) + + + 其他 + - + + + + 申请说明 + + + + + + + + + + + + + - 确定要取消订单吗 + 取消订单需要商家同意 商家还未出餐 @@ -734,6 +755,52 @@ } }); }, + pictureAdd(id, huan) { + let that = this + uni.chooseMedia({ + count: 9, + mediaType: ['image'], + sourceType: ['album', 'camera'], + success(res) { + uni.showLoading({ + title: '加载中...', + mask: true + }) + for (let i = 0; i < res.tempFiles.length; i++) { + that.upLoadFile(res.tempFiles[i].tempFilePath) + } + } + }) + }, + async upLoadFile(path) { + let that = this; + let hiver_token = uni.getStorageSync("hiver_token") + await uni.uploadFile({ + url: that.tui.interfaceUrl() + '/upload/file', + filePath: path, + name: 'file', + header: { + "content-type": "multipart/form-data", + 'accessToken': hiver_token + }, + formData: {}, + success: (uploadFileRes) => { + let pathData = JSON.parse(uploadFileRes.data) + that.returnData.pictures = pathData.result + that.$forceUpdate() + }, + fail: (err) => { + uni.hideLoading(); + uni.showToast({ + title: JSON.stringify(err), + icon: 'none' + }) + } + }); + await setTimeout(res => { + uni.hideLoading(); + }, 1000) + }, //立即备餐 makeMeal(){ let that = this;