jufubao-base 1.0.134-beta9 → 1.0.134

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 (210) hide show
  1. package/package.json +3 -4
  2. package/src/components/JfbBaseAddress/Attr.js +5 -11
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
  4. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +19 -18
  5. package/src/components/JfbBaseAfterOrderDetail/Attr.js +7 -19
  6. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +4 -6
  7. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +19 -18
  8. package/src/components/JfbBaseAfterOrderList/Attr.js +16 -25
  9. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +9 -6
  10. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +19 -18
  11. package/src/components/JfbBaseBack/JfbBaseBackLess.less +19 -18
  12. package/src/components/JfbBaseBackground/Attr.js +8 -9
  13. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -0
  14. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +19 -18
  15. package/src/components/JfbBaseBlock/Attr.js +2 -12
  16. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +8 -1
  17. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +19 -18
  18. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +19 -18
  19. package/src/components/JfbBaseCard/Attr.js +36 -78
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +2 -2
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
  23. package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +1 -3
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
  26. package/src/components/JfbBaseCardDetail/Attr.js +3 -4
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +13 -4
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
  31. package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +67 -86
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +5 -6
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
  38. package/src/components/JfbBaseCardInfo/Attr.js +16 -22
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
  42. package/src/components/JfbBaseCardMerge/Attr.js +8 -21
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
  48. package/src/components/JfbBaseCardShift/Attr.js +4 -18
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
  51. package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
  52. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
  54. package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
  55. package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
  56. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
  57. package/src/components/JfbBaseCardV2/Attr.js +17 -21
  58. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
  60. package/src/components/JfbBaseCardV3/Attr.js +14 -18
  61. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
  63. package/src/components/JfbBaseCity/Attr.js +4 -2
  64. package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
  65. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  66. package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
  67. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
  68. package/src/components/JfbBaseConDialog/Api.js +2 -2
  69. package/src/components/JfbBaseConDialog/Attr.js +14 -23
  70. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +35 -63
  71. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
  72. package/src/components/JfbBaseConDialog/Mock.js +1 -20
  73. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
  74. package/src/components/JfbBaseConList/Api.js +1 -1
  75. package/src/components/JfbBaseConList/Attr.js +224 -149
  76. package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
  77. package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
  78. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
  79. package/src/components/JfbBaseEntry/Attr.js +21 -33
  80. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
  81. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
  82. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
  83. package/src/components/JfbBaseFastLink/Api.js +54 -1
  84. package/src/components/JfbBaseFastLink/Attr.js +116 -168
  85. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
  86. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
  87. package/src/components/JfbBaseFooter/Attr.js +22 -28
  88. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
  89. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
  90. package/src/components/JfbBaseHeader/Attr.js +91 -89
  91. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
  92. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
  93. package/src/components/JfbBaseLine/Attr.js +59 -0
  94. package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
  95. package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
  96. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
  97. package/src/components/JfbBaseLogin/Api.js +1 -1
  98. package/src/components/JfbBaseLogin/Attr.js +88 -111
  99. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +5 -4
  100. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
  101. package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
  102. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  103. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
  104. package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
  105. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
  106. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
  107. package/src/components/JfbBaseMapSearch/Attr.js +15 -0
  108. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
  109. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
  110. package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
  111. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
  112. package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
  113. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
  114. package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
  115. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  116. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
  117. package/src/components/JfbBaseNotice/Attr.js +58 -109
  118. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +54 -82
  119. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
  120. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
  121. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
  122. package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
  123. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -5
  124. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
  125. package/src/components/JfbBaseOrderList/Attr.js +44 -56
  126. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
  127. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
  128. package/src/components/JfbBasePay/Attr.js +13 -2
  129. package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
  130. package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
  131. package/src/components/JfbBasePay/Mock.js +1 -2
  132. package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
  133. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  134. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
  135. package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
  136. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
  137. package/src/components/JfbBasePoster/Attr.js +83 -103
  138. package/src/components/JfbBasePoster/JfbBasePoster.vue +143 -141
  139. package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
  140. package/src/components/JfbBasePoster/MoreScreen.vue +2 -7
  141. package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
  142. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +9 -10
  143. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
  144. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  145. package/src/components/JfbBasePosterEntry/Attr.js +34 -47
  146. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +51 -52
  147. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
  148. package/src/components/JfbBasePosterType/Attr.js +48 -82
  149. package/src/components/JfbBasePosterType/FourScreen.vue +4 -14
  150. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
  151. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
  152. package/src/components/JfbBasePosterType/Screen.vue +284 -0
  153. package/src/components/JfbBaseRecharge/Attr.js +23 -35
  154. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
  155. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
  156. package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
  157. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
  158. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
  159. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
  160. package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
  161. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
  162. package/src/components/JfbBaseSearch/Api.js +60 -0
  163. package/src/components/JfbBaseSearch/Attr.js +148 -6
  164. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
  165. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
  166. package/src/components/JfbBaseSearch/Mock.js +5 -0
  167. package/src/components/JfbBaseSetPwd/Attr.js +147 -6
  168. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
  169. package/src/components/JfbBaseSuccess/Attr.js +19 -89
  170. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +26 -48
  171. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
  172. package/src/components/JfbBaseSuccess/Mock.js +0 -8
  173. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  174. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  175. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  176. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  177. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  178. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  179. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  180. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  181. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  182. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  183. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  184. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  185. package/src/components/JfbBaseUserOrder/Attr.js +94 -119
  186. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  187. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  188. package/src/components/JfbBaseVideo/Attr.js +19 -72
  189. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  190. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  191. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  192. package/src/components/JfbBaseWallet/Attr.js +19 -27
  193. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  194. package/src/components/JfbBaseWalletDetail/Attr.js +6 -2
  195. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  196. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  197. package/src/components/JfbBaseWalletIndex/Attr.js +1 -3
  198. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  199. package/src/components/JfbBaseWalletItem/Attr.js +1 -3
  200. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  201. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  202. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  203. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  204. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +28 -34
  205. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  206. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  207. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  208. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  209. package/src/components/JfbBaseCardShift/Mock.js +0 -21
  210. package/src/components/JfbBaseClear/Attr.js +0 -17
