jufubao-base 1.0.352 → 1.0.355-beta1

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.352",
3
+ "version": "1.0.355-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -152,7 +152,7 @@ export default {
152
152
  if(this.brandInfo && this.brandInfo['headers'] && this.brandInfo['headers']['X-T-Fts']){
153
153
  isCustomer = this.brandInfo['headers']['X-T-Fts'].split(',').includes('customer');
154
154
  }
155
- if(isCustomer) {
155
+ if(!isCustomer) {
156
156
  this.$xdAlert({
157
157
  title:'配置错误',
158
158
  content: '请检查是否开启了应用高级功能配置下的开启强制选择企业,要按需配置应用哦。',
@@ -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() {
@@ -21,7 +21,7 @@
21
21
  class="jfb-base-wallet-index__body-wrap"
22
22
  >
23
23
  <view class="jfb-base-wallet-index__body-header">
24
- <view class="jfb-base-wallet-index__body-header-total">
24
+ <view class="jfb-base-wallet-index__body-header-total" @click="typeList.length===1?handleToWalletDetail(typeList[0]):''">
25
25
  <view>
26
26
  <XdFontIcon
27
27
  :icon="type === 'wallet' ? 'iconyuanbao' : 'iconjifenjilu'"
@@ -36,10 +36,11 @@
36
36
  style="align-items: flex-start"
37
37
  color="#999999"
38
38
  size="60"
39
- icon="iconerweima"
39
+ icon="iconerweima"
40
40
  ></XdFontIcon>
41
41
  </view>
42
42
  <view
43
+ v-if="typeList.length>1"
43
44
  :style="{
44
45
  justifyContent:
45
46
  typeList.length === 2
@@ -165,7 +166,7 @@
165
166
  ></XdFontIcon>
166
167
  </view>
167
168
  </view>
168
- <view class="jfb-base-wallet-index__body-pay-id"
169
+ <view v-if="qrcodeInfo.wallet_virtual_number" class="jfb-base-wallet-index__body-pay-id"
169
170
  >ID:{{ qrcodeInfo.wallet_virtual_number }}</view
170
171
  >
171
172
  </view>
@@ -14,7 +14,7 @@
14
14
  </view>
15
15
  <!-- #endif -->
16
16
  <view v-if="status" class="jfb-base-wallet-item__body">
17
- <view class="jfb-base-wallet-item__body-id">
17
+ <view class="jfb-base-wallet-item__body-id" v-if="walletInfo.wallet_virtual_number">
18
18
  <text>账户ID:{{ walletInfo.wallet_virtual_number }}</text>
19
19
  <XdFontIcon
20
20
  @click="copyText(walletInfo.wallet_virtual_number)"
@@ -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
- }