jufubao-base 1.0.159-beta8 → 1.0.159

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.
Files changed (90) hide show
  1. package/package.json +1 -1
  2. package/src/common/authorize.js +70 -201
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +6 -7
  4. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +3 -5
  5. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +2 -3
  6. package/src/components/JfbBaseBack/JfbBaseBack.vue +8 -10
  7. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +2 -3
  8. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +2 -3
  9. package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -10
  10. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +26 -57
  11. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +15 -14
  12. package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -22
  13. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +423 -390
  14. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
  15. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +9 -7
  16. package/src/components/JfbBaseCardEntry/Attr.js +1 -22
  17. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +33 -86
  18. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +19 -36
  19. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +4 -9
  20. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +3 -4
  21. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +18 -23
  22. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -4
  23. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +19 -16
  24. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -3
  25. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +18 -34
  26. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
  27. package/src/components/JfbBaseCity/JfbBaseCity.vue +2 -3
  28. package/src/components/JfbBaseClear/JfbBaseClear.vue +2 -3
  29. package/src/components/JfbBaseConDialog/Api.js +13 -1
  30. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +79 -20
  31. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +223 -133
  32. package/src/components/JfbBaseConList/Api.js +13 -1
  33. package/src/components/JfbBaseConList/Attr.js +11 -0
  34. package/src/components/JfbBaseConList/JfbBaseConList.vue +355 -123
  35. package/src/components/JfbBaseConList/Mock.js +1 -1
  36. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +2 -3
  37. package/src/components/JfbBaseEntry/Attr.js +0 -22
  38. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +16 -80
  39. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +4 -3
  40. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -31
  41. package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
  42. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +1 -0
  43. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +2 -3
  44. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +11 -28
  45. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +9 -7
  46. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +6 -9
  47. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +5 -19
  48. package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +37 -52
  49. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +2 -3
  50. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +27 -28
  51. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
  52. package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
  53. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +4 -6
  54. package/src/components/JfbBaseNotice/Attr.js +2 -0
  55. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +14 -36
  56. package/src/components/JfbBaseNotice/XdNoticeBar.vue +1 -17
  57. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +2 -3
  58. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +2 -3
  59. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +31 -20
  60. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +4 -9
  61. package/src/components/JfbBasePay/JfbBasePay.vue +2 -3
  62. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +7 -22
  63. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +7 -23
  64. package/src/components/JfbBasePoster/JfbBasePoster.vue +18 -118
  65. package/src/components/JfbBasePoster/MoreScreen.vue +37 -155
  66. package/src/components/JfbBasePosterBigSmall/Attr.js +4 -1
  67. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +67 -191
  68. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +20 -90
  69. package/src/components/JfbBasePosterType/FourScreen.vue +18 -162
  70. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +35 -0
  71. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
  72. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +4 -3
  73. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +7 -4
  74. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +9 -6
  75. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +2 -3
  76. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +4 -5
  77. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +2 -3
  78. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +3 -5
  79. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +3 -4
  80. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +11 -14
  81. package/src/components/JfbBaseVideo/XdVideo.vue +4 -0
  82. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +2 -3
  83. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +8 -5
  84. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +8 -5
  85. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +17 -7
  86. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +21 -13
  87. package/src/components/JfbBaseWebview/JfbBaseWebview.vue +3 -4
  88. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +4 -5
  89. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -3
  90. package/src/mixins/colorCardMixins.js +1 -1
@@ -397,7 +397,9 @@
397
397
  </view>
398
398
  <view
399
399
  class="jfb-base-order-detail__body-num-info-copy"
400
- @click="copy(item.password)">复制</view>
400
+ @click="copy(item.password)"
401
+ >复制</view
402
+ >
401
403
  <view
402
404
  v-if="item.code_end_time"
403
405
  class="jfb-base-order-detail__body-cashier-code"
@@ -432,7 +434,9 @@
432
434
  color: mainColor,
433
435
  background: bgColor,
434
436
  }"
