jufubao-base 1.0.158 → 1.0.159-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.
- package/package.json +1 -1
- package/src/common/authorize.js +201 -70
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +4 -4
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +2 -1
- package/src/components/JfbBaseBack/JfbBaseBack.vue +7 -6
- package/src/components/JfbBaseCard/JfbBaseCard.vue +4 -1
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +54 -24
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +14 -14
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +313 -394
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +1 -1
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +4 -5
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -0
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +15 -19
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +5 -2
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +1 -1
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +20 -16
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +1 -1
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +1 -1
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +34 -18
- package/src/components/JfbBaseEntry/Attr.js +22 -0
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +76 -13
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +27 -18
- package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +2 -2
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +1 -1
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +3 -3
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +13 -0
- package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +52 -37
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +2 -1
- package/src/components/JfbBaseNotice/Attr.js +0 -2
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +30 -10
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +17 -1
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +2 -2
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +1 -1
- package/src/components/JfbBasePoster/JfbBasePoster.vue +118 -18
- package/src/components/JfbBasePoster/MoreScreen.vue +155 -37
- package/src/components/JfbBasePosterBigSmall/Attr.js +1 -4
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +191 -67
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +90 -20
- package/src/components/JfbBasePosterType/FourScreen.vue +156 -18
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -35
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +2 -1
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +2 -1
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +8 -7
- package/src/components/JfbBaseVideo/XdVideo.vue +0 -4
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +4 -13
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +5 -4
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +2 -2
- package/src/mixins/colorCardMixins.js +1 -1
|
@@ -185,24 +185,33 @@
|
|
|
185
185
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
186
186
|
this.subColor = getContainerPropsValue(container, 'content.textSubColor', '#000');
|
|
187
187
|
this.fontSubSize = getContainerPropsValue(container, 'content.fontSubSize', 24);
|
|
188
|
-
this.
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
188
|
+
if(this.is_layout === 'fixed') {
|
|
189
|
+
this.listNave = this.list.map(item=>{
|
|
190
|
+
debugger
|
|
191
|
+
const {appValue,path,host} = item.path
|
|
192
|
+
if(appValue === undefined && path === undefined) {
|
|
193
|
+
return { name: item.name, path: item.path.value, icon: item.icon, size: item.size}
|
|
194
|
+
}
|
|
195
|
+
else{
|
|
196
|
+
const {dir,fixed_business_code} = item.path;
|
|
197
|
+
let bus = fixed_business_code? Base64.encodeURI(JSON.stringify({business_code: fixed_business_code})):'';
|
|
198
|
+
if(bus) bus = `?x-common=${bus}`;
|
|
199
|
+
|
|
200
|
+
let jumpUrl = path;
|
|
201
|
+
|
|
202
|
+
//域名相同并且应用路径不相同时候处理
|
|
203
|
+
if(this.projectAttr['deploy_dir'] !== dir){
|
|
204
|
+
jumpUrl = `//${host}/${dir}${path}`;
|
|
205
|
+
//#ifdef MP-WEIXIN
|
|
206
|
+
jumpUrl = `https:${jumpUrl}`;
|
|
207
|
+
//#endif
|
|
208
|
+
}
|
|
209
|
+
return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
console.log(this.listNave,this.list);
|
|
213
|
+
debugger
|
|
214
|
+
}
|
|
206
215
|
|
|
207
216
|
},
|
|
208
217
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<view class="xd-fast-nave__body">
|
|
11
11
|
<view class="xd-fast-nave__body-close" v-if="close" @click="close=false">
|
|
12
12
|
<xd-font-icon icon="iconjiantou_zuo" color="#fff" size="30"></xd-font-icon>
|
|
13
|
-
<view>{{fastName}}</view>
|
|
13
|
+
<view v-if="0">{{fastName}}</view>
|
|
14
14
|
</view>
|
|
15
15
|
<view class="xd-fast-nave__body-open" v-else @click="close=true">
|
|
16
16
|
<xd-font-icon icon="iconjiantou_you" color="#fff" size="30"></xd-font-icon>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:key="index"
|
|
24
24
|
@click="handleClick(item)"
|
|
25
25
|
>
|
|
26
|
-
<view>
|
|
26
|
+
<view v-if="item.icon">
|
|
27
27
|
<xd-font-icon v-if="item.icon" :icon="item.icon" size="34" :color="color"></xd-font-icon>
|
|
28
28
|
</view>
|
|
29
29
|
<view :style="{color: color}">{{item.name}}</view>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
</view>
|
|
91
91
|
<view style="margin-top: 40rpx">
|
|
92
92
|
<xd-form
|
|
93
|
-
label-width="
|
|
93
|
+
label-width="150"
|
|
94
94
|
label-align="right"
|
|
95
95
|
content-align="left"
|
|
96
96
|
:border="true"
|
|
@@ -695,7 +695,7 @@ export default {
|
|
|
695
695
|
content: "请阅读并勾选读用户协议与隐私协议",
|
|
696
696
|
cancel: false,
|
|
697
697
|
confirmText: "我知道了",
|
|
698
|
-
|
|
698
|
+
styles: this.styles,
|
|
699
699
|
});
|
|
700
700
|
return;
|
|
701
701
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<view style="font-size:26rpx;color:#999;margin-top:20rpx;">请输入{{pwd_type_text}}并牢记</view>
|
|
26
26
|
</view>
|
|
27
27
|
<xd-form
|
|
28
|
-
label-width="
|
|
28
|
+
label-width="170"
|
|
29
29
|
label-align="right"
|
|
30
30
|
content-align="left"
|
|
31
31
|
:border="true"
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
import XdForm from "@/components/XdForm/XdForm";
|
|
78
78
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
79
79
|
import XdButton from "@/components/XdButton/XdButton";
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
82
|
export default {
|
|
83
83
|
name: "JfbBaseLoginSetPwd",
|
|
84
84
|
components: {
|
|
@@ -111,7 +111,20 @@
|
|
|
111
111
|
}).then(res => {
|
|
112
112
|
//iframe
|
|
113
113
|
if(res['is_ifream'] === 'Y') {
|
|
114
|
+
// #ifdef MP
|
|
115
|
+
if(!res.url){
|
|
116
|
+
return uni.showToast({
|
|
117
|
+
title: 'URL不存在',
|
|
118
|
+
duration: 2000
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
this.$xdUniHelper.redirectTo({
|
|
122
|
+
url: url,
|
|
123
|
+
})
|
|
124
|
+
// #endif
|
|
125
|
+
// #ifdef H5
|
|
114
126
|
this.iframe = res.url
|
|
127
|
+
// #endif
|
|
115
128
|
}
|
|
116
129
|
else{
|
|
117
130
|
this.overlays = res.data;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script>
|
|
9
|
+
import { mapState } from 'vuex'
|
|
9
10
|
export default {
|
|
10
11
|
name: "XdMapOverlay",
|
|
11
12
|
props: {
|
|
@@ -70,6 +71,12 @@
|
|
|
70
71
|
}
|
|
71
72
|
},
|
|
72
73
|
},
|
|
74
|
+
computed: {
|
|
75
|
+
...mapState({
|
|
76
|
+
stateCity: state => state.cityLocation.city,
|
|
77
|
+
stateLocation: state => state.cityLocation.location || {},
|
|
78
|
+
})
|
|
79
|
+
},
|
|
73
80
|
data() {
|
|
74
81
|
return {
|
|
75
82
|
uiLevel: 15,
|
|
@@ -92,43 +99,51 @@
|
|
|
92
99
|
created() {
|
|
93
100
|
this.uiLevel = this.level;
|
|
94
101
|
console.log("this.defaultOverlays", this.defaultOverlays)
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
102
|
+
if(this.defaultOverlays.length){
|
|
103
|
+
this.defaultOverlays.forEach(item => {
|
|
104
|
+
if (item.type === 'Polygon') {
|
|
105
|
+
this.polygons.push({
|
|
106
|
+
// fillColor: "#00FF00",
|
|
107
|
+
// strokeColor: "#FF0000",
|
|
108
|
+
points: item.value.map(point => ({
|
|
109
|
+
longitude: point[0],
|
|
110
|
+
latitude: point[1]
|
|
111
|
+
})),
|
|
112
|
+
...this.stroke,
|
|
113
|
+
});
|
|
114
|
+
let allX = item.value.map(p => p[0]);
|
|
115
|
+
let allY = item.value.map(p => p[1]);
|
|
116
|
+
let centerX = (Math.max(...allX) + Math.min(...allX)) / 2;
|
|
117
|
+
let centerY = (Math.max(...allY) + Math.min(...allY)) / 2;
|
|
118
|
+
this.uiCenter = {
|
|
119
|
+
longitude: centerX,
|
|
120
|
+
latitude: centerY
|
|
121
|
+
}
|
|
122
|
+
console.log("uiCenter", centerX, centerY)
|
|
123
|
+
} else if (item.type === 'Circle') {
|
|
124
|
+
this.circles.push({
|
|
125
|
+
fillColor: "#00FF00",
|
|
126
|
+
strokeColor: "#FF0000",
|
|
127
|
+
longitude: item.value[0][0],
|
|
128
|
+
latitude: item.value[0][1],
|
|
129
|
+
radius: item.r
|
|
130
|
+
})
|
|
131
|
+
if (!this.uiCenter) {
|
|
132
|
+
this.uiCenter = {
|
|
133
|
+
longitude: item.value[0][0],
|
|
134
|
+
latitude: item.value[0][1]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
console.log('uiCenter', item.value[0][0], item.value[0][1])
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
}else{
|
|
141
|
+
if(this.stateLocation.longitude && this.stateLocation.latitude){
|
|
142
|
+
this.uiCenter = this.stateLocation;
|
|
143
|
+
this.markers = [this.stateLocation];
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
132
147
|
}
|
|
133
148
|
}
|
|
134
149
|
</script>
|
|
@@ -51,7 +51,14 @@
|
|
|
51
51
|
</view>
|
|
52
52
|
</swiper-item>
|
|
53
53
|
</swiper>
|
|
54
|
-
<xd-notice-bar
|
|
54
|
+
<xd-notice-bar
|
|
55
|
+
:class="{isMp:isMp}"
|
|
56
|
+
v-else
|
|
57
|
+
:key="speedKey"
|
|
58
|
+
scrollable
|
|
59
|
+
:speed="speed"
|
|
60
|
+
background-color="rgba(0,0,0,0)"
|
|
61
|
+
>
|
|
55
62
|
<view
|
|
56
63
|
v-for="item in contentList"
|
|
57
64
|
class="jfb-base-notice__body-scroll-content"
|
|
@@ -212,6 +219,8 @@
|
|
|
212
219
|
|
|
213
220
|
backgroundColor: '',
|
|
214
221
|
is_hide_dailog:'N',
|
|
222
|
+
|
|
223
|
+
isMp:false
|
|
215
224
|
}
|
|
216
225
|
},
|
|
217
226
|
watch: {
|
|
@@ -235,7 +244,13 @@
|
|
|
235
244
|
this.speedKey = Date.now()
|
|
236
245
|
}, 400)
|
|
237
246
|
|
|
238
|
-
}
|
|
247
|
+
},
|
|
248
|
+
is_hide_dailog(value){
|
|
249
|
+
if(value === 'N') {
|
|
250
|
+
storage.remove(this.containerId);
|
|
251
|
+
this.onJfbLoad();
|
|
252
|
+
}
|
|
253
|
+
},
|
|
239
254
|
},
|
|
240
255
|
computed:{
|
|
241
256
|
marginUi() {
|
|
@@ -281,18 +296,14 @@
|
|
|
281
296
|
return this.num > 1
|
|
282
297
|
},
|
|
283
298
|
|
|
284
|
-
is_hide_dailog(value){
|
|
285
|
-
if(value === 'N') {
|
|
286
|
-
storage.remove(this.containerId);
|
|
287
|
-
this.onJfbLoad();
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
|
|
291
299
|
},
|
|
292
300
|
created() {
|
|
293
301
|
this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
294
302
|
this.isPreview = this.$configProject['isPreview'];
|
|
295
303
|
this.init(this.container);
|
|
304
|
+
//#ifdef MP-WEIXIN
|
|
305
|
+
this.isMp = true;
|
|
306
|
+
//#endif
|
|
296
307
|
},
|
|
297
308
|
methods: {
|
|
298
309
|
|
|
@@ -324,7 +335,12 @@
|
|
|
324
335
|
|
|
325
336
|
if(this.style === '2') {
|
|
326
337
|
this.num = getContainerPropsValue(container, 'content.num', 1);
|
|
338
|
+
//#ifdef H5
|
|
327
339
|
this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
|
|
340
|
+
//#endif
|
|
341
|
+
//#ifdef MP-WEIXIN
|
|
342
|
+
this.speed = Number(getContainerPropsValue(container, 'content.speed', 30))/2.5;
|
|
343
|
+
//#endif
|
|
328
344
|
}
|
|
329
345
|
else this.num = 1;
|
|
330
346
|
this.is_hide_dailog = getContainerPropsValue(container, 'content.is_hide_dailog', 'N');
|
|
@@ -334,7 +350,7 @@
|
|
|
334
350
|
console.log('this.time', this.time * 60 + '分钟');
|
|
335
351
|
storage.set(this.containerId, 1, this.time);
|
|
336
352
|
this.$xdConfirm({
|
|
337
|
-
|
|
353
|
+
styles: this.styles,
|
|
338
354
|
title: this.title || this.ajaxTitle,
|
|
339
355
|
content: this.content,
|
|
340
356
|
isHtml: true,
|
|
@@ -518,6 +534,10 @@
|
|
|
518
534
|
overflow-y: auto;
|
|
519
535
|
margin: unit(40, rpx) unit(10, rpx) unit(20, rpx);
|
|
520
536
|
}
|
|
537
|
+
|
|
521
538
|
}
|
|
522
539
|
}
|
|
540
|
+
.isMp {
|
|
541
|
+
width: 100%;
|
|
542
|
+
}
|
|
523
543
|
</style>
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
2
|
+
<view
|
|
3
|
+
v-if="show"
|
|
4
|
+
class="uni-noticebar"
|
|
5
|
+
@click="onClick"
|
|
6
|
+
:class="{isMp:isMp}"
|
|
7
|
+
>
|
|
3
8
|
<!-- #ifdef MP-ALIPAY -->
|
|
4
9
|
<view
|
|
5
10
|
v-if="showClose === true || showClose === 'true'"
|
|
@@ -222,6 +227,8 @@
|
|
|
222
227
|
|
|
223
228
|
uiColor: '', //文字颜色
|
|
224
229
|
uiBackgroundColor: '', //背景颜色
|
|
230
|
+
|
|
231
|
+
isMp: false,
|
|
225
232
|
}
|
|
226
233
|
},
|
|
227
234
|
|
|
@@ -238,6 +245,10 @@
|
|
|
238
245
|
})
|
|
239
246
|
// #endif
|
|
240
247
|
|
|
248
|
+
//#ifdef MP-WEIXIN
|
|
249
|
+
this.isMp = true;
|
|
250
|
+
//#endif
|
|
251
|
+
|
|
241
252
|
this.$nextTick(() => {
|
|
242
253
|
this.initSize()
|
|
243
254
|
})
|
|
@@ -290,6 +301,7 @@
|
|
|
290
301
|
this.animationDuration = `${item.width / this.speed}s`
|
|
291
302
|
}
|
|
292
303
|
if(item.key === 'box') {
|
|
304
|
+
|
|
293
305
|
this.boxWidth = item.width;
|
|
294
306
|
this.animationDelay = `0.5s`
|
|
295
307
|
}
|
|
@@ -516,4 +528,8 @@
|
|
|
516
528
|
transform: translate3d(-100%, 0, 0);
|
|
517
529
|
}
|
|
518
530
|
}
|
|
531
|
+
|
|
532
|
+
.isMp {
|
|
533
|
+
width: 100%;
|
|
534
|
+
}
|
|
519
535
|
</style>
|
|
@@ -1195,7 +1195,7 @@ export default {
|
|
|
1195
1195
|
uni.setClipboardData({
|
|
1196
1196
|
data: text,
|
|
1197
1197
|
success: () => {
|
|
1198
|
-
this.$xdAlert({ content: "复制成功" });
|
|
1198
|
+
//this.$xdAlert({ content: "复制成功" });
|
|
1199
1199
|
},
|
|
1200
1200
|
});
|
|
1201
1201
|
// #endif
|
|
@@ -1254,7 +1254,7 @@ export default {
|
|
|
1254
1254
|
});
|
|
1255
1255
|
} else {
|
|
1256
1256
|
this.$xdConfirm({
|
|
1257
|
-
|
|
1257
|
+
styles: this.styles,
|
|
1258
1258
|
content: "是否取消订单",
|
|
1259
1259
|
success: (action) => {
|
|
1260
1260
|
if (action.confirm) {
|