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.
- package/package.json +1 -1
- package/src/components/JfbThirdPay/WalletMix.js +1 -0
- package/src/components/JfbThirdRideCheckPay/Api.js +22 -0
- package/src/components/JfbThirdRideCheckPay/Attr.js +17 -0
- package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPay.vue +220 -0
- package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPayLess.less +80 -0
- package/src/components/JfbThirdRideCheckPay/JfbThirdRideCheckPayMixin.js +30 -0
- package/src/components/JfbThirdRideCheckPay/Mock.js +38 -0
- package/src/components/JfbThirdRideCheckPay/cusAttr/advanced.js +28 -0
- package/src/components/JfbThirdRideCheckPay/cusAttr/content.js +27 -0
- package/src/components/JfbThirdRideCheckPay/cusAttr/style.js +7 -0
- package/src/components/JfbThirdRideConfirm/Api.js +37 -0
- package/src/components/JfbThirdRideConfirm/Attr.js +17 -0
- package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirm.vue +530 -0
- package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirmLess.less +80 -0
- package/src/components/JfbThirdRideConfirm/JfbThirdRideConfirmMixin.js +30 -0
- package/src/components/JfbThirdRideConfirm/Mock.js +69 -0
- package/src/components/JfbThirdRideConfirm/cusAttr/advanced.js +22 -0
- package/src/components/JfbThirdRideConfirm/cusAttr/content.js +27 -0
- package/src/components/JfbThirdRideConfirm/cusAttr/style.js +7 -0
- package/src/components/JfbThirdRideGenOrder/Api.js +21 -0
- package/src/components/JfbThirdRideGenOrder/Attr.js +17 -0
- package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrder.vue +234 -0
- package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrderLess.less +80 -0
- package/src/components/JfbThirdRideGenOrder/JfbThirdRideGenOrderMixin.js +30 -0
- package/src/components/JfbThirdRideGenOrder/Mock.js +11 -0
- package/src/components/JfbThirdRideGenOrder/cusAttr/advanced.js +37 -0
- package/src/components/JfbThirdRideGenOrder/cusAttr/content.js +7 -0
- package/src/components/JfbThirdRideGenOrder/cusAttr/style.js +7 -0
- package/src/components/JfbThirdRideHome/Api.js +44 -0
- package/src/components/JfbThirdRideHome/Attr.js +17 -0
- package/src/components/JfbThirdRideHome/JfbThirdRideHome.vue +831 -0
- package/src/components/JfbThirdRideHome/JfbThirdRideHomeLess.less +80 -0
- package/src/components/JfbThirdRideHome/JfbThirdRideHomeMixin.js +30 -0
- package/src/components/JfbThirdRideHome/Mock.js +13 -0
- package/src/components/JfbThirdRideHome/cusAttr/advanced.js +52 -0
- package/src/components/JfbThirdRideHome/cusAttr/content.js +27 -0
- package/src/components/JfbThirdRideHome/cusAttr/style.js +7 -0
- package/src/components/JfbThirdRideRecord/Api.js +22 -0
- package/src/components/JfbThirdRideRecord/Attr.js +17 -0
- package/src/components/JfbThirdRideRecord/JfbThirdRideRecord.vue +517 -0
- package/src/components/JfbThirdRideRecord/JfbThirdRideRecordLess.less +80 -0
- package/src/components/JfbThirdRideRecord/JfbThirdRideRecordMixin.js +30 -0
- package/src/components/JfbThirdRideRecord/Mock.js +44 -0
- package/src/components/JfbThirdRideRecord/cusAttr/advanced.js +22 -0
- package/src/components/JfbThirdRideRecord/cusAttr/content.js +27 -0
- package/src/components/JfbThirdRideRecord/cusAttr/style.js +7 -0
- package/src/components/JfbThirdRideStartEnd/Api.js +20 -0
- package/src/components/JfbThirdRideStartEnd/Attr.js +17 -0
- package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEnd.vue +364 -0
- package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEndLess.less +80 -0
- package/src/components/JfbThirdRideStartEnd/JfbThirdRideStartEndMixin.js +30 -0
- package/src/components/JfbThirdRideStartEnd/Mock.js +17 -0
- package/src/components/JfbThirdRideStartEnd/cusAttr/advanced.js +22 -0
- package/src/components/JfbThirdRideStartEnd/cusAttr/content.js +27 -0
- package/src/components/JfbThirdRideStartEnd/cusAttr/style.js +7 -0
- 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,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,364 @@
|
|
|
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.getCoordinatesData();
|
|
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 获取定位信息:成功则进入正常页面,失败则显示失败页
|
|
124
|
+
*/
|
|
125
|
+
getCoordinatesData(){
|
|
126
|
+
this.locateFailed = false;
|
|
127
|
+
//获取当前位置坐标信息
|
|
128
|
+
this.getCoordinates().then(coords => {
|
|
129
|
+
this.currentCoords = coords;
|
|
130
|
+
this.locateFailed = false;
|
|
131
|
+
console.log('getCoordinates result', coords);
|
|
132
|
+
}).catch(err => {
|
|
133
|
+
//定位失败:显示失败页,禁止搜索请求
|
|
134
|
+
this.locateFailed = true;
|
|
135
|
+
console.warn('getCoordinates error', err);
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* @description 重试定位
|
|
140
|
+
*/
|
|
141
|
+
handleRetryLocation(){
|
|
142
|
+
this.getCoordinatesData();
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* @description 根据关键词搜索地点
|
|
146
|
+
*/
|
|
147
|
+
getList(){
|
|
148
|
+
if (!this.keyword) return;
|
|
149
|
+
//定位失败时禁止请求搜索接口
|
|
150
|
+
if (this.locateFailed) {
|
|
151
|
+
console.warn('定位失败,禁止搜索');
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
//坐标兼容:mixin返回longitude/latitude,此处映射为接口所需的lng/lat
|
|
155
|
+
const coords = this.currentCoords || {};
|
|
156
|
+
const lng = coords.lng !== undefined ? coords.lng : coords.longitude;
|
|
157
|
+
const lat = coords.lat !== undefined ? coords.lat : coords.latitude;
|
|
158
|
+
jfbRootExec("searchRidePlaces", {
|
|
159
|
+
vm: this,
|
|
160
|
+
data: {
|
|
161
|
+
channel_code: "amapcar",
|
|
162
|
+
keyword: this.keyword,
|
|
163
|
+
lng: lng !== undefined ? String(lng) : "",
|
|
164
|
+
lat: lat !== undefined ? String(lat) : "",
|
|
165
|
+
}
|
|
166
|
+
}).then(res => {
|
|
167
|
+
this.placeList = (res && res.list) || [];
|
|
168
|
+
}).catch(err => {
|
|
169
|
+
console.warn('searchRidePlaces error', err);
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
* @description 选择某个地址:暂存结果并返回上一页(JfbThirdRideHome)回显
|
|
174
|
+
* @param item {object} 选中的地址项
|
|
175
|
+
*/
|
|
176
|
+
handleSelect(item) {
|
|
177
|
+
console.log('select address', item);
|
|
178
|
+
if (!this.addressType) {
|
|
179
|
+
console.warn('未获取到地址类型 addressType');
|
|
180
|
+
}
|
|
181
|
+
//暂存选中结果:按起点/终点分区保存,供上一页回显与下单估算(由上一页读取后移除)
|
|
182
|
+
const saved = storage.get(RIDE_ADDRESS_KEY) || {};
|
|
183
|
+
const type = this.addressType === 'start' ? 'start' : 'end';
|
|
184
|
+
saved[type] = item;
|
|
185
|
+
storage.set(RIDE_ADDRESS_KEY, saved);
|
|
186
|
+
//返回上一页(JfbThirdRideHome),由其onJfbShow读取回显
|
|
187
|
+
this.$xdUniHelper.navigateBack();
|
|
188
|
+
},
|
|
189
|
+
/**
|
|
190
|
+
* @description 删除单个地点记录
|
|
191
|
+
* @param index {number} 索引
|
|
192
|
+
*/
|
|
193
|
+
handleDeleteItem(index) {
|
|
194
|
+
this.placeList.splice(index, 1);
|
|
195
|
+
},
|
|
196
|
+
/**
|
|
197
|
+
* @description 清空地点列表
|
|
198
|
+
*/
|
|
199
|
+
handleClearHistory() {
|
|
200
|
+
this.placeList = [];
|
|
201
|
+
},
|
|
202
|
+
onJfbScroll(options) {
|
|
203
|
+
console.log('event.onJfbScroll', options)
|
|
204
|
+
},
|
|
205
|
+
onJfbReachBottom(options) {
|
|
206
|
+
console.log('event.onJfbReachBottom', options)
|
|
207
|
+
},
|
|
208
|
+
onJfbShow(options) {
|
|
209
|
+
console.log('event.onJfbShow', options)
|
|
210
|
+
},
|
|
211
|
+
onJfbHide(options) {
|
|
212
|
+
console.log('event.onJfbHide', options)
|
|
213
|
+
},
|
|
214
|
+
onJfbBack(options) {
|
|
215
|
+
console.log('event.onJfbBack', options)
|
|
216
|
+
},
|
|
217
|
+
onJfbUpdate(...data) {
|
|
218
|
+
console.log('event.onJfbUpdate', data)
|
|
219
|
+
},
|
|
220
|
+
onJfbCustomEvent({action, data}){
|
|
221
|
+
if(action === 'baseHeader@search'){
|
|
222
|
+
console.log('onJfbCustomEvent',action, data);
|
|
223
|
+
uni.pageScrollTo({
|
|
224
|
+
scrollTop: 0,
|
|
225
|
+
duration: 0
|
|
226
|
+
});
|
|
227
|
+
this.keyword = data;
|
|
228
|
+
this.getList();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
</script>
|
|
235
|
+
|
|
236
|
+
<style scoped lang="less">
|
|
237
|
+
@import "./JfbThirdRideStartEndLess.less";
|
|
238
|
+
|
|
239
|
+
.jfb-third-ride-start-end {
|
|
240
|
+
&__body {
|
|
241
|
+
background-color: #ffffff;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&__header {
|
|
245
|
+
display: flex;
|
|
246
|
+
align-items: center;
|
|
247
|
+
justify-content: space-between;
|
|
248
|
+
padding-bottom: 24rpx;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
&__header-title {
|
|
252
|
+
font-size: unit(32, rpx);
|
|
253
|
+
font-weight: bold;
|
|
254
|
+
color: #333333;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&__header-clear {
|
|
258
|
+
font-size: unit(28, rpx);
|
|
259
|
+
color: #999999;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&__list {
|
|
263
|
+
display: flex;
|
|
264
|
+
flex-direction: column;
|
|
265
|
+
padding: 32rpx 24rpx;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
//暂无数据
|
|
269
|
+
&__empty {
|
|
270
|
+
display: flex;
|
|
271
|
+
align-items: center;
|
|
272
|
+
justify-content: center;
|
|
273
|
+
padding: 120rpx 0;
|
|
274
|
+
font-size: unit(28, rpx);
|
|
275
|
+
color: #999999;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&__item {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
padding: 24rpx 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
&__item-icon {
|
|
285
|
+
display: flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
justify-content: center;
|
|
288
|
+
width: 64rpx;
|
|
289
|
+
height: 64rpx;
|
|
290
|
+
margin-right: 20rpx;
|
|
291
|
+
background: #fdeaea;
|
|
292
|
+
border-radius: 16rpx;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
&__item-info {
|
|
296
|
+
flex: 1;
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
min-width: 0;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
&__item-name {
|
|
303
|
+
font-size: unit(30, rpx);
|
|
304
|
+
color: #333333;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&__item-address {
|
|
308
|
+
font-size: unit(26, rpx);
|
|
309
|
+
color: #999999;
|
|
310
|
+
margin-top: 8rpx;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
&__item-delete {
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
padding: 10rpx;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
//定位失败页
|
|
320
|
+
&__locate-fail {
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-direction: column;
|
|
323
|
+
align-items: center;
|
|
324
|
+
padding-top: 200rpx;
|
|
325
|
+
|
|
326
|
+
&-icon {
|
|
327
|
+
display: flex;
|
|
328
|
+
align-items: center;
|
|
329
|
+
justify-content: center;
|
|
330
|
+
width: 112rpx;
|
|
331
|
+
height: 112rpx;
|
|
332
|
+
background: #fdeaea;
|
|
333
|
+
border-radius: 50%;
|
|
334
|
+
margin-bottom: 32rpx;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
&-title {
|
|
338
|
+
font-size: unit(34, rpx);
|
|
339
|
+
font-weight: bold;
|
|
340
|
+
color: #333333;
|
|
341
|
+
margin-bottom: 16rpx;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&-desc {
|
|
345
|
+
font-size: unit(26, rpx);
|
|
346
|
+
color: #999999;
|
|
347
|
+
margin-bottom: 48rpx;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
&-btn {
|
|
351
|
+
display: flex;
|
|
352
|
+
align-items: center;
|
|
353
|
+
justify-content: center;
|
|
354
|
+
min-width: 180rpx;
|
|
355
|
+
height: 72rpx;
|
|
356
|
+
padding: 0 40rpx;
|
|
357
|
+
background: #e53a2f;
|
|
358
|
+
border-radius: 36rpx;
|
|
359
|
+
color: #ffffff;
|
|
360
|
+
font-size: unit(28, rpx);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
</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,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
|
+
}
|