jufubao-base 1.0.63-beta1 → 1.0.63-beta3

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.63-beta1",
3
+ "version": "1.0.63-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -14,6 +14,7 @@ export default {
14
14
  cardComputedList:[], //当前获取的数据列表
15
15
  cardLoading: false, //加载状态值设置
16
16
  cardNextTop: 0, //计算到每一个节点的距离顶部Top值
17
+ cardIndex: 0,
17
18
  contentStatus: false, //内容框是否已经进行过计算距离顶部Top值状态
18
19
  hasContent: true, //是否可以进行继续加载状态
19
20
 
@@ -76,10 +77,13 @@ export default {
76
77
  })[0];
77
78
  card['height'] = item.height;
78
79
  card['top'] = this.cardNextTop;
79
- this.cardNextTop = this.cardNextTop + card['height'] + (paddingBottom * this.$rpxNum)
80
+ card['index'] = this.cardIndex;
81
+ this.cardNextTop = this.cardNextTop + card['height'] + (paddingBottom * this.$rpxNum);
82
+ this.cardIndex++;
80
83
  return card
81
84
  });
82
85
  this.cardList = (this.cardList||[]).concat(arr);
86
+ this.cardPageNum++;
83
87
  this.$xdHideLoading();
84
88
  }).exec();
85
89
  })
@@ -105,7 +109,6 @@ export default {
105
109
  if(this.cardLoading || !this.hasContent || this.cardPageNum ===0) return;
106
110
  this.cardLoading = true;
107
111
  this.$xdShowLoading({});
108
- this.cardPageNum++;
109
112
  this.$nextTick(()=>{
110
113
  setTimeout(()=>{
111
114
  this.cardLoading = false;
@@ -118,6 +121,7 @@ export default {
118
121
  if(this.cardComputedList.length < this.cardPageLen) {
119
122
  this.hasContent = false;
120
123
  }
124
+ this.cardPageNum++;
121
125
  },500)
122
126
  })
123
127
 
@@ -386,11 +386,13 @@ export default {
386
386
  },
387
387
  tabIndex(){
388
388
  this.clearDefault();
389
- this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
389
+ this.onJfbLoad(this.options);
390
390
  }
391
391
  },
392
392
  data() {
393
393
  return {
394
+ options:{},
395
+
394
396
  //提示文案
395
397
  noticeBackgroundColor: "",
396
398
  notice: "",
@@ -414,6 +416,7 @@ export default {
414
416
  disabledUrl: "",
415
417
  //cardLayout: "1", //票券布局
416
418
  showDisabled: 'Y',
419
+ showCardList: false,
417
420
 
418
421
  //活动
419
422
  dialogEvent: false,
@@ -623,6 +626,7 @@ export default {
623
626
  },
624
627
 
625
628
  onJfbLoad(options) {
629
+ this.options = options;
626
630
  let { inCallback } = options;
627
631
  if (inCallback) {
628
632
  this.$storage.set("inCallback", inCallback, 0.05);
@@ -667,13 +671,12 @@ export default {
667
671
  };
668
672
  });
669
673
  this.ajaxCardList = res;
670
- this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
671
-
672
-
673
674
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
674
675
  return item["is_exchange"] === "Y";
675
676
  }), res['site_entry_settings']).length > 0;
676
-
677
+
678
+
679
+ this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
677
680
  this.$xdHideLoading();
678
681
  })
679
682
  .catch(() => this.$xdHideLoading());
@@ -43,7 +43,7 @@
43
43
  class="get_code"
44
44
  @click="reGetCode"
45
45
  :style="{ color: mainColor }"
46
- >{{ time ? time + "秒后获取" : "获取验证码" }}</view
46
+ >{{ jfbTimeer ? jfbTimeer + "秒后获取" : "获取验证码" }}</view
47
47
  >
48
48
  </view>
49
49
  </xd-form-item>
@@ -79,7 +79,7 @@
79
79
  class="jump_collect"
80
80
  @click="jumpCollect"
81
81
  >跳过</view>
82
-
82
+
83
83
  <!-- <view
84
84
  class="not_login"
85
85
  :style="{color: mainColor}"
@@ -121,7 +121,7 @@ export default {
121
121
  phone_number: "",
122
122
  verification_code: "",
123
123
  },
124
- time: 0,
124
+ jfbTimeer: 0,
125
125
  interval: null,
126
126
  provider_id: "",
127
127
  callback_url: "",
@@ -160,7 +160,7 @@ export default {
160
160
  url: `/pages/content/content?${params}`
161
161
  })
162
162
  },
