diff --git a/common/api/user.js b/common/api/user.js index da6a466..eea1a1c 100644 --- a/common/api/user.js +++ b/common/api/user.js @@ -216,6 +216,19 @@ export default { page: page, }); }, + // 意见反馈列表 + getFeedbackList({ page }) { + return vm.$u.post('Feedback/feedbackList', { + page: page, + }); + }, + // 意见反馈-写意见 + writeFeedback({ fb_content, fb_images }) { + return vm.$u.post('Feedback/writeFeedback', { + fb_content: fb_content, + fb_images: fb_images, + }); + }, // 订单列表 getOrderList({ page, type }) { let params = { page: page }; @@ -224,11 +237,11 @@ export default { }, // 订单详情 getOrderInfo({ order_id }) { - return vm.$u.post('Goods/orderInfo', { order_id }); + return vm.$u.post('Goods/orderInfo', { order_id: order_id }); }, // 查询订单的评价信息 getOrderEvaluateInfo({ id }) { - return vm.$u.post('Order/getOrderEvaluateInfo', { id }); + return vm.$u.post('Order/getOrderEvaluateInfo', { id: id }); }, // 订单评价/修改评价 updateOrderEvaluate({ id, content, scores_one, scores_two, scores_three, file }) { @@ -241,6 +254,15 @@ export default { file: file, }); }, + // 上传图片视频 + uploadfile({ file }) { + const params = { + file: file + } + console.log(params); + + return vm.$u.post('Upload/uploadfile', params); + }, } } } \ No newline at end of file diff --git a/components/mine/order-item/index.vue b/components/mine/order-item/index.vue index a3a144d..cc7cb64 100644 --- a/components/mine/order-item/index.vue +++ b/components/mine/order-item/index.vue @@ -2,30 +2,32 @@ - - 胖胖的店 + + {{ order.extend_store.store_name }} - 交易成功 + {{ order.order_state | viewState }} - - - - 木糖少女小紫薯西装领连衣裙夏季新款女装夏收腰格子格纹裙子 - XL;红色条纹XL;红色条纹XL;红色条纹 - 距离结束:23:23:38 - 总价:¥99.00,实付款¥99 - - - 2020.05.17 + + + + + {{ goods.goods_name }} + XL;红色条纹XL;红色条纹XL;红色条纹 + 距离结束:23:23:38 + 总价:¥99.00,实付款¥99 + + + 2020.05.17 + - - 查看物流 - 立即评价 - 立即支付 - 联系官方客服 - 提交官方审核 + + 查看物流 + 立即评价 + 立即支付 + 联系官方客服 + 提交官方审核 @@ -35,12 +37,40 @@ export default { return {} }, props: { - current: Number + order: Object + }, + filters: { + viewState(value) { + let state; + switch (value) { + case 10: + state = '待支付'; + break; + case 0: + state = '已取消'; + break; + case 30: + state = '待收货'; + break; + case -1: + state = '试穿试送'; + break; + case 20: + state = '待评价'; + break; + case 40: + state = '售后'; + break; + default: + break; + } + return state; + }, }, methods: { toDetailsPage() { uni.navigateTo({ - url: '/pageE/order/Details?current=' + this.current + url: '/pageE/order/Details?order.order_state=' + this.order.order_state }); }, toLogistics() { @@ -87,49 +117,51 @@ export default { } } .goods-info { - display: flex; - margin-bottom: 28rpx; - > image { - flex-shrink: 0; - width: 180rpx; - height: 160rpx; - border-radius: 10rpx; - margin-right: 30rpx; - } - .goods-text { + .goods-item { display: flex; - flex-direction: column; - justify-content: space-between; - .goods-name { - font-size: 28rpx; - color: rgba(51,51,51,1); - line-height: 38rpx; + margin-bottom: 28rpx; + > image { + flex-shrink: 0; + width: 180rpx; + height: 160rpx; + border-radius: 10rpx; + margin-right: 30rpx; } - .goods-sku { - max-width: 230rpx; - background: rgba(236,236,236,1); - border-radius: 6rpx; - padding: 10rpx 15rpx; - font-size: 24rpx; - color: rgba(153,153,153,1); - } - .goods-time { - font-size: 24rpx; - color: rgba(255,49,49,1); - } - .goods-price { - font-size: 24rpx; - color: rgba(253,211,96,1); - } - .goods-date { + .goods-text { display: flex; - align-items: center; - font-size: 24rpx; - color: rgba(153,153,153,1); - > image { - width: 24rpx; - height: 24rpx; - margin-right: 21rpx; + flex-direction: column; + justify-content: space-between; + .goods-name { + font-size: 28rpx; + color: rgba(51,51,51,1); + line-height: 38rpx; + } + .goods-sku { + max-width: 230rpx; + background: rgba(236,236,236,1); + border-radius: 6rpx; + padding: 10rpx 15rpx; + font-size: 24rpx; + color: rgba(153,153,153,1); + } + .goods-time { + font-size: 24rpx; + color: rgba(255,49,49,1); + } + .goods-price { + font-size: 24rpx; + color: rgba(253,211,96,1); + } + .goods-date { + display: flex; + align-items: center; + font-size: 24rpx; + color: rgba(153,153,153,1); + > image { + width: 24rpx; + height: 24rpx; + margin-right: 21rpx; + } } } } diff --git a/pageE/mine/EditUserInfo.vue b/pageE/mine/EditUserInfo.vue index 9feea4c..182127c 100644 --- a/pageE/mine/EditUserInfo.vue +++ b/pageE/mine/EditUserInfo.vue @@ -1,7 +1,7 @@