jufubao-base 1.0.243-beta2 → 1.0.243-beta202

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 (172) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
  3. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
  4. package/src/components/JfbBaseAfterSales/Api.js +58 -0
  5. package/src/components/JfbBaseAfterSales/Attr.js +25 -0
  6. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +587 -0
  7. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
  8. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
  9. package/src/components/JfbBaseAfterSales/Mock.js +6 -0
  10. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
  11. package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
  12. package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
  13. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +547 -0
  14. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
  15. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
  16. package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
  17. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
  18. package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
  19. package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
  20. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
  21. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
  22. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
  23. package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
  24. package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
  25. package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +488 -0
  27. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
  28. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
  29. package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
  30. package/src/components/JfbBaseBalance/Api.js +46 -0
  31. package/src/components/JfbBaseBalance/Attr.js +316 -0
  32. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +336 -0
  33. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  34. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  35. package/src/components/JfbBaseBalance/Mock.js +9 -0
  36. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +4 -6
  37. package/src/components/JfbBaseCodeOpenVip/Api.js +35 -0
  38. package/src/components/JfbBaseCodeOpenVip/Attr.js +281 -0
  39. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +251 -0
  40. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  41. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  42. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  43. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +10 -16
  44. package/src/components/JfbBaseConsumpCode/Api.js +133 -0
  45. package/src/components/JfbBaseConsumpCode/Attr.js +74 -0
  46. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +1111 -0
  47. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  48. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  49. package/src/components/JfbBaseConsumpCode/Mock.js +22 -0
  50. package/src/components/JfbBaseFastLink/Attr.js +12 -1
  51. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +66 -0
  52. package/src/components/JfbBaseFooter/Attr.js +12 -0
  53. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +13 -0
  54. package/src/components/JfbBaseHeader/Attr.js +82 -0
  55. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +47 -1
  56. package/src/components/JfbBaseHeaderColumn/Attr.js +82 -0
  57. package/src/components/JfbBaseHeaderColumn/JfbBaseHeaderColumn.vue +48 -2
  58. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +23 -13
  59. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +6 -10
  60. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +2 -16
  61. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +3 -5
  62. package/src/components/JfbBaseNoticeDialog/Api.js +1 -1
  63. package/src/components/JfbBaseNoticeDialog/Attr.js +26 -0
  64. package/src/components/JfbBaseNoticeDialog/JfbBaseNoticeDialog.vue +38 -15
  65. package/src/components/JfbBaseNoticeGroup/Api.js +23 -0
  66. package/src/components/JfbBaseNoticeGroup/Attr.js +237 -0
  67. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroup.vue +174 -0
  68. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupLess.less +79 -0
  69. package/src/components/JfbBaseNoticeGroup/JfbBaseNoticeGroupMixin.js +30 -0
  70. package/src/components/JfbBaseNoticeGroup/Mock.js +13 -0
  71. package/src/components/JfbBaseOpenVip/Api.js +39 -0
  72. package/src/components/JfbBaseOpenVip/Attr.js +331 -0
  73. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +459 -0
  74. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  75. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  76. package/src/components/JfbBaseOpenVip/Mock.js +7 -0
  77. package/src/components/JfbBaseOpenVip/XdVipList.vue +130 -0
  78. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  79. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  80. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  81. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  82. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  83. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  84. package/src/components/JfbBaseOpenVipDetail/Api.js +35 -0
  85. package/src/components/JfbBaseOpenVipDetail/Attr.js +37 -0
  86. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +234 -0
  87. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  88. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  89. package/src/components/JfbBaseOpenVipDetail/Mock.js +15 -0
  90. package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
  91. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +211 -19
  92. package/src/components/JfbBaseOrderList/Api.js +11 -0
  93. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  94. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
  95. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  96. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
  97. package/src/components/JfbBasePay/Attr.js +52 -0
  98. package/src/components/JfbBasePay/JfbBasePay.vue +42 -41
  99. package/src/components/JfbBasePay/Mock.js +0 -9
  100. package/src/components/JfbBasePersonalData/Api.js +26 -0
  101. package/src/components/JfbBasePersonalData/Attr.js +13 -0
  102. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +278 -0
  103. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  104. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  105. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  106. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +5 -21
  107. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +40 -31
  108. package/src/components/JfbBasePointsCard/Api.js +18 -0
  109. package/src/components/JfbBasePointsCard/Attr.js +187 -0
  110. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +212 -0
  111. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  112. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  113. package/src/components/JfbBasePointsCard/Mock.js +5 -0
  114. package/src/components/JfbBasePointsDetail/Api.js +48 -0
  115. package/src/components/JfbBasePointsDetail/Attr.js +305 -0
  116. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +267 -0
  117. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  118. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  119. package/src/components/JfbBasePointsDetail/Mock.js +6 -0
  120. package/src/components/JfbBasePoster/Attr.js +1 -1
  121. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +2 -2
  122. package/src/components/JfbBasePosterGroup/Api.js +22 -0
  123. package/src/components/JfbBasePosterGroup/Attr.js +156 -0
  124. package/src/components/JfbBasePosterGroup/JfbBasePosterGroup.vue +268 -0
  125. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupLess.less +79 -0
  126. package/src/components/JfbBasePosterGroup/JfbBasePosterGroupMixin.js +30 -0
  127. package/src/components/JfbBasePosterGroup/Mock.js +13 -0
  128. package/src/components/JfbBaseSavingDetail/Api.js +41 -0
  129. package/src/components/JfbBaseSavingDetail/Attr.js +70 -0
  130. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +724 -0
  131. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  132. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  133. package/src/components/JfbBaseSavingDetail/Mock.js +10 -0
  134. package/src/components/JfbBaseSavingDetail/components/echarts.min.js +26 -0
  135. package/src/components/JfbBaseSavingDetail/components/echarts.vue +254 -0
  136. package/src/components/JfbBaseSavingDetail/components/wx-canvas.js +105 -0
  137. package/src/components/JfbBaseShare/Api.js +20 -0
  138. package/src/components/JfbBaseShare/Attr.js +59 -0
  139. package/src/components/JfbBaseShare/JfbBaseShare.vue +282 -0
  140. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  141. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  142. package/src/components/JfbBaseShare/Mock.js +16 -0
  143. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +14 -3
  144. package/src/components/JfbBaseTfkCardBind/JfbBaseTfkCardBind.vue +11 -18
  145. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +12 -22
  146. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +12 -1
  147. package/src/components/JfbBaseTfkSearch/Mock.js +51 -3
  148. package/src/components/JfbBaseTfkSearch/listMixins.js +2 -1
  149. package/src/components/JfbBaseUserInfo/Attr.js +175 -11
  150. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +342 -119
  151. package/src/components/JfbBaseUserOrder/Attr.js +16 -0
  152. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +11 -2
  153. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +3 -5
  154. package/src/components/JfbBaseWithDrawAgain/Api.js +41 -0
  155. package/src/components/JfbBaseWithDrawAgain/Attr.js +92 -0
  156. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +354 -0
  157. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  158. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  159. package/src/components/JfbBaseWithDrawAgain/Mock.js +10 -0
  160. package/src/components/JfbBaseWithDrawRecord/Api.js +19 -0
  161. package/src/components/JfbBaseWithDrawRecord/Attr.js +79 -0
  162. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +233 -0
  163. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  164. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  165. package/src/components/JfbBaseWithDrawRecord/Mock.js +7 -0
  166. package/src/components/JfbBaseWithdraw/Api.js +48 -0
  167. package/src/components/JfbBaseWithdraw/Attr.js +328 -0
  168. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +272 -0
  169. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  170. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  171. package/src/components/JfbBaseWithdraw/Mock.js +7 -0
  172. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +10 -0
