Browse Source

客户端-订单详情-处理 进退货业务逻辑

master
liutong 1 year ago
parent
commit
f7e52fae9d
  1. 1
      components/payment/payment.vue
  2. 8
      config/production.js
  3. 6
      page_goods/detail/detail.vue
  4. 16
      page_goods/orderDetail/orderDetail.vue
  5. 6
      pages.json
  6. 17
      pages_tool/order/refund_goods_select.vue
  7. 10
      pages_tool/order/refund_type_select.vue

1
components/payment/payment.vue

@ -11,7 +11,6 @@
<view class="pay-money">
<text class="money">支付金额{{ payMoney | moneyFormat }}</text>
</view>
<view class="payment-item" v-if="balanceDeduct > 0 && balanceUsable && balanceConfig == 1">
<view class="iconfont icon-yue"></view>
<view class="info-wrap">

8
config/production.js

@ -4,13 +4,13 @@
// api请求地址
// export const baseUrl = 'https://cbtadmin.jtyqt.com'
// export const baseUrl = 'https://cbtadmin.jtyqt.com'//测试地址1
export const baseUrl = 'http://devzhiyao.zeyan.wang'//测试地址2
// export const baseUrl = 'https://yaochangtest.first.xinzhidi.cn'//测试地址1
export const baseUrl = 'http://devzhiyao.zeyan.wang'//测试地址1
// 图片域名
// export const imgDomain='https://cbtadmin.jtyqt.com'
// export const imgDomain = 'https://cbtadmin.jtyqt.com'//测试地址1
export const imgDomain = 'http://devzhiyao.zeyan.wang'//测试地址2
// export const imgDomain = 'https://yaochangtest.first.xinzhidi.cn'//测试地址1
export const imgDomain = 'http://devzhiyao.zeyan.wang'//测试地址1
// 极光推送
export const PUSHCONFIG = {

6
page_goods/detail/detail.vue

@ -619,7 +619,7 @@
<template v-slot:action>
<!-- 商品底部导航 -->
<ns-goods-action :safeArea="isIphoneX">
<template v-if="goodsSkuDetail.goods_state == 1">
<!-- <template v-if="goodsSkuDetail.goods_state == 1"> -->
<ns-goods-action-icon text="收藏" v-if="goodsType==2 && token" @click="editCollection()" :icon="
whetherCollection == 1
? 'icon-likefill color-base-text'
@ -669,11 +669,11 @@
class="goods-action-button" :backgroundColor="themeStyle.bg_color"
:textColor="themeStyle.btn_text_color" text="立即购买" @click="buyNow" />
</block>
</template>
<!-- </template>
<template v-else>
<ns-goods-action-button class="goods-action-button active3" disabled-text="该商品已下架"
:disabled="true" />
</template>
</template> -->
</ns-goods-action>
</template>
</goods-detail-view>

16
page_goods/orderDetail/orderDetail.vue

@ -139,7 +139,10 @@
@error="imageError(goodsIndex)" mode="aspectFill"></image>
</view>
<view class="goods-info" @click="goDetail(goodsItem)">
<view class="goods-name">{{ goodsItem.sku_name }}</view>
<view class="goods-name" style="display: flex;align-items: center;justify-content: space-between;">
{{ goodsItem.sku_name }}
<text v-if="goodsItem.refund_type == 4">仅退货-{{goodsItem.refund_status_name}}</text>
</view>
<view class="sku" v-if="goodsItem.sku_spec_format">
<view class="goods-spec">
<block v-for="(x, i) in goodsItem.sku_spec_format" :key="i">
@ -711,6 +714,11 @@
//"orderPay"_actionArr
if (!_actionArr.includes('orderPay') && res.data.pay.pay_status == 0) {
this.isOrderPayShow = true
if (res.data.is_lock == 1){
this.isOrderPayShow = false
}else if(res.data.order_status == -1){
this.isOrderPayShow = false
}
}
@ -816,6 +824,12 @@
.order_id
});
break;
//退
case 'memberSalesReturn':
this.$util.redirectTo('/pages_tool/order/refund_type_select', {
order_id: this.orderData.order_id
});
break;
//退
case 'memberRefund':

6
pages.json

@ -583,6 +583,12 @@
"navigationBarTitleText": "退款申请"
}
},
{
"path": "order/sales_return",
"style": {
"navigationBarTitleText": "退货申请"
}
},
{
"path": "order/refund_select",
"style": {

17
pages_tool/order/refund_goods_select.vue

@ -144,10 +144,19 @@
this.getOrderIdInfo();
}
this.$util.redirectTo('/pages_tool/order/refund_batch', {
order_goods_id: this.order_goods_id.join(),
refund_type: this.refund_type
});
if (this.refund_type == '4') {
//退=4
alert(this.refund_type)
this.$util.redirectTo('/pages_tool/order/sales_return', {
order_goods_id: this.order_goods_id.join(),
refund_type: this.refund_type
});
}else{
this.$util.redirectTo('/pages_tool/order/refund_batch', {
order_goods_id: this.order_goods_id.join(),
refund_type: this.refund_type
});
}
},
/**
* 默认图片处理

10
pages_tool/order/refund_type_select.vue

@ -10,6 +10,7 @@
</view>
<text class="iconfont icon-right"></text>
</view>
<view class="option-item" @click="selectRefundType(2)" v-if="refund_data.order_status == 3">
<view>
<text>退货退款</text>
@ -17,6 +18,15 @@
</view>
<text class="iconfont icon-right"></text>
</view>
<view class="option-item" @click="selectRefundType(4)">
<view>
<text>仅退货</text>
<text class="font-size-goods-tag color-tip">仅退货</text>
</view>
<text class="iconfont icon-right"></text>
</view>
</view>
<loading-cover ref="loadingCover"></loading-cover>

Loading…
Cancel
Save