jufubao-base 1.0.221 → 1.0.222-beta2

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 (35) 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 +505 -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 +13 -0
  10. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +96 -0
  11. package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
  12. package/src/components/JfbBaseAfterSalesDetail/Attr.js +14 -0
  13. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +518 -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 +13 -0
  17. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +54 -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 +273 -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 +13 -0
  24. package/src/components/JfbBaseAfterSalesList/Api.js +18 -0
  25. package/src/components/JfbBaseAfterSalesList/Attr.js +48 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +454 -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 +5 -0
  30. package/src/components/JfbBaseOrderDetail/Attr.js +12 -0
  31. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +4 -0
  32. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  33. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +30 -0
  34. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  35. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
@@ -0,0 +1,518 @@
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">服务单已提交申请,待平台受理</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==='exchange'" 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"></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 class="bottom_fixed">
118
+ <view class="opt_btn primary" @click="handleCancel">撤销</view>
119
+ <view 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
+ //todo
158
+ service_order_id: "",
159
+ after_sale_method: "",
160
+ loaded: false,
161
+ }
162
+ },
163
+ watch: {
164
+ container(value, oldValue) {
165
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
166
+ if (this.$configProject['isPreview']) this.init(value)
167
+ },
168
+ },
169
+ created() {
170
+ this.init(this.container);
171
+
172
+ //todo
173
+ },
174
+ methods: {
175
+ onJfbLoad(options) {
176
+ this.service_order_id = options.service_order_id;
177
+ this.p_getAfterServiceOrder();
178
+ },
179
+ /**
180
+ * @description 监听事件变化
181
+ * @param container {object} 业务组件对象自己
182
+ */
183
+ init(container) {
184
+
185
+ //this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
186
+ //this.height = getContainerPropsValue(container, 'content.height', 10);
187
+ },
188
+ p_getAfterServiceOrder(){
189
+ this.$xdShowLoading({});
190
+ jfbRootExec("getAfterServiceOrder", {
191
+ vm: this,
192
+ data: {
193
+ service_order_id: this.service_order_id,
194
+ }
195
+ }).then(res => {
196
+ this.$xdHideLoading();
197
+ try{
198
+ var imgList = JSON.parse(res.refund_voucher);
199
+ imgList = imgList.map(item => {
200
+ return getServiceUrl(item)
201
+ })
202
+ }catch(e){imgList=[]}
203
+ this.orderInfoList = [
204
+ { label: "订单编号", value: res.main_order_id, copy: true },
205
+ { label: "工单编号", value: res.service_order_id, copy: true },
206
+ { label: "申请时间", value: this.$xdUniHelper.getDate( res["created_time"] * 1000 ).fullTime },
207
+ { label: "售后类型", value: res.after_sale_method_name },
208
+ { label: "申请原因", value: res.after_sale_type_name },
209
+ { label: "问题描述", value: res.customer_feedback },
210
+ { label: "凭证内容", value: imgList.length ? imgList : '无', key: imgList.length? "img" : ''}
211
+ ];
212
+ this.stepList = [
213
+ res.progress[0],
214
+ { key: "line"},
215
+ res.progress[1],
216
+ { key: "line"},
217
+ res.progress[2],
218
+ ]
219
+ //物流信息
220
+ if(res.express_info && res.express_info.express_number){
221
+ this.logisticsInfo = [
222
+ { label: "物流单号", value: res.express_info.express_number, copy: true },
223
+ { label: "快递公司", value: res.express_info.express_name }
224
+ ]
225
+ }
226
+ //退换货商品
227
+ this.refundProductList = res.product_list.map(item => {
228
+ item.thumb = getServiceUrl(item.thumb, 'size2');
229
+ return item;
230
+ })
231
+ //新商品
232
+ this.newProductList = res.new_product_list.map(item => {
233
+ item.thumb = getServiceUrl(item.thumb, 'size2');
234
+ return item;
235
+ })
236
+ //售后类型
237
+ this.after_sale_method = res.after_sale_method;
238
+ //退款明细
239
+ this.refundInfo = res.refund_settlement.map(item => {
240
+ item.label = item.pay_info || item.pay_name;
241
+ item.value = item.pay_price;
242
+ item.key = 'price';
243
+ return item;
244
+ });
245
+
246
+ this.loaded = true;
247
+ })
248
+ },
249
+ handleCopy(text){
250
+ uni.setClipboardData({
251
+ data: text,
252
+ success: function () {
253
+ uni.showToast({
254
+ title: '复制成功',
255
+ icon: "none"
256
+ });
257
+ }
258
+ });
259
+
260
+ },
261
+ handleCancel(){
262
+ this.$xdConfirm({
263
+ styles: this.styles,
264
+ title: "提示",
265
+ width: '90%',
266
+ content: '确定撤销当前工单吗?',
267
+ confirmText: '确认',
268
+ isHtml: true,
269
+ cancelText: '取消',
270
+ showClose: false,
271
+ success: (res) => {
272
+ if (res.confirm) {
273
+ jfbRootExec("cancelAfterServiceOrder", {
274
+ vm: this,
275
+ data: {
276
+ service_order_id: this.service_order_id
277
+ }
278
+ }).then(res => {
279
+
280
+ })
281
+ }
282
+ else{
283
+ console.log('取消')
284
+ }
285
+ }
286
+ })
287
+ },
288
+ handleDel(){
289
+ this.$xdConfirm({
290
+ styles: this.styles,
291
+ title: "提示",
292
+ width: '90%',
293
+ content: '确定删除当前工单吗?',
294
+ confirmText: '确认',
295
+ isHtml: true,
296
+ cancelText: '取消',
297
+ showClose: false,
298
+ success: (res) => {
299
+ if (res.confirm) {
300
+ jfbRootExec("delAfterServiceOrder", {
301
+ vm: this,
302
+ data:{
303
+ service_order_id: this.service_order_id
304
+ }
305
+ }).then(res => {
306
+
307
+ })
308
+ }
309
+ else{
310
+ console.log('取消')
311
+ }
312
+ }
313
+ })
314
+ },
315
+ onJfbScroll(options) {
316
+ // console.log('event.onJfbScroll', options)
317
+ },
318
+ onJfbReachBottom(options) {
319
+ console.log('event.onJfbReachBottom', options)
320
+ },
321
+ onJfbShow(options) {
322
+ console.log('event.onJfbShow', options)
323
+ },
324
+ onJfbHide(options) {
325
+ console.log('event.onJfbHide', options)
326
+ },
327
+ onJfbBack(options) {
328
+ console.log('event.onJfbBack', options)
329
+ },
330
+ onJfbUpdate(...data) {
331
+ console.log('event.onJfbUpdate', data)
332
+ },
333
+ onJfbCustomEvent(options) {
334
+ console.log('event.onJfbReachBottom', options)
335
+ },
336
+ }
337
+ }
338
+
339
+ </script>
340
+
341
+ <style scoped lang="less">
342
+ @import "./JfbBaseAfterSalesDetailLess.less";
343
+
344
+ .jfb-base-after-sales-detail {
345
+ &__body{
346
+ background: #FAFAFA;
347
+ padding-bottom: 100rpx;
348
+ box-sizing: border-box;
349
+ .service_progress{
350
+ height: 320rpx;
351
+ background: linear-gradient(270deg, #FF8469 0%, #FF5252 100%);
352
+ color: #FFFFFF;
353
+ padding: 40rpx;
354
+ box-sizing: border-box;
355
+ .service_head{
356
+ display: flex;
357
+ align-items: center;
358
+ font-size: 32rpx;
359
+ font-weight: 500;
360
+ justify-content: space-between;
361
+ .head_sub{
362
+ font-size: 24rpx;
363
+ font-weight: 400;
364
+ }
365
+ }
366
+ .service_step{
367
+ display: flex;
368
+ align-items: center;
369
+ justify-content: space-between;
370
+ font-size: 24rpx;
371
+ font-weight: 400;
372
+ margin-top: 48rpx;
373
+ .step_item{
374
+ display: flex;
375
+ flex-direction: column;
376
+ align-items: center;
377
+
378
+ .step_radio{
379
+ width: 24rpx;
380
+ height: 24rpx;
381
+ background: rgba(255, 255, 255, 0.3);
382
+ border: 2px solid #FFFFFF;
383
+ border-radius: 24rpx;
384
+ box-sizing: border-box;
385
+ }
386
+ .step_text{
387
+ margin-top: 8rpx;
388
+ }
389
+ }
390
+ .step_line{
391
+ width: 146rpx;
392
+ height: 4rpx;
393
+ background: #FFFFFF;
394
+ border-radius: 4rpx;
395
+ }
396
+ }
397
+ }
398
+ .refund_section{
399
+ background: #FFFFFF;
400
+ border-radius: 16rpx;
401
+ padding: 24rpx 40rpx;
402
+ box-sizing: border-box;
403
+ margin-bottom: 20rpx;
404
+ .sec_tag{
405
+ border-radius: 8rpx;
406
+ padding: 4rpx 16rpx;
407
+ font-size: 24rpx;
408
+ font-weight: 400;
409
+ display: inline-block;
410
+ &._new{
411
+ background: #FFDEDE;
412
+ color: #F00000;
413
+ }
414
+ &._refund{
415
+ background: #E6EEFF;
416
+ color: #0070F0;
417
+ }
418
+ }
419
+ .sec_title{
420
+ padding-bottom: 24rpx;
421
+ border-bottom: 1px solid #EEEEEE;
422
+ font-size: 26rpx;
423
+ color: #333333;
424
+ font-weight: 500;
425
+ margin-bottom: 24rpx;
426
+ }
427
+ .sec_body{
428
+ font-size: 24rpx;
429
+ font-weight: 400;
430
+ .sec_item{
431
+ display: flex;
432
+ align-items: center;
433
+ justify-content: space-between;
434
+ margin: 24rpx 0;
435
+ &:last-child{
436
+ margin-bottom: 0;
437
+ }
438
+ .sec_l{
439
+ color: #999999;
440
+ display: flex;
441
+ // align-items: center;
442
+ align-items: flex-start;
443
+ flex: 1;
444
+
445
+ .sec_l_text{
446
+ flex: 1;
447
+ width: 400rpx;
448
+ }
449
+
450
+ .img_list{
451
+ display: flex;
452
+ flex-wrap: wrap;
453
+ flex: 1;
454
+ .img_box{
455
+ width: 150rpx;
456
+ height: 150rpx;
457
+ border-radius: 8rpx;
458
+ border: 1px solid #E0E0E0;
459
+ margin-right: 20rpx;
460
+ margin-bottom: 20rpx;
461
+ &:nth-of-type(3n){
462
+ margin-right: 0;
463
+ }
464
+ image{
465
+ width: 100%;
466
+ height: 100%;
467
+ }
468
+ }
469
+ }
470
+ }
471
+ .sec_r{
472
+ width: 100rpx;
473
+ ._copy{
474
+ padding: 4rpx 20rpx;
475
+ border-radius: 24rpx;
476
+ color: #CCCCCC;
477
+ border: 1px solid #CCCCCC;
478
+ }
479
+ }
480
+ }
481
+
482
+ }
483
+ }
484
+ .bottom_fixed{
485
+ position: fixed;
486
+ bottom: 0;
487
+ left: 0;
488
+ width: 100%;
489
+ padding: 20rpx;
490
+ box-sizing: border-box;
491
+ background: #FFFFFF;
492
+ box-shadow: 0px 0px 3px rgba(0, 0, 0, 0.1);
493
+ text-align: right;
494
+
495
+ .opt_btn{
496
+ width: 120rpx;
497
+ height: 60rpx;
498
+ background: #FFFFFF;
499
+ color: #999999;
500
+ border: 1px solid #999999;
501
+ font-size: 24rpx;
502
+ text-align: center;
503
+ line-height: 60rpx;
504
+ border-radius: 60rpx;
505
+ display: inline-block;
506
+ & + .opt_btn{
507
+ margin-left: 20rpx;
508
+ }
509
+ &.primary{
510
+ background: var(--main-color);
511
+ border-color: var(--main-color);
512
+ color: #FFFFFF;
513
+ }
514
+ }
515
+ }
516
+ }
517
+ }
518
+ </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
+ }
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getAfterByIdFilmSquate:{},
6
+
7
+ updateAfterFilmPaiqiDate:{},
8
+
9
+ removeAfterFilmAddress:{},
10
+
11
+ addAfterFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,54 @@
1
+ <template>
2
+ <view class="prod_item">
3
+ <view class="prod_img">
4
+ <image :src="item.thumb" mode="aspectFit"></image>
5
+ </view>
6
+ <view class="prod_info">
7
+ <view class="prod_title">{{ item.product_name }}</view>
8
+ <view class="prod_number">申请数量:×{{ item.after_count }}</view>
9
+ </view>
10
+ </view>
11
+ </template>
12
+
13
+ <script>
14
+ export default {
15
+ props: {
16
+ item: {
17
+ type: Object,
18
+ default() {
19
+ return {}
20
+ }
21
+ }
22
+ }
23
+ }
24
+ </script>
25
+
26
+ <style lang="less" scoped>
27
+ .prod_item{
28
+ display: flex;
29
+ align-items: center;
30
+ .prod_img{
31
+ width: 140rpx;
32
+ height: 140rpx;
33
+ border-radius: 16rpx;
34
+ background-color: #EEE;
35
+ image{
36
+ width: 100%;
37
+ height: 100%;
38
+ }
39
+ }
40
+ .prod_info{
41
+ margin-left: 20rpx;
42
+ flex: 1;
43
+ .prod_title{
44
+ margin-bottom: 10rpx;
45
+ font-size: 28rpx;
46
+ color: #333333;
47
+ }
48
+ .prod_number{
49
+ color: #999999;
50
+ font-size: 24rpx;
51
+ }
52
+ }
53
+ }
54
+ </style>