jufubao-base 1.0.243-beta2 → 1.0.243-beta202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
- package/src/components/JfbBaseAfterSales/Api.js +58 -0
- package/src/components/JfbBaseAfterSales/Attr.js +25 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +587 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
- package/src/components/JfbBaseAfterSales/Mock.js +6 -0
- package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
- package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
- package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +547 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
- package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
- package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
- package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +488 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
- package/src/components/JfbBaseBalance/Api.js +46 -0
- package/src/components/JfbBaseBalance/Attr.js +316 -0
- package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
- package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
- package/src/components/JfbBaseBalance/Mock.js +9 -0
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +4 -6
- package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
- package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
- package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
- package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +10 -16
- package/src/components/JfbBaseConsumpCode/Api.js +133 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1111 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
- package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
- package/src/components/JfbBaseFastLink/Attr.js +12 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
- package/src/components/JfbBaseFooter/Attr.js +12 -0
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
- package/src/components/JfbBaseHeader/Attr.js +82 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
- package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
- package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +23 -13
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +6 -10
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +2 -16
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +3 -5
- package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
- package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
- package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
- package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
- package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
- package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
- package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
- package/src/components/JfbBaseOpenVip/Api.js +39 -0
- package/src/components/JfbBaseOpenVip/Attr.js +331 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +459 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
- package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
- package/src/components/JfbBaseOpenVip/Mock.js +7 -0
- package/src/components/JfbBaseOpenVip/XdVipList.vue +130 -0
- package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
- package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
- package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
- package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
- package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
- package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
- package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
- package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +211 -19
- package/src/components/JfbBaseOrderList/Api.js +11 -0
- package/src/components/JfbBaseOrderList/Attr.js +36 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +42 -41
- package/src/components/JfbBasePay/Mock.js +0 -9
- package/src/components/JfbBasePersonalData/Api.js +26 -0
- package/src/components/JfbBasePersonalData/Attr.js +13 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +278 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
- package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
- package/src/components/JfbBasePersonalData/Mock.js +13 -0
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +5 -21
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +40 -31
- package/src/components/JfbBasePointsCard/Api.js +18 -0
- package/src/components/JfbBasePointsCard/Attr.js +187 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
- package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
- package/src/components/JfbBasePointsCard/Mock.js +5 -0
- package/src/components/JfbBasePointsDetail/Api.js +48 -0
- package/src/components/JfbBasePointsDetail/Attr.js +305 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
- package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
- package/src/components/JfbBasePointsDetail/Mock.js +6 -0
- package/src/components/JfbBasePoster/Attr.js +1 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
- package/src/components/JfbBasePosterGroup/Api.js +22 -0
- package/src/components/JfbBasePosterGroup/Attr.js +156 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
- package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
- package/src/components/JfbBasePosterGroup/Mock.js +13 -0
- package/src/components/JfbBaseSavingDetail/Api.js +41 -0
- package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
- package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
- package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
- package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
- package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
- package/src/components/JfbBaseShare/Api.js +20 -0
- package/src/components/JfbBaseShare/Attr.js +59 -0
- package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
- package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
- package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
- package/src/components/JfbBaseShare/Mock.js +16 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +14 -3
- package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +11 -18
- package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
- package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
- package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
- package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
- package/src/components/JfbBaseUserInfo/Attr.js +175 -11
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +342 -119
- package/src/components/JfbBaseUserOrder/Attr.js +16 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +3 -5
- package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
- package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
- package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
- package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
- package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
- package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
- package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
- package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
- package/src/components/JfbBaseWithdraw/Api.js +48 -0
- package/src/components/JfbBaseWithdraw/Attr.js +328 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
- package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
- package/src/components/JfbBaseWithdraw/Mock.js +7 -0
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-base-after-sales-detail"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-base-after-sales-detail__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-base-after-sales-detail__edit-icon" @click="delEdit">删除</view>
|
|
14
|
+
</view>
|
|
15
|
+
<!-- #endif -->
|
|
16
|
+
<view v-if="loaded" class="jfb-base-after-sales-detail__body" :style="{
|
|
17
|
+
minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
|
|
18
|
+
'--main-color': mainColor
|
|
19
|
+
}">
|
|
20
|
+
<view class="service_progress">
|
|
21
|
+
<view class="service_head">
|
|
22
|
+
<view>服务进度</view>
|
|
23
|
+
<view class="head_sub">{{ currentStepContent }}</view>
|
|
24
|
+
</view>
|
|
25
|
+
<view class="service_step">
|
|
26
|
+
<template v-for="(step, i) in stepList">
|
|
27
|
+
<view v-if="step.key==='line'" :key="i" class="step_line"></view>
|
|
28
|
+
<view v-else class="step_item" :key="'1' + i">
|
|
29
|
+
<view>
|
|
30
|
+
<xd-font-icon v-if="step.is_finish" icon="icondui_fill" :size="28" color="#FFFFFF"></xd-font-icon>
|
|
31
|
+
<view v-else class="step_radio"></view>
|
|
32
|
+
</view>
|
|
33
|
+
<view class="step_text">{{ step.name }}</view>
|
|
34
|
+
</view>
|
|
35
|
+
</template>
|
|
36
|
+
</view>
|
|
37
|
+
</view>
|
|
38
|
+
|
|
39
|
+
<view style="margin-top: -100rpx;padding: 20rpx;">
|
|
40
|
+
|
|
41
|
+
<!-- 物流信息 -->
|
|
42
|
+
<view class="refund_section" v-if="logisticsInfo.length">
|
|
43
|
+
<view class="sec_title">物流信息</view>
|
|
44
|
+
<view class="sec_body">
|
|
45
|
+
<view class="sec_item" v-for="(item, i) in logisticsInfo" :key="i">
|
|
46
|
+
<view class="sec_l">
|
|
47
|
+
<view>{{item.label}}:</view>
|
|
48
|
+
<view style="color: #333333;">{{ item.value }}</view>
|
|
49
|
+
</view>
|
|
50
|
+
<view class="sec_r">
|
|
51
|
+
<view v-if="item.copy" class="_copy" @click="handleCopy(item.value)">复制</view>
|
|
52
|
+
</view>
|
|
53
|
+
</view>
|
|
54
|
+
</view>
|
|
55
|
+
</view>
|
|
56
|
+
|
|
57
|
+
<!-- 物流信息、退款明细 -->
|
|
58
|
+
<view class="refund_section" v-if="refundInfo.length">
|
|
59
|
+
<view class="sec_title">退款明细</view>
|
|
60
|
+
<view class="sec_body">
|
|
61
|
+
<view class="sec_item" v-for="(item, i) in refundInfo" :key="i">
|
|
62
|
+
<view class="sec_l">
|
|
63
|
+
<view>{{ item.label }}<text v-if="item.key !== 'price'">:</text></view>
|
|
64
|
+
<view v-if="item.key !== 'price'" style="color: #333333;">{{item.value}}</view>
|
|
65
|
+
</view>
|
|
66
|
+
<view class="sec_r">
|
|
67
|
+
<view v-if="item.key === 'price'">
|
|
68
|
+
<xd-unit
|
|
69
|
+
:price="item.value"
|
|
70
|
+
:isOld="false"
|
|
71
|
+
:fontSize="32"
|
|
72
|
+
iconSize="0.4"
|
|
73
|
+
></xd-unit>
|
|
74
|
+
</view>
|
|
75
|
+
<view v-if="item.copy" class="_copy" @click="handleCopy(item.value)">复制</view>
|
|
76
|
+
</view>
|
|
77
|
+
</view>
|
|
78
|
+
</view>
|
|
79
|
+
</view>
|
|
80
|
+
|
|
81
|
+
<!-- 新商品 -->
|
|
82
|
+
<view v-if="newProductList.length" class="refund_section">
|
|
83
|
+
<view class="sec_title">
|
|
84
|
+
<view class="sec_tag _new">新商品</view>
|
|
85
|
+
</view>
|
|
86
|
+
<view class="sec_body">
|
|
87
|
+
<SecProd v-for="(item,i) in newProductList" :key="i" :item="item"></SecProd>
|
|
88
|
+
</view>
|
|
89
|
+
</view>
|
|
90
|
+
|
|
91
|
+
<view class="refund_section">
|
|
92
|
+
<!-- 换货展示 -->
|
|
93
|
+
<view v-if="after_sale_method==='zero'" class="sec_title">
|
|
94
|
+
<view class="sec_tag _refund">退/换商品</view>
|
|
95
|
+
</view>
|
|
96
|
+
<view v-if="refundProductList.length" class="sec_title">
|
|
97
|
+
<SecProd v-for="(item, i) in refundProductList" :key="i" :item="item"></SecProd>
|
|
98
|
+
</view>
|
|
99
|
+
<view class="sec_body">
|
|
100
|
+
<view class="sec_item" v-for="(item, i) in orderInfoList" :key="i">
|
|
101
|
+
<view class="sec_l">
|
|
102
|
+
<view>{{item.label}}:</view>
|
|
103
|
+
<view v-if="item.key=='img'" class="img_list">
|
|
104
|
+
<view class="img_box" v-for="(img, ii) in item.value" :key="ii">
|
|
105
|
+
<image :src="img" mode="aspectFit" @click="handlePreview(ii)"></image>
|
|
106
|
+
</view>
|
|
107
|
+
</view>
|
|
108
|
+
<view v-else class="sec_l_text" style="color: #333333;">{{item.value}}</view>
|
|
109
|
+
</view>
|
|
110
|
+
<view v-if="item.copy" class="sec_r" >
|
|
111
|
+
<view class="_copy" @click="handleCopy(item.value)">复制</view>
|
|
112
|
+
</view>
|
|
113
|
+
</view>
|
|
114
|
+
</view>
|
|
115
|
+
</view>
|
|
116
|
+
</view>
|
|
117
|
+
<view v-if="baseInfo.is_show_cancel_btn==='Y' || baseInfo.is_show_delete_btn==='Y'" class="bottom_fixed" :style="prod_bottom">
|
|
118
|
+
<view v-if="baseInfo.is_show_cancel_btn==='Y'" class="opt_btn primary" @click="handleCancel">撤销</view>
|
|
119
|
+
<view v-if="baseInfo.is_show_delete_btn==='Y'" class="opt_btn" @click="handleDel">删除</view>
|
|
120
|
+
</view>
|
|
121
|
+
</view>
|
|
122
|
+
</view>
|
|
123
|
+
</template>
|
|
124
|
+
|
|
125
|
+
<script>
|
|
126
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
127
|
+
import XdRadio from "@/components/XdRadio/XdRadio"
|
|
128
|
+
import XdUnit from "@/components/XdUnit/XdUnit"
|
|
129
|
+
import XdButton from "@/components/XdButton/XdButton"
|
|
130
|
+
import SecProd from "./secProd.vue"
|
|
131
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
132
|
+
import JfbBaseAfterSalesDetailMixin from "./JfbBaseAfterSalesDetailMixin";
|
|
133
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
134
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
135
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
136
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
137
|
+
export default {
|
|
138
|
+
name: "JfbBaseAfterSalesDetail",
|
|
139
|
+
components: {
|
|
140
|
+
XdFontIcon,
|
|
141
|
+
XdRadio,
|
|
142
|
+
XdUnit,
|
|
143
|
+
XdButton,
|
|
144
|
+
SecProd
|
|
145
|
+
},
|
|
146
|
+
mixins: [
|
|
147
|
+
componentsMixins, extsMixins, JfbBaseAfterSalesDetailMixin
|
|
148
|
+
],
|
|
149
|
+
data() {
|
|
150
|
+
return {
|
|
151
|
+
stepList: [],
|
|
152
|
+
orderInfoList: [],
|
|
153
|
+
refundInfo: [],
|
|
154
|
+
logisticsInfo: [],
|
|
155
|
+
refundProductList: [],
|
|
156
|
+
newProductList: [],
|
|
157
|
+
baseInfo: {},
|
|
158
|
+
imgList: [],
|
|
159
|
+
//todo
|
|
160
|
+
service_order_id: "",
|
|
161
|
+
after_sale_method: "",
|
|
162
|
+
loaded: false,
|
|
163
|
+
serviceListPath: "",
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
computed: {
|
|
167
|
+
prod_bottom() {
|
|
168
|
+
return this.fixedStyle({ height: 20, zIndex: 111 });
|
|
169
|
+
},
|
|
170
|
+
//当前步骤(is_finish:true)的文案content
|
|
171
|
+
currentStepContent(){
|
|
172
|
+
//获取res.progress最后一个is_finish=true的节点
|
|
173
|
+
let res = this.stepList.filter(item => item.is_finish);
|
|
174
|
+
if(!res.length) return "";
|
|
175
|
+
return res[res.length-1].content;
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
watch: {
|
|
179
|
+
container(value, oldValue) {
|
|
180
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
181
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
created() {
|
|
185
|
+
this.init(this.container);
|
|
186
|
+
|
|
187
|
+
//todo
|
|
188
|
+
},
|
|
189
|
+
methods: {
|
|
190
|
+
onJfbLoad(options) {
|
|
191
|
+
this.service_order_id = options.service_order_id;
|
|
192
|
+
this.p_getAfterServiceOrder();
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
* @description 监听事件变化
|
|
196
|
+
* @param container {object} 业务组件对象自己
|
|
197
|
+
*/
|
|
198
|
+
init(container) {
|
|
199
|
+
this.serviceListPath = getContainerPropsValue(container, 'serviceListPath', {value: ""}).value;
|
|
200
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
201
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
202
|
+
},
|
|
203
|
+
p_getAfterServiceOrder(){
|
|
204
|
+
this.$xdShowLoading({});
|
|
205
|
+
jfbRootExec("getAfterServiceOrder", {
|
|
206
|
+
vm: this,
|
|
207
|
+
data: {
|
|
208
|
+
service_order_id: this.service_order_id,
|
|
209
|
+
}
|
|
210
|
+
}).then(res => {
|
|
211
|
+
this.$xdHideLoading();
|
|
212
|
+
this.baseInfo = res;
|
|
213
|
+
try{
|
|
214
|
+
var imgList = JSON.parse(res.refund_voucher);
|
|
215
|
+
imgList = imgList.map(item => {
|
|
216
|
+
return getServiceUrl(item)
|
|
217
|
+
})
|
|
218
|
+
this.imgList = imgList;
|
|
219
|
+
}catch(e){imgList=[]}
|
|
220
|
+
this.orderInfoList = [
|
|
221
|
+
{ label: "订单编号", value: res.main_order_id, copy: true },
|
|
222
|
+
{ label: "工单编号", value: res.work_order_id, copy: true },
|
|
223
|
+
{ label: "申请时间", value: this.$xdUniHelper.getDate( res["created_time"] * 1000 ).fullTime },
|
|
224
|
+
{ label: "售后类型", value: res.after_sale_method_name },
|
|
225
|
+
{ label: "申请原因", value: res.after_sale_type_name },
|
|
226
|
+
{ label: "问题描述", value: res.customer_feedback },
|
|
227
|
+
{ label: "凭证内容", value: imgList.length ? imgList : '无', key: imgList.length? "img" : ''}
|
|
228
|
+
];
|
|
229
|
+
this.stepList = [
|
|
230
|
+
res.progress[0],
|
|
231
|
+
{ key: "line"},
|
|
232
|
+
res.progress[1],
|
|
233
|
+
{ key: "line"},
|
|
234
|
+
res.progress[2],
|
|
235
|
+
]
|
|
236
|
+
|
|
237
|
+
//物流信息
|
|
238
|
+
if(res.express_info && res.express_info.express_number){
|
|
239
|
+
this.logisticsInfo = [
|
|
240
|
+
{ label: "物流单号", value: res.express_info.express_number, copy: true },
|
|
241
|
+
{ label: "快递公司", value: res.express_info.express_name }
|
|
242
|
+
]
|
|
243
|
+
}
|
|
244
|
+
//退换货商品
|
|
245
|
+
this.refundProductList = res.product_list.map(item => {
|
|
246
|
+
item.thumb = getServiceUrl(item.thumb, 'size2');
|
|
247
|
+
return item;
|
|
248
|
+
})
|
|
249
|
+
//新商品
|
|
250
|
+
this.newProductList = res.new_product_list.map(item => {
|
|
251
|
+
item.thumb = getServiceUrl(item.thumb, 'size2');
|
|
252
|
+
item.after_count = item.buy_count;
|
|
253
|
+
return item;
|
|
254
|
+
})
|
|
255
|
+
//售后类型
|
|
256
|
+
this.after_sale_method = res.after_sale_method;
|
|
257
|
+
//退款明细
|
|
258
|
+
this.refundInfo = res.refund_settlement.map(item => {
|
|
259
|
+
item.label = item.pay_info || item.pay_name;
|
|
260
|
+
item.value = item.pay_price;
|
|
261
|
+
item.key = 'price';
|
|
262
|
+
return item;
|
|
263
|
+
});
|
|
264
|
+
|
|
265
|
+
this.loaded = true;
|
|
266
|
+
})
|
|
267
|
+
},
|
|
268
|
+
handleCopy(text){
|
|
269
|
+
uni.setClipboardData({
|
|
270
|
+
data: text,
|
|
271
|
+
success: function () {
|
|
272
|
+
uni.showToast({
|
|
273
|
+
title: '复制成功',
|
|
274
|
+
icon: "none"
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
},
|
|
280
|
+
handleCancel(){
|
|
281
|
+
this.$xdConfirm({
|
|
282
|
+
styles: this.styles,
|
|
283
|
+
title: "提示",
|
|
284
|
+
width: '90%',
|
|
285
|
+
content: '确定撤销当前工单吗?',
|
|
286
|
+
confirmText: '确认',
|
|
287
|
+
isHtml: true,
|
|
288
|
+
cancelText: '取消',
|
|
289
|
+
showClose: false,
|
|
290
|
+
success: (res) => {
|
|
291
|
+
if (res.confirm) {
|
|
292
|
+
jfbRootExec("cancelAfterServiceOrder", {
|
|
293
|
+
vm: this,
|
|
294
|
+
data: {
|
|
295
|
+
service_order_id: this.service_order_id
|
|
296
|
+
}
|
|
297
|
+
}).then(res => {
|
|
298
|
+
this.$xdUniHelper.navigateTo({
|
|
299
|
+
url: this.serviceListPath
|
|
300
|
+
})
|
|
301
|
+
})
|
|
302
|
+
}
|
|
303
|
+
else{
|
|
304
|
+
console.log('取消')
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
})
|
|
308
|
+
},
|
|
309
|
+
handleDel(){
|
|
310
|
+
this.$xdConfirm({
|
|
311
|
+
styles: this.styles,
|
|
312
|
+
title: "提示",
|
|
313
|
+
width: '90%',
|
|
314
|
+
content: '确定删除当前工单吗?',
|
|
315
|
+
confirmText: '确认',
|
|
316
|
+
isHtml: true,
|
|
317
|
+
cancelText: '取消',
|
|
318
|
+
showClose: false,
|
|
319
|
+
success: (res) => {
|
|
320
|
+
if (res.confirm) {
|
|
321
|
+
jfbRootExec("delAfterServiceOrder", {
|
|
322
|
+
vm: this,
|
|
323
|
+
data:{
|
|
324
|
+
service_order_id: this.service_order_id
|
|
325
|
+
}
|
|
326
|
+
}).then(res => {
|
|
327
|
+
this.$xdUniHelper.navigateTo({
|
|
328
|
+
url: this.serviceListPath
|
|
329
|
+
})
|
|
330
|
+
})
|
|
331
|
+
}
|
|
332
|
+
else{
|
|
333
|
+
console.log('取消')
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
})
|
|
337
|
+
},
|
|
338
|
+
handlePreview(i){
|
|
339
|
+
uni.previewImage({
|
|
340
|
+
current: i,
|
|
341
|
+
urls: this.imgList
|
|
342
|
+
})
|
|
343
|
+
},
|
|
344
|
+
onJfbScroll(options) {
|
|
345
|
+
// console.log('event.onJfbScroll', options)
|
|
346
|
+
},
|
|
347
|
+
onJfbReachBottom(options) {
|
|
348
|
+
console.log('event.onJfbReachBottom', options)
|
|
349
|
+
},
|
|
350
|
+
onJfbShow(options) {
|
|
351
|
+
console.log('event.onJfbShow', options)
|
|
352
|
+
},
|
|
353
|
+
onJfbHide(options) {
|
|
354
|
+
console.log('event.onJfbHide', options)
|
|
355
|
+
},
|
|
356
|
+
onJfbBack(options) {
|
|
357
|
+
console.log('event.onJfbBack', options)
|
|
358
|
+
},
|
|
359
|
+
onJfbUpdate(...data) {
|
|
360
|
+
console.log('event.onJfbUpdate', data)
|
|
361
|
+
},
|
|
362
|
+
onJfbCustomEvent(options) {
|
|
363
|
+
console.log('event.onJfbReachBottom', options)
|
|
364
|
+
},
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
</script>
|
|
369
|
+
|
|
370
|
+
<style scoped lang="less">
|
|
371
|
+
@import "./JfbBaseAfterSalesDetailLess.less";
|
|
372
|
+
|
|
373
|
+
.jfb-base-after-sales-detail {
|
|
374
|
+
&__body{
|
|
375
|
+
background: #FAFAFA;
|
|
376
|
+
padding-bottom: 100rpx;
|
|
377
|
+
box-sizing: border-box;
|
|
378
|
+
.service_progress{
|
|
379
|
+
height: 320rpx;
|
|
380
|
+
background: linear-gradient(270deg, #FF8469 0%, #FF5252 100%);
|
|
381
|
+
color: #FFFFFF;
|
|
382
|
+
padding: 40rpx;
|
|
383
|
+
box-sizing: border-box;
|
|
384
|
+
.service_head{
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
font-size: 32rpx;
|
|
388
|
+
font-weight: 500;
|
|
389
|
+
justify-content: space-between;
|
|
390
|
+
.head_sub{
|
|
391
|
+
font-size: 24rpx;
|
|
392
|
+
font-weight: 400;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
.service_step{
|
|
396
|
+
display: flex;
|
|
397
|
+
align-items: center;
|
|
398
|
+
justify-content: space-between;
|
|
399
|
+
font-size: 24rpx;
|
|
400
|
+
font-weight: 400;
|
|
401
|
+
margin-top: 48rpx;
|
|
402
|
+
.step_item{
|
|
403
|
+
display: flex;
|
|
404
|
+
flex-direction: column;
|
|
405
|
+
align-items: center;
|
|
406
|
+
|
|
407
|
+
.step_radio{
|
|
408
|
+
width: 24rpx;
|
|
409
|
+
height: 24rpx;
|
|
410
|
+
background: rgba(255, 255, 255, 0.3);
|
|
411
|
+
border: 2px solid #FFFFFF;
|
|
412
|
+
border-radius: 24rpx;
|
|
413
|
+
box-sizing: border-box;
|
|
414
|
+
}
|
|
415
|
+
.step_text{
|
|
416
|
+
margin-top: 8rpx;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
.step_line{
|
|
420
|
+
width: 146rpx;
|
|
421
|
+
height: 4rpx;
|
|
422
|
+
background: #FFFFFF;
|
|
423
|
+
border-radius: 4rpx;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
.refund_section{
|
|
428
|
+
background: #FFFFFF;
|
|
429
|
+
border-radius: 16rpx;
|
|
430
|
+
padding: 24rpx 40rpx;
|
|
431
|
+
box-sizing: border-box;
|
|
432
|
+
margin-bottom: 20rpx;
|
|
433
|
+
.sec_tag{
|
|
434
|
+
border-radius: 8rpx;
|
|
435
|
+
padding: 4rpx 16rpx;
|
|
436
|
+
font-size: 24rpx;
|
|
437
|
+
font-weight: 400;
|
|
438
|
+
display: inline-block;
|
|
439
|
+
&._new{
|
|
440
|
+
background: #FFDEDE;
|
|
441
|
+
color: #F00000;
|
|
442
|
+
}
|
|
443
|
+
&._refund{
|
|
444
|
+
background: #E6EEFF;
|
|
445
|
+
color: #0070F0;
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
.sec_title{
|
|
449
|
+
padding-bottom: 24rpx;
|
|
450
|
+
border-bottom: 1px solid #EEEEEE;
|
|
451
|
+
font-size: 26rpx;
|
|
452
|
+
color: #333333;
|
|
453
|
+
font-weight: 500;
|
|
454
|
+
margin-bottom: 24rpx;
|
|
455
|
+
}
|
|
456
|
+
.sec_body{
|
|
457
|
+
font-size: 24rpx;
|
|
458
|
+
font-weight: 400;
|
|
459
|
+
.sec_item{
|
|
460
|
+
display: flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
justify-content: space-between;
|
|
463
|
+
margin: 24rpx 0;
|
|
464
|
+
&:last-child{
|
|
465
|
+
margin-bottom: 0;
|
|
466
|
+
}
|
|
467
|
+
.sec_l{
|
|
468
|
+
color: #999999;
|
|
469
|
+
display: flex;
|
|
470
|
+
// align-items: center;
|
|
471
|
+
align-items: flex-start;
|
|
472
|
+
flex: 1;
|
|
473
|
+
|
|
474
|
+
.sec_l_text{
|
|
475
|
+
flex: 1;
|
|
476
|
+
width: 400rpx;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
.img_list{
|
|
480
|
+
display: flex;
|
|
481
|
+
flex-wrap: wrap;
|
|
482
|
+
flex: 1;
|
|
483
|
+
.img_box{
|
|
484
|
+
width: 150rpx;
|
|
485
|
+
height: 150rpx;
|
|
486
|
+
border-radius: 8rpx;
|
|
487
|
+
border: 1px solid #E0E0E0;
|
|
488
|
+
margin-right: 20rpx;
|
|
489
|
+
margin-bottom: 20rpx;
|
|
490
|
+
&:nth-of-type(3n){
|
|
491
|
+
margin-right: 0;
|
|
492
|
+
}
|
|
493
|
+
image{
|
|
494
|
+
width: 100%;
|
|
495
|
+
height: 100%;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
.sec_r{
|
|
501
|
+
width: 100rpx;
|
|
502
|
+
._copy{
|
|
503
|
+
padding: 4rpx 20rpx;
|
|
504
|
+
border-radius: 24rpx;
|
|
505
|
+
color: #CCCCCC;
|
|
506
|
+
border: 1px solid #CCCCCC;
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
.bottom_fixed{
|
|
514
|
+
position: fixed;
|
|
515
|
+
bottom: 0;
|
|
516
|
+
left: 0;
|
|
517
|
+
width: 100%;
|
|
518
|
+
padding: 20rpx;
|
|
519
|
+
box-sizing: border-box;
|
|
520
|
+
background: #FFFFFF;
|
|
521
|
+
box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
|
|
522
|
+
text-align: right;
|
|
523
|
+
|
|
524
|
+
.opt_btn{
|
|
525
|
+
width: 120rpx;
|
|
526
|
+
height: 60rpx;
|
|
527
|
+
background: #FFFFFF;
|
|
528
|
+
color: #999999;
|
|
529
|
+
border: 1px solid #999999;
|
|
530
|
+
font-size: 24rpx;
|
|
531
|
+
text-align: center;
|
|
532
|
+
line-height: 60rpx;
|
|
533
|
+
border-radius: 60rpx;
|
|
534
|
+
display: inline-block;
|
|
535
|
+
& + .opt_btn{
|
|
536
|
+
margin-left: 20rpx;
|
|
537
|
+
}
|
|
538
|
+
&.primary{
|
|
539
|
+
background: var(--main-color);
|
|
540
|
+
border-color: var(--main-color);
|
|
541
|
+
color: #FFFFFF;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
</style>
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @desc 获取绝对路径完整地址
|
|
3
|
+
* @param @path
|
|
4
|
+
**/
|
|
5
|
+
//例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
|
|
6
|
+
@basePath: 'business/';
|
|
7
|
+
@doMain: '//sandbox-img.jufubao.cn/';
|
|
8
|
+
|
|
9
|
+
.getBusinessImageUrl(@path, @size: 'size8') {
|
|
10
|
+
@url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
|
|
11
|
+
background-image: url(@url);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//start
|
|
15
|
+
.jfb-base-after-sales-detail {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
&__body{
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
z-index: 2
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&.editx,&.editx:hover {
|
|
25
|
+
position: relative;
|
|
26
|
+
min-height: unit(100, rpx);
|
|
27
|
+
z-index: 3;
|
|
28
|
+
&::after {
|
|
29
|
+
border: 2rpx dashed blue;
|
|
30
|
+
content: " ";
|
|
31
|
+
position: absolute;
|
|
32
|
+
top:0;
|
|
33
|
+
left:0;
|
|
34
|
+
bottom:0;
|
|
35
|
+
right:0;
|
|
36
|
+
z-index: 4;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(-52, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
line-height: unit(50, rpx);
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .6);
|
|
54
|
+
border-radius: unit(10, rpx);
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
|
|
59
|
+
&-icon{
|
|
60
|
+
padding: 0 unit(20, rpx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.editx {
|
|
64
|
+
box-sizing: border-box;
|
|
65
|
+
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//end
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/**notPreview**/
|
|
73
|
+
.jfb-base-after-sales-detail {
|
|
74
|
+
//&:before {
|
|
75
|
+
//content: " ";
|
|
76
|
+
//display: table;
|
|
77
|
+
//}
|
|
78
|
+
}
|
|
79
|
+
/**endNotPreview**/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
//@AttrImport
|
|
5
|
+
import Attr from "./Attr";
|
|
6
|
+
//@EndAttrImport
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
//#ifdef H5
|
|
13
|
+
|
|
14
|
+
//@AttrData
|
|
15
|
+
Attr:{}, //对外开发编辑属性
|
|
16
|
+
//@EndAttrData
|
|
17
|
+
|
|
18
|
+
// #endif
|
|
19
|
+
cssRoot: 'jfb-base-after-sales-detail'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|