jufubao-base 1.0.56-beta5 → 1.0.56-beta7

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.56-beta5",
3
+ "version": "1.0.56-beta7",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -31,7 +31,7 @@
31
31
  <view>使用扫码绑定</view>
32
32
  <xd-font-icon
33
33
  :style="{marginLeft: '15rpx'}"
34
- size="50"
34
+ size="45"
35
35
  icon="iconsaoma"
36
36
  ></xd-font-icon>
37
37
 
@@ -48,7 +48,7 @@
48
48
  <view>券号密码绑定</view>
49
49
  <xd-font-icon
50
50
  :style="{marginLeft: '15rpx'}"
51
- size="50"
51
+ size="45"
52
52
  icon="iconyuechi"
53
53
  ></xd-font-icon>
54
54
 
@@ -114,26 +114,25 @@
114
114
  color: tabIndex === 2 ? '#fff' : '#B8B7BE',
115
115
  background: tabIndex === 2 ? mainColor : '#fff',
116
116
  }"
117
- >
118
- 可转换票券
119
- </view>
117
+ >可转换票券</view>
120
118
  </view>
121
119
  <view
122
120
  class="jfb-base-card-entry__body-tips"
123
- :style="{ color: mainColor }"
121
+ :style="{ color: warningColor }"
124
122
  v-if="tabIndex === 2"
125
- >*目前仅支持电影票兑换券进行转换</view
126
- >
123
+ >* 目前仅支持电影票兑换券进行转换</view>
127
124
  <view
128
125
  v-if="tabIndex === 2 || tabIndex === 1"
129
126
  class="jfb-base-card-entry__body-card"
130
127
  >
131
128
  <view
132
- v-for="(item,index) in cardList"
129
+ v-for="(item) in showList"
133
130
  class="card-list"
134
131
  :key="item.card_number"
132
+ @click="toDetail(item)"
135
133
  :style="{
136
- backgroundImage: item['theme']['color'],
134
+ background: item['theme']['color'],
135
+ backgroundSize: '100%'
137
136
  }"
138
137
  >
139
138
  <view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
@@ -143,7 +142,7 @@
143
142
  <text>券号:</text>
144
143
  <text>{{item.card_number}}</text>
145
144
  </view>
146
- <view @click.stop="toDetail(item)">
145
+ <view @click.stop="toDetail(item)" v-if="0">
147
146
  <view>
148
147
  <xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
149
148
  </view>
@@ -156,29 +155,50 @@
156
155
  </view>
157
156
  <view class="card-list__yue">
158
157
  <text>余额:</text>
159
- <text>{{item.card_point}}</text>
158
+ <text>{{item.card_point}} {{ item.unit }}</text>
160
159
  </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>
160
+ <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
161
+ <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
163
162
  </view>
164
- <view class="card-list__entry" v-if="item.entry.length === 1">
165
- <view :style="{color: mainColor}">{{login_name}}</view>
163
+ <view class="card-list__entry" v-if="item.entries.length === 1">
164
+ <view @click.stop="handleBindLogin(item,item['entries'][0])" :style="{color: mainColor}">{{login_name}}</view>
166
165
  </view>
167
- <view class="card-list__nodata" v-if="item.entry.length === 0">暂无支持服务列表</view>
168
- <view class="card-list__entrys" v-if="item.entry.length > 1">
169
- <view>
170
- <view></view>
171
- <view></view>
166
+ <view class="card-list__nodata" v-if="item.entries.length === 0">暂无支持服务列表</view>
167
+ <view class="card-list__entrys" v-if="item.entries.length > 1">
168
+ <view class="card-list__entrys-title">
169
+ <view>可兑换权益</view>
170
+ <view @click="toDetail(item, false)">
171
+ <text>查看详情</text>
172
+ <xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
173
+ </view>
174
+ </view>
175
+ <view class="card-list__entrys-list">
176
+ <scroll-view scroll-x class="card-list__entrys-scroll">
177
+ <view class="card-list__entrys-item">
178
+ <view
179
+ v-for="(entry,idx) in item.entries"
180
+ :key="idx"
181
+ @click.stop="handleBindLogin(item, entry)"
182
+ >
183
+ <view><image :src="entry.image_url"></image></view>
184
+ <view>{{entry|cutstr}}</view>
185
+ <view>
186
+ <text>去兑换</text>
187
+ <xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
188
+ </view>
189
+ </view>
190
+ </view>
191
+ </scroll-view>
172
192
  </view>