163
-
163
+
164
164
  onJfbLoad(options) {
165
165
  this.provider_id = options.provider_id;
166
166
  this.callback_url = options.callback_url;
@@ -174,7 +174,11 @@ export default {
174
174
  //this.height = getContainerPropsValue(container, 'content.height', 10);
175
175
  },
176
176
  reGetCode() {
177
- if (this.time > 0) return;
177
+ this.$xdLog.setProject('get.code.handle', {
178
+ time: this.time,
179
+ jfbTimeer: this.jfbTimeer
180
+ });
181
+ if (this.jfbTimeer > 0) return;
178
182
  const { phone_number } = this.accountForm;
179
183
  if (!/^1[3-9]\d{9}$/.test(phone_number)) {
180
184
  uni.showToast({
@@ -193,10 +197,10 @@ export default {
193
197
  },
194
198
  }).then((res) => {
195
199
  this.$xdHideLoading()
196
- this.time = 120;
200
+ this.jfbTimeer = 120;
197
201
  this.interval = setInterval(() => {
198
- this.time--;
199
- if (this.time == 0) {
202
+ this.jfbTimeer--;
203
+ if (this.jfbTimeer == 0) {
200
204
  clearTimeout(this.interval);
201
205
  }
202
206
  }, 1000);
@@ -216,7 +220,7 @@ export default {
216
220
  const { provider_id } = this;
217
221
  const { phone_number, verification_code } = this.accountForm;
218
222
  if (!phone_number || !verification_code) return uni.showToast({ title: "手机号跟验证码不能为空", icon: "none" });
219
-
223
+
220
224
  this.$xdShowLoading({})
221
225
  jfbRootExec("phoneCollect", {
222
226
  vm: this,
@@ -237,7 +241,7 @@ export default {
237
241
  this.$xdLog.catch(error)
238
242
  });
239
243
  },
240
-
244
+
241
245
  onJfbBack(options) {
242
246
  this.$xdUniHelper.navigateBack();
243
247
  },
@@ -48,7 +48,7 @@
48
48
  class="get_code"
49
49
  @click="reGetCode"
50
50
  :style="{color: mainColor}"
51
- >{{time ? time + '秒后获取':'获取验证码'}}</view>
51
+ >{{jfbTimeer ? jfbTimeer + '秒后获取':'获取验证码'}}</view>
52
52
  </view>
53
53
  </xd-form-item>
54
54
  </xd-form>
@@ -100,7 +100,7 @@
100
100
  import XdFormInput from "@/components/XdFormInput/XdFormInput";
101
101
  import XdButton from "@/components/XdButton/XdButton";
102
102
  import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox"
103
-
103
+
104
104
  export default {
105
105
  name: "JfbBasePhoneLogin",
106
106
  components: {
@@ -119,7 +119,7 @@
119
119
  phone_number: '',
120
120
  verification_code: '',
121
121
  },
122
- time: 0,
122
+ jfbTimeer: 0,
123
123
  interval: null,
124
124
  auth_code: "",
125
125
  provider_id: "",
@@ -157,7 +157,7 @@
157
157
  url: `/pages/content/content?${params}`
158
158
  })
159
159
  },
160
-
160
+
161
161
  onJfbLoad(options) {
162
162
  this.auth_code = options.auth_code;
163
163
  this.provider_id = options.provider_id;
@@ -172,7 +172,11 @@
172
172
  //this.height = getContainerPropsValue(value, 'content.height', 10);
173
173
  },
174
174
  reGetCode(){
175
- if(this.time > 0) return;
175
+ this.$xdLog.setProject('get.code.handle', {
176
+ time: this.time,
177
+ jfbTimeer: this.jfbTimeer
178
+ });
179
+ if(this.jfbTimeer > 0) return;
176
180
  const { phone_number } = this.accountForm;
177
181
  if(!/^1[3-9]\d{9}$/.test(phone_number)){
178
182
  uni.showToast({
@@ -191,10 +195,10 @@
191
195
  }
192
196
  }).then(res => {
193
197
  this.$xdHideLoading()
194
- this.time = 120;
198
+ this.jfbTimeer = 120;
195
199
  this.interval = setInterval(() => {
196
- this.time--;
197
- if(this.time == 0){
200
+ this.jfbTimeer--;
201
+ if(this.jfbTimeer == 0){
198
202
  clearTimeout(this.interval);
199
203
  }
200
204
  }, 1000)
@@ -275,11 +279,11 @@
275
279
  margin-left: unit(20,rpx) !important;
276
280
  }
277
281
  }
278
-
282
+
279
283
  .form-group {
280
284
  padding: 40rpx 70rpx;
281
285
  }
282
-
286
+
283
287
  .get_code {
284
288
  color: @xd-base-color;
285
289
  font-size: 24rpx;
@@ -291,32 +295,32 @@
291
295
  color: #A6A6A6;
292
296
  }
293
297
  }
294
-
298
+
295
299
  /deep/ .uni-easyinput__placeholder-class {
296
300
  font-size: 26rpx;
297
301
  color: #D4D4D4;
298
302
  }
299
-
303
+
300
304
  .phone-login-type {
301
305
  display: flex;
302
306
  color: #808080;
303
307
  font-size: 32rpx;
304
308
  padding: 20rpx 70rpx;
305
309
  align-items: center;
306
-
310
+
307
311
  ._item {
308
312
  margin: 0 30rpx;
309
313
  position: relative;
310
314
  line-height: 2;
311
-
315
+
312
316
  &:first-child {
313
317
  margin-left: 0;
314
318
  }
315
-
319
+
316
320
  &.active {
317
321
  color: #383838;
318
322
  font-size: 36rpx;
319
-
323
+
320
324
  text {
321
325
  position: absolute;
322
326
  height: 6rpx;
@@ -329,15 +333,15 @@
329
333
  }
330
334
  }
331
335
  }
332
-
336
+
333
337
  .forget_password {
334
338
  font-size: 24rpx;
335
339
  color: #A6A6A6;
336
340
  text-align: right;
337
341
  margin: 20rpx 70rpx 0 0;
338
-
342
+
339
343
  }
340
-
344
+
341
345
  .not_login {
342
346
  position: fixed;
343
347
  width: 100%;