jufubao-base 1.0.30-beta2 → 1.0.30-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.
@@ -8,11 +8,11 @@
8
8
  */
9
9
  const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
10
  if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-commands-bussiness/${threePackagePath}`;
11
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
12
  }
13
13
 
14
14
  if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/home/root/Base-Jufubao/xd-uni-library-editx/${threePackagePath}`;
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
16
  }
17
17
 
18
18
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.30-beta2",
3
+ "version": "1.0.30-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -258,6 +258,14 @@ export default {
258
258
  }
259
259
  }
260
260
  },
261
+ onJfbUnload(){
262
+ if (this.timeer) {
263
+ clearTimeout(this.timeer);
264
+ }
265
+ if (this.refrushTimeer) {
266
+ clearTimeout(this.refrushTimeer);
267
+ }
268
+ },
261
269
  onJfbBack(options) {
262
270
  if (this.timeer) {
263
271
  clearTimeout(this.timeer);
@@ -305,13 +313,13 @@ export default {
305
313
  },
306
314
  })
307
315
  .then((res) => {
316
+ clearTimeout(this.timeer);
317
+ clearTimeout(this.refrushTimeer);
308
318
  this.$xdAlert({
309
319
  content: "解绑成功",
310
320
  close: () => {
311
- clearTimeout(this.timeer);
312
- clearTimeout(this.refrushTimeer);
313
- this.$xdUniHelper.navigateTo({
314
- url: this.backUrl,
321
+ this.$xdUniHelper.redirectTo({
322
+ url: this.backUrl || this.settings.index,
315
323
  });
316
324
  },
317
325
  });
@@ -329,7 +337,6 @@ export default {
329
337
  console.log("refrushTimeer.end");
330
338
  return;
331
339
  }
332
-
333
340
  this.time++;
334
341
  let time =
335
342
  this.time >= 5 ? 32 * 1000 : Math.pow(this.date, this.time) * 1000;
@@ -354,7 +361,6 @@ export default {
354
361
 
355
362
  this.info = refrushInfo;
356
363
  this.refrush();
357
-
358
364
  this.show = false;
359
365
  })
360
366
  .catch();
@@ -366,9 +372,8 @@ export default {
366
372
  this.backUrl = getContainerPropsValue(
367
373
  this.container,
368
374
  "content.back_url",
369
- { value: "system/card/card" }
375
+ { value: "" }
370
376
  ).value;
371
- console.log(this.backUrl, "this.backUrl");
372
377
  },
373
378
  /**
374
379
  * @description 获取卡详情