173
- <div></div>
174
193
  </view>
175
194
  </view>
176
-
177
195
  </view>
178
196
  </view>
179
- <view v-if="showDisabled==='Y'" @click="handleToDisabled" class="jfb-base-card-entry__body-disabled">
180
- 已失效票券>>>
181
- </view>
197
+ <view
198
+ v-if="showDisabled==='Y'"
199
+ @click="handleToDisabled"
200
+ class="jfb-base-card-entry__body-disabled"
201
+ >已失效票券>>></view>
182
202
  </view>
183
203
  <view class="jfb-base-card-entry__body-dialog" v-if="dialogEvent">
184
204
  <view class="jfb-base-card-entry__body-dialog-content">
@@ -212,6 +232,7 @@ import extsMixins from "@/mixins/extsMixins";
212
232
  import { mapState, mapActions } from "vuex";
213
233
  import { getContainerPropsValue, isWechat } from "@/utils/xd.base";
214
234
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
235
+ import getServiceUrl from "@/common/getServiceUrl";
215
236
  import { Base64 } from "js-base64";
216
237
  const Color = require("color");
217
238
 
@@ -229,15 +250,17 @@ export default {
229
250
  jwxSDK: (state) => state.jwxSDK,
230
251
  jfbAuthorize: (state) => state.jfbAuthorize,
231
252
  }),
253
+ showList(){
254
+ return this.tabIndex === 1 ? this.cardList: this.changeList
255
+ }
256
+ },
257
+ filters:{
258
+ cutstr(val){
259
+ if(typeof val.entry_name === 'string') return val.entry_name.slice(0,4);
260
+ return ''
261
+ }
232
262
  },
