jufubao-base 1.0.243-beta201 → 1.0.245
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 +0 -13
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +1 -33
- 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/{JfbBaseAfterSales/JfbBaseAfterSalesLess.less → JfbBaseBalance/JfbBaseBalanceLess.less} +2 -2
- package/src/components/{JfbBaseAfterSales/JfbBaseAfterSalesMixin.js → JfbBaseBalance/JfbBaseBalanceMixin.js} +1 -1
- package/src/components/JfbBaseBalance/Mock.js +9 -0
- 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/{JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less → JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less} +2 -2
- package/src/components/{JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js → JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js} +1 -1
- package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
- package/src/components/JfbBaseConsumpCode/Api.js +133 -0
- package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1109 -0
- package/src/components/{JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less → JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less} +2 -2
- package/src/components/{JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js → JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js} +1 -1
- 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 +12 -0
- 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/{JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less → JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less} +2 -2
- package/src/components/{JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js → JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js} +1 -1
- 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 +457 -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 +131 -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 +0 -36
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +178 -39
- package/src/components/JfbBaseOrderList/Attr.js +0 -36
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +0 -30
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +5 -17
- package/src/components/JfbBasePay/Attr.js +52 -0
- package/src/components/JfbBasePay/JfbBasePay.vue +23 -6
- 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 +200 -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/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +11 -1
- 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 +9 -3
- 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 +337 -115
- package/src/components/JfbBaseUserOrder/Attr.js +16 -0
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
- 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
- package/src/components/JfbBaseAfterSales/Api.js +0 -58
- package/src/components/JfbBaseAfterSales/Attr.js +0 -25
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +0 -550
- package/src/components/JfbBaseAfterSales/Mock.js +0 -13
- package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +0 -150
- package/src/components/JfbBaseAfterSalesDetail/Api.js +0 -41
- package/src/components/JfbBaseAfterSalesDetail/Attr.js +0 -25
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +0 -538
- package/src/components/JfbBaseAfterSalesDetail/Mock.js +0 -60
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +0 -58
- package/src/components/JfbBaseAfterSalesFast/Api.js +0 -30
- package/src/components/JfbBaseAfterSalesFast/Attr.js +0 -32
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +0 -297
- package/src/components/JfbBaseAfterSalesFast/Mock.js +0 -38
- package/src/components/JfbBaseAfterSalesList/Api.js +0 -40
- package/src/components/JfbBaseAfterSalesList/Attr.js +0 -107
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +0 -463
- package/src/components/JfbBaseAfterSalesList/Mock.js +0 -362
|
@@ -1,463 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-after-sales-list"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-after-sales-list__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-after-sales-list__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-after-sales-list__body" :style="[bodyBoxStyle]">
|
|
17
|
-
<view class="fixed_header" :style="{
|
|
18
|
-
top: layoutInfo.top + 'rpx',
|
|
19
|
-
}">
|
|
20
|
-
<view class="filter_tab">
|
|
21
|
-
<view v-for="item in statusTabs" :key="item.value" class="filter_item"
|
|
22
|
-
:class="{active: item.value===status}"
|
|
23
|
-
@click="selectStatusTab(item.value)"
|
|
24
|
-
>{{ item.label }}</view>
|
|
25
|
-
</view>
|
|
26
|
-
<view class="search_bar" :style="{
|
|
27
|
-
backgroundColor: bodyBgColor
|
|
28
|
-
}">
|
|
29
|
-
<view class="search_box">
|
|
30
|
-
<xd-font-icon style="margin: 0 32rpx;" icon="iconsousuo_mian" size="32" color="#BBBBBB"></xd-font-icon>
|
|
31
|
-
<input type="text"
|
|
32
|
-
v-model="keyword"
|
|
33
|
-
style="width: 100%;"
|
|
34
|
-
confirm-type="search"
|
|
35
|
-
placeholder="请输入搜索内容"
|
|
36
|
-
@confirm="handleSearch"/>
|
|
37
|
-
</view>
|
|
38
|
-
|
|
39
|
-
</view>
|
|
40
|
-
</view>
|
|
41
|
-
|
|
42
|
-
<view style="height: 220rpx"></view>
|
|
43
|
-
|
|
44
|
-
<view v-if="loaded" class="service_list_wrap">
|
|
45
|
-
<view v-if="orderList.length" class="service_list">
|
|
46
|
-
<view v-for="item in orderList"
|
|
47
|
-
:key="item.service_order_id"
|
|
48
|
-
class="service_item"
|
|
49
|
-
:style="[cardItemBoxStyle]"
|
|
50
|
-
@click="handleToLink(item)">
|
|
51
|
-
<view class="service_header">
|
|
52
|
-
<view class="biz_name">
|
|
53
|
-
<xd-font-icon
|
|
54
|
-
v-if="item.business_icon"
|
|
55
|
-
class="biz_icon"
|
|
56
|
-
:icon="item.business_icon"
|
|
57
|
-
:size="28"
|
|
58
|
-
></xd-font-icon>
|
|
59
|
-
{{item.business_name}}</view>
|
|
60
|
-
<view class="service_type" :style="getMethodTypeStyle(item.after_sale_method)">{{ item.after_sale_method_name }}</view>
|
|
61
|
-
</view>
|
|
62
|
-
<view class="service_body">
|
|
63
|
-
<view class="service_number">服务单号:{{ item.service_order_id }}</view>
|
|
64
|
-
<view v-for="prod in item.product_list" :key="prod.product_id" class="prod_item">
|
|
65
|
-
<view class="prod_img">
|
|
66
|
-
<image :src="prod.thumb" mode="aspectFit"></image>
|
|
67
|
-
</view>
|
|
68
|
-
<view class="prod_info">
|
|
69
|
-
<view class="prod_title"> {{ prod.product_name }} </view>
|
|
70
|
-
<view class="prod_number">申请数量:×{{ prod.after_count }}</view>
|
|
71
|
-
</view>
|
|
72
|
-
</view>
|
|
73
|
-
</view>
|
|
74
|
-
<view class="service_foot">
|
|
75
|
-
<view v-if="item.is_show_cancel_btn === 'Y'" class="opt_btn primary" @click.stop="handleCancel(item)">撤销</view>
|
|
76
|
-
<view v-if="item.is_show_delete_btn === 'Y'" class="opt_btn" @click.stop="handleDel(item)">删除</view>
|
|
77
|
-
</view>
|
|
78
|
-
</view>
|
|
79
|
-
</view>
|
|
80
|
-
<view v-else>
|
|
81
|
-
<xd-no-data></xd-no-data>
|
|
82
|
-
</view>
|
|
83
|
-
</view>
|
|
84
|
-
</view>
|
|
85
|
-
</view>
|
|
86
|
-
</template>
|
|
87
|
-
|
|
88
|
-
<script>
|
|
89
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
90
|
-
import XdNoData from "@/components/XdNoData/XdNoData.vue"
|
|
91
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
92
|
-
import JfbBaseAfterSalesListMixin from "./JfbBaseAfterSalesListMixin";
|
|
93
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
94
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
95
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
96
|
-
import getServiceUrl from "@/common/getServiceUrl";
|
|
97
|
-
export default {
|
|
98
|
-
name: "JfbBaseAfterSalesList",
|
|
99
|
-
components: {
|
|
100
|
-
XdFontIcon,
|
|
101
|
-
XdNoData
|
|
102
|
-
},
|
|
103
|
-
mixins: [
|
|
104
|
-
componentsMixins, extsMixins, JfbBaseAfterSalesListMixin
|
|
105
|
-
],
|
|
106
|
-
data() {
|
|
107
|
-
return {
|
|
108
|
-
orderList: [],
|
|
109
|
-
|
|
110
|
-
loaded: false,
|
|
111
|
-
status: "2", //状态 0:全部 1:待处理,2:处理中 3:已完成
|
|
112
|
-
keyword: "",
|
|
113
|
-
page_size: 10,
|
|
114
|
-
page_token: 1,
|
|
115
|
-
hasNext: true,
|
|
116
|
-
next_page_token: "",
|
|
117
|
-
// showStatusFilter: "",
|
|
118
|
-
|
|
119
|
-
statusTabs: [
|
|
120
|
-
// { label: '全部', value: '0'},
|
|
121
|
-
// { label: '待处理', value: '1'},
|
|
122
|
-
{ label: '处理中', value: '2'},
|
|
123
|
-
{ label: '已完成', value: '3'},
|
|
124
|
-
],
|
|
125
|
-
|
|
126
|
-
bodyBgColor: "",
|
|
127
|
-
|
|
128
|
-
cardItemBgColor: "",
|
|
129
|
-
cardItemSpace: 20,
|
|
130
|
-
cardItemShadow: "",
|
|
131
|
-
cardItemBorder: "",
|
|
132
|
-
cardItemRadius: 16,
|
|
133
|
-
|
|
134
|
-
afterSalesDetailPath: "",
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
watch: {
|
|
139
|
-
container(value, oldValue) {
|
|
140
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
141
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
142
|
-
},
|
|
143
|
-
},
|
|
144
|
-
computed: {
|
|
145
|
-
bodyBoxStyle(){
|
|
146
|
-
return {
|
|
147
|
-
backgroundColor: this.bodyBgColor,
|
|
148
|
-
minHeight: this.layoutInfo.bodyMinHeight,
|
|
149
|
-
'--main-color': this.mainColor,
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
cardItemBoxStyle(){
|
|
153
|
-
return {
|
|
154
|
-
backgroundColor: this.cardItemBgColor,
|
|
155
|
-
marginBottom: this.cardItemSpace + 'rpx',
|
|
156
|
-
boxShadow: this.cardItemShadow,
|
|
157
|
-
border: this.cardItemBorder,
|
|
158
|
-
borderRadius: this.cardItemRadius + 'rpx',
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
created() {
|
|
163
|
-
this.init(this.container);
|
|
164
|
-
|
|
165
|
-
//todo
|
|
166
|
-
},
|
|
167
|
-
methods: {
|
|
168
|
-
onJfbLoad(options) {
|
|
169
|
-
this.getList();
|
|
170
|
-
},
|
|
171
|
-
/**
|
|
172
|
-
* @description 监听事件变化
|
|
173
|
-
* @param container {object} 业务组件对象自己
|
|
174
|
-
*/
|
|
175
|
-
init(container) {
|
|
176
|
-
// this.showStatusFilter = getContainerPropsValue(container, "content.showStatusFilter", "");
|
|
177
|
-
this.bodyBgColor = getContainerPropsValue(container, "content.bodyBgColor", "#EEEEEE");
|
|
178
|
-
|
|
179
|
-
this.cardItemBgColor = getContainerPropsValue(container, 'content.cardItemBgColor', "#FFFFFF");
|
|
180
|
-
this.cardItemSpace = getContainerPropsValue(container, 'content.cardItemSpace', 20);
|
|
181
|
-
this.cardItemShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.cardItemShadow', {}))
|
|
182
|
-
this.cardItemBorder = this.getXdBorder({width:2,color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.cardItemBorder', {}));
|
|
183
|
-
this.cardItemRadius = getContainerPropsValue(container, 'content.cardItemRadius', 16);
|
|
184
|
-
|
|
185
|
-
this.afterSalesDetailPath = getContainerPropsValue(container, "content.afterSalesDetailPath", { value: "" }).value;
|
|
186
|
-
},
|
|
187
|
-
getMethodTypeStyle(method){
|
|
188
|
-
switch (method) {
|
|
189
|
-
case "refund_and_good":
|
|
190
|
-
return { color: "#FF5733" };
|
|
191
|
-
case "refund":
|
|
192
|
-
return { color: "#FF5733" };
|
|
193
|
-
case "exchange":
|
|
194
|
-
return { color: "#2A82E4" };
|
|
195
|
-
case "again":
|
|
196
|
-
return { color: "#43CF7C" };
|
|
197
|
-
case "good":
|
|
198
|
-
return { color: "#FF8D1A" };
|
|
199
|
-
default:
|
|
200
|
-
return {};
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
handleSearch(e){
|
|
204
|
-
console.log("handleSearch",e)
|
|
205
|
-
this.page_token = 1;
|
|
206
|
-
this.getList();
|
|
207
|
-
},
|
|
208
|
-
selectStatusTab(status){
|
|
209
|
-
this.status = status;
|
|
210
|
-
this.page_token = 1;
|
|
211
|
-
uni.pageScrollTo({
|
|
212
|
-
scrollTop: 0,
|
|
213
|
-
duration: 0
|
|
214
|
-
});
|
|
215
|
-
this.getList();
|
|
216
|
-
},
|
|
217
|
-
handleCancel(item){
|
|
218
|
-
this.handleConfirm(() => {
|
|
219
|
-
jfbRootExec("cancelAfterServiceOrder", {
|
|
220
|
-
vm: this,
|
|
221
|
-
data:{
|
|
222
|
-
service_order_id: item.service_order_id
|
|
223
|
-
}
|
|
224
|
-
}).then(res => {
|
|
225
|
-
this.page_token = 1;
|
|
226
|
-
this.getList();
|
|
227
|
-
})
|
|
228
|
-
})
|
|
229
|
-
},
|
|
230
|
-
handleDel(item){
|
|
231
|
-
this.handleConfirm(() => {
|
|
232
|
-
jfbRootExec("delAfterServiceOrder", {
|
|
233
|
-
vm: this,
|
|
234
|
-
data:{
|
|
235
|
-
service_order_id: item.service_order_id
|
|
236
|
-
}
|
|
237
|
-
}).then(res => {
|
|
238
|
-
this.page_token = 1;
|
|
239
|
-
this.getList();
|
|
240
|
-
})
|
|
241
|
-
})
|
|
242
|
-
},
|
|
243
|
-
getList() {
|
|
244
|
-
this.$xdShowLoading({});
|
|
245
|
-
jfbRootExec("getAfterServiceOrderList", {
|
|
246
|
-
vm: this,
|
|
247
|
-
data: {
|
|
248
|
-
page_size: this.page_size,
|
|
249
|
-
page_token: this.page_token,
|
|
250
|
-
status: this.status,
|
|
251
|
-
keyword: this.keyword,
|
|
252
|
-
},
|
|
253
|
-
})
|
|
254
|
-
.then((res) => {
|
|
255
|
-
this.loaded = true;
|
|
256
|
-
this.$xdHideLoading();
|
|
257
|
-
let list = res.list.map(item => {
|
|
258
|
-
item.thumb = getServiceUrl(item.thumb, 'size2');
|
|
259
|
-
return item;
|
|
260
|
-
});
|
|
261
|
-
if (this.page_token === 1) {
|
|
262
|
-
this.orderList = list;
|
|
263
|
-
} else {
|
|
264
|
-
this.orderList = this.orderList.concat(list);
|
|
265
|
-
}
|
|
266
|
-
this.hasNext = res.next_page_token !== "";
|
|
267
|
-
this.next_page_token = res.next_page_token;
|
|
268
|
-
})
|
|
269
|
-
.catch((err) => {
|
|
270
|
-
this.$xdHideLoading();
|
|
271
|
-
});
|
|
272
|
-
},
|
|
273
|
-
handleToLink(item) {
|
|
274
|
-
this.$xdUniHelper.navigateTo({
|
|
275
|
-
url: `${this.afterSalesDetailPath}?service_order_id=${item.service_order_id}`,
|
|
276
|
-
});
|
|
277
|
-
},
|
|
278
|
-
handleConfirm(cb){
|
|
279
|
-
this.$xdConfirm({
|
|
280
|
-
styles: this.styles,
|
|
281
|
-
title: "提示",
|
|
282
|
-
width: '90%',
|
|
283
|
-
content: '确定删除当前工单吗?',
|
|
284
|
-
confirmText: '确认',
|
|
285
|
-
isHtml: true,
|
|
286
|
-
cancelText: '取消',
|
|
287
|
-
showClose: false,
|
|
288
|
-
success: (res) => {
|
|
289
|
-
if (res.confirm) {
|
|
290
|
-
cb && cb();
|
|
291
|
-
}
|
|
292
|
-
else{}
|
|
293
|
-
}
|
|
294
|
-
})
|
|
295
|
-
},
|
|
296
|
-
onJfbScroll(options) {
|
|
297
|
-
// console.log("event.onJfbScroll", options);
|
|
298
|
-
},
|
|
299
|
-
onJfbReachBottom(options) {
|
|
300
|
-
if (this.hasNext) {
|
|
301
|
-
this.page_token = this.next_page_token;
|
|
302
|
-
this.getList();
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
onJfbShow(options) {
|
|
306
|
-
// console.log('event.onJfbShow', options)
|
|
307
|
-
},
|
|
308
|
-
onJfbHide(options) {
|
|
309
|
-
console.log('event.onJfbHide', options)
|
|
310
|
-
},
|
|
311
|
-
onJfbBack(options) {
|
|
312
|
-
console.log('event.onJfbBack', options)
|
|
313
|
-
},
|
|
314
|
-
onJfbUpdate(...data) {
|
|
315
|
-
console.log('event.onJfbUpdate', data)
|
|
316
|
-
},
|
|
317
|
-
onJfbCustomEvent(options) {
|
|
318
|
-
console.log('event.onJfbReachBottom', options)
|
|
319
|
-
},
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
</script>
|
|
324
|
-
|
|
325
|
-
<style scoped lang="less">
|
|
326
|
-
@import "./JfbBaseAfterSalesListLess.less";
|
|
327
|
-
|
|
328
|
-
.jfb-base-after-sales-list {
|
|
329
|
-
&__body{
|
|
330
|
-
padding: 24rpx;
|
|
331
|
-
box-sizing: border-box;
|
|
332
|
-
.fixed_header{
|
|
333
|
-
position: fixed;
|
|
334
|
-
top: 0;
|
|
335
|
-
left: 0;
|
|
336
|
-
width: 100%;
|
|
337
|
-
z-index: 111;
|
|
338
|
-
}
|
|
339
|
-
.filter_tab{
|
|
340
|
-
display: flex;
|
|
341
|
-
align-items: center;
|
|
342
|
-
background-color: #FFFFFF;
|
|
343
|
-
justify-content: center;
|
|
344
|
-
height: 100rpx;
|
|
345
|
-
line-height: 100rpx;
|
|
346
|
-
border-bottom: 1px solid #DDD;
|
|
347
|
-
|
|
348
|
-
.filter_item{
|
|
349
|
-
margin: 0 40rpx;
|
|
350
|
-
font-size: 28rpx;
|
|
351
|
-
&.active{
|
|
352
|
-
border-bottom: 1px solid var(--main-color);
|
|
353
|
-
color: var(--main-color);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
.search_bar{
|
|
358
|
-
padding: 24rpx;
|
|
359
|
-
|
|
360
|
-
.search_box{
|
|
361
|
-
height: 80rpx;
|
|
362
|
-
display: flex;
|
|
363
|
-
align-items: center;
|
|
364
|
-
background-color: #FFFFFF;
|
|
365
|
-
border-radius: 80rpx;
|
|
366
|
-
::v-deep .input-placeholder{
|
|
367
|
-
color: #BBBBBB;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
.service_list_wrap{
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
.service_list{
|
|
375
|
-
|
|
376
|
-
}
|
|
377
|
-
.service_item{
|
|
378
|
-
padding: 32rpx;
|
|
379
|
-
.service_header{
|
|
380
|
-
display: flex;
|
|
381
|
-
align-items: center;
|
|
382
|
-
justify-content: space-between;
|
|
383
|
-
padding-bottom: 24rpx;
|
|
384
|
-
border-bottom: 1px solid #F2F2F2;
|
|
385
|
-
font-size: 28rpx;
|
|
386
|
-
font-weight: 500;
|
|
387
|
-
color: #333333;
|
|
388
|
-
.biz_name{
|
|
389
|
-
display: flex;
|
|
390
|
-
align-items: center;
|
|
391
|
-
.biz_icon{
|
|
392
|
-
margin-right: 16rpx;
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
.service_body{
|
|
397
|
-
.service_number{
|
|
398
|
-
font-size: 24rpx;
|
|
399
|
-
font-weight: 500;
|
|
400
|
-
color: #333333;
|
|
401
|
-
margin: 24rpx 0;
|
|
402
|
-
}
|
|
403
|
-
.prod_item{
|
|
404
|
-
display: flex;
|
|
405
|
-
align-items: center;
|
|
406
|
-
margin: 24rpx 0;
|
|
407
|
-
.prod_img{
|
|
408
|
-
width: 140rpx;
|
|
409
|
-
height: 140rpx;
|
|
410
|
-
border-radius: 16rpx;
|
|
411
|
-
background-color: #EEE;
|
|
412
|
-
image{
|
|
413
|
-
width: 100%;
|
|
414
|
-
height: 100%;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
.prod_info{
|
|
418
|
-
margin-left: 20rpx;
|
|
419
|
-
flex: 1;
|
|
420
|
-
align-self: stretch;
|
|
421
|
-
display: flex;
|
|
422
|
-
flex-direction: column;
|
|
423
|
-
justify-content: space-between;
|
|
424
|
-
.prod_title{
|
|
425
|
-
margin-bottom: 10rpx;
|
|
426
|
-
font-size: 28rpx;
|
|
427
|
-
color: #333333;
|
|
428
|
-
}
|
|
429
|
-
.prod_number{
|
|
430
|
-
color: #999999;
|
|
431
|
-
font-size: 24rpx;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
.service_foot{
|
|
437
|
-
text-align: right;
|
|
438
|
-
margin-top: 24rpx;
|
|
439
|
-
.opt_btn{
|
|
440
|
-
width: 120rpx;
|
|
441
|
-
height: 60rpx;
|
|
442
|
-
background: #FFFFFF;
|
|
443
|
-
color: #999999;
|
|
444
|
-
border: 1px solid #999999;
|
|
445
|
-
font-size: 24rpx;
|
|
446
|
-
text-align: center;
|
|
447
|
-
line-height: 60rpx;
|
|
448
|
-
border-radius: 60rpx;
|
|
449
|
-
display: inline-block;
|
|
450
|
-
& + .opt_btn{
|
|
451
|
-
margin-left: 20rpx;
|
|
452
|
-
}
|
|
453
|
-
&.primary{
|
|
454
|
-
background: var(--main-color);
|
|
455
|
-
border-color: var(--main-color);
|
|
456
|
-
color: #FFFFFF;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
</style>
|