jufubao-base 1.0.259 → 1.0.261

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.
Files changed (41) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
  3. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
  4. package/src/components/JfbBaseAfterSales/Api.js +58 -0
  5. package/src/components/JfbBaseAfterSales/Attr.js +25 -0
  6. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +598 -0
  7. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
  8. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
  9. package/src/components/JfbBaseAfterSales/Mock.js +6 -0
  10. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
  11. package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
  12. package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
  13. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +562 -0
  14. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
  15. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
  16. package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
  17. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
  18. package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
  19. package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
  20. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
  21. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
  22. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
  23. package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
  24. package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
  25. package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +512 -0
  27. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
  28. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
  29. package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
  30. package/src/components/JfbBaseCard/JfbBaseCard.vue +3 -1
  31. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -1
  32. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -1
  33. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +3 -1
  34. package/src/components/JfbBaseOrderDetail/Api.js +11 -0
  35. package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
  36. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +47 -2
  37. package/src/components/JfbBaseOrderList/Api.js +11 -0
  38. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  39. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
  40. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  41. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
@@ -0,0 +1,562 @@
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 class="sec_prod" 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 class="sec_prod" 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 default" @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.p_getAfterServiceOrder();
299
+ }).catch(err => {
300
+ this.p_getAfterServiceOrder();
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_prod + .sec_prod{
457
+ margin-top: 24rpx;
458
+ }
459
+ }
460
+ .sec_body{
461
+ font-size: 24rpx;
462
+ font-weight: 400;
463
+ .sec_prod + .sec_prod{
464
+ margin-top: 24rpx;
465
+ }
466
+ .sec_item{
467
+ display: flex;
468
+ align-items: center;
469
+ justify-content: space-between;
470
+ margin: 24rpx 0;
471
+ &:last-child{
472
+ margin-bottom: 0;
473
+ }
474
+ .sec_l{
475
+ color: #999999;
476
+ display: flex;
477
+ // align-items: center;
478
+ align-items: flex-start;
479
+ flex: 1;
480
+
481
+ .sec_l_text{
482
+ flex: 1;
483
+ width: 400rpx;
484
+ }
485
+
486
+ .img_list{
487
+ display: flex;
488
+ flex-wrap: wrap;
489
+ flex: 1;
490
+ .img_box{
491
+ width: 150rpx;
492
+ height: 150rpx;
493
+ border-radius: 8rpx;
494
+ border: 1px solid #E0E0E0;
495
+ margin-right: 20rpx;
496
+ margin-bottom: 20rpx;
497
+ &:nth-of-type(3n){
498
+ margin-right: 0;
499
+ }
500
+ image{
501
+ width: 100%;
502
+ height: 100%;
503
+ }
504
+ }
505
+ }
506
+ }
507
+ .sec_r{
508
+
509
+ ._copy{
510
+ width: 80rpx;
511
+ padding: 4rpx 20rpx;
512
+ border-radius: 24rpx;
513
+ color: #CCCCCC;
514
+ border: 1px solid #CCCCCC;
515
+ text-align: center;
516
+ }
517
+ }
518
+ }
519
+
520
+ }
521
+ }
522
+ .bottom_fixed{
523
+ position: fixed;
524
+ bottom: 0;
525
+ left: 0;
526
+ width: 100%;
527
+ padding: 20rpx;
528
+ box-sizing: border-box;
529
+ background: #FFFFFF;
530
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
531
+ text-align: right;
532
+
533
+ .opt_btn{
534
+ width: 120rpx;
535
+ height: 60rpx;
536
+ background: #FFFFFF;
537
+ color: #999999;
538
+ border: 1px solid #999999;
539
+ font-size: 24rpx;
540
+ text-align: center;
541
+ line-height: 60rpx;
542
+ border-radius: 60rpx;
543
+ display: inline-block;
544
+ & + .opt_btn{
545
+ margin-left: 20rpx;
546
+ }
547
+ &.default{
548
+ background: #EFEFEF;
549
+ border-color: #EFEFEF;
550
+ color: #999999;
551
+ width: 140rpx;
552
+ }
553
+ &.primary{
554
+ background: var(--main-color);
555
+ border-color: var(--main-color);
556
+ color: #FFFFFF;
557
+ }
558
+ }
559
+ }
560
+ }
561
+ }
562
+ </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
+ }