jufubao-third 1.0.21 → 1.0.22-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 (57) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbThirdPay/WalletMix.js +1 -0
  3. package/src/components/JfbThirdRideCheckPay/Api.js +22 -0
  4. package/src/components/JfbThirdRideCheckPay/Attr.js +17 -0
  5. package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPay.vue +220 -0
  6. package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPayLess.less +80 -0
  7. package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPayMixin.js +30 -0
  8. package/src/components/JfbThirdRideCheckPay/Mock.js +38 -0
  9. package/src/components/JfbThirdRideCheckPay/cusAttr/advanced.js +28 -0
  10. package/src/components/JfbThirdRideCheckPay/cusAttr/content.js +27 -0
  11. package/src/components/JfbThirdRideCheckPay/cusAttr/style.js +7 -0
  12. package/src/components/JfbThirdRideConfirm/Api.js +37 -0
  13. package/src/components/JfbThirdRideConfirm/Attr.js +17 -0
  14. package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirm.vue +530 -0
  15. package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirmLess.less +80 -0
  16. package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirmMixin.js +30 -0
  17. package/src/components/JfbThirdRideConfirm/Mock.js +69 -0
  18. package/src/components/JfbThirdRideConfirm/cusAttr/advanced.js +22 -0
  19. package/src/components/JfbThirdRideConfirm/cusAttr/content.js +27 -0
  20. package/src/components/JfbThirdRideConfirm/cusAttr/style.js +7 -0
  21. package/src/components/JfbThirdRideGenOrder/Api.js +21 -0
  22. package/src/components/JfbThirdRideGenOrder/Attr.js +17 -0
  23. package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrder.vue +234 -0
  24. package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrderLess.less +80 -0
  25. package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrderMixin.js +30 -0
  26. package/src/components/JfbThirdRideGenOrder/Mock.js +11 -0
  27. package/src/components/JfbThirdRideGenOrder/cusAttr/advanced.js +37 -0
  28. package/src/components/JfbThirdRideGenOrder/cusAttr/content.js +7 -0
  29. package/src/components/JfbThirdRideGenOrder/cusAttr/style.js +7 -0
  30. package/src/components/JfbThirdRideHome/Api.js +44 -0
  31. package/src/components/JfbThirdRideHome/Attr.js +17 -0
  32. package/src/components/JfbThirdRideHome/JfbThirdRideHome.vue +831 -0
  33. package/src/components/JfbThirdRideHome/JfbThirdRideHomeLess.less +80 -0
  34. package/src/components/JfbThirdRideHome/JfbThirdRideHomeMixin.js +30 -0
  35. package/src/components/JfbThirdRideHome/Mock.js +13 -0
  36. package/src/components/JfbThirdRideHome/cusAttr/advanced.js +52 -0
  37. package/src/components/JfbThirdRideHome/cusAttr/content.js +27 -0
  38. package/src/components/JfbThirdRideHome/cusAttr/style.js +7 -0
  39. package/src/components/JfbThirdRideRecord/Api.js +22 -0
  40. package/src/components/JfbThirdRideRecord/Attr.js +17 -0
  41. package/src/components/JfbThirdRideRecord/JfbThirdRideRecord.vue +517 -0
  42. package/src/components/JfbThirdRideRecord/JfbThirdRideRecordLess.less +80 -0
  43. package/src/components/JfbThirdRideRecord/JfbThirdRideRecordMixin.js +30 -0
  44. package/src/components/JfbThirdRideRecord/Mock.js +44 -0
  45. package/src/components/JfbThirdRideRecord/cusAttr/advanced.js +22 -0
  46. package/src/components/JfbThirdRideRecord/cusAttr/content.js +27 -0
  47. package/src/components/JfbThirdRideRecord/cusAttr/style.js +7 -0
  48. package/src/components/JfbThirdRideStartEnd/Api.js +20 -0
  49. package/src/components/JfbThirdRideStartEnd/Attr.js +17 -0
  50. package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEnd.vue +364 -0
  51. package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEndLess.less +80 -0
  52. package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEndMixin.js +30 -0
  53. package/src/components/JfbThirdRideStartEnd/Mock.js +17 -0
  54. package/src/components/JfbThirdRideStartEnd/cusAttr/advanced.js +22 -0
  55. package/src/components/JfbThirdRideStartEnd/cusAttr/content.js +27 -0
  56. package/src/components/JfbThirdRideStartEnd/cusAttr/style.js +7 -0
  57. package/src/mixins/getCoordinatesMixins.js +407 -0