@@ -1,30 +1,18 @@
1
1
  'use strict';
2
2
 
3
3
 
4
- //@AttrImport
5
- import Attr from "./Attr";
6
- //@EndAttrImport
7
-
8
4
 
9
5
  export default {
10
6
  data() {
11
7
  return {
12
8
  //#ifdef H5
13
9
 
14
- //@AttrData
15
- Attr:{}, //对外开发编辑属性
16
- //@EndAttrData
17
-
18
10
  // #endif
19
11
  cssRoot: 'jfb-base-clear'
20
12
  }
21
13
  },
22
14
  created() {
23
15
 
24
- //@AttrDataCreated
25
- this.Attr = this.$xdUniHelper.customClone(Attr);
26
- //@EndAttrDataCreated
27
-
28
16
 
29
17
  },
30
18
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @description 卡券登录
4
+ * @description 卡券登陆
5
5
  * @type {*[]}
6
6
  */
7
7
  module.exports = [
@@ -17,7 +17,7 @@ module.exports = [
17
17
  disabled: true,
18
18
  },
19
19
  {
20
- mapFnName: 'getDialogCouponList', //自定义方法名字(必选)
20
+ mapFnName: 'getCouponList', //自定义方法名字(必选)
21
21
  title: '获取优惠券列表',
22
22
  path: '/sms-coupon/v1/activity-prizes-user/list',
23
23
  isRule: false,
@@ -6,33 +6,26 @@
6
6
  export default {
7
7
  style: [],
8
8
  content:(data) => {
9
- let distribution_method = data.distribution_method;
10
- if(!data.distribution_method) distribution_method = 'homed';
11
- //let isHide = typeof data['isHide'] === 'boolean' ? data['isHide']:false;
12
-
13
9
  return [
14
10
  {
15
- label: '选取优惠券列表路径:',
16
- ele: 'xd-select-pages-path',
17
- valueKey: 'list_url',
18
- groupKey:'advanced',
11
+ label: '选取优惠券列表路径:', //label
12
+ ele: 'xd-select-pages-path', //package 名称
13
+ valueKey: 'list_url', //form[valueKey]
19
14
  placeholder: '请选择优惠券列表路径',
20
- value: data['list_url'] || null,
15
+ value: data['list_url'] ||null,
21
16
  setting: {
22
17
  router: XdBus.getParentApi('getPagesTree'),
23
18
  },
24
19
  inline: false,
25
20
  },
26
-
27
21
  {
28
22
  label: '活动提示方式:',
29
23
  ele: 'xd-radio',
30
24
  valueKey: 'type',
31
- groupKey:'content',
32
- value: data['type'] || 1,
25
+ value: data['type']||1,
33
26
  placeholder: '请选择活动提示方式',
34
27
  multiple: false,
35
- className: 'input60',
28
+ className: 'input80',
36
29
  list: [
37
30
  { label: '弹框', value: 1 },
38
31
  { label: '切换', value: 2 },
@@ -42,8 +35,7 @@ export default {
42
35
  label: "触发事件:",
43
36
  ele: "xd-select-list",
44
37
  valueKey: "distribution_method",
45
- groupKey:'content',
46
- value: distribution_method,
38
+ value: data.distribution_method || "",
47
39
  placeholder: "请选择触发事件",
48
40
  className: 'input80',
49
41
  list: [
@@ -57,23 +49,22 @@ export default {
57
49
  ele: 'el-input',
58
50
  type: 'text',
59
51
  valueKey: 'time',
60
- groupKey:'content',
61
52
  value: data.time || '',
62
53
  placeholder: '请输入弹窗间隔,默认值:3小时',
63
- className: 'input60',
54
+ className: 'input80',
64
55
  unit: '小时'
65
56
  },
66
57
  {
67
58
  label: '是否隐藏弹框(仅预览模式生效):',
68
59
  ele: 'xd-radio',
69
- valueKey: 'is_hide_dailog',
70
- groupKey:'content',
71
- value: data['is_hide_dailog'] || 'N',
60
+ valueKey: 'isHide',
61
+ value: data['isHide']||false,
72
62
  placeholder: '请选择是否隐藏弹框',
73
- className: 'input60',
63
+ multiple: false,
64
+ className: 'input80',
74
65
  list: [
75
- { label: '是', value: 'Y' },
76
- { label: '否', value: 'N' },
66
+ { label: '是', value: true },
67
+ { label: '否', value: false },
77
68
  ]
78
69
  },
79
70
  ].filter(i=>i)
@@ -18,7 +18,7 @@
18
18
  <!-- #endif -->
19
19
  <view class="jfb-base-con-dialog__body">
20
20
  <view v-if="isShow" class="jfb-base-con-dialog__body-dialog">
21
- <view class="jfb-base-con-dialog__body-dialog-mask" @click.stop="handleMaskHide"></view>
21
+ <view class="jfb-base-con-dialog__body-dialog-mask"></view>
22
22
  <view v-if="distribution_method !== 'card_binded'" class="jfb-base-con-dialog__body-dialog-content">
23
23
  <view v-if="list.length>1" class="jfb-base-con-dialog__body-dialog-content-num">
24
24
  <text>{{ currentIndex + 1 }}/{{ list.length }}</text>
@@ -60,11 +60,13 @@
60
60
  ></xd-cou-card-bind>
61
61
  </view>
62
62
  </view>
63
+
63
64
  <view
64
65
  :style="{ background: backgroundColor, color: warningColor }"
65
66
  class="jfb-base-con-dialog__body-pop"
66
67
  v-if="isPreview"
67
- >弹框方便编辑(占位),在线上此模块不显</view>
68
+ >弹框方便编辑(占位),在线上此模块不显</view
69
+ >
68
70
  </view>
69
71
  </view>
70
72
  </template>
@@ -98,7 +100,7 @@ export default {
98
100
  currentBtnImage: "",
99
101
  currentIndex: 0,
100
102
  isShow: false,
101
- type: 1,
103
+ type: "",
102
104
  isPreview: false, //是否预览
103
105
  activity_id: "",
104
106
  backgroundColor: "",
@@ -111,25 +113,15 @@ export default {
111
113
  timer: null,
112
114
  timeNum: 0,
113
115
 
114
- //预览是否显示弹窗
115
- is_preview_hide_dailog: false,
116
-
117
116
  };
118
117
  },
119
118
  computed: {
120
119
  ...mapState(["pageBusinessCode"]),
121
120
  },
122
121
  watch: {
123
- container(value,oloValue) {
124
- if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
125
- if (this.$configProject['isPreview']) this.init(value)
126
- },
127
- is_preview_hide_dailog(value){
128
- if(value === true) this.isShow = false;
129
- else {
130
- storage.remove(this.containerId);
131
- this.onJfbLoad();
132
- }
122
+ container(value) {
123
+ console.log(value, "aakakakkaka");
124
+ this.init(value);
133
125
  },
134
126
  },
135
127
  created() {
@@ -138,18 +130,18 @@ export default {
138
130
  this.init(this.container);
139
131
  },
140
132
  methods: {
141
- handleMaskHide(){
142
- if(this.isPreview ) this.isShow = false;
143
- },
144
-
145
133
  init(value) {
146
- this.list_url = getContainerPropsValue(value, "content.list_url", {value: "",}).value;
134
+ this.list_url = getContainerPropsValue(value, "content.list_url", {
135
+ value: "",
136
+ }).value;
147
137
  this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
148
138
  this.type = getContainerPropsValue(value, "content.type", 1);
139
+ this.isHide = getContainerPropsValue(value, "content.isHide", false);
149
140
  this.time = Number(getContainerPropsValue(value, "content.time", 3));
150
- this.is_preview_hide_dailog = getContainerPropsValue(value, "content.is_hide_dailog", 'N') === 'Y';
141
+ if (this.isPreview) {
142
+ this.isShow = !this.isHide;
143
+ }
151
144
  },
152
-
153
145
  //领取优惠券
154
146
  handleGetCoupon(item){
155
147
  this.$xdShowLoading({});
@@ -161,7 +153,7 @@ export default {
161
153
  ...this.dispatchData
162
154
  }
163
155
  }).then(res => {
164
- if (res.code === 400) {
156
+ if (res.code == 400) {
165
157
  this.$xdHideLoading();
166
158
  this.$xdAlert({
167
159
  content: res.message,
@@ -180,9 +172,7 @@ export default {
180
172
  console.log(err, "err");
181
173
  });
182
174
  },
183
-
184
175
  getResult() {
185
- debugger
186
176
  jfbRootExec("getCouponResult", {
187
177
  vm: this,
188
178
  data: {
@@ -215,7 +205,7 @@ export default {
215
205
  time: 2000,
216
206
  isClose: false,
217
207
  });
218
- if (res.code === 400) {
208
+ if (res.code == 400) {
219
209
  this.getDialogList();
220
210
  }
221
211
  if (this.timer) {
@@ -241,7 +231,6 @@ export default {
241
231
  console.log(err, "err");
242
232
  });
243
233
  },
244
-
245
234
  p_getDialogList(){
246
235
  jfbRootExec("getCouponDialogList", {
247
236
  vm: this,
@@ -252,6 +241,7 @@ export default {
252
241
  },
253
242
  })
254
243
  .then((res) => {
244
+ console.log(res, "resresres");
255
245
  this.list = res.list;
256
246
  if(res.list.length === 0) return;
257
247
  this.currentImage = getServiceUrl(
@@ -267,9 +257,8 @@ export default {
267
257
  console.log(err, "err");
268
258
  });
269
259
  },
270
-
271
260
  p_getCouponList(){
272
- jfbRootExec("getDialogCouponList", {
261
+ jfbRootExec("getCouponList", {
273
262
  vm: this,
274
263
  data: {
275
264
  distribution_method: this.distribution_method,
@@ -280,17 +269,12 @@ export default {
280
269
  this.couponList = list;
281
270
  this.couponOther = other;
282
271
  if(res.can_take === "Y" && res.has_times === "Y" && list.length > 0){
283
- if (this.isPreview) {
284
- debugger
285
- console.log(getContainerPropsValue(value, "content.is_show_dailog", 'Y'))
286
- this.isShow = getContainerPropsValue(value, "content.is_show_dailog", 'Y') === 'N';
287
- }else this.isShow = true;
272
+ this.isShow = true;
288
273
  }else{
289
274
  this.handleCardBindClose();
290
275
  }
291
276
  })
292
277
  },
293
-
294
278
  getDialogList() {
295
279
  if(this.distribution_method === 'card_binded'){
296
280
  this.p_getCouponList();
@@ -298,30 +282,21 @@ export default {
298
282
  this.p_getDialogList();
299
283
  }
300
284
  },
301
-
302
285
  handlePop() {
303
- console.warn(`this.time${this.time * 60 + "分钟"}`);
286
+ console.log("this.time", this.time * 60 + "分钟");
304
287
  storage.set(this.containerId, 1, this.time);
305
288
  this.isShow = true;
306
289
  },
307
-
308
290
  onJfbLoad(options) {
309
-
310
- //预览模式
311
- if(this.isPreview) {
312
- if(!this.is_preview_hide_dailog) this.getDialogList();
313
- return;
314
- }
315
-
316
- //非绑卡组件与支付组件(直接触发)
317
- if (!storage.get(this.containerId) &&
318
- this.distribution_method !== "paid" &&
319
- this.distribution_method !== "card_binded"
320
- ){
321
- this.getDialogList();
322
- }
323
-
291
+ console.log(11111);
324
292
  //支付跟绑卡是主动触发
293
+ try {
294
+ if (!storage.get(this.containerId) &&
295
+ this.distribution_method !== "paid" &&
296
+ this.distribution_method !== "card_binded") this.getDialogList();
297
+ } catch (error) {
298
+ console.log(error, "errorerror");
299
+ }
325
300
  if(this.distribution_method === 'card_binded'){
326
301
  jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
327
302
  }
@@ -330,17 +305,15 @@ export default {
330
305
  this.isShow = false;
331
306
  this.$bus.$emit("onCloseConDialog", this.containerId);
332
307
  },
333
-
308
+
334
309
  onJfbUpdate(data) {
335
310
  storage.remove(this.containerId);
336
311
  this.getDialogList();
337
312
  },
338
-
339
313
  onJfbShow(options) {
340
314
  this.isShow=false
341
315
  this.onJfbLoad(options);
342
316
  },
343
-
344
317
  handleToList() {
345
318
  let otherParams = "";
346
319
  try {
@@ -358,10 +331,9 @@ export default {
358
331
  url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
359
332
  });
360
333
  },
361
-
362
334
  handleClose() {
363
335
  //切换下一张,没有下一张,关闭
364
- if (this.currentIndex === (this.list.length - 1) || this.type === 2) {
336
+ if (this.currentIndex == this.list.length - 1 || this.type == 2) {
365
337
  this.isShow = false;
366
338
  return;
367
339
  }
@@ -374,9 +346,9 @@ export default {
374
346
  );
375
347
  this.activity_id = this.list[this.currentIndex].activity_id;
376
348
  },
377
-
378
349
  handleChange(type) {
379
- this.currentIndex = type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
350
+ this.currentIndex =
351
+ type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
380
352
  //不小于0,不大于数组长度
381
353
  this.currentIndex = Math.max(
382
354
  0,
@@ -390,12 +362,12 @@ export default {
390
362
  );
391
363
  this.activity_id = this.list[this.currentIndex].activity_id;
392
364
  },
393
-
394
365
  onJfbCustomEvent({action, data}){
395
366
  if(action === '@showBaseConDialog'){
396
367
  this.dispatchData = data;
397
368
  this.getDialogList();
398
369
  }
370
+ console.log('onJfbCustomEvent',action, data);
399
371
  }
400
372
  },
401
373
  };
@@ -428,7 +400,7 @@ export default {
428
400
  bottom: 0;
429
401
  left: 0;
430
402
  right: 0;
431
- background: rgba(0, 0, 0, 0.3);
403
+ background: rgba(0, 0, 0, 0.5);
432
404
  }
433
405
 
434
406
  &-content {
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-con-dialog {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
16
17
  box-sizing: border-box;
17
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
18
19
 
19
20
  &__body{
20
21
  position: relative;
@@ -22,21 +23,21 @@
22
23
  z-index: 2
23
24
  }
24
25
 
25
- &.editx,&:hover {
26
+ &.editx {
26
27
  position: relative;
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
39
33
 
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
40
41
  }
41
42
 
42
43
 
@@ -71,9 +72,9 @@
71
72
 
72
73
  /**notPreview**/
73
74
  .jfb-base-con-dialog {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -26,24 +26,5 @@ module.exports = {
26
26
  }
27
27
  ],
28
28
  "request_id": "4b9803ed0ecdc0f6"
29
- },
30
- getDialogCouponList: {
31
- "list":[
32
- {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
33
- {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
34
- {"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
35
- ],
36
- "background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg",
37
- "used_up_url": "",
38
- "has_times": "Y",
39
- "can_take":"Y",
40
- "message":"",
41
- "app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg",
42
- "app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg",
43
- "app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
44
- "app_coupon_button_see_url": "//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
45
- "app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg",
46
- "rule":"<p>打发&middot;</p>",
47
- "request_id":"a2603f2a480485f4"
48
- },
29
+ }
49
30
  }
@@ -1,17 +1,11 @@
1
1
  <template>
2
2
  <view class="xd-cou-card-bind">
3
- <view
4
- class="ticket_box"
5
- :style="{
6
- backgroundImage: dialogBackground
7
- }"
8
- >
3
+ <view class="ticket_box" :style="{
4
+ backgroundImage: dialogBackground
5
+ }">
9
6
  <view class="ticket_list">
10
- <view
11
- class="ticket_item"
12
- :class="item.can_take_num"
13
- v-for="(item,i) in uiList"
14
- :key="i"
7
+ <view class="ticket_item" :class="item.can_take_num"
8
+ v-for="(item,i) in uiList" :key="i"
15
9
  >
16
10
  <view class="item_head">
17
11
  <image class="t_icon" mode="widthFix" :src="item.headIcon"></image>
@@ -35,7 +29,7 @@
35
29
  </view>
36
30
  </view>
37
31
  </view>
38
-
32
+
39
33
  <xd-font-icon
40
34
  @click="handleClose"
41
35
  class="dialog_close"
@@ -122,7 +116,7 @@ export default{
122
116
  box-sizing: border-box;
123
117
  padding-bottom: 20rpx;
124
118
  }
125
-
119
+
126
120
  .ticket_item{
127
121
  display: flex;
128
122
  flex-direction: column;
@@ -149,7 +143,7 @@ export default{
149
143
  }
150
144
  .ticket_icon{
151
145
  color: #D6D6D6;
152
-
146
+
153
147
  }
154
148
  .btn{
155
149
  .xd-button{
@@ -202,4 +196,4 @@ export default{
202
196
  transform: translateX(-50%);
203
197
  }
204
198
  }
205
- </style>
199
+ </style>
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @description 卡券登录
4
+ * @description 卡券登陆
5
5
  * @type {*[]}
6
6
  */
7
7
  module.exports = [