订单详情跳转到售后

msb_beta
ch 3 years ago
parent f7ddd10bd5
commit 65bb0ea1e3

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-29 17:38:17 * @Date: 2022-03-29 17:38:17
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-15 11:29:32 * @LastEditTime: 2022-04-18 11:04:14
* @Description: file content * @Description: file content
*/ */
import {ToAsyncAwait, MsbRequestTk} from '@/common/utils'; import {ToAsyncAwait, MsbRequestTk} from '@/common/utils';
@ -98,7 +98,7 @@ export const ApiGetSaleAfterOrderList = (params) =>
* @param {*} data * @param {*} data
*/ */
export const ApiGetSaleAfterOrderDetail = (params) => export const ApiGetSaleAfterOrderDetail = (params) =>
ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/refundOrder/${params.refundId}`)); ToAsyncAwait(MsbRequestTk.get(`${BASE_URL}/app/refundOrder/refundInfo`, params));
/** /**
* 售后物流公司 * 售后物流公司
* @param {*} data * @param {*} data

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-17 17:42:32 * @Date: 2022-03-17 17:42:32
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-15 19:13:32 * @LastEditTime: 2022-04-18 10:04:10
* @Description: 项目接口请求统一处理器返回一个需要token和不需要token的请求封装方法 * @Description: 项目接口请求统一处理器返回一个需要token和不需要token的请求封装方法
*/ */
@ -11,8 +11,8 @@ import $store from '@/common/store';
const ENV = 'test'; const ENV = 'test';
const BASE_URL = { const BASE_URL = {
'test' : 'http://k8s-horse-gateway.mashibing.cn', // 'test' : 'http://k8s-horse-gateway.mashibing.cn',
// 'test' : '', 'test' : '',
'release' : '', 'release' : '',
'prod' : '' 'prod' : ''
}; };

@ -77,19 +77,13 @@
"devServer" : { "devServer" : {
"proxy" : { "proxy" : {
"/uc/" : { "/uc/" : {
"target" : "http://192.168.10.52:8090/" "target" : "http://192.168.10.109:8090/"
}, },
"/mall/trade/" : { "/mall/" : {
"target" : "http://192.168.10.52:8090/" "target" : "http://192.168.10.109:8090/"
},
"/mall/base/" : {
"target" : "http://192.168.10.52:8090/"
}, },
"/pay/" : { "/pay/" : {
"target" : "http://192.168.10.52:8090/" "target" : "http://192.168.10.109:8090/"
},
"/mall/product/" : {
"target" : "http://192.168.10.52:8090/"
} }
} }
} }

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-31 14:26:09 * @Date: 2022-03-31 14:26:09
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-15 18:42:30 * @LastEditTime: 2022-04-18 11:00:17
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -13,9 +13,14 @@
v-for="(item, index) in orderInfo.products" :data="item" :key="index"> v-for="(item, index) in orderInfo.products" :data="item" :key="index">
<template slot="operation"> <template slot="operation">
<view class="goods-info-operation"> <view class="goods-info-operation">
<UiButton size="min" type="primaryLine" <UiButton size="min" type="primaryLine" v-if="item.afterSaleApplyFlag"
v-if="item.afterSaleApplyFlag" @click="$Router.push(`/saleAfterSelect?id=${item.orderProductId}`)">申请售后</UiButton>
@click="$Router.push(`/saleAfterSelect?id=${item.orderProductId}`)">申请售后</UiButton> <template v-else>
<UiButton size="min" type="line" v-if="item.detailStatus === 3"
@click="$Router.push(`/saleAfterDetail?orderProductId=${item.orderProductId}`)">已退款</UiButton>
<UiButton size="min" type="line" v-if="item.detailStatus === 4"
@click="$Router.push(`/saleAfterDetail?orderProductId=${item.orderProductId}`)">退款关闭</UiButton>
</template>
</view> </view>
</template> </template>
</UiGoodsInfo> </UiGoodsInfo>

@ -2,7 +2,7 @@
* @Author: ch * @Author: ch
* @Date: 2022-03-31 14:26:09 * @Date: 2022-03-31 14:26:09
* @LastEditors: ch * @LastEditors: ch
* @LastEditTime: 2022-04-15 11:17:04 * @LastEditTime: 2022-04-18 11:01:25
* @Description: file content * @Description: file content
--> -->
<template> <template>
@ -54,7 +54,9 @@ export default {
* 获取订单最新信息 * 获取订单最新信息
*/ */
async getOrderInfo(){ async getOrderInfo(){
const {error, result} = await ApiGetSaleAfterOrderDetail({refundId:this.$Route.query.id}); const refundId = this.$Route.query.id;
const orderProductId = this.$Route.query.orderProductId;
const {error, result} = await ApiGetSaleAfterOrderDetail({refundId,orderProductId});
if(error){ if(error){
uni.$u.toast(error.message); uni.$u.toast(error.message);
return false; return false;

Loading…
Cancel
Save