@@ -66,6 +66,9 @@
66
66
  :key="showLocationKey"
67
67
  ></xd-city-show-api>
68
68
  </view>
69
+ <view v-if="showScan==='Y'" class="scan_in" @click.stop="handleScanClick">
70
+ <xd-font-icon :size="32" :color="scanIconColor" icon="iconsaoma1"></xd-font-icon>
71
+ </view>
69
72
  <xd-font-icon v-if="searchIconPosition==='left'" :icon="icon" :color="iconColor" size="32"/>
70
73
  <input
71
74
  v-if="useSearch==='Y'"
@@ -84,6 +87,9 @@
84
87
  @click.stop="doSearch"
85
88
  >{{searchBtnText || '搜索'}}</view>
86
89
  </view>
90
+ <view v-if="showQrcode==='Y'" class="qr_code" @click.stop="handleQrCodeClick">
91
+ <xd-font-icon :size="qrcodeSize" icon="iconerweima" :color="qrCodeColor"></xd-font-icon>
92
+ </view>
87
93
  <view v-if="showSearchBtn==='Y' && searchBtnPosition==='out'"
88
94
  class="search_btn_out"
89
95
  :style="[searchBtnStyle]"
@@ -212,6 +218,13 @@
212
218
  searchBoxRadius: 30,
