订单详情跳转到售后

msb_beta
ch 3 years ago
parent f7ddd10bd5
commit 65bb0ea1e3

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

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

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

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

@ -2,7 +2,7 @@
* @Author: ch
* @Date: 2022-03-31 14:26:09
* @LastEditors: ch
* @LastEditTime: 2022-04-15 11:17:04
* @LastEditTime: 2022-04-18 11:01:25
* @Description: file content
-->
<template>
@ -54,7 +54,9 @@ export default {
* 获取订单最新信息
*/
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){
uni.$u.toast(error.message);
return false;

Loading…
Cancel
Save