jufubao-base 1.0.350 → 1.0.351-beta2

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.350",
3
+ "version": "1.0.351-beta2",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -277,16 +277,23 @@ export default {
277
277
  this.jfbAuthorize.removeAllCardToken();
278
278
  }
279
279
  //#endif
280
-
281
- if (this.redirect_url) {
282
- this.$xdUniHelper.redirectTo({
283
- url: this.redirect_url,
284
- });
285
- } else {
280
+ if(item.company_id&&item.default_entry_page){
281
+ let obj = JSON.parse(item.default_entry_page);
286
282
  this.$xdUniHelper.redirectTo({
287
- url: this.settings.index,
283
+ url: obj['app']['frontPath']
288
284
  });
285
+ }else{
286
+ if (this.redirect_url) {
287
+ this.$xdUniHelper.redirectTo({
288
+ url: this.redirect_url,
289
+ });
290
+ } else {
291
+ this.$xdUniHelper.redirectTo({
292
+ url: this.settings.index,
293
+ });
294
+ }
289
295
  }
296
+
290
297
  });
291
298
  },
292
299
  handleToAdd() {
@@ -1,22 +0,0 @@
1
- 'use strict';
2
-
3
- /**
4
- * @description 第三方库
5
- * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
- * @param packname {String} 包名字
7
- * @returns {string|*}
8
- */
9
- const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
- if(packname === 'gxd-commands-bussiness') {
11
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
- }
13
-
14
- if (packname === 'gxd-uni-library-editx') {
15
- return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
- }
17
-
18
- };
19
-
20
- module.exports = {
21
- getPackagePath
22
- }