@@ -0,0 +1,530 @@
1
+ <template>
2
+ <view
3
+ class="jfb-third-ride-confirm"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-third-ride-confirm__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-third-ride-confirm__edit-icon" @click.stop="delEdit">
14
+ <xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
15
+ </view>
16
+ </view>
17
+ <!-- #endif -->
18
+ <view v-if="estimateInfo" class="jfb-third-ride-confirm__body">
19
+ <!-- 路线信息 -->
20
+ <view class="ride-route">
21
+ <view class="ride-route__content">
22
+ <view class="ride-route__indicator">
23
+ <view class="ride-dot ride-dot--start"></view>
24
+ <view class="ride-route__vline"></view>
25
+ <view class="ride-dot ride-dot--end"></view>
26
+ </view>
27
+ <view class="ride-route__info">
28
+ <view class="ride-route__addr">
29
+ <text class="ride-addr">{{ startName }}</text>
30
+ <xd-font-icon icon="iconjiantou" color="#666" size="28" class="ride-route__arrow-icon"></xd-font-icon>
31
+ <text class="ride-addr">{{ endName }}</text>
32
+ </view>
33
+ <view class="ride-meta">
34
+ <view class="ride-tag">
35
+ <xd-font-icon icon="iconshandian" color="#FF8D1A" size="20"></xd-font-icon>
36
+ <text>即时用车</text>
37
+ </view>
38
+ <text class="ride-dist">{{ estimateDistanceName }} · 约{{ estimateTimeName }}</text>
39
+ </view>
40
+ </view>
41
+ <view class="ride-route__edit-btn" @click.stop="handleEdit">
42
+ <xd-font-icon icon="iconbianji-01" color="#999" size="32"></xd-font-icon>
43
+ </view>
44
+ </view>
45
+ </view>
46
+
47
+ <!-- 车型选择 -->
48
+ <view class="ride-cars">
49
+ <view class="ride-cars__title">选择车型</view>
50
+ <view
51
+ v-for="(item, index) in carTypes"
52
+ :key="index"
53
+ class="ride-car"
54
+ :class="{ 'ride-car--active': selectedIndex === index }"
55
+ @click="selectCar(index)"
56
+ >
57
+ <view class="ride-car__thumb">
58
+ <image :src="item.image" mode="aspectFit" class="ride-car__img"></image>
59
+ </view>
60
+ <view class="ride-car__info">
61
+ <view class="ride-car__name">{{ item.ride_type_name }}{{ item.ride_type_name.indexOf('型') === -1 ? '型' : '' }}</view>
62
+ <view class="ride-car__desc">{{ item.estimate_distance_name }}</view>
63
+ <view class="ride-car__time">约{{ item.estimate_time_name }}到达</view>
64
+ </view>
65
+ <view class="ride-price">
66
+ <view class="ride-price__val">
67
+ <text class="ride-price__sym">¥</text>
68
+ <text class="ride-price__num">{{ item.min_estimate_price }}</text>
69
+ </view>
70
+ <view class="ride-price__label">预估</view>
71
+ </view>
72
+ </view>
73
+ </view>
74
+
75
+ <!-- 费用明细 -->
76
+ <!-- <view class="ride-cost">
77
+ <view class="ride-cost__head">
78
+ <text class="ride-cost__title">费用明细</text>
79
+ <xd-font-icon icon="iconxiajiantou" color="#999" size="24"></xd-font-icon>
80
+ </view>
81
+ </view> -->
82
+
83
+ <!-- 呼叫用车按钮 -->
84
+ <view class="ride-submit">
85
+ <view class="ride-submit__btn" @click="handleCallRide">
86
+ <text class="ride-submit__text">呼叫用车</text>
87
+ </view>
88
+ </view>
89
+ </view>
90
+ </view>
91
+ </template>
92
+
93
+ <script>
94
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
95
+ import { jfbRootExec } from "@/utils/xd.event";
96
+ import JfbThirdRideConfirmMixin from "./JfbThirdRideConfirmMixin";
97
+ import { getContainerPropsValue } from "@/utils/xd.base";
98
+ import componentsMixins from "@/mixins/componentsMixins";
99
+ import extsMixins from "@/mixins/extsMixins";
100
+ import getServiceUrl from "@/common/getServiceUrl"
101
+ export default {
102
+ name: "JfbThirdRideConfirm",
103
+ components: {
104
+ XdFontIcon
105
+ },
106
+ mixins: [
107
+ componentsMixins, extsMixins, JfbThirdRideConfirmMixin
108
+ ],
109
+ data() {
110
+ return {
111
+ xnamespace: '',
112
+ estimateInfo: null,
113
+ estimate_id: "",
114
+ selectedIndex: 0,
115
+ startName: '',
116
+ endName: '',
117
+ startLng: '',
118
+ startLat: '',
119
+ endLng: '',
120
+ endLat: '',
121
+ serviceType: 1,
122
+ rideTypes: '',
123
+ estimateDistanceName: '',
124
+ estimateTimeName: '',
125
+ carTypes: [],
126
+ carTypeImages: {
127
+ 1: '/common/car/economy.png',
128
+ 3: '/common/car/business.png',
129
+ 4: '/common/car/luxury.png',
130
+ 12: '/common/car/vip.png'
131
+ }
132
+ }
133
+ },
134
+ watch: {
135
+ container(value, oldValue) {
136
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
137
+ if (this.$configProject['isPreview']) this.init(value)
138
+ },
139
+ },
140
+ created() {
141
+ this.init(this.container);
142
+ },
143
+ methods: {
144
+ onJfbLoad(options) {
145
+ this.setNameSpace(options);
146
+ this.estimate_id = options.estimate_id;
147
+ this.p_rideEstimatePriceResult();
148
+ },
149
+ p_rideEstimatePriceResult(){
150
+ this.$xdShowLoading({});
151
+ jfbRootExec("rideEstimatePriceResult", {
152
+ vm: this,
153
+ data: {
154
+ xnamespace: this.xnamespace,
155
+ estimate_id: this.estimate_id
156
+ }
157
+ }).then(res => {
158
+ this.$xdHideLoading();
159
+ if (!res || !res.list || !res.list.length) return;
160
+ this.estimateInfo = res;
161
+ // 路线信息
162
+ this.startName = res.start_name || '';
163
+ this.endName = res.end_name || '';
164
+ this.startLng = res.start_lng || '';
165
+ this.startLat = res.start_lat || '';
166
+ this.endLng = res.end_lng || '';
167
+ this.endLat = res.end_lat || '';
168
+ this.serviceType = res.service_type || 1;
169
+ this.rideTypes = res.ride_types || '';
170
+ const firstItem = res.list[0];
171
+ this.estimateDistanceName = firstItem.estimate_distance_name || '';
172
+ this.estimateTimeName = firstItem.estimate_time_name || '';
173
+ // 车型列表
174
+ this.carTypes = res.list.map(item => {
175
+ const typeName = item.ride_type_name + (item.ride_type_name.indexOf('型') === -1 ? '型' : '');
176
+ return {
177
+ ...item,
178
+ ride_type_name: typeName,
179
+ image: getServiceUrl(this.carTypeImages[item.ride_type] || ''),
180
+ min_estimate_price: this.$xdUniHelper.divisionFloatNumber(item.min_estimate_price, 100),
181
+ // max_estimate_price: this.$xdUniHelper.divisionFloatNumber(item.max_estimate_price, 100)
182
+ };
183
+ });
184
+ })
185
+ },
186
+ selectCar(index) {
187
+ this.selectedIndex = index
188
+ },
189
+ handleEdit() {
190
+ this.$xdUniHelper.redirectTo({
191
+ url: this.rideDrivePath
192
+ })
193
+ },
194
+ handleCallRide() {
195
+ const car = this.carTypes[this.selectedIndex]
196
+ jfbRootExec('rideH5Url', {
197
+ vm: this,
198
+ data: {
199
+ xnamespace: this.xnamespace,
200
+ start_lng: this.startLng,
201
+ start_lat: this.startLat,
202
+ end_lng: this.endLng,
203
+ end_lat: this.endLat,
204
+ service_type: this.serviceType,
205
+ ride_types: String(car.ride_type),
206
+ max_estimate_price: car.max_estimate_price,
207
+ start_name: this.startName,
208
+ end_name: this.endName,
209
+ start_address: this.startName,
210
+ end_address: this.endName
211
+ }
212
+ }).then(res => {
213
+ if(res.can_order){
214
+ // #ifdef H5
215
+ window.location.href = res.h5_url;
216
+ // #endif
217
+
218
+ // #ifdef MP-WEIXIN
219
+ uni.navigateTo({
220
+ url: `/pages/thirdview/thirdview?seatUrl=${Base64.encodeURI(res.h5_url)}`
221
+ });
222
+ // #endif
223
+ }
224
+ })
225
+ },
226
+ /**
227
+ * @description 监听事件变化
228
+ * @param container {object} 业务组件对象自己
229
+ */
230
+ init(container) {
231
+ this.xnamespace = getContainerPropsValue(container, 'content.xnamespace', this.projectAttr.business_code || '');
232
+ this.rideDrivePath = getContainerPropsValue(container, 'content.rideDrivePath', {value: ""}).value;
233
+ },
234
+ onJfbScroll(options) {
235
+ console.log('event.onJfbScroll', options)
236
+ },
237
+ onJfbReachBottom(options) {
238
+ console.log('event.onJfbReachBottom', options)
239
+ },
240
+ onJfbShow(options) {
241
+ console.log('event.onJfbShow', options)
242
+ },
243
+ onJfbHide(options) {
244
+ console.log('event.onJfbHide', options)
245
+ },
246
+ onJfbBack(options) {
247
+ console.log('event.onJfbBack', options)
248
+ },
249
+ onJfbUpdate(...data) {
250
+ console.log('event.onJfbUpdate', data)
251
+ },
252
+ onJfbCustomEvent(options) {
253
+ console.log('event.onJfbReachBottom', options)
254
+ },
255
+ }
256
+ }
257
+
258
+ </script>
259
+
260
+ <style scoped lang="less">
261
+ @import "./JfbThirdRideConfirmLess.less";
262
+
263
+ .jfb-third-ride-confirm {
264
+ background: #FFFFFF;
265
+ min-height: 100vh;
266
+
267
+ &__body {
268
+ padding-bottom: 180rpx;
269
+ }
270
+ }
271
+
272
+ // 路线信息
273
+ .ride-route {
274
+ background: #fff;
275
+ padding: 32rpx 32rpx 28rpx;
276
+ position: relative;
277
+
278
+ //底部分隔线,距左右32rpx
279
+ &::after {
280
+ content: '';
281
+ position: absolute;
282
+ left: 32rpx;
283
+ right: 32rpx;
284
+ bottom: 0;
285
+ height: 1px;
286
+ background: #EEEEEE;
287
+ }
288
+
289
+ &__content {
290
+ display: flex;
291
+ align-items: flex-start;
292
+ }
293
+
294
+ &__indicator {
295
+ display: flex;
296
+ flex-direction: column;
297
+ align-items: center;
298
+ padding-top: 8rpx;
299
+ margin-right: 32rpx;
300
+ flex-shrink: 0;
301
+ }
302
+
303
+ &__vline {
304
+ width: 2rpx;
305
+ height: 32rpx;
306
+ background: #ddd;
307
+ margin: 8rpx 0;
308
+ }
309
+
310
+ &__info {
311
+ flex: 1;
312
+ min-width: 0;
313
+ }
314
+
315
+ &__addr {
316
+ display: flex;
317
+ align-items: center;
318
+ margin-bottom: 16rpx;
319
+ }
320
+
321
+ &__arrow-icon {
322
+ margin: 0 16rpx;
323
+ flex-shrink: 0;
324
+ }
325
+
326
+ &__edit-btn {
327
+ width: 64rpx;
328
+ height: 64rpx;
329
+ display: flex;
330
+ align-items: center;
331
+ justify-content: center;
332
+ background: #F8F8F8;
333
+ border: 1px solid #EEEEEE;
334
+ border-radius: 20rpx;
335
+ flex-shrink: 0;
336
+ margin-left: 16rpx;
337
+ }
338
+ }
339
+
340
+ .ride-dot {
341
+ width: 16rpx;
342
+ height: 16rpx;
343
+ border-radius: 50%;
344
+ flex-shrink: 0;
345
+
346
+ &--start {
347
+ background: #52c41a;
348
+ }
349
+
350
+ &--end {
351
+ background: #ff4d4f;
352
+ }
353
+ }
354
+
355
+ .ride-addr {
356
+ font-size: 28rpx;
357
+ color: #333;
358
+ font-weight: 500;
359
+ }
360
+
361
+ .ride-meta {
362
+ display: flex;
363
+ align-items: center;
364
+ }
365
+
366
+ .ride-tag {
367
+ display: flex;
368
+ align-items: center;
369
+ background: rgba(85, 75, 230, 0.05);
370
+ color: #554BE6;
371
+ font-size: 24rpx;
372
+ padding: 8rpx 16rpx;
373
+ border-radius: 20rpx;
374
+ margin-right: 16rpx;
375
+
376
+ text {
377
+ margin-left: 16rpx;
378
+ }
379
+ }
380
+
381
+ .ride-dist {
382
+ font-size: 24rpx;
383
+ color: #999;
384
+ }
385
+
386
+ // 车型选择
387
+ .ride-cars {
388
+ margin-top: 24rpx;
389
+
390
+ &__title {
391
+ font-size: 28rpx;
392
+ color: #333;
393
+ font-weight: 400;
394
+ padding: 0 30rpx;
395
+ margin-bottom: 24rpx;
396
+ }
397
+ }
398
+
399
+ .ride-car {
400
+ display: flex;
401
+ align-items: center;
402
+ background: #fff;
403
+ margin: 0 32rpx 16rpx;
404
+ padding: 28rpx 24rpx;
405
+ border-radius: 16rpx;
406
+ border: 2rpx solid #EEEEEE;
407
+ transition: all 0.2s;
408
+
409
+ &--active {
410
+ border-color: #E5010E;
411
+ background: #FFEDEC;
412
+ }
413
+
414
+ &__thumb {
415
+ width: 108rpx;
416
+ height: 108rpx;
417
+ display: flex;
418
+ align-items: center;
419
+ justify-content: center;
420
+ border-radius: 12rpx;
421
+ margin-right: 24rpx;
422
+ flex-shrink: 0;
423
+ overflow: hidden;
424
+ }
425
+
426
+ &__img {
427
+ width: 108rpx;
428
+ height: 108rpx;
429
+ }
430
+
431
+ &__info {
432
+ flex: 1;
433
+ min-width: 0;
434
+ }
435
+
436
+ &__name {
437
+ font-size: 28rpx;
438
+ color: #333;
439
+ font-weight: 500;
440
+ margin-bottom: 8rpx;
441
+ }
442
+
443
+ &__desc {
444
+ font-size: 20rpx;
445
+ color: #999;
446
+ margin-bottom: 4rpx;
447
+ }
448
+
449
+ &__time {
450
+ font-size: 20rpx;
451
+ color: #999;
452
+ }
453
+ }
454
+
455
+ .ride-price {
456
+ text-align: right;
457
+ flex-shrink: 0;
458
+ margin-left: 16rpx;
459
+
460
+ &__val {
461
+ display: flex;
462
+ align-items: baseline;
463
+ justify-content: flex-end;
464
+ }
465
+
466
+ &__sym {
467
+ font-size: 28rpx;
468
+ color: #333;
469
+ font-weight: 600;
470
+ }
471
+
472
+ &__num {
473
+ font-size: 40rpx;
474
+ color: #333;
475
+ font-weight: 700;
476
+ }
477
+
478
+ &__label {
479
+ font-size: 24rpx;
480
+ color: #999;
481
+ text-align: right;
482
+ }
483
+ }
484
+
485
+ // 费用明细
486
+ .ride-cost {
487
+ background: #fff;
488
+ margin-top: 20rpx;
489
+ padding: 30rpx;
490
+
491
+ &__head {
492
+ display: flex;
493
+ align-items: center;
494
+ justify-content: space-between;
495
+ }
496
+
497
+ &__title {
498
+ font-size: 32rpx;
499
+ color: #333;
500
+ font-weight: 600;
501
+ }
502
+ }
503
+
504
+ // 呼叫用车按钮
505
+ .ride-submit {
506
+ position: fixed;
507
+ bottom: 0;
508
+ left: 0;
509
+ right: 0;
510
+ padding: 24rpx 30rpx;
511
+ padding-bottom: calc(24rpx + env(safe-area-inset-bottom));
512
+ background: #fff;
513
+ z-index: 100;
514
+
515
+ &__btn {
516
+ background: #E5010E;
517
+ border-radius: 24rpx;
518
+ padding: 24rpx 0;
519
+ text-align: center;
520
+ box-shadow: 0 4rpx 12rpx rgba(255, 77, 79, 0.3);
521
+ }
522
+
523
+ &__text {
524
+ color: #fff;
525
+ font-size: 28rpx;
526
+ font-weight: 500;
527
+ letter-spacing: 2rpx;
528
+ }
529
+ }
530
+ </style>
@@ -0,0 +1,80 @@
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-third-ride-confirm {
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: var(--preview-z-index);
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(0, rpx);
48
+ height: unit(50, rpx);
49
+ z-index: 100;
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .4);
54
+ border-radius: 0 0 0 20rpx;
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+ padding: 0 6rpx 0 6px;
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-third-ride-confirm {
75
+ //&:before {
76
+ //content: " ";
77
+ //display: table;
78
+ //}
79
+ }
80
+ /**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-third-ride-confirm'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ rideEstimatePriceResult: {
5
+ start_lng: "116.32",
6
+ start_lat: "39.89",
7
+ end_lng: "116.33",
8
+ end_lat: "40.00",
9
+ start_name: "北京西站",
10
+ end_name: "清华大学",
11
+ start_address: "北京西站",
12
+ end_address: "清华大学",
13
+ service_type: 1,
14
+ ride_types: "1,12,3,4",
15
+ max_estimate_price: 0,
16
+ departure_time: 1763133707228,
17
+ list: [
18
+ {
19
+ ride_type: 1,
20
+ ride_type_name: "经济",
21
+ min_estimate_price: 2166,
22
+ max_estimate_price: 22067,
23
+ estimate_distance: 20952,
24
+ estimate_time: 2145,
25
+ min_estimate_price_name: "21.66元",
26
+ max_estimate_price_name: "220.67元",
27
+ estimate_distance_name: "21公里",
28
+ estimate_time_name: "36分钟"
29
+ },
30
+ {
31
+ ride_type: 12,
32
+ ride_type_name: "品质专车",
33
+ min_estimate_price: 3167,
34
+ max_estimate_price: 12994,
35
+ estimate_distance: 20952,
36
+ estimate_time: 2145,
37
+ min_estimate_price_name: "31.67元",
38
+ max_estimate_price_name: "129.94元",
39
+ estimate_distance_name: "21公里",
40
+ estimate_time_name: "36分钟"
41
+ },
42
+ {
43
+ ride_type: 3,
44
+ ride_type_name: "商务",
45
+ min_estimate_price: 2510,
46
+ max_estimate_price: 14875,
47
+ estimate_distance: 20952,
48
+ estimate_time: 2145,
49
+ min_estimate_price_name: "25.10元",
50
+ max_estimate_price_name: "148.75元",
51
+ estimate_distance_name: "21公里",
52
+ estimate_time_name: "36分钟"
53
+ },
54
+ {
55
+ ride_type: 4,
56
+ ride_type_name: "豪华",
57
+ min_estimate_price: 4566,
58
+ max_estimate_price: 21461,
59
+ estimate_distance: 20952,
60
+ estimate_time: 2145,
61
+ min_estimate_price_name: "45.66元",
62
+ max_estimate_price_name: "214.61元",
63
+ estimate_distance_name: "21公里",
64
+ estimate_time_name: "36分钟"
65
+ }
66
+ ],
67
+ request_id: "7b906b3bb44c373a"
68
+ }
69
+ };