jufubao-base 1.0.77-beta7 → 1.0.77

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.
@@ -14,17 +14,7 @@
14
14
  </view>
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-entry__body" :style="bodyStyle">
17
- <view v-if="loadingList" class="entry_list skeleton-wrap" :style="entryStyle">
18
- <view v-for="i in 5" :key="i"
19
- :class="'row_num_'+rowNum"
20
- class="entry_item"
21
- >
22
- <image v-if="rowNum == 1" style="height: 260rpx;"/>
23
- <image v-if="rowNum == 2" style="height: 200rpx;"/>
24
- <image v-if="rowNum == 3" style="height: 150rpx;"/>
25
- </view>
26
- </view>
27
- <view v-else class="entry_list" :style="entryStyle">
17
+ <view class="entry_list" :style="entryStyle">
28
18
  <view v-for="(item,i) in entryList" :key="i"
29
19
  class="entry_item"
30
20
  :class="'row_num_'+rowNum"
@@ -62,7 +52,6 @@
62
52
  bgcolor: "",
63
53
  rowNum: 1,
64
54
  paddingInput: 20,
65
- loadingList: true,
66
55
  }
67
56
  },
68
57
  computed: {
@@ -107,7 +96,6 @@
107
96
  vm: this,
108
97
  data: {}
109
98
  }).then(res => {
110
- this.loadingList = false;
111
99
  this.$xdHideLoading();
112
100
  this.entryList = res.list.map(item => {
113
101
  const {dir, path, host} = item['redirect_data'];
@@ -172,15 +160,9 @@
172
160
  &__body{
173
161
  .entry_list{
174
162
  display: grid;
175
- &.skeleton-wrap{
176
- .entry_item{
177
- .skeleton-item(100%, auto);
178
- }
179
- }
180
163
  .entry_item{
181
164
  width: 100%;
182
165
  box-sizing: border-box;
183
-
184
166
  image{
185
167
  width: 100%;
186
168
  display: block;
@@ -196,7 +196,7 @@
196
196
  if(dir) jumpUrl = `//${window.location.host}/${dir}${path}`;
197
197
  else jumpUrl = path;
198
198
  //#endif
199
- jumpUrl = `${jumpUrl}${bus}}`;
199
+ jumpUrl = `${jumpUrl}${bus}`;
200
200
  return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
201
201
  }
202
202
  })
@@ -131,13 +131,4 @@ module.exports = [
131
131
  provider_id: ['登陆提供者id', 'String', '必选']
132
132
  }
133
133
  },
134
- {
135
- mapFnName: 'loginExperience',
136
- title: '体验码登录',
137
- path: '/passport-pb/v1/user/login-experience',
138
- isRule: false,
139
- params: {
140
- experience_code: ['体验码code', 'String', '必选'],
141
- }
142
- },
143
134
  ];
@@ -4,32 +4,6 @@ export default {
4
4
  style: [],
5
5
  advanced: [],
6
6
  content: [
7
- {
8
- label: 'LOGO文字颜色:',
9
- ele: 'xd-color',
10
- valueKey: 'logoTextColor',
11
- value: '',
12
- placeholder: '请输入LOGO文字颜色',
13
- classNmae: 'input80',
14
- },
15
- {
16
- label: '是否使用体验码功能:',
17
- ele: 'xd-radio',
18
- valueKey: 'isPreview',
19
- value: 'N',
20
- placeholder: '请选择是否使用体验码功能',
21
- multiple: false,
22
- className: 'input80',
23
- list: [
24
- {label: '是', value: 'Y'},
25
- {label: '否', value: 'N'},
26
- ]
27
- },
28
- {
29
- ele: 'title',
30
- label: '页面连接设置',
31
- size: 'small',
32
- },
33
7
  {
34
8
  label: '快速授权失败访问地址:', //label
35
9
  ele: 'xd-select-pages-path', //package 名称
@@ -86,9 +60,12 @@ export default {
86
60
  inline: false,
87
61
  },
88
62
  {
89
- ele: 'title',
90
- label: '服务设置',
91
- size: 'small',
63
+ label: 'logo文字颜色:',
64
+ ele: 'xd-color',
65
+ valueKey: 'logoTextColor',
66
+ value: '',
67
+ placeholder: '请输入logo文字颜色',
68
+ classNmae: 'input80',
92
69
  },
93
70
  {
94
71
  label: '隐私政策:',
@@ -170,25 +170,6 @@
170
170
  >忘记密码</view
171
171
  >
172
172
  </view>
173
- <view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y'">
174
- <view @click="dialogPreview = true" :style="{
175
- color: mainColor,
176
- border: `1px solid ${mainColor}`
177
- }">进入体验 ></view>
178
- </view>
179
- <xd-dailog
180
- v-if="dialogPreview"
181
- title="体验码"
182
- :show.sync="dialogPreview"
183
- :cancel="false"
184
- confirm-text="进入体验模式"
185
- @onBtn="handlePreview"
186
- @close="previewAccout=''"
187
- >
188
- <view class="preview-login">
189
- <input v-model="previewAccout" type="text" class="preview-login-input" placeholder="请输入体验码">
190
- </view>
191
- </xd-dailog>
192
173
  </view>
193
174
  </view>
194
175
  </template>
@@ -206,7 +187,6 @@ import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
206
187
  import XdFormInput from "@/components/XdFormInput/XdFormInput";
207
188
  import XdForm from "@/components/XdForm/XdForm";
208
189
  import XdFormItem from "@/components/XdFormItem/XdFormItem";
209
- import XdDailog from "@/components/XdDailog/XdDailog.vue";
210
190
  import { Base64 } from "js-base64";
211
191
  import { mapState } from "vuex";
212
192
  import getServiceUrl from "@/common/getServiceUrl";
@@ -228,19 +208,15 @@ export default {
228
208
  XdFormInput,
229
209
  XdForm,
230
210
  XdFormItem,
231
- XdDailog
232
211
  },
233
212
  mixins: [componentsMixins, extsMixins, JfbBaseLoginMixin, privacyMixins],
234
213
  data() {
235
214
  return {
236
- //体验模式
237
- dialogPreview: false,
238
- previewAccout: '',
239
-
240
215
  showStep: 1,
241
216
  panel_1_checked: "",
242
217
  panel_2_checked: "",
243
218
  password: "",
219
+ //todo
244
220
  accountLoginType: "phone", //phone: 验证码登录 pwd: 密码登录
245
221
  accountForm: {
246
222
  phone_number: "", //15801505541
@@ -279,7 +255,6 @@ export default {
279
255
  logo: "",
280
256
  partnerName: "",
281
257
  logoTextColor: "",
282
- isPreview:'N', //是否启用体验码模式
283
258
  };
284
259
  },
285
260
  computed: {
@@ -290,9 +265,6 @@ export default {
290
265
  panelTwoIsChecked() {
291
266
  return this.panel_2_checked.includes(1);
292
267
  },
293
- prod_bottom() {
294
- return this.fixedStyle({ height: 0, zIndex: 111 });
295
- },
296
268
  },
297
269
  watch: {
298
270
  container(value) {
@@ -324,46 +296,16 @@ export default {
324
296
  url: `/pages/content/content?${params}`
325
297
  })
326
298
  },
327
-
328
- loginPreview(experience_code){
329
- return new Promise((resolve,reject)=>{
330
- jfbRootExec("loginExperience", {
331
- vm: this,
332
- data: {experience_code},
333
- }).then(res=>{
334
- resolve(res)
335
- }).catch(err=>{
336
- reject(err)
337
- })
338
- })
339
- },
340
-
341
- async handlePreview(){
342
- if(!this.previewAccout) {
343
- this.$xdAlert({
344
- content: '请输入体验码',
345
- type:'error'
346
- });
347
- return;
348
- }
349
- this.$xdShowLoading({});
350
- try{
351
- const res = await this.loginPreview(this.previewAccout);
352
- if(res) this.jfbAuthorize.setAllToken(res);
353
- this.toHomeAfterLogin();
354
- this.$xdHideLoading();
355
- }catch (e){
356
- this.$xdHideLoading();
357
- }
358
- },
359
-
360
-
299
+
300
+
361
301
  onJfbLoad(options) {
362
302
  this.redirect_url = options.redirect_url ? Base64.decode(options.redirect_url): '';
363
303
  // #ifdef MP-WEIXIN
364
304
  this.authWxMpListProviders();
365
305
  // #endif
306
+
366
307
  this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.start')
308
+
367
309
  // #ifdef H5
368
310
  try{
369
311
  this.authH5ListProviders();
@@ -371,6 +313,7 @@ export default {
371
313
  this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.error');
372
314
  this.$xdLog.setARMSError(error);
373
315
  }
316
+
374
317
  //#endif
375
318
 
376
319
  // if (options.isDebug === "1") {
@@ -411,7 +354,7 @@ export default {
411
354
  this.phone_number_collect_url = getContainerPropsValue(value, "content.phone_number_collect_url", {value: ''}).value;
412
355
  this.forget_pwd_url = getContainerPropsValue(value, "content.forget_pwd_url", {value: ''}).value;
413
356
  this.error_callback_url = getContainerPropsValue(value, "content.error_url", {value: ''}).value;
414
- this.isPreview = getContainerPropsValue(value, "content.isPreview", 'N');
357
+
415
358
  },
416
359
 
417
360
  /**
@@ -521,22 +464,22 @@ export default {
521
464
  "62fde99f2583a19c58fd937b",
522
465
  "62fde9432583a19c58fd937a",
523
466
  ];
524
-
467
+
525
468
  let { redirect_url, callback_url } = this;
526
-
469
+
527
470
  //不同项目直接域名替换
528
471
  if (/^(@site_domain@).+$/.test(redirect_url)) {
529
472
  redirect_url = redirect_url.replace(/@site_domain@/, location.origin)
530
473
  }
531
-
474
+
532
475
  try {
533
476
  let redirectURL = new URL(redirect_url);
534
477
  redirect_url = redirectURL.href;
535
478
  } catch (e) {
536
479
  redirect_url = location.origin + this.base + redirect_url;
537
480
  }
538
-
539
-
481
+
482
+
540
483
  let params = {
541
484
  providers: providers.join(","),
542
485
  callback_url: redirect_url,
@@ -544,9 +487,9 @@ export default {
544
487
  phone_number_collect_url: location.origin + this.base + this.phone_number_collect_url,
545
488
  error_callback_url: location.origin + this.base + this.error_callback_url,
546
489
  };
547
-
490
+
548
491
  this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.loading..');
549
-
492
+
550
493
  jfbRootExec("listSiteProvider", {
551
494
  vm: this,
552
495
  data: params,
@@ -758,7 +701,7 @@ export default {
758
701
  margin-left: unit(20,rpx) !important;
759
702
  }
760
703
  }
761
-
704
+
762
705
  .form-group {
763
706
  padding: 40rpx 70rpx;
764
707
  }
@@ -908,45 +851,4 @@ export default {
908
851
  .login-pub {
909
852
  margin-top: unit(40, rpx);
910
853
  }
911
- .bottom_btn {
912
- position: fixed;
913
- width: 100%;
914
- display:flex;
915
- justify-content: center;
916
- align-items: center;
917
- height: unit(100, rpx);
918
- background: #ffffff;
919
-
920
- & > view {
921
- height: unit(44, rpx);
922
- line-height: unit(44, rpx);
923
- width: unit(150, rpx);
924
- text-align: center;
925
- cursor: pointer;
926
- font-size: unit(24, rpx);
927
- border-radius: unit(12, rpx);
928
- }
929
- }
930
-
931
- .preview-login {
932
- padding: unit(40, rpx) 0;
933
-
934
- &-input {
935
- height: unit(70, rpx);
936
- border-radius: unit(12, rpx);
937
- padding: 0 unit(20, rpx);
938
- text-align: left;
939
- border: 1px solid #eee;
940
- background: #F7F7F7;
941
- color: #666;
942
- transition: box-shadow 0.5s;
943
- box-shadow: 0 0 0 rgba(0,0,0,0);
944
-
945
- &:hover {
946
- box-shadow: 0 0 unit(10, rpx) rgba(0,0,0,.1);
947
- }
948
- }
949
- }
950
-
951
-
952
854
  </style>
@@ -294,9 +294,6 @@
294
294
  <view class="jfb-base-order-detail__body-cashier-text">
295
295
  {{ info.codes[0].can_read_code }}
296
296
  </view>
297
- <view v-if="info.codes[0].refund_tip_text" style="color:red;font-size:24rpx;text-align:center;margin-top:10rpx">
298
- {{info.codes[0].refund_tip_text}}
299
- </view>
300
297
  <view
301
298
  v-if="info.codes[0].code_end_time"
302
299
  class="jfb-base-order-detail__body-cashier-code"