jufubao-base 1.0.128 → 1.0.130-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.
Files changed (194) hide show
  1. package/package.json +4 -3
  2. package/src/components/JfbBaseAddress/Attr.js +11 -5
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
  4. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +18 -19
  5. package/src/components/JfbBaseAfterOrderDetail/Attr.js +19 -7
  6. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +6 -4
  7. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +18 -19
  8. package/src/components/JfbBaseAfterOrderList/Attr.js +25 -16
  9. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +6 -9
  10. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +18 -19
  11. package/src/components/JfbBaseBack/JfbBaseBackLess.less +18 -19
  12. package/src/components/JfbBaseBackground/Attr.js +9 -8
  13. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +0 -3
  14. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +18 -19
  15. package/src/components/JfbBaseBlock/Attr.js +12 -2
  16. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +1 -8
  17. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +18 -19
  18. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +18 -19
  19. package/src/components/JfbBaseCard/Attr.js +76 -34
  20. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  21. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  22. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  23. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  24. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  25. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  26. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  27. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  28. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  29. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  30. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  32. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +3 -2
  33. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  35. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  36. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  37. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  39. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  40. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  41. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  42. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  43. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  44. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  45. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  46. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  47. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  48. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  49. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  50. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  51. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  52. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  53. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  54. package/src/components/JfbBaseCardV2/Attr.js +19 -15
  55. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  56. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  57. package/src/components/JfbBaseCardV3/Attr.js +16 -12
  58. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  59. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  60. package/src/components/JfbBaseCity/Attr.js +2 -4
  61. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  62. package/src/components/{JfbBaseWalletDetail → JfbBaseClear}/Attr.js +1 -0
  63. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  64. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  65. package/src/components/JfbBaseConDialog/Api.js +1 -1
  66. package/src/components/JfbBaseConDialog/Attr.js +30 -20
  67. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
  68. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  69. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  70. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  71. package/src/components/JfbBaseConList/Attr.js +149 -224
  72. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  73. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  74. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  75. package/src/components/JfbBaseEntry/Attr.js +33 -21
  76. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  77. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  78. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  79. package/src/components/JfbBaseFastLink/Api.js +1 -54
  80. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  81. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  82. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  83. package/src/components/JfbBaseFooter/Attr.js +28 -22
  84. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  85. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  86. package/src/components/JfbBaseHeader/Attr.js +89 -91
  87. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  88. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  89. package/src/components/JfbBaseLogin/Attr.js +111 -88
  90. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +0 -1
  91. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  92. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  93. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  94. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  95. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  96. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  97. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  98. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  99. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  100. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  101. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  102. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  103. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  104. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  105. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  106. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  107. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  108. package/src/components/JfbBaseNotice/Attr.js +97 -56
  109. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
  110. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  111. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  112. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  113. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  114. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +5 -3
  115. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  116. package/src/components/JfbBaseOrderList/Attr.js +55 -43
  117. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +10 -5
  118. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  119. package/src/components/JfbBasePay/Attr.js +2 -13
  120. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  121. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  122. package/src/components/JfbBasePay/Mock.js +2 -1
  123. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  124. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  125. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  126. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  127. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  128. package/src/components/JfbBasePoster/Attr.js +103 -83
  129. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  130. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  131. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  132. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  133. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  134. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  135. package/src/components/JfbBasePosterEntry/Attr.js +44 -33
  136. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  137. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  138. package/src/components/JfbBasePosterType/Attr.js +82 -48
  139. package/src/components/JfbBasePosterType/FourScreen.vue +39 -34
  140. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +51 -73
  141. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  142. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  143. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  144. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  145. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  146. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  147. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  148. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  149. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  150. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  151. package/src/components/JfbBaseSearch/Attr.js +6 -148
  152. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  153. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  154. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  155. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  156. package/src/components/JfbBaseSuccess/Attr.js +78 -17
  157. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  158. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  159. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  160. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  161. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  162. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  163. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  164. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  165. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  166. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  167. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  168. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  169. package/src/components/JfbBaseUserOrder/Attr.js +118 -92
  170. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  171. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  172. package/src/components/JfbBaseVideo/Attr.js +72 -19
  173. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  174. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  175. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  176. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  177. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  178. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  179. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  180. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  181. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  182. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  183. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  184. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
  185. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  186. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  187. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  188. package/src/components/JfbBaseLine/Attr.js +0 -59
  189. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  190. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  191. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  192. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  193. package/src/components/JfbBaseSearch/Api.js +0 -60
  194. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -6,26 +6,47 @@
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
+
9
13
  return [
14
+ // {
15
+ // label: '是否隐藏弹框(仅预览模式生效):',
16
+ // ele: 'xd-radio',
17
+ // valueKey: 'isHide',
18
+ // groupKey:'content',
19
+ // value: isHide,
20
+ // placeholder: '请选择是否隐藏弹框',
21
+ // multiple: false,
22
+ // className: 'input60',
23
+ // list: [
24
+ // { label: '是', value: true },
25
+ // { label: '否', value: false },
26
+ // ]
27
+ // },
10
28
  {
11
- label: '选取优惠券列表路径:', //label
12
- ele: 'xd-select-pages-path', //package 名称
13
- valueKey: 'list_url', //form[valueKey]
29
+ label: '选取优惠券列表路径:',
30
+ ele: 'xd-select-pages-path',
31
+ valueKey: 'list_url',
32
+ groupKey:'advanced',
14
33
  placeholder: '请选择优惠券列表路径',
15
- value: data['list_url'] ||null,
34
+ value: data['list_url'] || null,
16
35
  setting: {
17
36
  router: XdBus.getParentApi('getPagesTree'),
18
37
  },
19
38
  inline: false,
20
39
  },
40
+
21
41
  {
22
42
  label: '活动提示方式:',
23
43
  ele: 'xd-radio',
24
44
  valueKey: 'type',
45
+ groupKey:'content',
25
46
  value: data['type']||1,
26
47
  placeholder: '请选择活动提示方式',
27
48
  multiple: false,
28
- className: 'input80',
49
+ className: 'input60',
29
50
  list: [
30
51
  { label: '弹框', value: 1 },
31
52
  { label: '切换', value: 2 },
@@ -35,7 +56,8 @@ export default {
35
56
  label: "触发事件:",
36
57
  ele: "xd-select-list",
37
58
  valueKey: "distribution_method",
38
- value: data.distribution_method || "",
59
+ groupKey:'content',
60
+ value: distribution_method,
39
61
  placeholder: "请选择触发事件",
40
62
  className: 'input80',
41
63
  list: [
@@ -49,24 +71,12 @@ export default {
49
71
  ele: 'el-input',
50
72
  type: 'text',
51
73
  valueKey: 'time',
74
+ groupKey:'content',
52
75
  value: data.time || '',
53
76
  placeholder: '请输入弹窗间隔,默认值:3小时',
54
- className: 'input80',
77
+ className: 'input60',
55
78
  unit: '小时'
56
79
  },
57
- {
58
- label: '是否隐藏弹框(仅预览模式生效):',
59
- ele: 'xd-radio',
60
- valueKey: 'isHide',
61
- value: data['isHide']||false,
62
- placeholder: '请选择是否隐藏弹框',
63
- multiple: false,
64
- className: 'input80',
65
- list: [
66
- { label: '是', value: true },
67
- { label: '否', value: false },
68
- ]
69
- },
70
80
  ].filter(i=>i)
71
81
  },
72
82
  advanced: [],
@@ -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"></view>
21
+ <view class="jfb-base-con-dialog__body-dialog-mask" @click.stop="handleMaskHide"></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,13 +60,11 @@
60
60
  ></xd-cou-card-bind>
61
61
  </view>
62
62
  </view>
63
-
64
63
  <view
65
64
  :style="{ background: backgroundColor, color: warningColor }"
66
65
  class="jfb-base-con-dialog__body-pop"
67
66
  v-if="isPreview"
68
- >弹框方便编辑(占位),在线上此模块不显</view
69
- >
67
+ >弹框方便编辑(占位),在线上此模块不显</view>
70
68
  </view>
71
69
  </view>
72
70
  </template>
@@ -119,9 +117,9 @@ export default {
119
117
  ...mapState(["pageBusinessCode"]),
120
118
  },
121
119
  watch: {
122
- container(value) {
123
- console.log(value, "aakakakkaka");
124
- this.init(value);
120
+ container(value,oloValue) {
121
+ if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
122
+ if (this.$configProject['isPreview']) this.init(value)
125
123
  },
126
124
  },
127
125
  created() {
@@ -130,18 +128,21 @@ export default {
130
128
  this.init(this.container);
131
129
  },
132
130
  methods: {
131
+ handleMaskHide(){
132
+ if(this.isPreview ) this.isShow = false;
133
+ },
134
+
133
135
  init(value) {
134
- this.list_url = getContainerPropsValue(value, "content.list_url", {
135
- value: "",
136
- }).value;
136
+ this.list_url = getContainerPropsValue(value, "content.list_url", {value: "",}).value;
137
137
  this.distribution_method = getContainerPropsValue(value, "content.distribution_method", "homed");
138
138
  this.type = getContainerPropsValue(value, "content.type", 1);
139
- this.isHide = getContainerPropsValue(value, "content.isHide", false);
139
+ this.isHide = false;
140
140
  this.time = Number(getContainerPropsValue(value, "content.time", 3));
141
141
  if (this.isPreview) {
142
142
  this.isShow = !this.isHide;
143
143
  }
144
144
  },
145
+
145
146
  //领取优惠券
146
147
  handleGetCoupon(item){
147
148
  this.$xdShowLoading({});
@@ -153,7 +154,7 @@ export default {
153
154
  ...this.dispatchData
154
155
  }
155
156
  }).then(res => {
156
- if (res.code == 400) {
157
+ if (res.code === 400) {
157
158
  this.$xdHideLoading();
158
159
  this.$xdAlert({
159
160
  content: res.message,
@@ -172,6 +173,7 @@ export default {
172
173
  console.log(err, "err");
173
174
  });
174
175
  },
176
+
175
177
  getResult() {
176
178
  jfbRootExec("getCouponResult", {
177
179
  vm: this,
@@ -205,7 +207,7 @@ export default {
205
207
  time: 2000,
206
208
  isClose: false,
207
209
  });
208
- if (res.code == 400) {
210
+ if (res.code === 400) {
209
211
  this.getDialogList();
210
212
  }
211
213
  if (this.timer) {
@@ -231,6 +233,7 @@ export default {
231
233
  console.log(err, "err");
232
234
  });
233
235
  },
236
+
234
237
  p_getDialogList(){
235
238
  jfbRootExec("getCouponDialogList", {
236
239
  vm: this,
@@ -241,7 +244,6 @@ export default {
241
244
  },
242
245
  })
243
246
  .then((res) => {
244
- console.log(res, "resresres");
245
247
  this.list = res.list;
246
248
  if(res.list.length === 0) return;
247
249
  this.currentImage = getServiceUrl(
@@ -257,8 +259,9 @@ export default {
257
259
  console.log(err, "err");
258
260
  });
259
261
  },
262
+
260
263
  p_getCouponList(){
261
- jfbRootExec("getCouponList", {
264
+ jfbRootExec("getDialogCouponList", {
262
265
  vm: this,
263
266
  data: {
264
267
  distribution_method: this.distribution_method,
@@ -275,6 +278,7 @@ export default {
275
278
  }
276
279
  })
277
280
  },
281
+
278
282
  getDialogList() {
279
283
  if(this.distribution_method === 'card_binded'){
280
284
  this.p_getCouponList();
@@ -282,21 +286,30 @@ export default {
282
286
  this.p_getDialogList();
283
287
  }
284
288
  },
289
+
285
290
  handlePop() {
286
- console.log("this.time", this.time * 60 + "分钟");
291
+ console.warn(`this.time${this.time * 60 + "分钟"}`);
287
292
  storage.set(this.containerId, 1, this.time);
288
293
  this.isShow = true;
289
294
  },
295
+
290
296
  onJfbLoad(options) {
291
- console.log(11111);
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");
297
+
298
+ //预览模式
299
+ if(this.isPreview) {
300
+ this.getDialogList();
301
+ return;
302
+ }
303
+
304
+ //非绑卡组件与支付组件(直接触发)
305
+ if (!storage.get(this.containerId) &&
306
+ this.distribution_method !== "paid" &&
307
+ this.distribution_method !== "card_binded"
308
+ ){
309
+ this.getDialogList();
299
310
  }
311
+
312
+ //支付跟绑卡是主动触发
300
313
  if(this.distribution_method === 'card_binded'){
301
314
  jfbRootFnExec(this, 'onCustomEvent')("baseConDialog@hasCon", this.containerId);
302
315
  }
@@ -305,15 +318,17 @@ export default {
305
318
  this.isShow = false;
306
319
  this.$bus.$emit("onCloseConDialog", this.containerId);
307
320
  },
308
-
321
+
309
322
  onJfbUpdate(data) {
310
323
  storage.remove(this.containerId);
311
324
  this.getDialogList();
312
325
  },
326
+
313
327
  onJfbShow(options) {
314
328
  this.isShow=false
315
329
  this.onJfbLoad(options);
316
330
  },
331
+
317
332
  handleToList() {
318
333
  let otherParams = "";
319
334
  try {
@@ -331,7 +346,9 @@ export default {
331
346
  url: `${linkUrl}?activity_id=${this.activity_id}&distribution_method=${this.distribution_method}&${otherParams}`,
332
347
  });
333
348
  },
349
+
334
350
  handleClose() {
351
+ debugger
335
352
  //切换下一张,没有下一张,关闭
336
353
  if (this.currentIndex == this.list.length - 1 || this.type == 2) {
337
354
  this.isShow = false;
@@ -346,6 +363,7 @@ export default {
346
363
  );
347
364
  this.activity_id = this.list[this.currentIndex].activity_id;
348
365
  },
366
+
349
367
  handleChange(type) {
350
368
  this.currentIndex =
351
369
  type === "left" ? this.currentIndex - 1 : this.currentIndex + 1;
@@ -362,6 +380,7 @@ export default {
362
380
  );
363
381
  this.activity_id = this.list[this.currentIndex].activity_id;
364
382
  },
383
+
365
384
  onJfbCustomEvent({action, data}){
366
385
  if(action === '@showBaseConDialog'){
367
386
  this.dispatchData = data;
@@ -400,7 +419,7 @@ export default {
400
419
  bottom: 0;
401
420
  left: 0;
402
421
  right: 0;
403
- background: rgba(0, 0, 0, 0.5);
422
+ background: rgba(0, 0, 0, 0.3);
404
423
  }
405
424
 
406
425
  &-content {
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-con-dialog {
16
- border: 1px dashed rgba(0, 0, 0, 0);
17
16
  box-sizing: border-box;
18
- min-height: unit(50, rpx);
17
+ min-height: unit(100, rpx);
19
18
 
20
19
  &__body{
21
20
  position: relative;
@@ -23,21 +22,21 @@
23
22
  z-index: 2
24
23
  }
25
24
 
26
- &.editx {
25
+ &.editx,&:hover {
27
26
  position: relative;
28
- border: 1px dashed blue;
29
- box-sizing: border-box;
30
- z-index: 3
31
-
32
- }
33
-
34
- &:hover {
35
- border: 1px dashed blue;
36
- }
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
+ }
37
39
 
38
- &.noBorder {
39
- border-color: rgba(0,0,0,0);
40
- border-width: 0;
41
40
  }
42
41
 
43
42
 
@@ -72,9 +71,9 @@
72
71
 
73
72
  /**notPreview**/
74
73
  .jfb-base-con-dialog {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -26,5 +26,24 @@ module.exports = {
26
26
  }
27
27
  ],
28
28
  "request_id": "4b9803ed0ecdc0f6"
29
- }
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
+ },
30
49
  }
@@ -1,11 +1,17 @@
1
1
  <template>
2
2
  <view class="xd-cou-card-bind">
3
- <view class="ticket_box" :style="{
4
- backgroundImage: dialogBackground
5
- }">
3
+ <view
4
+ class="ticket_box"
5
+ :style="{
6
+ backgroundImage: dialogBackground
7
+ }"
8
+ >
6
9
  <view class="ticket_list">
7
- <view class="ticket_item" :class="item.can_take_num"
8
- v-for="(item,i) in uiList" :key="i"
10
+ <view
11
+ class="ticket_item"
12
+ :class="item.can_take_num"
13
+ v-for="(item,i) in uiList"
14
+ :key="i"
9
15
  >
10
16
  <view class="item_head">
11
17
  <image class="t_icon" mode="widthFix" :src="item.headIcon"></image>
@@ -29,7 +35,7 @@
29
35
  </view>
30
36
  </view>
31
37
  </view>
32
-
38
+
33
39
  <xd-font-icon
34
40
  @click="handleClose"
35
41
  class="dialog_close"
@@ -116,7 +122,7 @@ export default{
116
122
  box-sizing: border-box;
117
123
  padding-bottom: 20rpx;
118
124
  }
119
-
125
+
120
126
  .ticket_item{
121
127
  display: flex;
122
128
  flex-direction: column;
@@ -143,7 +149,7 @@ export default{
143
149
  }
144
150
  .ticket_icon{
145
151
  color: #D6D6D6;
146
-
152
+
147
153
  }
148
154
  .btn{
149
155
  .xd-button{
@@ -196,4 +202,4 @@ export default{
196
202
  transform: translateX(-50%);
197
203
  }
198
204
  }
199
- </style>
205
+ </style>