213
219
  bottomBorder: "",
214
220
  inputBorder: "",
221
+ showQrcode: "",
222
+ qrcodeSize: 32,
223
+ qrcodePath: "",
224
+ qrCodeColor: "",
225
+ showScan: "",
226
+ scanIconColor: "",
227
+ scanPath: "",
215
228
  }
216
229
  },
217
230
  watch: {
@@ -243,8 +256,11 @@
243
256
  this.useSearch = getContainerPropsValue(container, "content.useSearch", "Y");
244
257
  this.searchPagePath = getContainerPropsValue(container, "content.searchPagePath", {value:""}).value;
245
258
  this.choseCityPath = getContainerPropsValue(container, "content.choseCityPath", {value:""}).value;
246
-
247
-
259
+ this.showQrcode = getContainerPropsValue(container, "content.showQrcode", "");
260
+ this.qrcodeSize = getContainerPropsValue(container, "content.qrcodeSize", 32);
261
+ this.qrCodeColor = getContainerPropsValue(container, "content.qrCodeColor", "#333");
262
+ this.showScan = getContainerPropsValue(container, "content.showScan", "");
263
+ this.scanIconColor = getContainerPropsValue(container, "content.scanIconColor", "#333");
248
264
  //基础
249
265
  this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", '#fff');
250
266
  this.icon = getContainerPropsValue(container, "content.icon", 'iconsousuo_mian');
@@ -282,6 +298,8 @@
282
298
  this.showQuickEntry = getContainerPropsValue(container, 'content.showQuickEntry', "N");
283
299
  this.quickEntryType = getContainerPropsValue(container, 'content.quickEntryType', "");
284
300
  this.quickEntryPath = getContainerPropsValue(container, 'content.quickEntryPath', {value:""}).value;
301
+ this.qrcodePath = getContainerPropsValue(container, 'content.qrcodePath', {value:""}).value;
302
+ this.scanPath = getContainerPropsValue(container, 'content.scanPath', {value:""}).value;
285
303
 
286
304
  let name , logo, platform_logo;
287
305
  if (this.projectAttr['site_name']) name = this.projectAttr['site_name'];
@@ -320,6 +338,16 @@
320
338
  })
321
339
  }
322
340
  },
341
+ handleQrCodeClick(){
342
+ this.$xdUniHelper.navigateTo({
343
+ url: this.qrcodePath
344
+ })
345
+ },
346
+ handleScanClick(){
347
+ this.$xdUniHelper.navigateTo({
348
+ url: this.scanPath
349
+ })
350
+ },
323
351
 