435
- >{{ item.code_end_time }}</view>
437
+ >
438
+ {{ item.code_end_time }}
439
+ </view>
436
440
  </view>
437
441
  </view>
438
442
 
@@ -456,7 +460,9 @@
456
460
  color: mainColor,
457
461
  background: bgColor,
458
462
  }"
459
- >{{ item.code_end_time }}</view>
463
+ >
464
+ {{ item.code_end_time }}
465
+ </view>
460
466
  </view>
461
467
  </view>
462
468
 
@@ -486,7 +492,9 @@
486
492
  color: mainColor,
487
493
  background: bgColor,
488
494
  }"
489
- >{{ item.code_end_time }}</view>
495
+ >
496
+ {{ item.code_end_time }}
497
+ </view>
490
498
  </view>
491
499
  </view>
492
500
  </view>
@@ -534,7 +542,9 @@
534
542
  <view class="jfb-base-order-detail__body-shop-name">
535
543
  {{ info.shop.shop_name }}
536
544
  </view>
537
- <view class="jfb-base-order-detail__body-shop-address">地址: {{ info.shop.shop_address }}</view>
545
+ <view class="jfb-base-order-detail__body-shop-address"
546
+ >地址: {{ info.shop.shop_address }}
547
+ </view>
538
548
  </view>
539
549
  <view
540
550
  :style="{
@@ -564,7 +574,8 @@
564
574
  v-if="item.type === 'copy'"
565
575
  class="jfb-base-order-detail__body-order-copy"
566
576
  @click="copy(item.value)"
567
- >复制</view>
577
+ >复制</view
578
+ >
568
579
  </view>
569
580
  </view>
570
581
  <view
@@ -648,7 +659,9 @@
648
659
  v-for="(item, index) in info.contacts"
649
660
  :key="index"
650
661
  >
651
- <view class="jfb-base-order-detail__body-link-title">{{item.title }}</view>
662
+ <view class="jfb-base-order-detail__body-link-title">{{
663
+ item.title
664
+ }}</view>
652
665
  <view v-for="(Sitem, Sindex) in item.data" :key="Sindex">
653
666
  <view class="jfb-base-order-detail__body-link-item">
654
667
  <view v-html="Sitem.label"></view>
@@ -728,17 +741,14 @@
728
741
  radius="40rpx"
729
742
  :bg-color="mainColor"
730
743
  @click="handleAction(item)"
731
- >{{ item.text }}</xd-button>
744
+ >
745
+ {{ item.text }}
746
+ </xd-button>
732
747
  </view>
733
748
  </view>
734
749
  </view>
735
750
  </view>
736
- <xd-dailog
737
- :show.sync="showCode"
738
- :cancel="false"
739
- :confirm="false"
740
- title="提示"
741
- >
751
+ <xd-dailog :show.sync="showCode" :cancel="false" :confirm="false" title="">
742
752
  <view
743
753
  :style="{
744
754
  display: 'flex',
@@ -760,7 +770,9 @@
760
770
  </image>
761
771
  </view>
762
772
  </view>
763
- <view v-if="dialogPassword" class="dialog_password">{{ dialogPassword }}</view>
773
+ <view v-if="dialogPassword" class="dialog_password">
774
+ {{ dialogPassword }}
775
+ </view>
764
776
  </xd-dailog>
765
777
  </view>
766
778
  </template>
@@ -846,9 +858,8 @@ export default {
846
858
  };
847
859
  },
