jufubao-base 1.0.260 → 1.0.262-beta1

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 (40) 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/JfbBaseCardV2/JfbBaseCardV2.vue +3 -1
  32. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +3 -1
  33. package/src/components/JfbBaseOrderDetail/Api.js +11 -0
  34. package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
  35. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +47 -2
  36. package/src/components/JfbBaseOrderList/Api.js +11 -0
  37. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  38. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
  39. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  40. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
@@ -0,0 +1,598 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-after-sales"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-after-sales__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-after-sales__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-after-sales__body" :style="{
17
+ minHeight: layoutInfo.bodyMinHeightRpx + 'rpx',
18
+ '--main-color': mainColor
19
+ }">
20
+ <template v-if="step == 1">
21
+ <view class="s_type_box">
22
+ <view class="s_type_title">请选择售后类型</view>
23
+ <view class="service_types">
24
+ <view class="service_item"
25
+ :class="{ active: item.value === after_sale_method }"
26
+ v-for="item in afterSalesMethod" :key="item.value"
27
+ @click="handleSelectAfterSalesMethod(item)"
28
+ >{{ item.label }}</view>
29
+ </view>
30
+ </view>
31
+
32
+ <RefundOrderInfo :list="productList"
33
+ :orderNumber="baseInfo.main_order_id"
34
+ :showRadio="canChoseProduct"
35
+ :showNumberSet="canSetNumber"
36
+ @change="handleSelectProduct"
37
+ ></RefundOrderInfo>
38
+
39
+ <view class="bottom_fixed" :style="prod_bottom">
40
+ <xd-button type="primary" @click="handleStepNext">下一步</xd-button>
41
+ </view>
42
+ </template>
43
+
44
+ <template v-if="step == 2">
45
+ <RefundOrderInfo :list="service_product_list"
46
+ :showRadio="false"
47
+ :orderNumber="baseInfo.main_order_id"
48
+ ></RefundOrderInfo>
49
+
50
+ <view class="list_section section_inline" @click="toChoseReason">
51
+ <view class="sec_label">
52
+ <view class="label_require">*</view>
53
+ <view>申请原因</view>
54
+ </view>
55
+ <view class="sec_content">
56
+ <view>{{ afterSaleTypeText }}</view>
57
+ <xd-font-icon icon="iconxiangyou_xian" :size="28" style="margin-left: 8rpx;"></xd-font-icon>
58
+ </view>
59
+ </view>
60
+ <view class="list_section">
61
+ <view class="sec_label">
62
+ <view class="label_require">*</view>
63
+ <view>问题描述</view>
64
+ </view>
65
+ <view class="sec_content">
66
+ <textarea v-model="customer_feedback"
67
+ placeholder="请描述您遇到的问题"
68
+ style="width: 100%;background:#FAFAFA;height: 140rpx;padding: 16rpx;border-radius: 8rpx;font-size: 24rpx;"
69
+ ></textarea>
70
+ </view>
71
+ </view>
72
+
73
+ <view class="list_section">
74
+ <view class="sec_label">
75
+ <view>上传凭证</view>
76
+ <view class="label_sub">最多9张</view>
77
+ </view>
78
+ <view class="sec_content">
79
+ <view class="img_list">
80
+ <view class="img_box" v-for="(img, i) in showRefundImages" :key="i">
81
+ <image :src="img" class="img_item" mode="aspectFit" @click="handlePreview(i)"></image>
82
+ </view>
83
+ <view v-if="showRefundImages.length < 9" class="img_box img_add" @click="doAddImage">
84
+ <view class="icon">+</view>
85
+ </view>
86
+ </view>
87
+ </view>
88
+ </view>
89
+
90
+ <view class="bottom_fixed" :style="prod_bottom">
91
+ <xd-button type="primary" @click="handleApplyRefund">提交申请</xd-button>
92
+ </view>
93
+ </template>
94
+ <xd-down-drawer :show.sync="reasonShow" :isClose="false">
95
+ <view class="refund_reason_head">申请原因</view>
96
+ <view class="refund_reason_body" style="min-height: 50vh;max-height: 75vh;">
97
+ <view class="reason_cont">
98
+ <view class="reason_item" v-for="item in afterSalesTypes" :key="item.id">
99
+ <view>{{ item.type_name }}</view>
100
+ <xd-radio :value="temp_type === item.id" @change="selectApplyReason(item.id)"></xd-radio>
101
+ </view>
102
+ </view>
103
+ <view class="reason_foot">
104
+ <xd-button type="primary" @click="handleChoseReason">确定</xd-button>
105
+ </view>
106
+ </view>
107
+ </xd-down-drawer>
108
+ <xd-dailog :show.sync="showDialog" :showTitle="false">
109
+ <view class="no_after_prod">
110
+ <view class="_icon">
111
+ <xd-font-icon icon="iconmingchengtubiao" :size="80" :color="mainColor"></xd-font-icon>
112
+ </view>
113
+ <view class="_main">抱歉,该订单已无可申请售后商品</view>
114
+ <view class="_sub">若您对商品售后有疑问,请联系客服处理</view>
115
+ <view style="margin-top: 40rpx;">
116
+ <xd-button type="primary" width="360rpx" @click="toAfterSaleDetail">售后详情</xd-button>
117
+ </view>
118
+ </view>
119
+ <view slot="btn"></view>
120
+ </xd-dailog>
121
+ </view>
122
+ </view>
123
+ </template>
124
+
125
+ <script>
126
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
127
+ import XdButton from "@/components/XdButton/XdButton";
128
+ import XdRadio from "@/components/XdRadio/XdRadio"
129
+ import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer"
130
+ import XdDailog from "@/components/XdDailog/XdDailog"
131
+ import RefundOrderInfo from "./refundOrderInfo.vue"
132
+ import { jfbRootExec } from "@/utils/xd.event";
133
+ import JfbBaseAfterSalesMixin from "./JfbBaseAfterSalesMixin";
134
+ import { getContainerPropsValue } from "@/utils/xd.base";
135
+ import componentsMixins from "@/mixins/componentsMixins";
136
+ import extsMixins from "@/mixins/extsMixins";
137
+ import getServiceUrl from "@/common/getServiceUrl";
138
+ export default {
139
+ name: "JfbBaseAfterSales",
140
+ components: {
141
+ XdFontIcon,
142
+ XdButton,
143
+ XdRadio,
144
+ XdDownDrawer,
145
+ RefundOrderInfo,
146
+ XdDailog
147
+ },
148
+ mixins: [
149
+ componentsMixins, extsMixins, JfbBaseAfterSalesMixin
150
+ ],
151
+ data() {
152
+ return {
153
+ step: 1,
154
+ reasonShow: false,
155
+ afterSalesMethod: [],
156
+ after_sale_method: "",
157
+ after_sale_type: "",
158
+ temp_type: "",
159
+ service_product_list: [],
160
+ customer_feedback: "",
161
+ showDialog: false,
162
+ last_service_order_id: "",
163
+
164
+ productList: [],
165
+ afterSalesTypes: [],
166
+ baseInfo: {},
167
+
168
+ refundImgList: [],
169
+ order_id: "",
170
+ //todo
171
+ refundStepPath: "",
172
+ }
173
+ },
174
+ computed: {
175
+ canChoseProduct(){
176
+ if(!this.after_sale_method) return false;
177
+ if(this.baseInfo.support_refund_method === 'all' && this.after_sale_method === 'refund_and_good') return false;
178
+ if(this.productList.length === 1) return false;
179
+ return true;
180
+ },
181
+ canSetNumber(){
182
+ if(!this.after_sale_method) return false;
183
+ if(this.after_sale_method === 'refund_and_good') return false;
184
+ return true;
185
+ },
186
+ afterSaleTypeText(){
187
+ if(!this.after_sale_type) return "";
188
+ let item = this.afterSalesTypes.find(i => i.id === this.after_sale_type);
189
+ return item ? item.type_name : "";
190
+ },
191
+ showRefundImages(){
192
+ return this.refundImgList.map(item => getServiceUrl(item))
193
+ },
194
+ prod_bottom() {
195
+ return this.fixedStyle({ height: 20, zIndex: 111 });
196
+ },
197
+ },
198
+ watch: {
199
+ container(value, oldValue) {
200
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
201
+ if (this.$configProject['isPreview']) this.init(value)
202
+ },
203
+ },
204
+ created() {
205
+ this.init(this.container);
206
+
207
+ //todo
208
+ },
209
+ methods: {
210
+ onJfbLoad(options) {
211
+ this.order_id = options.order_id;
212
+ this.p_getAfterOmsOrder();
213
+ this.p_getAfterSalesTypeList();
214
+ },
215
+ /**
216
+ * @description 监听事件变化
217
+ * @param container {object} 业务组件对象自己
218
+ */
219
+ init(container) {
220
+ this.refundStepPath = getContainerPropsValue(container, 'content.refundStepPath', {value: ""}).value;
221
+ },
222
+ doAddImage(){
223
+ uni.chooseImage({
224
+ count: 1,
225
+ sourceType: ['camera'],
226
+ success: async (res) => {
227
+ console.log('chooseImage',res);
228
+ // let filePath = res.tempFilePaths[0];
229
+ let file = res.tempFiles[0];
230
+ this.$xdShowLoading({});
231
+ try{
232
+ let image = await this.uploadImage(file);
233
+ this.refundImgList.push(image);
234
+ this.$xdHideLoading();
235
+ }catch(err){
236
+ this.$xdHideLoading();
237
+ }
238
+ }
239
+ })
240
+ },
241
+ uploadImage(file){
242
+ let fileName = file.name;
243
+ return new Promise((resolve, reject) => {
244
+ jfbRootExec("getConOssSign", {
245
+ vm: this,
246
+ data: { name: fileName }
247
+ }).then(res => {
248
+ let OSSAccessKeyId = res['id']
249
+ let cdnUrl = res['cdn_url']
250
+ delete res['id']
251
+ delete res['cdn_url']
252
+ uni.uploadFile({
253
+ url: res.action,
254
+ file: file,
255
+ name: 'file',
256
+ formData: {
257
+ ...res,
258
+ OSSAccessKeyId: OSSAccessKeyId,
259
+ name: fileName,
260
+ cdnUrl: cdnUrl,
261
+ success_action_status: 200
262
+ },
263
+ success: (r) => {
264
+ resolve(`/${res.key}`);
265
+ },
266
+ fail:(err)=>{
267
+ resolve('');
268
+ console.error(err)
269
+ }
270
+ });
271
+ }).catch(err => {
272
+ reject(err);
273
+ })
274
+ })
275
+
276
+ },
277
+ p_getAfterSalesTypeList(){
278
+ jfbRootExec("getAfterSalesTypeList", {
279
+ vm: this,
280
+ data: {}
281
+ }).then(res => {
282
+ this.afterSalesTypes = res.list;
283
+ })
284
+ },
285
+ p_getAfterOmsOrder(){
286
+ this.$xdShowLoading({});
287
+ jfbRootExec("getAfterOmsOrder", {
288
+ vm: this,
289
+ data: {
290
+ main_order_id: this.order_id
291
+ }
292
+ }).then(res => {
293
+ this.$xdHideLoading();
294
+ const { product_list, base_info, last_service_order_id } = res;
295
+ this.last_service_order_id = last_service_order_id;
296
+ if(product_list.length === 0){
297
+ this.showDialog = true;
298
+ }
299
+ this.productList = product_list.map(item => {
300
+ item.product_thumb = getServiceUrl(item.product_thumb, 'size2');
301
+ item.max = item.product_num;
302
+ return item;
303
+ });
304
+ this.baseInfo = base_info;
305
+ try{
306
+ this.afterSalesMethod = JSON.parse(base_info.support_aftersale_method);
307
+ }catch(e){}
308
+ })
309
+ },
310
+ handleSelectAfterSalesMethod(item){
311
+ this.after_sale_method = item.value;
312
+ this.$nextTick(() => {
313
+ if(this.productList.length === 1){
314
+ this.service_product_list = [this.productList[0]];
315
+ }else if(!this.canChoseProduct){
316
+ this.service_product_list = this.productList;
317
+ }
318
+ })
319
+ },
320
+ toAfterSaleDetail(){
321
+ this.$xdUniHelper.redirectTo({
322
+ url: `${this.refundStepPath}?service_order_id=${this.last_service_order_id}`,
323
+ });
324
+ },
325
+ handleApplyRefund(){
326
+ let { order_id, after_sale_method, after_sale_type, customer_feedback } = this;
327
+ if(!after_sale_type) {
328
+ this.$xdAlert({
329
+ content: '请选择申请原因',
330
+ type: "error"
331
+ })
332
+ return;
333
+ }
334
+ if(!customer_feedback){
335
+ this.$xdAlert({
336
+ content: '请填写问题描述',
337
+ type: "error"
338
+ })
339
+ return;
340
+ }
341
+ if(!this.service_product_list.length){
342
+ this.$xdAlert({
343
+ content: '请选择售后商品',
344
+ type: "error"
345
+ })
346
+ return;
347
+ }
348
+ let data = {
349
+ main_order_id: order_id,
350
+ sub_order_id: this.service_product_list[0].sub_order_id,
351
+ after_sale_method,
352
+ after_sale_type,
353
+ customer_feedback,
354
+ refund_voucher: JSON.stringify(this.refundImgList),
355
+ product_list: JSON.stringify(this.service_product_list.map(item => ({
356
+ product_id: item.product_id,
357
+ product_sku_id: item.sku_id,
358
+ product_num: item.product_num,
359
+ gift_id: item.gift_id
360
+ })))
361
+ }
362
+ jfbRootExec("createAfterServiceOrder", {
363
+ vm: this,
364
+ data: data
365
+ }).then(res => {
366
+ this.$xdUniHelper.navigateTo({
367
+ url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
368
+ });
369
+ })
370
+ },
371
+ handleSelectProduct(productList){
372
+ console.log('handleSelectProduct', productList)
373
+ this.service_product_list = productList;
374
+ },
375
+ handleStepNext(){
376
+ if(!this.after_sale_method){
377
+ this.$xdAlert({
378
+ content: '请选择售后类型',
379
+ type: "error"
380
+ })
381
+ return;
382
+ }
383
+ if(!this.service_product_list.length){
384
+ this.$xdAlert({
385
+ content: '请选择售后商品',
386
+ type: "error"
387
+ })
388
+ return;
389
+ }
390
+ console.log('handleStepNext', this.service_product_list)
391
+ this.step = 2;
392
+ },
393
+ toChoseReason(){
394
+ this.reasonShow = true;
395
+ },
396
+ selectApplyReason(id){
397
+ this.temp_type = id;
398
+ },
399
+ handleChoseReason(){
400
+ this.reasonShow = false;
401
+ this.after_sale_type = this.temp_type;
402
+ },
403
+ handlePreview(i){
404
+ uni.previewImage({
405
+ current: i,
406
+ urls: this.showRefundImages
407
+ })
408
+ },
409
+ onJfbScroll(options) {
410
+ // console.log('event.onJfbScroll', options)
411
+ },
412
+ onJfbReachBottom(options) {
413
+ console.log('event.onJfbReachBottom', options)
414
+ },
415
+ onJfbShow(options) {
416
+ console.log('event.onJfbShow', options)
417
+ },
418
+ onJfbHide(options) {
419
+ console.log('event.onJfbHide', options)
420
+ },
421
+ onJfbBack(options) {
422
+ console.log('event.onJfbBack', options)
423
+ },
424
+ onJfbUpdate(...data) {
425
+ console.log('event.onJfbUpdate', data)
426
+ },
427
+ onJfbCustomEvent(options) {
428
+ console.log('event.onJfbReachBottom', options)
429
+ },
430
+ }
431
+ }
432
+
433
+ </script>
434
+
435
+ <style scoped lang="less">
436
+ @import "./JfbBaseAfterSalesLess.less";
437
+
438
+ .jfb-base-after-sales {
439
+ &__body{
440
+ padding: 20rpx 20rpx 120rpx;
441
+ box-sizing: border-box;
442
+ background-color: #EEEEEE;
443
+ .s_type_box{
444
+ background-color: #FFFFFF;
445
+ border-radius: 16rpx;
446
+ padding: 36rpx;
447
+ font-size: 26rpx;
448
+ .s_type_title{
449
+ color: #333333;
450
+ font-weight: 500;
451
+ margin-bottom: 28rpx;
452
+ }
453
+ .service_types{
454
+ display: flex;
455
+ flex-wrap: wrap;
456
+
457
+ .service_item{
458
+ padding: 12rpx 48rpx;
459
+ border-radius: 40rpx;
460
+ background-color: #F3F3F3;
461
+ color: #999999;
462
+ margin-right: 15rpx;
463
+ &:nth-child(4n){
464
+ margin-right: 0;
465
+ }
466
+ &.active{
467
+ background-color: var(--main-color);
468
+ color: #FFFFFF;
469
+ }
470
+ }
471
+ }
472
+ }
473
+
474
+ .list_section{
475
+ padding: 24rpx 36rpx;
476
+ border-radius: 16rpx;
477
+ background-color: #FFFFFF;
478
+ display: flex;
479
+ flex-direction: column;
480
+ margin: 20rpx 0;
481
+ color: #333333;
482
+ font-size: 28rpx;
483
+ &.section_inline{
484
+ flex-direction: row;
485
+ justify-content: space-between;
486
+ .sec_label{
487
+ margin-bottom: 0;
488
+ }
489
+ }
490
+ .sec_label{
491
+ display: flex;
492
+ align-items: center;
493
+ margin-bottom: 24rpx;
494
+ .label_require{
495
+ color: #FF5733;
496
+ margin-right: 4rpx;
497
+ }
498
+ .label_sub{
499
+ color: #CCCCCC;
500
+ font-size: 24rpx;
501
+ margin-left: 16rpx;
502
+ }
503
+ }
504
+ .sec_content{
505
+ display: flex;
506
+ align-items: center;
507
+ color: #666666;
508
+
509
+ .img_list{
510
+ display: flex;
511
+ flex-wrap: wrap;
512
+ .img_box{
513
+ width: 160rpx;
514
+ height: 160rpx;
515
+ border-radius: 8rpx;
516
+ border: 1px solid #E0E0E0;
517
+ margin-right: 28rpx;
518
+ margin-bottom: 28rpx;
519
+ .img_item{
520
+ width: 100%;
521
+ height: 100%;
522
+ }
523
+
524
+ &.img_add{
525
+ display: flex;
526
+ align-items: center;
527
+ justify-content: center;
528
+ .icon{
529
+ border: 1px solid #E0E0E0;
530
+ width: 36rpx;
531
+ height: 36rpx;
532
+ border-radius: 6rpx;
533
+ display: flex;
534
+ align-items: center;
535
+ justify-content: center;
536
+ color: #E0E0E0;
537
+ }
538
+ }
539
+ }
540
+ }
541
+ }
542
+ }
543
+ .bottom_fixed{
544
+ position: fixed;
545
+ bottom: 0;
546
+ left: 0;
547
+ width: 100%;
548
+ padding: 20rpx;
549
+ box-sizing: border-box;
550
+ }
551
+ .refund_reason_head{
552
+ padding: 32rpx 0;
553
+ text-align: center;
554
+ border-bottom: 1px solid #F2F2F2;
555
+ margin: 0 32rpx;
556
+ font-size: 28rpx;
557
+ color: #333333;
558
+ font-weight: bold;
559
+ }
560
+ .refund_reason_body{
561
+ display: flex;
562
+ flex-direction: column;
563
+ .reason_cont{
564
+ flex: 1;
565
+ padding: 0 40rpx;
566
+ overflow: auto;
567
+ .reason_item{
568
+ display: flex;
569
+ align-items: center;
570
+ justify-content: space-between;
571
+ padding: 20rpx 20rpx;
572
+ font-size: 28rpx;
573
+ color: #333333;
574
+ }
575
+ }
576
+ .reason_foot{
577
+ padding: 32rpx;
578
+ border-top: 1px solid #F2F2F2;
579
+ }
580
+ }
581
+
582
+ .no_after_prod{
583
+ padding: 100rpx 0 20rpx;
584
+ font-size: 28rpx;
585
+ ._icon{
586
+ margin-bottom: 20rpx;
587
+ }
588
+ ._main{
589
+ color: #333333;
590
+ margin-bottom: 16rpx;
591
+ }
592
+ ._sub{
593
+ color: #999999;
594
+ }
595
+ }
596
+ }
597
+ }
598
+ </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 {
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 {
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'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }