jufubao-third 1.0.21 → 1.0.22-beta10

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 (67) hide show
  1. package/.claude/settings.local.json +12 -0
  2. package/package.json +1 -1
  3. package/src/components/JfbThirdPay/WalletMix.js +1 -0
  4. package/src/components/JfbThirdRideCheckPay/Api.js +18 -0
  5. package/src/components/JfbThirdRideCheckPay/Attr.js +17 -0
  6. package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPay.vue +217 -0
  7. package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPayLess.less +80 -0
  8. package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPayMixin.js +30 -0
  9. package/src/components/JfbThirdRideCheckPay/Mock.js +7 -0
  10. package/src/components/JfbThirdRideCheckPay/cusAttr/advanced.js +28 -0
  11. package/src/components/JfbThirdRideCheckPay/cusAttr/content.js +27 -0
  12. package/src/components/JfbThirdRideCheckPay/cusAttr/style.js +7 -0
  13. package/src/components/JfbThirdRideConfirm/Api.js +37 -0
  14. package/src/components/JfbThirdRideConfirm/Attr.js +17 -0
  15. package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirm.vue +527 -0
  16. package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirmLess.less +80 -0
  17. package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirmMixin.js +30 -0
  18. package/src/components/JfbThirdRideConfirm/Mock.js +69 -0
  19. package/src/components/JfbThirdRideConfirm/cusAttr/advanced.js +7 -0
  20. package/src/components/JfbThirdRideConfirm/cusAttr/content.js +27 -0
  21. package/src/components/JfbThirdRideConfirm/cusAttr/style.js +7 -0
  22. package/src/components/JfbThirdRideGenOrder/Api.js +21 -0
  23. package/src/components/JfbThirdRideGenOrder/Attr.js +17 -0
  24. package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrder.vue +234 -0
  25. package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrderLess.less +80 -0
  26. package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrderMixin.js +30 -0
  27. package/src/components/JfbThirdRideGenOrder/Mock.js +11 -0
  28. package/src/components/JfbThirdRideGenOrder/cusAttr/advanced.js +37 -0
  29. package/src/components/JfbThirdRideGenOrder/cusAttr/content.js +7 -0
  30. package/src/components/JfbThirdRideGenOrder/cusAttr/style.js +7 -0
  31. package/src/components/JfbThirdRideHome/Api.js +44 -0
  32. package/src/components/JfbThirdRideHome/Attr.js +17 -0
  33. package/src/components/JfbThirdRideHome/JfbThirdRideHome.vue +831 -0
  34. package/src/components/JfbThirdRideHome/JfbThirdRideHomeLess.less +80 -0
  35. package/src/components/JfbThirdRideHome/JfbThirdRideHomeMixin.js +30 -0
  36. package/src/components/JfbThirdRideHome/Mock.js +13 -0
  37. package/src/components/JfbThirdRideHome/cusAttr/advanced.js +52 -0
  38. package/src/components/JfbThirdRideHome/cusAttr/content.js +27 -0
  39. package/src/components/JfbThirdRideHome/cusAttr/style.js +7 -0
  40. package/src/components/JfbThirdRideLand/Api.js +58 -0
  41. package/src/components/JfbThirdRideLand/Attr.js +17 -0
  42. package/src/components/JfbThirdRideLand/JfbThirdRideLand.vue +256 -0
  43. package/src/components/JfbThirdRideLand/JfbThirdRideLandLess.less +80 -0
  44. package/src/components/JfbThirdRideLand/JfbThirdRideLandMixin.js +30 -0
  45. package/src/components/JfbThirdRideLand/Mock.js +13 -0
  46. package/src/components/JfbThirdRideLand/cusAttr/advanced.js +22 -0
  47. package/src/components/JfbThirdRideLand/cusAttr/content.js +60 -0
  48. package/src/components/JfbThirdRideLand/cusAttr/style.js +109 -0
  49. package/src/components/JfbThirdRideRecord/Api.js +33 -0
  50. package/src/components/JfbThirdRideRecord/Attr.js +17 -0
  51. package/src/components/JfbThirdRideRecord/JfbThirdRideRecord.vue +533 -0
  52. package/src/components/JfbThirdRideRecord/JfbThirdRideRecordLess.less +80 -0
  53. package/src/components/JfbThirdRideRecord/JfbThirdRideRecordMixin.js +30 -0
  54. package/src/components/JfbThirdRideRecord/Mock.js +44 -0
  55. package/src/components/JfbThirdRideRecord/cusAttr/advanced.js +22 -0
  56. package/src/components/JfbThirdRideRecord/cusAttr/content.js +27 -0
  57. package/src/components/JfbThirdRideRecord/cusAttr/style.js +7 -0
  58. package/src/components/JfbThirdRideStartEnd/Api.js +20 -0
  59. package/src/components/JfbThirdRideStartEnd/Attr.js +17 -0
  60. package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEnd.vue +382 -0
  61. package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEndLess.less +80 -0
  62. package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEndMixin.js +30 -0
  63. package/src/components/JfbThirdRideStartEnd/Mock.js +17 -0
  64. package/src/components/JfbThirdRideStartEnd/cusAttr/advanced.js +22 -0
  65. package/src/components/JfbThirdRideStartEnd/cusAttr/content.js +27 -0
  66. package/src/components/JfbThirdRideStartEnd/cusAttr/style.js +7 -0
  67. package/src/mixins/getCoordinatesMixins.js +407 -0
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+ import { dataVal } from "@/utils/AttrTools";
3
+
4
+ export default (data, gValue, gColor, oldData) => {
5
+ return [
6
+ //内容
7
+ {
8
+ label: "业务线",
9
+ ele: "xd-choose-namespace",
10
+ valueKey: "xnamespace",
11
+ value: dataVal({data, key:'xnamespace', dValue:"", gValue}),
12
+ groupKey:'content',
13
+ className: 'input80',
14
+ labelInline:true,
15
+ placeholder: '请选择业务线',
16
+ notice: '空继承上级业务线',
17
+ inline: false,
18
+ handleCustom: (cb) => {
19
+ XdBus.getParentApi('getOptionsNamespaces')()
20
+ .then(res => {
21
+ cb(res.list)
22
+ })
23
+ .catch();
24
+ }
25
+ },
26
+ ].filter(i=>i)
27
+ }
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ export default (data, gValue, gColor, oldData) => {
4
+ return [
5
+ //风格
6
+ ].filter(i=>i)
7
+ }
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Ride
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ //设置方法名字当别忘记加上【模块名字】:Ride
10
+ mapFnName: 'searchRidePlaces',
11
+ title: '打车 - 搜索地点',
12
+ path: '/thirdmall-pb/v1/:channel_code/ride/search-places',
13
+ isRule: false,
14
+ data: {
15
+ channel_code: ['渠道编码', 'String', '必选','amapcar'],
16
+ },
17
+ isConsole: true,
18
+ disabled: true,
19
+ },
20
+ ];
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ import style from "./cusAttr/style";
4
+ import advanced from "./cusAttr/advanced";
5
+ import content from "./cusAttr/content";
6
+
7
+ export default {
8
+ style: [],
9
+ advanced: [],
10
+ content: (data, gValue, gColor, oldData={})=>{
11
+ return [
12
+ ...content(data, gValue, gColor, oldData),
13
+ ...style(data, gValue, gColor, oldData),
14
+ ...advanced(data, gValue, gColor, oldData),
15
+ ].filter(i=>i)
16
+ },
17
+ }
@@ -0,0 +1,382 @@
1
+ <template>
2
+ <view
3
+ class="jfb-third-ride-start-end"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-third-ride-start-end__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-third-ride-start-end__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 class="jfb-third-ride-start-end__body">
19
+ <!-- 定位失败页面 -->
20
+ <view v-if="locateFailed" class="jfb-third-ride-start-end__locate-fail">
21
+ <view class="jfb-third-ride-start-end__locate-fail-icon">
22
+ <xd-font-icon icon="iconmingchengtubiao" color="#e53a2f" size="40"></xd-font-icon>
23
+ </view>
24
+ <view class="jfb-third-ride-start-end__locate-fail-title">定位失败</view>
25
+ <view class="jfb-third-ride-start-end__locate-fail-desc">无法获取当前位置,请检查定位权限后重试</view>
26
+ <view class="jfb-third-ride-start-end__locate-fail-btn" @click="handleRetryLocation">
27
+ <xd-font-icon icon="iconmian-loading" color="#ffffff" size="30" style="margin-right: 10rpx"></xd-font-icon>
28
+ 重试
29
+ </view>
30
+ </view>
31
+
32
+ <!-- 搜索列表 -->
33
+ <view v-else class="jfb-third-ride-start-end__list">
34
+ <view
35
+ class="jfb-third-ride-start-end__item"
36
+ v-for="(item, index) in placeList"
37
+ :key="index"
38
+ @click="handleSelect(item)"
39
+ >
40
+ <view class="jfb-third-ride-start-end__item-icon">
41
+ <xd-font-icon icon="icondingweixiao" color="#e53a2f" size="30"></xd-font-icon>
42
+ </view>
43
+ <view class="jfb-third-ride-start-end__item-info">
44
+ <view class="jfb-third-ride-start-end__item-name">{{ item.name }}</view>
45
+ <view class="jfb-third-ride-start-end__item-address">{{ item.address }}</view>
46
+ </view>
47
+ <!-- <view class="jfb-third-ride-start-end__item-delete" @click.stop="handleDeleteItem(index)">
48
+ <xd-font-icon icon="iconguanbi_xian" color="#c8c9cc" size="24"></xd-font-icon>
49
+ </view> -->
50
+ </view>
51
+ <!-- 接口返回值为空 -->
52
+ <!-- <view v-if="!placeList.length" class="jfb-third-ride-start-end__empty">暂无数据</view> -->
53
+ </view>
54
+ </view>
55
+ </view>
56
+ </template>
57
+
58
+ <script>
59
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
60
+ import { jfbRootExec } from "@/utils/xd.event";
61
+ import JfbThirdRideStartEndMixin from "./JfbThirdRideStartEndMixin";
62
+ import { gCPVal } from "@/utils/xd.base";
63
+ import componentsMixins from "@/mixins/componentsMixins";
64
+ import extsMixins from "@/mixins/extsMixins";
65
+ import getCoordinatesMixins from "@/mixins/getCoordinatesMixins";
66
+ import storage from "@/common/storage"
67
+ //选择地址后暂存结果供上一页回显(string: 传address.storage key)(选择后立即删除)
68
+ const RIDE_ADDRESS_KEY = 'jfb_third_ride_address';
69
+ export default {
70
+ name: "JfbThirdRideStartEnd",
71
+ components: {
72
+ XdFontIcon
73
+ },
74
+ mixins: [
75
+ componentsMixins, extsMixins, JfbThirdRideStartEndMixin, getCoordinatesMixins
76
+ ],
77
+ data() {
78
+ return {
79
+ //业务线
80
+ xnamespace: '',
81
+ //搜索关键词
82
+ keyword: '',
83
+ //搜索结果列表(由searchRidePlaces接口返回填充)
84
+ placeList: [],
85
+ //当前位置坐标
86
+ currentCoords: {},
87
+ //定位是否失败(失败时显示失败页且不请求搜索接口)
88
+ locateFailed: false,
89
+ //当前选择的是起点(start)还是终点(end),来自上一页href type参数
90
+ addressType: '',
91
+
92
+ //todo
93
+ }
94
+ },
95
+ watch: {
96
+ container(value, oldValue) {
97
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
98
+ if (this.$configProject['isPreview']) this.init(value)
99
+ },
100
+ },
101
+ created() {
102
+ this.init(this.container);
103
+ this.initPlaces();
104
+
105
+ //todo
106
+ },
107
+ methods: {
108
+ onJfbLoad(options) {
109
+ //解析上一页跳转传参 type(起点start/终点end)
110
+ this.addressType = (options && options.type) || '';
111
+ console.log('onJfbLoad addressType', this.addressType);
112
+ },
113
+ /**
114
+ * @description 监听事件变化
115
+ * @param container {object} 业务组件对象自己
116
+ */
117
+ init(container) {
118
+ //业务线
119
+ this.xnamespace = gCPVal(container, 'xnamespace', '');
120
+ // this.selectToLocationPath = gCPVal(container, 'content.selectToLocationPath', {value: ""}).value;
121
+ },
122
+ /**
123
+ * @description 初始化地点列表:预览模式不请求定位、不判断定位失败,默认展示接口mock数据;非预览模式按定位逻辑
124
+ */
125
+ initPlaces(){
126
+ //预览模式:跳过定位,直接通过jfbRootExec加载mock列表(底层自动命中Mock.js数据)
127
+ if (this.$configProject['isPreview']) {
128
+ this.locateFailed = false;
129
+ this.getList();
130
+ return;
131
+ }
132
+ //非预览模式:请求定位
133
+ this.getCoordinatesData();
134
+ },
135
+ /**
136
+ * @description 获取定位信息:成功则进入正常页面,失败则显示失败页
137
+ */
138
+ getCoordinatesData(){
139
+ this.locateFailed = false;
140
+ //获取当前位置坐标信息
141
+ this.getCoordinates().then(coords => {
142
+ this.currentCoords = coords;
143
+ this.locateFailed = false;
144
+ console.log('getCoordinates result', coords);
145
+ }).catch(err => {
146
+ //定位失败:显示失败页,禁止搜索请求
147
+ this.locateFailed = true;
148
+ console.warn('getCoordinates error', err);
149
+ });
150
+ },
151
+ /**
152
+ * @description 重试定位
153
+ */
154
+ handleRetryLocation(){
155
+ this.getCoordinatesData();
156
+ },
157
+ /**
158
+ * @description 根据关键词搜索地点(预览模式下底层自动使用Mock.js数据,无需keyword与定位)
159
+ */
160
+ getList(){
161
+ const isPreview = this.$configProject['isPreview'];
162
+ //预览模式无需keyword;非预览模式必须有关键词,且定位失败时禁止搜索
163
+ if (!isPreview) {
164
+ if (!this.keyword) return;
165
+ if (this.locateFailed) {
166
+ console.warn('定位失败,禁止搜索');
167
+ return;
168
+ }
169
+ }
170
+ //坐标兼容:mixin返回longitude/latitude,此处映射为接口所需的lng/lat
171
+ const coords = this.currentCoords || {};
172
+ const lng = coords.lng !== undefined ? coords.lng : coords.longitude;
173
+ const lat = coords.lat !== undefined ? coords.lat : coords.latitude;
174
+ //统一调用jfbRootExec:预览模式底层自动命中Mock.js数据
175
+ jfbRootExec("searchRidePlaces", {
176
+ vm: this,
177
+ data: {
178
+ channel_code: "amapcar",
179
+ keyword: this.keyword,
180
+ lng: lng !== undefined ? String(lng) : "",
181
+ lat: lat !== undefined ? String(lat) : "",
182
+ }
183
+ }).then(res => {
184
+ this.placeList = (res && res.list) || [];
185
+ this.locateFailed = false;
186
+ }).catch(err => {
187
+ console.warn('searchRidePlaces error', err);
188
+ });
189
+ },
190
+ /**
191
+ * @description 选择某个地址:暂存结果并返回上一页(JfbThirdRideHome)回显
192
+ * @param item {object} 选中的地址项
193
+ */
194
+ handleSelect(item) {
195
+ console.log('select address', item);
196
+ if (!this.addressType) {
197
+ console.warn('未获取到地址类型 addressType');
198
+ }
199
+ //暂存选中结果:按起点/终点分区保存,供上一页回显与下单估算(由上一页读取后移除)
200
+ const saved = storage.get(RIDE_ADDRESS_KEY) || {};
201
+ const type = this.addressType === 'start' ? 'start' : 'end';
202
+ saved[type] = item;
203
+ storage.set(RIDE_ADDRESS_KEY, saved);
204
+ //返回上一页(JfbThirdRideHome),由其onJfbShow读取回显
205
+ this.$xdUniHelper.navigateBack();
206
+ },
207
+ /**
208
+ * @description 删除单个地点记录
209
+ * @param index {number} 索引
210
+ */
211
+ handleDeleteItem(index) {
212
+ this.placeList.splice(index, 1);
213
+ },
214
+ /**
215
+ * @description 清空地点列表
216
+ */
217
+ handleClearHistory() {
218
+ this.placeList = [];
219
+ },
220
+ onJfbScroll(options) {
221
+ console.log('event.onJfbScroll', options)
222
+ },
223
+ onJfbReachBottom(options) {
224
+ console.log('event.onJfbReachBottom', options)
225
+ },
226
+ onJfbShow(options) {
227
+ console.log('event.onJfbShow', options)
228
+ },
229
+ onJfbHide(options) {
230
+ console.log('event.onJfbHide', options)
231
+ },
232
+ onJfbBack(options) {
233
+ console.log('event.onJfbBack', options)
234
+ },
235
+ onJfbUpdate(...data) {
236
+ console.log('event.onJfbUpdate', data)
237
+ },
238
+ onJfbCustomEvent({action, data}){
239
+ if(action === 'baseHeader@search'){
240
+ console.log('onJfbCustomEvent',action, data);
241
+ uni.pageScrollTo({
242
+ scrollTop: 0,
243
+ duration: 0
244
+ });
245
+ this.keyword = data;
246
+ this.getList();
247
+ }
248
+ }
249
+ }
250
+ }
251
+
252
+ </script>
253
+
254
+ <style scoped lang="less">
255
+ @import "./JfbThirdRideStartEndLess.less";
256
+
257
+ .jfb-third-ride-start-end {
258
+ &__body {
259
+ background-color: #ffffff;
260
+ }
261
+
262
+ &__header {
263
+ display: flex;
264
+ align-items: center;
265
+ justify-content: space-between;
266
+ padding-bottom: 24rpx;
267
+ }
268
+
269
+ &__header-title {
270
+ font-size: unit(32, rpx);
271
+ font-weight: bold;
272
+ color: #333333;
273
+ }
274
+
275
+ &__header-clear {
276
+ font-size: unit(28, rpx);
277
+ color: #999999;
278
+ }
279
+
280
+ &__list {
281
+ display: flex;
282
+ flex-direction: column;
283
+ padding: 32rpx 24rpx;
284
+ }
285
+
286
+ //暂无数据
287
+ &__empty {
288
+ display: flex;
289
+ align-items: center;
290
+ justify-content: center;
291
+ padding: 120rpx 0;
292
+ font-size: unit(28, rpx);
293
+ color: #999999;
294
+ }
295
+
296
+ &__item {
297
+ display: flex;
298
+ align-items: center;
299
+ padding: 24rpx 0;
300
+ }
301
+
302
+ &__item-icon {
303
+ display: flex;
304
+ align-items: center;
305
+ justify-content: center;
306
+ width: 64rpx;
307
+ height: 64rpx;
308
+ margin-right: 20rpx;
309
+ background: #fdeaea;
310
+ border-radius: 16rpx;
311
+ }
312
+
313
+ &__item-info {
314
+ flex: 1;
315
+ display: flex;
316
+ flex-direction: column;
317
+ min-width: 0;
318
+ }
319
+
320
+ &__item-name {
321
+ font-size: unit(30, rpx);
322
+ color: #333333;
323
+ }
324
+
325
+ &__item-address {
326
+ font-size: unit(26, rpx);
327
+ color: #999999;
328
+ margin-top: 8rpx;
329
+ }
330
+
331
+ &__item-delete {
332
+ display: flex;
333
+ align-items: center;
334
+ padding: 10rpx;
335
+ }
336
+
337
+ //定位失败页
338
+ &__locate-fail {
339
+ display: flex;
340
+ flex-direction: column;
341
+ align-items: center;
342
+ padding-top: 200rpx;
343
+
344
+ &-icon {
345
+ display: flex;
346
+ align-items: center;
347
+ justify-content: center;
348
+ width: 112rpx;
349
+ height: 112rpx;
350
+ background: #fdeaea;
351
+ border-radius: 50%;
352
+ margin-bottom: 32rpx;
353
+ }
354
+
355
+ &-title {
356
+ font-size: unit(34, rpx);
357
+ font-weight: bold;
358
+ color: #333333;
359
+ margin-bottom: 16rpx;
360
+ }
361
+
362
+ &-desc {
363
+ font-size: unit(26, rpx);
364
+ color: #999999;
365
+ margin-bottom: 48rpx;
366
+ }
367
+
368
+ &-btn {
369
+ display: flex;
370
+ align-items: center;
371
+ justify-content: center;
372
+ min-width: 180rpx;
373
+ height: 72rpx;
374
+ padding: 0 40rpx;
375
+ background: #e53a2f;
376
+ border-radius: 36rpx;
377
+ color: #ffffff;
378
+ font-size: unit(28, rpx);
379
+ }
380
+ }
381
+ }
382
+ </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-start-end {
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-start-end {
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-start-end'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ searchRidePlaces:{
6
+ "list": [
7
+ {
8
+ "name": "故宫",
9
+ "address": "北京市故宫路",
10
+ "lng": "116.397428",
11
+ "lat": "39.90923",
12
+ "distance": 0
13
+ }
14
+ ]
15
+ },
16
+
17
+ }
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ export default (data, gValue, gColor, oldData) => {
4
+ return [
5
+ //高级
6
+ // {
7
+ // label: '选择跳转地址',
8
+ // groupKey:'advanced',
9
+ // className: 'input100',
10
+ // ele: 'xd-select-pages-path',
11
+ // valueKey: 'selectToLocationPath',
12
+ // placeholder: '请选择跳转地址路径',
13
+ // labelInline: true,
14
+ // inline: false,
15
+ // value: data['selectToLocationPath'] || null,
16
+ // setting: {
17
+ // mode:'new',
18
+ // router: XdBus.getParentApi('getPagesTree')
19
+ // },
20
+ // },
21
+ ].filter(i=>i)
22
+ }
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+ import { dataVal } from "@/utils/AttrTools";
3
+
4
+ export default (data, gValue, gColor, oldData) => {
5
+ return [
6
+ //内容
7
+ {
8
+ label: "业务线",
9
+ ele: "xd-choose-namespace",
10
+ valueKey: "xnamespace",
11
+ value: dataVal({data, key:'xnamespace', dValue:"", gValue}),
12
+ groupKey:'content',
13
+ className: 'input80',
14
+ labelInline:true,
15
+ placeholder: '请选择业务线',
16
+ notice: '空继承上级业务线',
17
+ inline: false,
18
+ handleCustom: (cb) => {
19
+ XdBus.getParentApi('getOptionsNamespaces')()
20
+ .then(res => {
21
+ cb(res.list)
22
+ })
23
+ .catch();
24
+ }
25
+ },
26
+ ].filter(i=>i)
27
+ }
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ export default (data, gValue, gColor, oldData) => {
4
+ return [
5
+ //风格
6
+ ].filter(i=>i)
7
+ }