233
263
  watch: {
234
- tabIndex(newVal, oldVal) {
235
- if (newVal === 1) {
236
- this.showList = this.cardList;
237
- } else {
238
- this.showList = this.changeList;
239
- }
240
- },
241
264
  container(value) {
242
265
  this.init(value)
243
266
  }
@@ -255,7 +278,6 @@ export default {
255
278
  tabIndex: 1,
256
279
  isBack: null, //是否使用返回键
257
280
  cardList: [],
258
- showList: [],
259
281
  changeList: [],
260
282
  disableList: [],
261
283
  inCallback: null, //内部跳转地址
@@ -271,16 +293,27 @@ export default {
271
293
  cardLayout: "1", //票券布局
272
294
  showDisabled: 'Y',
273
295
 
296
+
274
297
  cardThemesColor: [
275
298
  'radial-gradient(50% 50%, rgba(255, 151, 128, 1) 0%, rgba(255, 64, 61, 1) 100%)',
276
299
  'radial-gradient(50% 50%, rgba(247, 198, 35, 1) 0%, rgba(255, 81, 0, 1) 99.91%)',
277
300
  'radial-gradient(50% 50%, rgba(0, 207, 193, 1) 0%, rgba(0, 117, 108, 1) 99.91%)',
278
301
  'radial-gradient(50% 50%, rgba(255, 148, 77, 1) 0%, rgba(240, 92, 0, 1) 100%)',
279
- 'radial-gradient(50% 50%, rgba(252, 126, 49, 1) 0%, rgba(255, 143, 67, 1) 100%)'
302
+ 'radial-gradient(50% 50%, rgba(252, 126, 49, 1) 0%, rgba(255, 143, 67, 1) 100%)',
303
+ '#FF524D', '#FFAA00', '#00C2B8', '#33AAFF', '#FF8636', '#FF744A', '#38C4EB', '#AF5EE0', '#D98643', '#17C26F'
280
304
  ],
281
305
  cardThemesImage: [
282
- '//img.jufubao.cn/component/card/vip.png',
283
- //'//img.jufubao.cn/component/card/vip2.png'
306
+ //'//img.jufubao.cn/component/card/vip.png',
307
+ '//img.jufubao.cn/component/card/1.png',
308
+ '//img.jufubao.cn/component/card/2.png',
309
+ '//img.jufubao.cn/component/card/3.png',
310
+ '//img.jufubao.cn/component/card/4.png',
311
+ '//img.jufubao.cn/component/card/5.png',
312
+ '//img.jufubao.cn/component/card/6.png',
313
+ '//img.jufubao.cn/component/card/7.png',
314
+ '//img.jufubao.cn/component/card/8.png',
315
+ '//img.jufubao.cn/component/card/9.png',
316
+ '//img.jufubao.cn/component/card/10.png'
284
317
  ],
285
318
 
286
319
  //活动
@@ -338,6 +371,7 @@ export default {
338
371
  let support = [];
339
372
  codes.map(bus=>{
340
373
  allEntry.map(it=>{
374
+ it['image_url'] = getServiceUrl(it['image_url'])
341
375
  if(bus === it['business_code']){
342
376
  support.push(it);
343
377
  }
@@ -349,8 +383,8 @@ export default {
349
383
  getCardGroupItem(list, allEntry){
350
384
  list.map(item=>{
351
385
  //设置卡片样式
352
- item['theme'] = this.getCardThemes(item['card_type_name']);
353
- item['entry'] = this.getEntry(item['business_codes'], allEntry)
386
+ item['theme'] = this.getCardThemes(item['card_type_name'] + item['card_type']);
387
+ item['entries'] = this.getEntry(item['business_codes'], allEntry)
354
388
  });
355
389
  return list
356
390
  },
@@ -445,63 +479,99 @@ export default {
445
479
  * @description 已绑定卡登录
446
480
  * @param item
447
481
  */
448
- handleBindLogin(item) {
482
+ handleBindLogin(item , entry) {
483
+ //卡券登陆
449
484
  if (this.tabIndex === 1) {
450
- console.log("bindCardLogin", this.inCallback);
451
-
452
- //无效卡
453
485
  if (item["is_valid"] !== "Y") {
454
- console.log(
455
- item,
456
- item["is_valid"],
457
- item["is_valid"] !== "Y",
458
- "itemitem"
459
- );
460
486
  return;
461
487
  }
488
+
462
489
  this.$xdShowLoading({});
463
- jfbRootExec("loginCardBind", {
490
+ jfbRootExec("loginEntryCardBind", {
464
491
  vm: this,
465
492
  data: { card_number: item["card_number"] },
466
493
  })
467
494
  .then((res) => {
468
- console.log(res);
469
495
  this.$xdHideLoading();
470
496
  //#ifdef MP-WEIXIN
471
497
  if (this.jfbAuthorize !== null) {
472
498
  this.jfbAuthorize.setToken("card", res["card_token"], {
473
499
  expires: res["card_expire_in"] / 60 / 60,
474
500
  });
501
+ this.handleToApp(entry);
475
502
  }
476
503
  //#endif
477
-
478
504
  if (this.$configProject.isPreview) {
479
505
  console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
480
- } else {
481
- this.$xdUniHelper.redirectTo({
482
- url: this.inCallback,
483
- });
506
+ }
507
+
508
+ else {
509
+ this.handleToApp(entry);
484
510
  }
485
511
  })
486
512
  .catch((res) => {
487
513
  this.$xdHideLoading();
488
514
  });
489
- } else {
490
- this.$xdUniHelper.navigateTo(
491
- {
492
- url: `${this.changeUrl}?card_number=${item["card_number"]}`,
493
- },
494
- false
495
- );
496
515
  }
516
+
517
+ //转换卡跳转
518
+ else {
519
+ this.$xdUniHelper.navigateTo({
520
+ url: `${this.changeUrl}?card_number=${item["card_number"]}`
521
+ }, false);
522
+ }
523
+ },
524
+ toApp(url){
525
+ this.$xdUniHelper.redirectTo({
526
+ url
527
+ })
528
+ },
529
+ handleToApp(entry){
530
+ let item, redirectUrl;
531
+ try{
532
+ item = JSON.parse(entry['redirect_data']);
533
+ }catch (e) {
534
+ return;
535
+ }
536
+ const {dir, path, host} = item;
537
+ let nsp = Base64.encodeURI(JSON.stringify({business_code: entry['business_code']}));
538
+
539
+ //外站配置地址
540
+ if (entry.redirect_type === 'URL') {
541
+ if (item['path'].indexOf('?') === -1) {
542
+ redirectUrl = `${item['path']}?x-common=${nsp}&vs=${new Date().getTime()}`
543
+ } else redirectUrl = `${item['path']}&x-common=${nsp}&vs=${new Date().getTime()}`;
544
+ this.toApp(redirectUrl);
545
+ return;
546
+ }
547
+
548
+ //站内转换
549
+ let jumpUrl = item.path;
550
+ //#ifdef H5
551
+ jumpUrl = `//${host}/${dir}${path}`;
552
+ //#endif
553
+
554
+ if (item['fixed_business_code'] === '') {
555
+ redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
556
+ }
557
+ else {
558
+ redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
559
+ }
560
+ this.toApp(redirectUrl);
497
561
  },
498
- toDetail(item) {
499
- this.$xdUniHelper.navigateTo(
500
- {
562
+
563
+ toDetail(item, out=true) {
564
+ if(out && item.entries.length === 1) {
565
+ this.$xdUniHelper.navigateTo({
501
566
  url: `${this.detailUrl}?card_number=${item["card_number"]}`,
502
- },
503
- false
504
- );
567
+ }, false);
568
+ }
569
+ else{
570
+ this.$xdUniHelper.navigateTo({
571
+ url: `${this.detailUrl}?card_number=${item["card_number"]}`,
572
+ }, false);
573
+ }
574
+
505
575
  },
506
576
 
507
577
  onJfbLoad(options) {
@@ -548,16 +618,15 @@ export default {
548
618
  ),
549
619
  };
550
620
  });
621
+
551
622
  this.cardList = this.getCardGroupItem(res.list.filter((item) => {
552
623
  return item["is_valid"] === "Y";
553
624
  }), res['site_entry_settings']);
554
- this.disableList = res.list.filter((item) => {
555
- return item["is_valid"] === "N";
556
- });
557
- this.changeList = this.cardList.filter((item) => {
625
+
626
+ this.changeList = this.getCardGroupItem(this.cardList.filter((item) => {
558
627
  return item["is_exchange"] === "Y";
559
- });
560
- this.showList = this.cardList;
628
+ }), res['site_entry_settings']);
629
+
561
630
  this.$xdHideLoading();
562
631
  })
563
632
  .catch(() => this.$xdHideLoading());
@@ -654,8 +723,8 @@ export default {
654
723
  display: flex;
655
724
  align-items: center;
656
725
  font-size: unit(28, rpx);
657
- margin-bottom: unit(46, rpx);
658
- margin-top: unit(46, rpx);
726
+ margin-bottom: unit(40, rpx);
727
+ margin-top: unit(40, rpx);
659
728
 
660
729
  & > view {
661
730
  // width: unit(214, rpx);
@@ -670,7 +739,7 @@ export default {
670
739
 
671
740
  &-tips {
672
741
  font-size: unit(20, rpx);
673
- margin-bottom: unit(46, rpx);
742
+ margin-bottom: unit(40, rpx);
674
743
  }
675
744
 
676
745
  &-disabled {
@@ -685,11 +754,15 @@ export default {
685
754
  .card-list {
686
755
  overflow: hidden;
687
756
  border-radius: unit(16, rpx);
688
- background-size: 100%;
757
+ margin-bottom: unit(30, rpx);
758
+
759
+ &:last-child {
760
+ margin-bottom: 0;
761
+ }
689
762
 
690
763
 
691
764
  &__title {
692
- height: unit(46, rpx);
765
+ height: unit(56, rpx);
693
766
  display: flex;
694
767
  justify-content: flex-start;
695
768
  align-items: center;
@@ -697,7 +770,7 @@ export default {
697
770
  & > view {
698
771
  padding: 0 unit(80, rpx);
699
772
  font-size: unit(24, rpx);
700
- line-height: unit(46, rpx);
773
+ line-height: unit(56, rpx);
701
774
  background: rgba(102, 102, 102, 0.4);
702
775
  color: #fff;
703
776
  border-radius: 0 0 unit(16, rpx) 0;
@@ -706,7 +779,7 @@ export default {
706
779
  }
707
780
 
708
781
  &__content {
709
- padding: unit(20, rpx) unit(40, rpx) 0;
782
+ padding: unit(10, rpx) unit(40, rpx) 0;
710
783
  height: unit(86, rpx);
711
784
  display: flex;
712
785
  justify-content: space-between;
@@ -780,12 +853,7 @@ export default {
780
853
  }
781
854
 
782
855
  &__entry {
783
- position: absolute;
784
- bottom: unit(28, rpx);
785
- left: unit(40, rpx);
786
- right: unit(40, rpx);
787
- height: unit(64, rpx);
788
-
856
+ padding: unit(20, rpx) unit(40, rpx) 0;
789
857
  & > view {
790
858
  line-height: unit(64, rpx);
791
859
  text-align: center;
@@ -797,12 +865,101 @@ export default {
797
865
  }
798
866
  }
799
867
 
800
- & > view {
868
+ &__entrys {
869
+ margin: unit(20, rpx) unit(20, rpx) 0;
870
+ padding: unit(30, rpx);
871
+ border-radius: unit(16, rpx);
872
+ background: rgba(255, 255, 255, 1);
873
+ box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
874
+
875
+ &-title {
876
+ display: flex;
877
+ justify-content: space-between;
878
+ align-items: center;
879
+
880
+
881
+ & > view:first-child {
882
+ font-size: unit(28, rpx);
883
+ font-weight: 500;
884
+ flex: 1;
885
+ }
886
+
887
+ & > view:nth-child(2) {
888
+ display: flex;
889
+ justify-content: flex-start;
890
+ align-items: center;
891
+ flex-shrink: 0;
892
+ font-size: unit(20, rpx);
893
+ color: #999;
894
+ }
895
+ }
896
+
897
+ &-scroll {
898
+
899
+ }
900
+
901
+ &-item {
902
+ display: flex;
903
+ justify-content: flex-start;
904
+ align-items: center;
905
+ flex-flow: nowrap;
906
+ margin-left: unit(-16, rpx);
907
+ padding-top: unit(20, rpx);
908
+
909
+ & > view {
910
+ width: unit(120, rpx);
911
+ margin-right: unit(10, rpx);
912
+ flex-shrink: 0;
913
+ display: flex;
914
+ justify-content: center;
915
+ flex-direction: column;
916
+ align-items: center;
917
+
918
+ & > view:first-child {
919
+ width: unit(76, rpx);
920
+ height: unit(76, rpx);
921
+ overflow: hidden;
922
+
923
+ & > image {
924
+ height: 100%;
925
+ width: 100%;
926
+ }
927
+ }
928
+
929
+ & > view:nth-child(2) {
930
+ margin-top: unit(10, rpx);
931
+ font-size: unit(24, rpx);
932
+ line-height: unit(36, rpx);
933
+ margin-bottom: unit(10, rpx);
934
+ }
935
+
936
+ & > view:nth-child(3) {
937
+ display: flex;
938
+ justify-content: flex-start;
939
+ align-items: center;
940
+ flex-shrink: 0;
941
+ font-size: unit(20, rpx);
942
+ color: #999;
943
+ }
944
+
945
+ &:last-child {
946
+ margin-right: 0;
947
+ }
948
+
949
+ }
950
+
951
+
952
+ }
953
+ }
954
+
955
+
956
+ &-warp {
801
957
  width: unit(700, rpx);
802
- min-height: unit(410, rpx);
958
+ min-height: unit(310, rpx);
803
959
  position: relative;
804
960
  border-radius: unit(16, rpx);
805
961
  background-size: 100%;
962
+ padding-bottom: unit(20, rpx);
806
963
  }
807
964
  }
808
965
  </style>
@@ -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
- this.authH5ListProviders();
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
- getAllPath(this, "main/play/index");
310
- getDomainAllPath(this, "main/play/index");
311
- getLocalJumpOutSiteCallbackUrl(
312
- this,
313
- { customParams: 1 },
314
- false,
315
- "main/play/index"
316
- );
317
-
318
- getAllPath(this);
319
- getDomainAllPath(this);
320
- getLocalJumpOutSiteCallbackUrl(this, { customParams: 1 }, false);
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
- console.warn(`authH5ListProviders.redirect.url: ${redirect_url}`);
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
  }