324
352
  /***
325
353
  * @description 定位完成事件
@@ -477,6 +505,20 @@
477
505
  padding: 0;
478
506
  }
479
507
  }
508
+ .scan_in{
509
+ position: relative;
510
+ padding-right: 28rpx;
511
+ margin-right: 20rpx;
512
+ &::before{
513
+ content: " ";
514
+ position: absolute;
515
+ width: 2rpx;
516
+ height: 100%;
517
+ background-color: #CCCCCC;
518
+ right: -0rpx;
519
+ top: 0rpx;
520
+ }
521
+ }
480
522
  .search_input{
481
523
  flex: 1;
482
524
  text-align: left;
@@ -510,6 +552,10 @@
510
552
  align-items: center;
511
553
  justify-content: center;
512
554
  }
555
+
556
+ .qr_code{
557
+ margin-left: 16rpx;
558
+ }
513
559
  }
514
560
  }
515
561
  }
@@ -438,6 +438,7 @@ export default {
438
438
  showLogo: "Y", //是否显示logo
439
439
  customLogoUrl: {}, //自定义logo地址
440
440
  loginMenuMargin: {},
441
+ share_code: "",
441
442
  };
442
443
  },
443
444
  computed: {
@@ -604,6 +605,14 @@ export default {
604
605
  },
605
606
 
606
607
  onJfbLoad(options) {
608
+ if(options['x-share']){
609
+ let decodeParams = Base64.decode(options['x-share']);
610
+ try{
611
+ let commonParams = JSON.parse(decodeParams);
612
+ this.share_code = commonParams.share_code;
613
+ }catch(e){}
614
+ }
615
+
607
616
  this.$xdLog.setProject('JfbBaseLogin', 'JfbBaseLogin.onJfbLoad.start')
608
617
  this.redirect_url = options.redirect_url ? Base64.decode(options.redirect_url): '';
609
618
  this.isDebugPreview = options['x-test'] === 'jfb-tiyan';
@@ -768,17 +777,18 @@ export default {
768
777
  });
769
778
  },
770
779
 
771
- doWxMpLogin() {
780
+ // #ifdef MP-WEIXIN
781
+ doWxMpLogin({detail}) {
772
782
  this.$xdShowLoading({});
773
783
  uni.login({
774
784
  provider: "weixin",
775
785
  success: (loginRes) => {
776
- console.log("doWxMpLogin", loginRes);
777
786
  jfbRootExec("loginThirdLogin", {
778
787
  vm: this,
779
788
  data: {
780
789
  third_auth_code: loginRes.code,
781
790
  provider_id: this.quickLogin.provider_id,
791
+ share_code: this.share_code,
782
792
  },
783
793
  })
784
794
  .then((res) => {
@@ -832,7 +842,7 @@ export default {
832
842
  },
833
843
  });
834
844
  },
835
-
845
+ // #endif
836
846
  /**
837
847
  * @description h5获取登录方式
838
848
  */