848
860
  watch: {
849
- container(value,oldValue) {
850
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
851
- if (this.$configProject['isPreview']) this.init(value)
861
+ container(value) {
862
+ this.init(value);
852
863
  },
853
864
  viewStatus(n, o) {
854
865
  if (this.isPreview) {
@@ -1184,7 +1195,7 @@ export default {
1184
1195
  uni.setClipboardData({
1185
1196
  data: text,
1186
1197
  success: () => {
1187
- //this.$xdAlert({ content: "复制成功" });
1198
+ this.$xdAlert({ content: "复制成功" });
1188
1199
  },
1189
1200
  });
1190
1201
  // #endif
@@ -1243,7 +1254,7 @@ export default {
1243
1254
  });
1244
1255
  } else {
1245
1256
  this.$xdConfirm({
1246
- styles: this.styles,
1257
+ $vm: this,
1247
1258
  content: "是否取消订单",
1248
1259
  success: (action) => {
1249
1260
  if (action.confirm) {
@@ -136,7 +136,7 @@
136
136
  class="order-list-icon"
137
137
  :style="{ bottom: item['isOpen'] ? '-30rpx' : '-54rpx' }"
138
138
  v-if="item.products.length > showLen"
139
- @click.stop="switchOpen(item)"
139
+ @click.stop="item['isOpen'] = !item['isOpen']"
140
140
  >
141
141
  <view :style="{ background: backgroundColor }">
142
142
  <xd-font-icon
@@ -285,9 +285,8 @@ export default {
285
285
  },
286
286
  },
287
287
  watch: {
288
- container(value,oldValue) {
289
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
290
- if (this.$configProject['isPreview']) this.init(value)
288
+ container(value) {
289
+ this.init(value);
291
290
  },
292
291
  },
293
292
  created() {
@@ -388,13 +387,9 @@ export default {
388
387
  console.log("this.tabList", this.tabList);
389
388
  },
390
389
 
391
- switchOpen(item){
392
- item['isOpen'] = !item['isOpen']
393
- },
394
-
395
390
  cancelUnPayOrder(main_order_id) {
396
391
  this.$xdConfirm({
397
- styles: this.styles,
392
+ $vm: this,
398
393
  content: "是否取消订单?",
399
394
  success: (res) => {
400
395
  if (res.confirm) {
@@ -216,9 +216,8 @@ export default {
216
216
  };
217
217
  },
218
218
  watch: {
219
- container(value,oldValue) {
220
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
221
- if (this.$configProject['isPreview']) this.init(value)
219
+ container(value) {
220
+ this.init(value);
222
221
  },
223
222
  },
224
223
  computed: {
@@ -13,7 +13,9 @@
13
13
  :class="{ editx: isEditx && active }"
14
14
  v-if="isEditx && active && !noBorder"
15
15
  >
16
- <view class="jfb-base-phone-collect__edit-icon" @click="delEdit">删除</view>
16
+ <view class="jfb-base-phone-collect__edit-icon" @click="delEdit"
17
+ >删除</view
18
+ >
17
19
  </view>
18
20
  <!-- #endif -->
19
21
  <view class="jfb-base-phone-collect__body">
@@ -55,7 +57,7 @@
55
57
  :localdata="[{ value: 1, text: '登录即同意《隐私政策》《用户服务协议》' },]"
56
58
  >
57
59
  <template slot="a1">
58
- <view class="text-content">
60
+ <view>
59
61
  <text>请阅读并同意</text>
60
62
  <text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
61
63
  <text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
@@ -102,10 +104,6 @@ import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox";
102
104
  import JfbBasePhoneCollectMixin from "./JfbBasePhoneCollectMixin";
103
105
 
104
106
  export default {
105
- // #ifdef MP-WEIXIN
106
- options: { styleIsolation: 'shared' },
107
- // #endif
108
-
109
107
  name: "JfbBasePhoneCollect",
110
108
  components: {
111
109
  XdFontIcon,
@@ -127,6 +125,7 @@ export default {
127
125
  interval: null,
128
126
  provider_id: "",
129
127
  callback_url: "",
128
+ //todo
130
129
  };
131
130
  },
132
131
  computed: {
@@ -135,9 +134,8 @@ export default {
135
134
  },
136
135
  },
137
136
  watch: {
138
- container(value,oldValue) {
139
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
140
- if (this.$configProject['isPreview']) this.init(value)
137
+ container(value) {
138
+ this.init(value);
141
139
  },
142
140
  "accountForm.verification_code"(value) {
143
141
  if (value && value.length >= 8 && value.length % 2 === 0) {
@@ -332,17 +330,4 @@ export default {
332
330
  .align-center {
333
331
  align-items: center;
334
332
  }
335
- /* #ifdef MP-WEIXIN */
336
- /deep/ .xd-form-checkbox .checklist-group {
337
- justify-content: center;
338
- display: flex;
339
- align-items: center;
340
- }
341
- .text-content {
342
- width: 100%;
343
- & > text {
344
- font-size: 26rpx;
345
- }
346
- }
347
- /* #endif */
348
333
  </style>
@@ -17,7 +17,9 @@
17
17
  </view>
18
18
  <!-- #endif -->
19
19
  <view class="jfb-base-phone-login__body">
20
- <view class="panel-login-password">
20
+ <view
21
+ class="panel-login-password"
22
+ >
21
23
  <xd-form label-width="128"
22
24
  style="margin-top: 40rpx;"
23
25
  label-align="right"
@@ -59,7 +61,7 @@
59
61
  :localdata="[{value: 1, text: '登录即同意《隐私政策》《用户服务协议》'}]"
60
62
  >
61
63
  <template slot="a1">
62
- <view class="text-content">
64
+ <view>
63
65
  <text>请阅读并同意</text>
64
66
  <text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
65
67
  <text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
@@ -100,10 +102,6 @@
100
102
  import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox"
101
103
 
102
104
  export default {
103
- // #ifdef MP-WEIXIN
104
- options: { styleIsolation: 'shared' },
105
- // #endif
106
-
107
105
  name: "JfbBasePhoneLogin",
108
106
  components: {
109
107
  XdFontIcon,
@@ -135,9 +133,8 @@
135
133
  }
136
134
  },
137
135
  watch: {
138
- container(value,oldValue) {
139
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
140
- if (this.$configProject['isPreview']) this.init(value)
136
+ container(value) {
137
+ this.init(value)
141
138
  },
142
139
  "accountForm.verification_code"(value) {
143
140
  if (value && value.length >= 8 && value.length % 2 === 0) {
@@ -170,7 +167,7 @@
170
167
  * @description 监听事件变化
171
168
  * @param container {object} 业务组件对象自己
172
169
  */
173
- init(container) {
170
+ init(value) {
174
171
  //this.bgcolor = getContainerPropsValue(value, 'content.bgcolor', '#fff');
175
172
  //this.height = getContainerPropsValue(value, 'content.height', 10);
176
173
  },
@@ -365,17 +362,4 @@
365
362
  .align-center{
366
363
  align-items: center;
367
364
  }
368
- /* #ifdef MP-WEIXIN */
369
- /deep/ .xd-form-checkbox .checklist-group {
370
- justify-content: center;
371
- display: flex;
372
- align-items: center;
373
- }
374
- .text-content {
375
- width: 100%;
376
- & > text {
377
- font-size: 26rpx;
378
- }
379
- }
380
- /* #endif */
381
365
  </style>
@@ -15,6 +15,7 @@
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-poster__body" v-if="noData">
17
17
  <view class="x-line"></view>
18
+
18
19
  <view class="jfb-base-poster-cont" :style="getBodyStyle">
19
20
  <!--一分屏-->
20
21
  <template v-if="posterType === '1'">
@@ -49,7 +50,6 @@
49
50
  }"
50
51
  >
51
52
  <xd-swiper-dot
52
- :style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}"
53
53
  v-if="pageSwiperShow"
54
54
  :current="current"
55
55
  :info="info"
@@ -57,24 +57,6 @@
57
57
  :mode="mode"
58
58
  :dots-styles="dotStyleData"
59
59
  >
60
- <!--#ifdef MP-WEIXIN-->
61
- <swiper
62
- class="swiper xd-swiper-content"
63
- :style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}"
64
- :indicator-dots="false"
65
- :autoplay="carouselTime>0"
66
- :interval="carouselTime"
67
- :duration="500"
68
- :current="current"
69
- circular
70
- @animationfinish="handleAnimationfinish"
71
- >
72
- <swiper-item v-for="(item,index) in info" :key="index" @click.stop="handleClick(item,index)">
73
- <image :style="{width: getOneWidth + 'rpx', height: getOneHeight + 'rpx'}" :src="item['image_url']" mode="aspectFill"></image>
74
- </swiper-item>
75
- </swiper>
76
- <!--#endif-->
77
- <!--#ifdef H5-->
78
60
  <xd-swiper
79
61
  :indicator-dots="false"
80
62
  :list="info"
@@ -89,7 +71,6 @@
89
71
  <image :src="item['image_url']" mode="aspectFill"></image>
90
72
  </template>
91
73
  </xd-swiper>
92
- <!--#endif-->
93
74
  </xd-swiper-dot>
94
75
  <view v-if="isPreview" class="carousel-mask"></view>
95
76
  </view>
@@ -97,7 +78,6 @@
97
78
  <!--一分屏-->
98
79
  <!--多分屏-->
99
80
  <more-screen
100
- style="width: 100%; height: 100%"
101
81
  v-if="posterType !== '1'"
102
82
  :config="getConfig"
103
83
  :content="info"
@@ -178,11 +158,11 @@
178
158
  backgroundSize: '100%',
179
159
  backgroundRepeat: 'no-repeat',
180
160
  }
181
- image = Object.assign({},image,{
161
+ return {
162
+ ...image,
182
163
  margin: this.margin,
183
164
  padding: this.outPadding
184
- })
185
- return this.styleObjectToString(image)
165
+ }
186
166
  },
187
167
  getOneWidth(){
188
168
  let margin = this.checkValue(this.mS.left, 0) + this.checkValue(this.mS.right, 0);
@@ -352,9 +332,9 @@
352
332
  },
353
333
  },
354
334
  created() {
335
+ this.init(this.container);
355
336
  this.isPreview = this.$configProject.isPreview;
356
337
  this.pageSwiperShow = this.$root.$isShow;
357
- this.init(this.container);
358
338
  },
359
339
 
360
340
  destroyed() {
@@ -365,63 +345,6 @@
365
345
  },
366
346
 
367
347
  methods: {
368
- /**
369
- * @description 过滤不可以用
370
- * 当前项目未H5时,过滤所有小程序应用
371
- * 当前项目未小程序时,过滤所有非当前小程序应用
372
- * 站外地址直接返回
373
- * 站内地址未选值直接返回
374
- * 预览模式全过
375
- */
376
- filterItem(list){
377
- let content = list.filter(item=>{
378
- //预览模式
379
- if( this.$configProject.isPreview) return true;
380
-
381
- //非内部应用
382
- if(item.redirect_type !== 'INN') return true
383
-
384
- //没有配置链接
385
- if(!item.redirect_data) return true;
386
-
387
- //内部应用
388
- else {
389
- let redirect_data;
390
- try {
391
- redirect_data = JSON.parse(item.redirect_data);
392
- if(!item['app_type']) item['app_type']= 'h5';
393
-
394
- //#ifdef H5
395
- return item['app_type'] !== 'wxmp';
396
- //#endif
397
-
398
- //#ifdef MP-WEIXIN
399
- let actDir = this.$parent.projectAttr.deploy_dir;
400
- let dir = this.getPathDir(redirect_data.page);
401
- if(item['app_type'] === 'wxmp'){
402
- return actDir === dir;
403
- }
404
- else if(item['app_type'] === 'h5') return true;
405
- else return true
406
- //#endif
407
- }
408
- catch (e) {
409
- return true
410
- }
411
- }
412
- });
413
- console.warn(`PostersList:${JSON.stringify(content.map(item=>`${item.app_type}:${item.content_name}:${item.redirect_data}`), null,2)}`)
414
- return content;
415
-
416
- },
417
-
418
- getPathDir(pathDir){
419
- if(pathDir.indexOf('@site_domain@/') === 0) {
420
- return pathDir.replace('@site_domain@/','').split('/')[0]
421
- }
422
- return ''
423
- },
424
-
425
348
  getTestData(){
426
349
  let temp = [];
427
350
  for (let i = 0; i< this.useNumber; i++) {
@@ -459,70 +382,52 @@
459
382
  this.current = e.detail.current;
460
383
  }
461
384
  },
462
-
463
385
  handleClick(item) {
464
- if(!item.redirect_data) {
465
- console.warn(`未配置链接地址: ${item.redirect_data}`);
466
- console.error(`未配置链接地址: ${item.redirect_data}`);
467
- return
468
- }
469
-
470
386
  //内部链接跳转地址
471
387
  if (item.redirect_type === 'INN') {
472
388
  try {
473
389
  let url = JSON.parse(item.redirect_data);
474
390
  let params = '';
475
- if(url.page) {
476
- if (item['redirect_params']) params = `?${item['redirect_params']}`;
477
- this.$xdUniHelper.navigateTo({url: url.page + params})
478
- }
479
- else {
480
- console.error(`应用链接配置错误: ${url.page}`)
481
- }
391
+ if (item['redirect_params']) params = `?${item['redirect_params']}`;
392
+ this.$xdUniHelper.navigateTo({
393
+ url: url.page + params
394
+ })
482
395
  } catch (e) {
483
- console.error(`应用链接配置错误: ${item.redirect_data}`)
396
+ console.error(e)
484
397
  }
485
398
  }
486
399
 
487
400
  //外部链接
488
401
  if (item.redirect_type === 'URL') {
489
402
  let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
490
- let spReg = /(-apiuri\/v)/;
491
403
  //#ifdef MP-WEIXIN
492
404
  try {
493
405
  let url = JSON.parse(item.redirect_data);
494
- if (reg.test(url.url) || spReg.test(url.url)) {
406
+ if (reg.test(url.url) && this.$configProject.extras.webview) {
495
407
  console.warn(`广告跳转外站: ${url.url}`)
496
- this.$xdUniHelper.navigateTo(url);
408
+ this.$xdUniHelper.navigateTo({
409
+ url: `${this.$configProject.extras.webview}?seatUrl=${Base64.encodeURI(url.url)}`
410
+ });
497
411
  } else {
498
- console.error(`广告跳转外站配置错误: ${url.url}`)
412
+ throw Error('地址错误')
499
413
  }
500
414
  } catch (e) {
501
- console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
415
+ console.error(e)
502
416
  }
503
417
  //#endif
504
418
  //#ifdef H5
505
419
  try {
506
420
  let url = JSON.parse(item.redirect_data);
507
421
  console.warn(`广告跳转外站: ${url.url}`);
508
- this.$xdUniHelper.redirectTo(url, false)
422
+ this.$xdUniHelper.navigateTo(url)
509
423
  } catch (e) {
510
- console.error(`广告跳转外站配置错误: ${item.redirect_data}`)
424
+ console.error(e)
511
425
  }
512
426
  //#endif
513
427
 
514
428
  }
515
-
516
- //无跳转地址
517
- if(item.redirect_type === 'EMP') {
518
- console.warn(`无跳转地址`);
519
- }
520
429
  },
521
-
522
-
523
430
  handleImage(list){
524
- list = this.filterItem(list);
525
-
526
431
  return list.map((item,index) => {
527
432
  return {
528
433
  ...item,
@@ -558,11 +463,6 @@
558
463
  this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
559
464
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
560
465
  this.padding = getContainerPropsValue(container, 'content.padding', 0);
561
-
562
- //静态图,一分屏并且间距为0设置
563
- if(this.isCarousel === 1 && this.posterType === '1' && this.padding === 0) {
564
- this.padding = 20;
565
- }
566
466
  this.rows = getContainerPropsValue(container, 'content.rows', 1);
567
467
  if(this.posterType === '1' && this.isCarousel === 2) this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
568
468
  this.mS = getContainerPropsValue(container, 'content.margin', {});