jufubao-base 1.0.56-beta4 → 1.0.56-beta6
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/JfbBaseCardEntry/Api.js +3 -9
- package/src/components/JfbBaseCardEntry/Attr.js +1 -15
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +352 -173
- package/src/components/JfbBaseCardEntry/Mock.js +2 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +35 -19
package/package.json
CHANGED
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @description
|
|
5
|
-
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
-
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
-
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
-
* 添加列表记录(addFfffXxxxx)
|
|
9
|
-
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
-
* 更新列表记录(updateFfffXxxxx)
|
|
4
|
+
* @description 卡券登陆
|
|
11
5
|
* @type {*[]}
|
|
12
6
|
*/
|
|
13
7
|
module.exports = [
|
|
14
8
|
{
|
|
15
|
-
mapFnName: '
|
|
9
|
+
mapFnName: 'getListEntryCardBind',
|
|
16
10
|
isRule: false,
|
|
17
11
|
title: '获得绑定卡',
|
|
18
12
|
prefix: 'list',
|
|
@@ -21,7 +15,7 @@ module.exports = [
|
|
|
21
15
|
disabled: true,
|
|
22
16
|
},
|
|
23
17
|
{
|
|
24
|
-
mapFnName: '
|
|
18
|
+
mapFnName: 'loginEntryCardBind',
|
|
25
19
|
isRule: false,
|
|
26
20
|
title: '登录卡',
|
|
27
21
|
prefix: 'login',
|
|
@@ -80,17 +80,6 @@ export default {
|
|
|
80
80
|
},
|
|
81
81
|
inline: false,
|
|
82
82
|
},
|
|
83
|
-
{
|
|
84
|
-
label: '综合福利入口页:',
|
|
85
|
-
ele: 'xd-select-pages-path',
|
|
86
|
-
valueKey: 'allEntryPath',
|
|
87
|
-
placeholder: '请选择综合福利入口页',
|
|
88
|
-
value: null,
|
|
89
|
-
setting: {
|
|
90
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
91
|
-
},
|
|
92
|
-
inline: false,
|
|
93
|
-
},
|
|
94
83
|
{
|
|
95
84
|
label: '提示内容:',
|
|
96
85
|
ele: 'xd-site-news',
|
|
@@ -302,10 +291,7 @@ export default {
|
|
|
302
291
|
}
|
|
303
292
|
},
|
|
304
293
|
inline: false,
|
|
305
|
-
notice: '',
|
|
306
|
-
rules: [
|
|
307
|
-
{required: true, message: '请配置温馨提示内容', trigger: 'change'},
|
|
308
|
-
],
|
|
294
|
+
notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
|
|
309
295
|
},
|
|
310
296
|
],
|
|
311
297
|
};
|
|
@@ -28,12 +28,13 @@
|
|
|
28
28
|
color: cutIndex === 1 ? '#fff' : mainColor,
|
|
29
29
|
}"
|
|
30
30
|
>
|
|
31
|
+
<view>使用扫码绑定</view>
|
|
31
32
|
<xd-font-icon
|
|
32
|
-
style="
|
|
33
|
-
size="
|
|
33
|
+
:style="{marginLeft: '15rpx'}"
|
|
34
|
+
size="50"
|
|
34
35
|
icon="iconsaoma"
|
|
35
36
|
></xd-font-icon>
|
|
36
|
-
|
|
37
|
+
|
|
37
38
|
</view>
|
|
38
39
|
<view
|
|
39
40
|
class="jfb-base-card-entry__body-cut-item"
|
|
@@ -44,12 +45,13 @@
|
|
|
44
45
|
color: cutIndex === 2 ? '#fff' : mainColor,
|
|
45
46
|
}"
|
|
46
47
|
>
|
|
48
|
+
<view>券号密码绑定</view>
|
|
47
49
|
<xd-font-icon
|
|
48
|
-
style="
|
|
49
|
-
size="
|
|
50
|
+
:style="{marginLeft: '15rpx'}"
|
|
51
|
+
size="50"
|
|
50
52
|
icon="iconyuechi"
|
|
51
53
|
></xd-font-icon>
|
|
52
|
-
|
|
54
|
+
|
|
53
55
|
</view>
|
|
54
56
|
</template>
|
|
55
57
|
<template v-else>
|
|
@@ -67,7 +69,6 @@
|
|
|
67
69
|
</view>
|
|
68
70
|
</template>
|
|
69
71
|
</view>
|
|
70
|
-
<view class="jfb-base-card-entry__body-line"></view>
|
|
71
72
|
<view
|
|
72
73
|
class="jfb-base-card-entry__body-notice"
|
|
73
74
|
:style="{ background: noticeBackgroundColor }"
|
|
@@ -127,72 +128,69 @@
|
|
|
127
128
|
v-if="tabIndex === 2 || tabIndex === 1"
|
|
128
129
|
class="jfb-base-card-entry__body-card"
|
|
129
130
|
>
|
|
130
|
-
<
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
<view class="jfb-base-card-entry__body-card-item-right-top">
|
|
131
|
+
<view
|
|
132
|
+
v-for="(item,index) in cardList"
|
|
133
|
+
class="card-list"
|
|
134
|
+
:key="item.card_number"
|
|
135
|
+
:style="{
|
|
136
|
+
backgroundImage: item['theme']['color'],
|
|
137
|
+
}"
|
|
138
|
+
>
|
|
139
|
+
<view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
|
|
140
|
+
<view class="card-list__title"><view>{{item['card_type_name']}}</view></view>
|
|
141
|
+
<div class="card-list__content">
|
|
142
|
+
<view>
|
|
143
|
+
<text>券号:</text>
|
|
144
|
+
<text>{{item.card_number}}</text>
|
|
145
|
+
</view>
|
|
146
|
+
<view @click.stop="toDetail(item)" v-if="0">
|
|
147
147
|
<view>
|
|
148
|
-
<xd-font-icon
|
|
149
|
-
icon="iconkaquan"
|
|
150
|
-
size="38"
|
|
151
|
-
:style="{marginRight: '18rpx'}"
|
|
152
|
-
:color="mainColor"
|
|
153
|
-
></xd-font-icon>
|
|
154
|
-
<view>{{ item.card_type_name }}</view>
|
|
148
|
+
<xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
|
|
155
149
|
</view>
|
|
150
|
+
<view>点击查看</view>
|
|
151
|
+
</view>
|
|
152
|
+
</div>
|
|
153
|
+
<view class="card-list__date">
|
|
154
|
+
<text>有效期:</text>
|
|
155
|
+
<text>{{item.end_time}}</text>
|
|
156
|
+
</view>
|
|
157
|
+
<view class="card-list__yue">
|
|
158
|
+
<text>余额:</text>
|
|
159
|
+
<text>{{item.card_point}}</text>
|
|
160
|
+
</view>
|
|
161
|
+
<view class="card-list__other" v-if="item.other_card_point && item.card_point_type !== 1">
|
|
162
|
+
<view><text>购买其他物品可抵:</text><text>{{item.other_card_point}}</text></view>
|
|
163
|
+
</view>
|
|
164
|
+
<view class="card-list__entry" v-if="item.entries.length === 1">
|
|
165
|
+
<view :style="{color: mainColor}">{{login_name}}</view>
|
|
166
|
+
</view>
|
|
167
|
+
<view class="card-list__nodata" v-if="item.entries.length === 0">暂无支持服务列表</view>
|
|
168
|
+
<view class="card-list__entrys" v-if="item.entries.length > 1">
|
|
169
|
+
<view class="card-list__entrys-title">
|
|
170
|
+
<view>可兑换权益</view>
|
|
156
171
|
<view>
|
|
157
|
-
<
|
|
158
|
-
<
|
|
172
|
+
<text>查看详情</text>
|
|
173
|
+
<xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
|
|
159
174
|
</view>
|
|
160
175
|
</view>
|
|
161
|
-
<view class="
|
|
162
|
-
<view class="
|
|
163
|
-
<view
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
176
|
+
<view class="card-list__entrys-list">
|
|
177
|
+
<scroll-view scroll-x class="card-list__entrys-scroll">
|
|
178
|
+
<view class="card-list__entrys-item">
|
|
179
|
+
<view v-for="(entry,idx) in item.entries" :key="idx">
|
|
180
|
+
<view><image :src="entry.image_url"></image></view>
|
|
181
|
+
<view>{{entry|cutstr}}</view>
|
|
182
|
+
<view>
|
|
183
|
+
<text>去兑换</text>
|
|
184
|
+
<xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
|
|
185
|
+
</view>
|
|
186
|
+
</view>
|
|
167
187
|
</view>
|
|
168
|
-
|
|
169
|
-
v-if="item.other_card_point && item.card_point_type !== 1"
|
|
170
|
-
class="jfb-base-card-entry__body-card-item-right-bottom-info-deduction"
|
|
171
|
-
>
|
|
172
|
-
购买其他物品可抵:{{ item.other_card_point }}
|
|
173
|
-
</view>
|
|
174
|
-
</view>
|
|
175
|
-
<view
|
|
176
|
-
@click.stop="toDetail(item)"
|
|
177
|
-
:style="{ background: mainColor }"
|
|
178
|
-
>查看</view
|
|
179
|
-
>
|
|
188
|
+
</scroll-view>
|
|
180
189
|
</view>
|
|
181
190
|
</view>
|
|
182
191
|
</view>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
<xd-card-v2
|
|
186
|
-
:login-name="login_name"
|
|
187
|
-
v-for="(item, index) in showList"
|
|
188
|
-
:mainColor="mainColor"
|
|
189
|
-
:key="index"
|
|
190
|
-
:cardInfo="item"
|
|
191
|
-
:tabIndex="tabIndex"
|
|
192
|
-
@toDetail="toDetail(item)"
|
|
193
|
-
@bindLogin="handleBindLogin(item)">
|
|
194
|
-
</xd-card-v2>
|
|
195
|
-
</template>
|
|
192
|
+
|
|
193
|
+
</view>
|
|
196
194
|
</view>
|
|
197
195
|
<view v-if="showDisabled==='Y'" @click="handleToDisabled" class="jfb-base-card-entry__body-disabled">
|
|
198
196
|
已失效票券>>>
|
|
@@ -230,6 +228,7 @@ import extsMixins from "@/mixins/extsMixins";
|
|
|
230
228
|
import { mapState, mapActions } from "vuex";
|
|
231
229
|
import { getContainerPropsValue, isWechat } from "@/utils/xd.base";
|
|
232
230
|
import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
|
|
231
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
233
232
|
import { Base64 } from "js-base64";
|
|
234
233
|
const Color = require("color");
|
|
235
234
|
|
|
@@ -248,6 +247,12 @@ export default {
|
|
|
248
247
|
jfbAuthorize: (state) => state.jfbAuthorize,
|
|
249
248
|
}),
|
|
250
249
|
},
|
|
250
|
+
filters:{
|
|
251
|
+
cutstr(val){
|
|
252
|
+
if(typeof val.entry_name === 'string') return val.entry_name.slice(0,4);
|
|
253
|
+
return ''
|
|
254
|
+
}
|
|
255
|
+
},
|
|
251
256
|
watch: {
|
|
252
257
|
tabIndex(newVal, oldVal) {
|
|
253
258
|
if (newVal === 1) {
|
|
@@ -284,16 +289,26 @@ export default {
|
|
|
284
289
|
bindUrl: "",
|
|
285
290
|
detailUrl: "",
|
|
286
291
|
confirmUrl: "",
|
|
287
|
-
allEntryPath: "", //综合福利入口页
|
|
292
|
+
//allEntryPath: "", //综合福利入口页
|
|
288
293
|
disabledUrl: "",
|
|
289
294
|
cardLayout: "1", //票券布局
|
|
290
|
-
|
|
291
295
|
showDisabled: 'Y',
|
|
292
|
-
|
|
296
|
+
|
|
297
|
+
cardThemesColor: [
|
|
298
|
+
'radial-gradient(50% 50%, rgba(255, 151, 128, 1) 0%, rgba(255, 64, 61, 1) 100%)',
|
|
299
|
+
'radial-gradient(50% 50%, rgba(247, 198, 35, 1) 0%, rgba(255, 81, 0, 1) 99.91%)',
|
|
300
|
+
'radial-gradient(50% 50%, rgba(0, 207, 193, 1) 0%, rgba(0, 117, 108, 1) 99.91%)',
|
|
301
|
+
'radial-gradient(50% 50%, rgba(255, 148, 77, 1) 0%, rgba(240, 92, 0, 1) 100%)',
|
|
302
|
+
'radial-gradient(50% 50%, rgba(252, 126, 49, 1) 0%, rgba(255, 143, 67, 1) 100%)'
|
|
303
|
+
],
|
|
304
|
+
cardThemesImage: [
|
|
305
|
+
'//img.jufubao.cn/component/card/vip.png',
|
|
306
|
+
//'//img.jufubao.cn/component/card/vip2.png'
|
|
307
|
+
],
|
|
308
|
+
|
|
309
|
+
//活动
|
|
293
310
|
dialogEvent: false,
|
|
294
|
-
|
|
295
|
-
popup:
|
|
296
|
-
"https://img.zcool.cn/community/01784158abe781a801219c77e981ee.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100",
|
|
311
|
+
popup: "https://img.zcool.cn/community/01784158abe781a801219c77e981ee.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100",
|
|
297
312
|
};
|
|
298
313
|
},
|
|
299
314
|
created() {
|
|
@@ -320,6 +335,50 @@ export default {
|
|
|
320
335
|
|
|
321
336
|
},
|
|
322
337
|
methods: {
|
|
338
|
+
stringToNumber(str) {
|
|
339
|
+
let result = 0;
|
|
340
|
+
let len = str.length;
|
|
341
|
+
for (let i = 0; i < len; i++) {
|
|
342
|
+
result = result + str.charCodeAt(i) + i;
|
|
343
|
+
}
|
|
344
|
+
return result;
|
|
345
|
+
},
|
|
346
|
+
getCardThemes(name){
|
|
347
|
+
let colorLen = this.cardThemesColor.length;
|
|
348
|
+
let imgLen = this.cardThemesImage.length;
|
|
349
|
+
let colorIndex = this.stringToNumber(name)% colorLen;
|
|
350
|
+
let imgIndex = this.stringToNumber(name) % imgLen;
|
|
351
|
+
return {
|
|
352
|
+
color: this.cardThemesColor[colorIndex],
|
|
353
|
+
image: this.cardThemesImage[imgIndex],
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
|
|
357
|
+
getEntry(codes=[] , allEntry=[]){
|
|
358
|
+
//无支持业务线或者未配置业务入口
|
|
359
|
+
if(codes.length ===0 || allEntry.length === 0) return [];
|
|
360
|
+
|
|
361
|
+
let support = [];
|
|
362
|
+
codes.map(bus=>{
|
|
363
|
+
allEntry.map(it=>{
|
|
364
|
+
it['image_url'] = getServiceUrl(it['image_url'])
|
|
365
|
+
if(bus === it['business_code']){
|
|
366
|
+
support.push(it);
|
|
367
|
+
}
|
|
368
|
+
})
|
|
369
|
+
});
|
|
370
|
+
return support
|
|
371
|
+
},
|
|
372
|
+
|
|
373
|
+
getCardGroupItem(list, allEntry){
|
|
374
|
+
list.map(item=>{
|
|
375
|
+
//设置卡片样式
|
|
376
|
+
item['theme'] = this.getCardThemes(item['card_type_name']);
|
|
377
|
+
item['entries'] = this.getEntry(item['business_codes'], allEntry)
|
|
378
|
+
});
|
|
379
|
+
return list
|
|
380
|
+
},
|
|
381
|
+
|
|
323
382
|
init(container){
|
|
324
383
|
//设置
|
|
325
384
|
this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
|
|
@@ -328,7 +387,7 @@ export default {
|
|
|
328
387
|
this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
|
|
329
388
|
this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
|
|
330
389
|
this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
|
|
331
|
-
this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
|
|
390
|
+
//this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
|
|
332
391
|
this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
|
|
333
392
|
},
|
|
334
393
|
handleToLink(path) {
|
|
@@ -489,12 +548,12 @@ export default {
|
|
|
489
548
|
},
|
|
490
549
|
|
|
491
550
|
getCardList(options) {
|
|
492
|
-
let params = {is_all: 'Y'};
|
|
551
|
+
let params = {is_all: 'Y', is_show_entry_settings: 'Y'};
|
|
493
552
|
if(options['jfb_business_code']) {
|
|
494
553
|
params['card_business_code'] = options['jfb_business_code'];
|
|
495
554
|
}
|
|
496
555
|
this.$xdShowLoading({});
|
|
497
|
-
jfbRootExec("
|
|
556
|
+
jfbRootExec("getListEntryCardBind", {
|
|
498
557
|
vm: this,
|
|
499
558
|
data: params
|
|
500
559
|
})
|
|
@@ -513,9 +572,9 @@ export default {
|
|
|
513
572
|
),
|
|
514
573
|
};
|
|
515
574
|
});
|
|
516
|
-
this.cardList = res.list.filter((item) => {
|
|
575
|
+
this.cardList = this.getCardGroupItem(res.list.filter((item) => {
|
|
517
576
|
return item["is_valid"] === "Y";
|
|
518
|
-
});
|
|
577
|
+
}), res['site_entry_settings']);
|
|
519
578
|
this.disableList = res.list.filter((item) => {
|
|
520
579
|
return item["is_valid"] === "N";
|
|
521
580
|
});
|
|
@@ -551,7 +610,7 @@ export default {
|
|
|
551
610
|
box-sizing: border-box;
|
|
552
611
|
|
|
553
612
|
&__body {
|
|
554
|
-
padding: unit(
|
|
613
|
+
padding: unit(40, rpx) unit(26, rpx);
|
|
555
614
|
color: #333;
|
|
556
615
|
|
|
557
616
|
&-dialog {
|
|
@@ -592,43 +651,25 @@ export default {
|
|
|
592
651
|
display: flex;
|
|
593
652
|
align-items: center;
|
|
594
653
|
justify-content: space-between;
|
|
654
|
+
|
|
595
655
|
|
|
596
656
|
&-item {
|
|
597
657
|
border: unit(6, rpx) solid;
|
|
598
658
|
font-size: unit(36, rpx);
|
|
599
659
|
color: #fe7a63ff;
|
|
600
660
|
border-radius: unit(16, rpx);
|
|
601
|
-
width: unit(
|
|
602
|
-
height: unit(
|
|
661
|
+
width: unit(320, rpx);
|
|
662
|
+
height: unit(94, rpx);
|
|
603
663
|
display: flex;
|
|
604
|
-
flex-direction: column;
|
|
605
664
|
align-items: center;
|
|
606
665
|
justify-content: center;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
width: 100%;
|
|
610
|
-
flex-direction: row;
|
|
611
|
-
height: unit(100, rpx);
|
|
612
|
-
align-items: center;
|
|
613
|
-
justify-content: center;
|
|
614
|
-
|
|
615
|
-
& > view {
|
|
616
|
-
font-size: unit(36, rpx);
|
|
617
|
-
margin-left: unit(10, rpx);
|
|
618
|
-
}
|
|
619
|
-
}
|
|
666
|
+
box-sizing: border-box;
|
|
667
|
+
|
|
620
668
|
}
|
|
621
669
|
}
|
|
622
670
|
|
|
623
|
-
&-line {
|
|
624
|
-
width: 120%;
|
|
625
|
-
height: unit(4, rpx);
|
|
626
|
-
background: #eee;
|
|
627
|
-
margin: unit(60, rpx) unit(-35, rpx) 0 unit(-35, rpx);
|
|
628
|
-
}
|
|
629
|
-
|
|
630
671
|
&-notice {
|
|
631
|
-
margin:
|
|
672
|
+
margin: unit(40, rpx) unit(-35, rpx) 0 unit(-35, rpx);
|
|
632
673
|
padding: unit(22, rpx) unit(35, rpx);
|
|
633
674
|
line-height: unit(70, rpx);
|
|
634
675
|
}
|
|
@@ -656,87 +697,225 @@ export default {
|
|
|
656
697
|
margin-bottom: unit(46, rpx);
|
|
657
698
|
}
|
|
658
699
|
|
|
659
|
-
&-
|
|
660
|
-
|
|
700
|
+
&-disabled {
|
|
701
|
+
font-size: unit(28, rpx);
|
|
702
|
+
color: #b8b7be;
|
|
703
|
+
margin-bottom: unit(30, rpx);
|
|
704
|
+
padding-top: unit(30, rpx);
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.card-list {
|
|
710
|
+
overflow: hidden;
|
|
711
|
+
border-radius: unit(16, rpx);
|
|
712
|
+
background-size: 100%;
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
&__title {
|
|
716
|
+
height: unit(56, rpx);
|
|
717
|
+
display: flex;
|
|
718
|
+
justify-content: flex-start;
|
|
719
|
+
align-items: center;
|
|
720
|
+
|
|
721
|
+
& > view {
|
|
722
|
+
padding: 0 unit(80, rpx);
|
|
723
|
+
font-size: unit(24, rpx);
|
|
724
|
+
line-height: unit(56, rpx);
|
|
725
|
+
background: rgba(102, 102, 102, 0.4);
|
|
726
|
+
color: #fff;
|
|
727
|
+
border-radius: 0 0 unit(16, rpx) 0;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
&__content {
|
|
733
|
+
padding: unit(10, rpx) unit(40, rpx) 0;
|
|
734
|
+
height: unit(86, rpx);
|
|
735
|
+
display: flex;
|
|
736
|
+
justify-content: space-between;
|
|
737
|
+
align-items: center;
|
|
738
|
+
|
|
739
|
+
& > view:first-child {
|
|
740
|
+
font-size: unit(36, rpx);
|
|
741
|
+
line-height: unit(86, rpx);
|
|
742
|
+
color: #fff;
|
|
743
|
+
font-weight: 700;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
& > view:nth-child(2) {
|
|
747
|
+
font-size: unit(24, rpx);
|
|
748
|
+
display: flex;
|
|
749
|
+
justify-content: space-between;
|
|
750
|
+
align-items: center;
|
|
751
|
+
flex-flow: wrap;
|
|
752
|
+
flex-direction: column;
|
|
753
|
+
color: #fff;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
&__date {
|
|
758
|
+
padding: 0 unit(40, rpx);
|
|
759
|
+
font-size: unit(28, rpx);
|
|
760
|
+
line-height: unit(32, rpx);
|
|
761
|
+
color: #fff;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
&__yue {
|
|
765
|
+
padding: unit(10, rpx) unit(40, rpx) 0;
|
|
766
|
+
font-size: unit(28, rpx);
|
|
767
|
+
line-height: unit(32, rpx);
|
|
768
|
+
color: #fff;
|
|
769
|
+
|
|
770
|
+
& > text:nth-child(2) {
|
|
771
|
+
font-weight: 700;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
&__other {
|
|
776
|
+
display: flex;
|
|
777
|
+
justify-content: flex-start;
|
|
778
|
+
align-items: center;
|
|
779
|
+
padding: unit(20, rpx) unit(40, rpx) 0;
|
|
780
|
+
margin-top: unit(0, rpx);
|
|
781
|
+
|
|
782
|
+
& > view {
|
|
783
|
+
border-radius:unit(8, rpx);
|
|
784
|
+
background: rgba(255, 255, 255, 0.2);
|
|
785
|
+
height: unit(48, rpx);
|
|
786
|
+
line-height: unit(48, rpx);
|
|
787
|
+
display: flex;
|
|
788
|
+
justify-content: flex-start;
|
|
789
|
+
align-items: center;
|
|
790
|
+
font-weight: 400;
|
|
791
|
+
font-size: unit(24, rpx);
|
|
792
|
+
padding: 0 unit(20, rpx);
|
|
793
|
+
color: #fff;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
&__nodata {
|
|
800
|
+
padding: unit(20, rpx) unit(40, rpx) 0;
|
|
801
|
+
margin-top: unit(0, rpx);
|
|
802
|
+
color: #fff;
|
|
803
|
+
font-size: unit(28, rpx);
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
&__entry {
|
|
807
|
+
position: absolute;
|
|
808
|
+
bottom: unit(28, rpx);
|
|
809
|
+
left: unit(40, rpx);
|
|
810
|
+
right: unit(40, rpx);
|
|
811
|
+
height: unit(64, rpx);
|
|
812
|
+
|
|
813
|
+
& > view {
|
|
814
|
+
line-height: unit(64, rpx);
|
|
815
|
+
text-align: center;
|
|
816
|
+
font-size: unit(26, rpx);
|
|
817
|
+
border-radius: unit(8, rpx);
|
|
818
|
+
background: rgba(255, 255, 255, 1);
|
|
819
|
+
box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
|
|
820
|
+
font-weight: 500;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
&__entrys {
|
|
825
|
+
margin: unit(20, rpx) unit(20, rpx) 0;
|
|
826
|
+
padding: unit(30, rpx);
|
|
827
|
+
border-radius: unit(16, rpx);
|
|
828
|
+
background: rgba(255, 255, 255, 1);
|
|
829
|
+
box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
|
|
830
|
+
|
|
831
|
+
&-title {
|
|
832
|
+
display: flex;
|
|
833
|
+
justify-content: space-between;
|
|
834
|
+
align-items: center;
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
& > view:first-child {
|
|
838
|
+
font-size: unit(28, rpx);
|
|
839
|
+
font-weight: 500;
|
|
840
|
+
flex: 1;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
& > view:nth-child(2) {
|
|
661
844
|
display: flex;
|
|
662
|
-
align-items: center;
|
|
663
845
|
justify-content: flex-start;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
846
|
+
align-items: center;
|
|
847
|
+
flex-shrink: 0;
|
|
848
|
+
font-size: unit(20, rpx);
|
|
849
|
+
color: #999;
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
&-scroll {
|
|
854
|
+
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
&-item {
|
|
858
|
+
display: flex;
|
|
859
|
+
justify-content: flex-start;
|
|
860
|
+
align-items: center;
|
|
861
|
+
flex-flow: nowrap;
|
|
862
|
+
margin-left: unit(-16, rpx);
|
|
863
|
+
padding-top: unit(20, rpx);
|
|
864
|
+
|
|
865
|
+
& > view {
|
|
866
|
+
width: unit(120, rpx);
|
|
867
|
+
margin-right: unit(10, rpx);
|
|
868
|
+
flex-shrink: 0;
|
|
869
|
+
display: flex;
|
|
870
|
+
justify-content: center;
|
|
871
|
+
flex-direction: column;
|
|
872
|
+
align-items: center;
|
|
873
|
+
|
|
874
|
+
& > view:first-child {
|
|
875
|
+
width: unit(76, rpx);
|
|
876
|
+
height: unit(76, rpx);
|
|
877
|
+
overflow: hidden;
|
|
878
|
+
|
|
879
|
+
& > image {
|
|
880
|
+
height: 100%;
|
|
881
|
+
width: 100%;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
& > view:nth-child(2) {
|
|
886
|
+
margin-top: unit(10, rpx);
|
|
887
|
+
font-size: unit(24, rpx);
|
|
888
|
+
line-height: unit(36, rpx);
|
|
889
|
+
margin-bottom: unit(10, rpx);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
& > view:nth-child(3) {
|
|
671
893
|
display: flex;
|
|
672
|
-
|
|
894
|
+
justify-content: flex-start;
|
|
673
895
|
align-items: center;
|
|
674
|
-
|
|
675
|
-
font-size: unit(
|
|
896
|
+
flex-shrink: 0;
|
|
897
|
+
font-size: unit(20, rpx);
|
|
898
|
+
color: #999;
|
|
676
899
|
}
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
border-left: unit(2, rpx) solid #eeeeeeff;
|
|
681
|
-
|
|
682
|
-
&-top {
|
|
683
|
-
border-bottom: unit(2, rpx) solid #eeeeeeff;
|
|
684
|
-
padding: unit(30, rpx) unit(40, rpx);
|
|
685
|
-
|
|
686
|
-
& > view:nth-child(1) {
|
|
687
|
-
display: flex;
|
|
688
|
-
font-size: unit(28, rpx);
|
|
689
|
-
margin-bottom: unit(18, rpx);
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
& > view:nth-child(2) {
|
|
693
|
-
font-size: unit(24, rpx);
|
|
694
|
-
color: #666;
|
|
695
|
-
|
|
696
|
-
& > view:nth-child(1) {
|
|
697
|
-
margin-right: unit(30, rpx);
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
&-bottom {
|
|
703
|
-
display: flex;
|
|
704
|
-
justify-content: space-between;
|
|
705
|
-
align-items: center;
|
|
706
|
-
padding: unit(20, rpx) unit(40, rpx);
|
|
707
|
-
|
|
708
|
-
&-info {
|
|
709
|
-
&-residue {
|
|
710
|
-
font-size: unit(24, rpx);
|
|
711
|
-
margin-bottom: unit(8, rpx);
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
&-deduction {
|
|
715
|
-
font-size: unit(24, rpx);
|
|
716
|
-
color: #666;
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
& > view:nth-child(2) {
|
|
721
|
-
width: unit(80, rpx);
|
|
722
|
-
height: unit(40, rpx);
|
|
723
|
-
border-radius: unit(40, rpx);
|
|
724
|
-
font-size: unit(22, rpx);
|
|
725
|
-
color: #fff;
|
|
726
|
-
text-align: center;
|
|
727
|
-
line-height: unit(40, rpx);
|
|
728
|
-
padding: unit(5, rpx) unit(9, rpx);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
900
|
+
|
|
901
|
+
&:last-child {
|
|
902
|
+
margin-right: 0;
|
|
731
903
|
}
|
|
904
|
+
|
|
732
905
|
}
|
|
906
|
+
|
|
907
|
+
|
|
733
908
|
}
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
& > view {
|
|
913
|
+
width: unit(700, rpx);
|
|
914
|
+
min-height: unit(410, rpx);
|
|
915
|
+
position: relative;
|
|
916
|
+
border-radius: unit(16, rpx);
|
|
917
|
+
background-size: 100%;
|
|
918
|
+
padding-bottom: unit(10, rpx);
|
|
740
919
|
}
|
|
741
920
|
}
|
|
742
921
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
4
|
+
getListEntryCardBind: {
|
|
5
5
|
"is_show_invalid_card_entrance": "Y",
|
|
6
6
|
"list": [{
|
|
7
7
|
"card_number": "101001000005195",
|
|
@@ -105,7 +105,7 @@ module.exports = {
|
|
|
105
105
|
"is_exchange": "N"
|
|
106
106
|
}], "request_id": "dd73b058e5de1e90"
|
|
107
107
|
},
|
|
108
|
-
|
|
108
|
+
loginEntryCardBind: {
|
|
109
109
|
"card_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhM2U4YjQ5OWEwNzUwN2EyIiwiaWF0IjoxNjc0OTYzODE3LjY2OTM1MywiZXhwIjoxNjc1MDIwNTc3LjY2OTM1MywiY2FyZF9udW1iZXIiOiIxMDEwMDEwMDAwMDUxOTUiLCJjYXJkX3R5cGVfbmFtZSI6IjZJR2E1NmFQNWE2ZDU2YVA1WTJoNXJXTDZLK1Y2SnVMNTdPViIsInByaWNlIjoxMDAsIm9ubGluZV9wcmljZSI6MTAwLCJ1c2Vfc2NlbmNlIjozLCJidXNpbmVzc19jb2RlcyI6IjAsMSwyLDMsNCJ9.LsoBJq4pC_gSc1jZRwDhD2rAfOf1DMCy29VHomGiqYE",
|
|
110
110
|
"card_expire_in": 56760,
|
|
111
111
|
"request_id": "8fde2506c426a55d"
|
|
@@ -285,6 +285,7 @@ export default {
|
|
|
285
285
|
this.init(this.container);
|
|
286
286
|
this.base = this.jfbAuthorize.getBasePath(this);
|
|
287
287
|
this.site_logo = getServiceUrl(this.projectAttr["site_logo"]);
|
|
288
|
+
this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.create.done')
|
|
288
289
|
},
|
|
289
290
|
|
|
290
291
|
methods: {
|
|
@@ -295,30 +296,40 @@ export default {
|
|
|
295
296
|
url: `/pages/content/content?${params}`
|
|
296
297
|
})
|
|
297
298
|
},
|
|
299
|
+
|
|
300
|
+
|
|
298
301
|
onJfbLoad(options) {
|
|
299
302
|
this.redirect_url = options.redirect_url ? Base64.decode(options.redirect_url): '';
|
|
300
303
|
// #ifdef MP-WEIXIN
|
|
301
304
|
this.authWxMpListProviders();
|
|
302
305
|
// #endif
|
|
303
|
-
|
|
306
|
+
|
|
307
|
+
this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.start')
|
|
308
|
+
|
|
304
309
|
// #ifdef H5
|
|
305
|
-
|
|
310
|
+
try{
|
|
311
|
+
this.authH5ListProviders();
|
|
312
|
+
}catch (error) {
|
|
313
|
+
this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.error');
|
|
314
|
+
this.$xdLog.setARMSError(error);
|
|
315
|
+
}
|
|
316
|
+
|
|
306
317
|
//#endif
|
|
307
318
|
|
|
308
|
-
if (options.isDebug === "1") {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
319
|
+
// if (options.isDebug === "1") {
|
|
320
|
+
// getAllPath(this, "main/play/index");
|
|
321
|
+
// getDomainAllPath(this, "main/play/index");
|
|
322
|
+
// getLocalJumpOutSiteCallbackUrl(
|
|
323
|
+
// this,
|
|
324
|
+
// { customParams: 1 },
|
|
325
|
+
// false,
|
|
326
|
+
// "main/play/index"
|
|
327
|
+
// );
|
|
328
|
+
//
|
|
329
|
+
// getAllPath(this);
|
|
330
|
+
// getDomainAllPath(this);
|
|
331
|
+
// getLocalJumpOutSiteCallbackUrl(this, { customParams: 1 }, false);
|
|
332
|
+
// }
|
|
322
333
|
},
|
|
323
334
|
|
|
324
335
|
/**
|
|
@@ -448,6 +459,7 @@ export default {
|
|
|
448
459
|
* @description h5获取登陆方式
|
|
449
460
|
*/
|
|
450
461
|
authH5ListProviders() {
|
|
462
|
+
this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.loading.')
|
|
451
463
|
let providers = this.projectAttr["login_providers"] || [
|
|
452
464
|
"62fde99f2583a19c58fd937b",
|
|
453
465
|
"62fde9432583a19c58fd937a",
|
|
@@ -459,7 +471,7 @@ export default {
|
|
|
459
471
|
if (/^(@site_domain@).+$/.test(redirect_url)) {
|
|
460
472
|
redirect_url = redirect_url.replace(/@site_domain@/, location.origin)
|
|
461
473
|
}
|
|
462
|
-
|
|
474
|
+
|
|
463
475
|
try {
|
|
464
476
|
let redirectURL = new URL(redirect_url);
|
|
465
477
|
redirect_url = redirectURL.href;
|
|
@@ -467,13 +479,17 @@ export default {
|
|
|
467
479
|
redirect_url = location.origin + this.base + redirect_url;
|
|
468
480
|
}
|
|
469
481
|
|
|
482
|
+
|
|
470
483
|
let params = {
|
|
471
484
|
providers: providers.join(","),
|
|
472
485
|
callback_url: redirect_url,
|
|
473
486
|
phone_number_login_url: location.origin + this.base + this.phone_number_login_url,
|
|
474
487
|
phone_number_collect_url: location.origin + this.base + this.phone_number_collect_url,
|
|
475
488
|
error_callback_url: location.origin + this.base + this.error_callback_url,
|
|
476
|
-
}
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.loading..');
|
|
492
|
+
|
|
477
493
|
jfbRootExec("listSiteProvider", {
|
|
478
494
|
vm: this,
|
|
479
495
|
data: params,
|
|
@@ -483,7 +499,7 @@ export default {
|
|
|
483
499
|
})
|
|
484
500
|
.catch((error) => {
|
|
485
501
|
if (this.$xdUniHelper.checkVarType(error) === 'object') {
|
|
486
|
-
this.$xdLog.setARMSCustomError('list_site_provider_error', {...params, fn:'listSiteProvider'})
|
|
502
|
+
this.$xdLog.setARMSCustomError('list_site_provider_error', {...params, fn:'listSiteProvider', error})
|
|
487
503
|
} else {
|
|
488
504
|
this.$xdLog.setARMSError(error)
|
|
489
505
|
}
|