@@ -890,11 +900,9 @@ export default {
890
900
  if (this.time > 0) return;
891
901
  const { phone_number } = this.accountForm;
892
902
  if (!/^1[3-9]\d{9}$/.test(phone_number)) {
893
- this.$xdAlert({
894
- content: '请填写正确的手机号',
895
- time: 2500,
896
- isClose: false,
897
- zIndex: 5000
903
+ uni.showToast({
904
+ title: "请填写正确的手机号",
905
+ icon: "none",
898
906
  });
899
907
  return false;
900
908
  }
@@ -982,6 +990,7 @@ export default {
982
990
 
983
991
  },
984
992
 
993
+ // #ifdef MP-WEIXIN
985
994
  //小程序授权登录
986
995
  getuserinfo(e) {
987
996
  //获取用户信息
@@ -993,6 +1002,7 @@ export default {
993
1002
  data: {
994
1003
  raw_data,
995
1004
  provider_id,
1005
+ share_code: this.share_code,
996
1006
  },
997
1007
  })
998
1008
  .then(() => {
@@ -1002,6 +1012,7 @@ export default {
1002
1012
  //首页地址
1003
1013
  //确认授权登录信息 => 跳转回调地址 cbUrl
1004
1014
  },
1015
+ // #endif
1005
1016
 
1006
1017
  //账号登录 -> 跳转第二步
1007
1018
  doLoginAccount() {
@@ -1030,11 +1041,9 @@ export default {
1030
1041
  else if (accountLoginType === "pwd" && !password)
1031
1042
  err_tip = "密码不能为空";
1032
1043
  if (err_tip) {
1033
- return this.$xdAlert({
1034
- content: err_tip,
1035
- time: 2500,
1036
- isClose: false,
1037
- zIndex: 5000
1044
+ return uni.showToast({
1045
+ title: err_tip,
1046
+ icon: "none",
1038
1047
  });
1039
1048
  }
1040
1049
 
@@ -1047,6 +1056,7 @@ export default {
1047
1056
  provider_id: this.phoneLogin.provider_id,
1048
1057
  phone_number,
1049
1058
  verification_code,
1059
+ share_code: this.share_code,
1050
1060
  },
1051
1061
  })
1052
1062
  .then((res) => {
@@ -154,11 +154,9 @@ export default {
154
154
  if (this.time > 0) return;
155
155
  const { phone_number } = this.resetForm;
156
156
  if (!/^1[3-9]\d{9}$/.test(phone_number)) {
157
- this.$xdAlert({
158
- content: '请填写正确的手机号',
159
- time: 2500,
160
- isClose: false,
161
- zIndex: 5000
157
+ uni.showToast({
158
+ title: "请填写正确的手机号",
159
+ icon: "none",
162
160
  });
163
161
  return false;
164
162
  }
@@ -187,11 +185,9 @@ export default {
187
185
  toResetPassword() {
188
186
  const { verification_code, phone_number } = this.resetForm;
189
187
  if (!verification_code || !phone_number) {
190
- return this.$xdAlert({
191
- content: '填写手机号跟验证码',
192
- time: 2500,
193
- isClose: false,
194
- zIndex: 5000
188
+ return uni.showToast({
189
+ title: "填写手机号跟验证码",
190
+ icon: "none",
195
191
  });
196
192
  }
197
193
  jfbRootExec("verifyPhoneCode", {
@@ -138,22 +138,8 @@
138
138
  },
139
139
  doSetPassword(){
140
140
  const { password, confirm_password } = this.resetForm;
141
- if(!password || !confirm_password){
142
- return this.$xdAlert({
143
- content: '请输入密码',
144
- time: 2500,
145
- isClose: false,
146
- zIndex: 5000
147
- });
148
- }
149
- if(password !== confirm_password){
150
- return this.$xdAlert({
151
- content: '密码不一致',
152
- time: 2500,
153
- isClose: false,
154
- zIndex: 5000
155
- });
156
- }
141
+ if(!password || !confirm_password) return uni.showToast({title: "请输入密码",icon: 'none'});
142
+ if(password !== confirm_password) return uni.showToast({title: "密码不一致",icon: 'none'});
157
143
 
158
144
  let typeFn = "resetPwd"
159
145
  if(this.pwd_type == 1) typeFn = "setPwd"
@@ -114,11 +114,9 @@
114
114
  if(res['is_ifream'] === 'Y') {
115
115
  // #ifdef MP
116
116
  if(!res.url){
117
- return this.$xdAlert({
118
- content: 'URL不存在',
119
- time: 2500,
120
- isClose: false,
121
- zIndex: 5000
117
+ return uni.showToast({
118
+ title: 'URL不存在',
119
+ duration: 2000
122
120
  });
123
121
  }
124
122
  this.$xdUniHelper.redirectTo({
@@ -8,7 +8,7 @@ module.exports = [
8
8
  {
9
9
  mapFnName: 'getListNoticeDialogContent', //自定义方法名字(必选)
10
10
  title: '获取内容',
11
- path: '/cms/v1/news-content',
11
+ path: '/cms/v1/ad-content',
12
12
  isRule: false,
13
13
  params: {
14
14
  scene: ['使用场景', 'String', '选填'],
@@ -247,6 +247,32 @@ export default {
247
247
  { label: '弹框', value: 'pop' },
248
248
  ]
249
249
  },
250
+ {
251
+ label: '展示位置:',
252
+ ele: 'xd-radio',
253
+ valueKey: 'systemType',
254
+ groupKey:'content',
255
+ value: data['systemType'] || 'fuli',
256
+ placeholder: '请选择展示位置',
257
+ className: 'input60',
258
+ list: [
259
+ { label: '福利系统', value: 'fuli' },
260
+ { label: 'plus系统', value: 'plus' },
261
+ ]
262
+ },
263
+ data['systemType']==='plus'&&{
264
+ label: '展示方式:',
265
+ ele: 'xd-radio',
266
+ valueKey: 'showGroup',
267
+ groupKey:'content',
268
+ value: data['showGroup'] || 'all',
269
+ placeholder: '请选择展示方式',
270
+ className: 'input60',
271
+ list: [
272
+ { label: '全部用户', value: 'all' },
273
+ { label: '仅会员', value: 'vip' },
274
+ ]
275
+ },
250
276
  {
251
277
  label: '是否隐藏弹框(仅预览模式生效):',
252
278
  ele: 'xd-radio',
@@ -73,7 +73,7 @@ export default {
73
73
  mixins: [componentsMixins, extsMixins, JfbBaseNoticeDialogMixin],
74
74
  data() {
75
75
  return {
76
- isShow: true,
76
+ isShow: false,
77
77
  backgroundColor: "",
78
78
  isPreview: false, //是否预览
79
79
  is_hide_dailog: "N",
@@ -84,7 +84,9 @@ export default {
84
84
  currentLinkUrl: "",
85
85
  currentIndex: 0,
86
86
  contentList: [],
87
- number: ''
87
+ number: '',
88
+ systemType: '',
89
+ showGroup: ''
88
90
  };
89
91
  },
90
92
  watch: {
@@ -134,19 +136,28 @@ export default {
134
136
 
135
137
  //弹窗显示
136
138
  if (res.list.length > 0) {
137
- this.contentList = res.list.map((item) => {
138
- return JSON.parse(item.content);
139
- });
139
+ this.contentList = res.list
140
140
  this.currentImage = getServiceUrl(
141
141
  this.contentList[0].image_url,
142
- "size3"
143
- );
144
- this.currentLinkUrl = this.getLinkUrl(
145
- this.contentList[0].redirect_data
142
+ "size8"
146
143
  );
144
+ if(this.contentList[0].redirect_data){
145
+ this.currentLinkUrl = this.getLinkUrl(
146
+ this.contentList[0].redirect_data
147
+ );
148
+ }
147
149
  this.currentIndex = 0;
148
-
149
- this.handlePop();
150
+ if(this.systemType === 'fuli'){
151
+ this.handlePop();
152
+ } else {
153
+ if(this.showGroup==='all') {
154
+ this.handlePop();
155
+ }else {
156
+ if(this.getTokenForKey('user_level')&&this.getTokenForKey('user_level')==='VIP') {
157
+ this.handlePop();
158
+ }
159
+ }
160
+ }
150
161
  }
151
162
  })
152
163
  .catch((error) => {
@@ -175,6 +186,16 @@ export default {
175
186
  );
176
187
  this.type = getContainerPropsValue(container, "content.type", "pop");
177
188
  this.number = getContainerPropsValue(container, "content.number", 1);
189
+ this.systemType = getContainerPropsValue(
190
+ container,
191
+ "content.systemType",
192
+ "fuli"
193
+ );
194
+ this.showGroup = getContainerPropsValue(
195
+ container,
196
+ "content.showGroup",
197
+ "all"
198
+ );
178
199
  },
179
200
  handlePop() {
180
201
  console.warn(`this.time${this.time * 60 + "分钟"}`);
@@ -192,12 +213,14 @@ export default {
192
213
  return;
193
214
  }
194
215
  this.currentIndex = this.currentIndex + 1;
195
- this.currentLinkUrl = this.getLinkUrl(
196
- this.contentList[this.currentIndex].redirect_data
197
- );
216
+ if(this.contentList[this.currentIndex].redirect_data) {
217
+ this.currentLinkUrl = this.getLinkUrl(
218
+ this.contentList[this.currentIndex].redirect_data
219
+ );
220
+ }
198
221
  this.currentImage = getServiceUrl(
199
222
  this.contentList[this.currentIndex].image_url,
200
- "size3"
223
+ "size8"
201
224
  );
202
225
  },
203
226
  handleToLink() {
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Notice
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ mapFnName: 'getNoticeNewsContent', //自定义方法名字(必选)
10
+ title: '获取内容',
11
+ path: '/cms/v1/news-content',
12
+ isRule: false,
13
+ params: {
14
+ scene: ['使用场景', 'String', '选填'],
15
+ container_id: ['插件ID', 'String', '必填'],
16
+ page_id: ['页面ID', 'String', '必填'],
17
+ page_size: ['记录条数', 'Number', '必填', 1],
18
+ code: ['业务线id', 'String', '选填'],
19
+ },
20
+ isConsole: true,
21
+ disabled: true,
22
+ },
23
+ ];
@@ -0,0 +1,237 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '公告内容:',
12
+ ele: 'xd-site-news',
13
+ valueKey: 'notice',
14
+ groupKey: 'content',
15
+ value: data.notice || null,
16
+ className: 'input70',
17
+ setting: {
18
+ config: {
19
+ sort: true,
20
+ maxlen: 100,
21
+ action: 'aliyun',
22
+ size: 5,
23
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
24
+ uploadType: 'aliyun',
25
+ type: ['jpg', 'png', 'jpeg']
26
+ },
27
+ },
28
+ handleCustom({ action, data }) {
29
+ if (data && data.params) {
30
+ //当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
31
+ //data.params = Object.assign({}, data.params, {code: 'g_test_id'});
32
+ }
33
+
34
+ //获取返回参数(场景类型名称为必填)
35
+ //获取返回参数(场景类型名称为必填)
36
+ let loading = { close() { } }
37
+
38
+ //获取显示内容
39
+ if (action === 'screen') {
40
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
41
+ .then(res => {
42
+ loading.close();
43
+ data.cb(res['list'])
44
+ })
45
+ .catch(error => {
46
+ console.error(error);
47
+ loading.close();
48
+ });
49
+
50
+ }
51
+
52
+ //获取返回参数(广告位高度必选项)
53
+ if (action === 'getNewsInfo') {
54
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
55
+ .then(res => {
56
+ loading.close()
57
+ data.cb({ list: res.list, selectId: res.selected })
58
+ })
59
+ .catch(error => {
60
+ loading.close()
61
+ console.error(error);
62
+ });
63
+ }
64
+
65
+ //获取产品业务线列表
66
+ if (action === 'namespace') {
67
+ XdBus.getParentApi('getOptionsNamespaces')({})
68
+ .then(res => {
69
+ loading.close()
70
+ data.cb(res['list'])
71
+ })
72
+ .catch(error => {
73
+ loading.close()
74
+ console.error(error);
75
+ });
76
+ }
77
+
78
+ //使用内容分类
79
+ if (action === 'cmsPublishEditxContent') {
80
+ loading = XdBus.getParentApi('loading')({});
81
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
82
+ .then(res => {
83
+ console.log('cmsPublishEditxContent', res)
84
+ loading.close();
85
+ data.cb(res)
86
+ })
87
+ .catch(error => {
88
+ loading.close();
89
+ console.error(error);
90
+ });
91
+ }
92
+
93
+ //位置列表
94
+ if (action === 'getListPostion') {
95
+ loading = XdBus.getParentApi('loading')({});
96
+ XdBus.getParentApi('getListNewsPosition')(data.params)
97
+ .then(res => {
98
+ loading.close();
99
+ data.cb(res)
100
+ })
101
+ .catch(error => {
102
+ loading.close();
103
+ console.error(error);
104
+ });
105
+ }
106
+
107
+ //位置创建
108
+ if (action === 'addPostion') {
109
+ loading = XdBus.getParentApi('loading')({});
110
+ XdBus.getParentApi('addNewsPosition')(data.params)
111
+ .then(res => {
112
+ loading.close();
113
+ data.cb(true)
114
+ })
115
+ .catch(error => {
116
+ console.error(error);
117
+ loading.close();
118
+ data.cb(false)
119
+ });
120
+ }
121
+
122
+ //位置编辑
123
+ if (action === 'editPostion') {
124
+ loading = XdBus.getParentApi('loading')({});
125
+ XdBus.getParentApi('updateNewsPosition')(data.params)
126
+ .then(res => {
127
+ loading.close();
128
+ data.cb(true)
129
+ })
130
+ .catch(error => {
131
+ console.error(error);
132
+ loading.close();
133
+ data.cb(false)
134
+ });
135
+ }
136
+
137
+ //位置删除
138
+ if (action === 'deleltePostion') {
139
+ loading = XdBus.getParentApi('loading')({});
140
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
141
+ .then(res => {
142
+ loading.close();
143
+ data.cb(true)
144
+ })
145
+ .catch(error => {
146
+ console.error(error);
147
+ loading.close();
148
+ data.cb(false)
149
+ });
150
+ }
151
+
152
+ //获取广告位内容列表
153
+ if (action === 'getListContent') {
154
+ loading = XdBus.getParentApi('loading')({});
155
+ XdBus.getParentApi('getListNewsContent')(data.params)
156
+ .then(res => {
157
+ loading.close();
158
+ data.cb(res)
159
+ })
160
+ .catch(error => {
161
+ loading.close();
162
+ console.error(error);
163
+ });
164
+ }
165
+
166
+ //广告内容创建
167
+ if (action === 'addContent') {
168
+ loading = XdBus.getParentApi('loading')({});
169
+ XdBus.getParentApi('addNewsContent')(data.params)
170
+ .then(res => {
171
+ loading.close();
172
+ data.cb(true)
173
+ })
174
+ .catch(error => {
175
+ console.error(error);
176
+ loading.close();
177
+ data.cb(false)
178
+ });
179
+ }
180
+
181
+ //广告内容编辑
182
+ if (action === 'editContent') {
183
+ loading = XdBus.getParentApi('loading')({});
184
+ XdBus.getParentApi('updateNewsContent')(data.params)
185
+ .then(res => {
186
+ loading.close();
187
+ data.cb(true)
188
+ })
189
+ .catch(error => {
190
+ console.error(error);
191
+ loading.close();
192
+ data.cb(false)
193
+ });
194
+ }
195
+
196
+ //广告内容删除
197
+ if (action === 'deleteContent') {
198
+ loading = XdBus.getParentApi('loading')({});
199
+ XdBus.getParentApi('deleteNewsContent')(data.params)
200
+ .then(res => {
201
+ loading.close();
202
+ data.cb(true)
203
+ })
204
+ .catch(error => {
205
+ console.error(error);
206
+ loading.close();
207
+ data.cb(false)
208
+ });
209
+ }
210
+
211
+ //内容发布
212
+ if (action === 'publish') {
213
+ loading = XdBus.getParentApi('loading')({});
214
+ console.log('publish', data.params)
215
+ XdBus.getParentApi('cmsPublishContent')(data.params)
216
+ .then(res => {
217
+ loading.close();
218
+ data.cb(res)
219
+ })
220
+ .catch(error => {
221
+ loading.close();
222
+ console.error(error);
223
+ });
224
+ }
225
+
226
+ //通知页面进行刷新
227
+ if (action === 'update') {
228
+ loading = XdBus.getParentApi('loading')({});
229
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
230
+ loading.close()
231
+ }
232
+ },
233
+ }
234
+ ].filter(i => i)
235
+ },
236
+ advanced: [],
237
+ };