jufubao-base 1.0.133 → 1.0.134-beta3

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 (209) 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 +78 -36
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +2 -2
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +18 -19
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +18 -19
  23. package/src/components/JfbBaseCardBindV2/Attr.js +5 -4
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +6 -1
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +18 -19
  26. package/src/components/JfbBaseCardDetail/Attr.js +4 -3
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +18 -19
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +10 -8
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -13
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +18 -19
  31. package/src/components/JfbBaseCardDisabled/Attr.js +1 -3
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +18 -19
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +18 -19
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +86 -67
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +6 -5
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +18 -19
  38. package/src/components/JfbBaseCardInfo/Attr.js +22 -16
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +18 -19
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +16 -11
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +18 -19
  42. package/src/components/JfbBaseCardMerge/Attr.js +21 -8
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +15 -30
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +18 -19
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +20 -6
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +28 -25
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +18 -19
  48. package/src/components/JfbBaseCardShift/Attr.js +18 -4
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +26 -11
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +18 -19
  51. package/src/components/JfbBaseCardShift/Mock.js +21 -0
  52. package/src/components/JfbBaseCardShiftEntry/Attr.js +34 -26
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +294 -257
  54. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +18 -19
  55. package/src/components/JfbBaseCardShiftEntry/Mock.js +2 -1
  56. package/src/components/JfbBaseCardSweepInfo/Attr.js +5 -3
  57. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +18 -19
  58. package/src/components/JfbBaseCardV2/Attr.js +21 -17
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -5
  60. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +18 -19
  61. package/src/components/JfbBaseCardV3/Attr.js +18 -14
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  63. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +18 -19
  64. package/src/components/JfbBaseCity/Attr.js +2 -4
  65. package/src/components/JfbBaseCity/JfbBaseCityLess.less +18 -19
  66. package/src/components/JfbBaseClear/Attr.js +17 -0
  67. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  68. package/src/components/JfbBaseClear/JfbBaseClearLess.less +18 -19
  69. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +12 -0
  70. package/src/components/JfbBaseConDialog/Api.js +2 -2
  71. package/src/components/JfbBaseConDialog/Attr.js +30 -20
  72. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +45 -26
  73. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +18 -19
  74. package/src/components/JfbBaseConDialog/Mock.js +20 -1
  75. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +15 -9
  76. package/src/components/JfbBaseConList/Api.js +1 -1
  77. package/src/components/JfbBaseConList/Attr.js +149 -224
  78. package/src/components/JfbBaseConList/JfbBaseConList.vue +150 -133
  79. package/src/components/JfbBaseConList/JfbBaseConListLess.less +18 -19
  80. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +18 -19
  81. package/src/components/JfbBaseEntry/Attr.js +33 -21
  82. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +34 -23
  83. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +18 -19
  84. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +18 -19
  85. package/src/components/JfbBaseFastLink/Api.js +1 -54
  86. package/src/components/JfbBaseFastLink/Attr.js +168 -116
  87. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +12 -16
  88. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +18 -19
  89. package/src/components/JfbBaseFooter/Attr.js +28 -22
  90. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +19 -15
  91. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +18 -19
  92. package/src/components/JfbBaseHeader/Attr.js +89 -91
  93. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +28 -29
  94. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +18 -19
  95. package/src/components/JfbBaseLogin/Api.js +1 -1
  96. package/src/components/JfbBaseLogin/Attr.js +111 -88
  97. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +4 -5
  98. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +18 -19
  99. package/src/components/JfbBaseLoginForgetPwd/Attr.js +52 -45
  100. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  101. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +18 -19
  102. package/src/components/JfbBaseLoginSetPwd/Attr.js +6 -4
  103. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +18 -19
  104. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +18 -19
  105. package/src/components/JfbBaseMapSearch/Attr.js +0 -15
  106. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +1 -25
  107. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +18 -19
  108. package/src/components/JfbBaseMergeUserCard/Attr.js +4 -3
  109. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +18 -19
  110. package/src/components/JfbBaseMultipleExpress/Attr.js +4 -3
  111. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +18 -19
  112. package/src/components/JfbBaseMy/JfbBaseMyLess.less +18 -19
  113. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  114. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +18 -19
  115. package/src/components/JfbBaseNotice/Attr.js +97 -56
  116. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +70 -52
  117. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +18 -19
  118. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +18 -19
  119. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +18 -19
  120. package/src/components/JfbBaseOrderDetail/Attr.js +210 -193
  121. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +5 -3
  122. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +18 -19
  123. package/src/components/JfbBaseOrderList/Attr.js +56 -44
  124. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +5 -3
  125. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +18 -19
  126. package/src/components/JfbBasePay/Attr.js +2 -13
  127. package/src/components/JfbBasePay/JfbBasePay.vue +7 -6
  128. package/src/components/JfbBasePay/JfbBasePayLess.less +18 -19
  129. package/src/components/JfbBasePay/Mock.js +2 -1
  130. package/src/components/JfbBasePhoneCollect/Attr.js +27 -2
  131. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  132. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +18 -19
  133. package/src/components/JfbBasePhoneLogin/Attr.js +27 -2
  134. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +18 -19
  135. package/src/components/JfbBasePoster/Attr.js +103 -83
  136. package/src/components/JfbBasePoster/JfbBasePoster.vue +134 -141
  137. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  138. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  139. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +3 -7
  140. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  141. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  142. package/src/components/JfbBasePosterEntry/Attr.js +47 -34
  143. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +44 -49
  144. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  145. package/src/components/JfbBasePosterType/Attr.js +82 -48
  146. package/src/components/JfbBasePosterType/FourScreen.vue +8 -2
  147. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
  148. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  149. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  150. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  151. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  152. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  153. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  154. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  155. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  156. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  157. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  158. package/src/components/JfbBaseSearch/Attr.js +6 -148
  159. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  160. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  161. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  162. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  163. package/src/components/JfbBaseSuccess/Attr.js +89 -19
  164. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +46 -24
  165. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  166. package/src/components/JfbBaseSuccess/Mock.js +8 -0
  167. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  168. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  169. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  170. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  171. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  172. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  173. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  174. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  175. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  176. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  177. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  178. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  179. package/src/components/JfbBaseUserOrder/Attr.js +119 -94
  180. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  181. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  182. package/src/components/JfbBaseVideo/Attr.js +72 -19
  183. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  184. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  185. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  186. package/src/components/JfbBaseWallet/Attr.js +27 -19
  187. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  188. package/src/components/JfbBaseWalletDetail/Attr.js +2 -6
  189. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  190. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  191. package/src/components/JfbBaseWalletIndex/Attr.js +3 -1
  192. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  193. package/src/components/JfbBaseWalletItem/Attr.js +3 -1
  194. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  195. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  196. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  197. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  198. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +34 -28
  199. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  200. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  201. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  202. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  203. package/src/components/JfbBaseLine/Attr.js +0 -59
  204. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  205. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  206. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  207. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  208. package/src/components/JfbBaseSearch/Api.js +0 -60
  209. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-test-top {
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-test-top {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -11,12 +11,14 @@ export default {
11
11
  label: '',
12
12
  ele: 'slot',
13
13
  slot: 'is_reference_title',
14
+ groupKey:'advanced',
14
15
  },
15
16
  {
16
17
  label: '卡券自定义名称:',
17
18
  ele: 'el-input',
18
19
  type: 'text',
19
20
  valueKey: 'cardName',
21
+ groupKey:'content',
20
22
  value: data['cardName'] || '',
21
23
  placeholder: '请输入卡券自定义名称',
22
24
  className: 'input80',
@@ -36,45 +38,23 @@ export default {
36
38
  label: '卡券文字颜色:',
37
39
  ele: 'xd-color',
38
40
  valueKey: 'cardNameColor',
41
+ groupKey:'style',
39
42
  value: data['cardNameColor'] || null,
40
43
  placeholder: '请选择卡券文字颜色',
41
44
  classNmae: 'input80',
42
45
  },
46
+
43
47
  {
44
48
  ele: 'title',
45
49
  label: '整体风格',
46
- size: 'small', //default/mini/small
47
- },
48
- {
49
- label: '外边距:',
50
- ele: 'xd-margin-padding',
51
- valueKey: 'bodyMargin',
52
- value: data['bodyMargin'] || null,
53
- disabled: false,
54
- setting: {
55
- type: 'margin',
56
- },
57
- placeholder: '请设置外边距',
58
- inline: false,
59
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
60
- },
61
- {
62
- label: '填充:',
63
- ele: 'xd-margin-padding',
64
- valueKey: 'bodyPadding',
65
- value: data['bodyPadding'] || null,
66
- disabled: false,
67
- setting: {
68
- type: 'padding',
69
- },
70
- placeholder: '请设置外边距',
71
- inline: false,
72
- notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:0像素',
50
+ size: 'small',
51
+ groupKey:'style',
73
52
  },
74
53
  {
75
54
  label: '背景颜色:',
76
55
  ele: 'xd-color',
77
56
  valueKey: 'bodyBackgroundColor',
57
+ groupKey:'style',
78
58
  value: data['bodyBackgroundColor'] || null,
79
59
  placeholder: '请选择背景颜色',
80
60
  classNmae: 'input80',
@@ -83,6 +63,7 @@ export default {
83
63
  label: '圆角设置:',
84
64
  ele: 'xd-site-select-list',
85
65
  valueKey: 'bodyRadius',
66
+ groupKey:'style',
86
67
  value: data['bodyRadius'],
87
68
  placeholder: '请选择圆角设置',
88
69
  multiple: false,
@@ -97,16 +78,55 @@ export default {
97
78
  });
98
79
  },
99
80
  },
81
+ {
82
+ label: '间距:',
83
+ ele: 'el-input',
84
+ type: 'number',
85
+ valueKey: 'padding',
86
+ groupKey:'style',
87
+ value: data.padding || '',
88
+ placeholder: '请输入间距',
89
+ className: 'input60',
90
+ inline: false,
91
+ notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
92
+ },
93
+ {
94
+ label: '外边距:',
95
+ ele: 'xd-margin-padding',
96
+ valueKey: 'bodyMargin',
97
+ groupKey:'style',
98
+ value: data['bodyMargin'] || null,
99
+ setting: {
100
+ type: 'margin',
101
+ },
102
+ placeholder: '请设置外边距',
103
+ inline: false,
104
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
105
+ },
106
+ {
107
+ label: '填充:',
108
+ ele: 'xd-margin-padding',
109
+ valueKey: 'bodyPadding',
110
+ groupKey:'style',
111
+ value: data['bodyPadding'] || null,
112
+ setting: {
113
+ type: 'padding',
114
+ },
115
+ placeholder: '请设置外边距',
116
+ inline: false,
117
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:0像素',
118
+ },
100
119
  {
101
120
  ele: 'title',
102
121
  label: '内容区域风格',
103
- size: 'small', //default/mini/small
122
+ size: 'small',
123
+ groupKey:'style',
104
124
  },
105
-
106
125
  {
107
126
  label: '背景颜色:',
108
127
  ele: 'xd-color',
109
128
  valueKey: 'backgroundColor',
129
+ groupKey:'style',
110
130
  value: data['backgroundColor'] || null,
111
131
  placeholder: '请选择背景颜色',
112
132
  classNmae: 'input80',
@@ -115,6 +135,7 @@ export default {
115
135
  label: '按钮背景颜色:',
116
136
  ele: 'xd-color',
117
137
  valueKey: 'btnBgColor',
138
+ groupKey:'style',
118
139
  value: data['btnBgColor'] || null,
119
140
  placeholder: '请选择按钮背景颜色',
120
141
  classNmae: 'input80',
@@ -123,6 +144,7 @@ export default {
123
144
  label: '按钮文字颜色:',
124
145
  ele: 'xd-color',
125
146
  valueKey: 'btnTextColor',
147
+ groupKey:'style',
126
148
  value: data['btnTextColor'] || null,
127
149
  placeholder: '请选择按钮文字颜色',
128
150
  classNmae: 'input80',
@@ -131,6 +153,7 @@ export default {
131
153
  label: '按钮文字大小:',
132
154
  ele: 'xd-site-select-list',
133
155
  valueKey: 'btnFontSize',
156
+ groupKey:'style',
134
157
  value: data['btnFontSize'] || '',
135
158
  placeholder: '请选择按钮文字大小',
136
159
  multiple: false,
@@ -147,24 +170,18 @@ export default {
147
170
  });
148
171
  },
149
172
  },
150
- {
151
- label: '间距:',
152
- ele: 'el-input',
153
- type: 'number',
154
- valueKey: 'padding',
155
- value: data.padding || '',
156
- placeholder: '请输入间距',
157
- className: 'input80',
158
- },
173
+
159
174
  {
160
175
  ele: 'title',
161
176
  label: '边框设置',
162
- size: 'small', //default/mini/small
177
+ size: 'small',
178
+ groupKey:'style',
163
179
  },
164
180
  {
165
181
  label: '是否有边框:',
166
182
  ele: 'xd-radio',
167
183
  valueKey: 'is_border',
184
+ groupKey:'style',
168
185
  value: data['is_border'] || 'N',
169
186
  placeholder: '请选择是否有边框',
170
187
  multiple: false,
@@ -178,6 +195,7 @@ export default {
178
195
  label: '边框颜色:',
179
196
  ele: 'xd-color',
180
197
  valueKey: 'is_border_c',
198
+ groupKey:'style',
181
199
  value: data['is_border_c'] || '',
182
200
  placeholder: '请选择边框颜色',
183
201
  classNmae: 'input80',
@@ -187,6 +205,7 @@ export default {
187
205
  ele: 'el-input',
188
206
  type: 'number',
189
207
  valueKey: 'is_border_w',
208
+ groupKey:'style',
190
209
  value: data['is_border_w'] || '',
191
210
  placeholder: '请输入边框颜色',
192
211
  className: 'input80',
@@ -195,6 +214,7 @@ export default {
195
214
  label: '内容圆角设置:',
196
215
  ele: 'xd-site-select-list',
197
216
  valueKey: 'radius',
217
+ groupKey:'style',
198
218
  value: data['radius'] || '10',
199
219
  placeholder: '请选择内容圆角设置',
200
220
  multiple: false,
@@ -210,14 +230,10 @@ export default {
210
230
  },
211
231
  },
212
232
  {
213
- ele: 'title',
214
- label: '其他设置',
215
- size: 'small', //default/mini/small
216
- },
217
- {
218
- label: '添加卡券路径:', //label
219
- ele: 'xd-select-pages-path', //package 名称
220
- valueKey: 'add_url', //form[valueKey]
233
+ label: '添加卡券路径:',
234
+ ele: 'xd-select-pages-path',
235
+ valueKey: 'add_url',
236
+ groupKey:'advanced',
221
237
  placeholder: '请选择添加卡券路径',
222
238
  value: data['add_url'] || null,
223
239
  setting: {
@@ -229,9 +245,10 @@ export default {
229
245
  inline: false,
230
246
  },
231
247
  {
232
- label: '设置支付密码路径:', //label
233
- ele: 'xd-select-pages-path', //package 名称
234
- valueKey: 'pwd_url', //form[valueKey]
248
+ label: '设置支付密码路径:',
249
+ ele: 'xd-select-pages-path',
250
+ valueKey: 'pwd_url',
251
+ groupKey:'advanced',
235
252
  placeholder: '请选择设置支付密码路径',
236
253
  value: data['pwd_url'] || null,
237
254
  setting: {
@@ -243,9 +260,10 @@ export default {
243
260
  inline: false,
244
261
  },
245
262
  {
246
- label: '进入我的票券路径:', //label
247
- ele: 'xd-select-pages-path', //package 名称
248
- valueKey: 'card_url', //form[valueKey]
263
+ label: '进入我的票券路径:',
264
+ ele: 'xd-select-pages-path',
265
+ valueKey: 'card_url',
266
+ groupKey:'advanced',
249
267
  placeholder: '请选择进入我的票券路径',
250
268
  value: data['card_url'] || null,
251
269
  setting: {
@@ -260,6 +278,7 @@ export default {
260
278
  label: '',
261
279
  ele: 'slot',
262
280
  slot: 'is_reference',
281
+ groupKey:'advanced',
263
282
  },
264
283
  ].filter(i=>i)
265
284
  },
@@ -13,11 +13,13 @@
13
13
  <view class="jfb-base-user-center__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view class="jfb-base-user-center__body" :style="{padding: outMargin}">
17
- <view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
16
+ <view class="jfb-base-user-center__body">
17
+ <view class="x-line"></view>
18
+ <view class="user-center-box" :style="{padding: outMargin}">
19
+ <view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
18
20
  <view class="my-card-add__btn">
19
21
  <view :style="{color: cardNameColor}">我的{{cardName}}</view>
20
- <view :style="{borderColor:mainColor,color:mainColor}" @click="handleToLink(add_url)">添加{{cardName}}</view>
22
+ <view :style="{borderColor:btnBoxColor || mainColor,color:btnBoxColor || mainColor}" @click="handleToLink(add_url)">添加{{cardName}}</view>
21
23
  </view>
22
24
  <view
23
25
  class="my-card-add__link"
@@ -48,6 +50,7 @@
48
50
  </view>
49
51
  </view>
50
52
  </view>
53
+ </view>
51
54
  </view>
52
55
  </view>
53
56
  </template>
@@ -60,7 +63,7 @@
60
63
  import extsMixins from "@/mixins/extsMixins"
61
64
  import { getContainerPropsValue } from "@/utils/xd.base";
62
65
  const color = require('color');
63
-
66
+
64
67
  export default {
65
68
  name: "JfbBaseUserCenter",
66
69
  components: {
@@ -69,10 +72,18 @@
69
72
  mixins: [componentsMixins,extsMixins,JfbBaseUserCenterMixin],
70
73
  computed: {
71
74
  outPadding() {
72
- return `${this.bodyPadding.top || 20}rpx ${this.bodyPadding.right || 20}rpx ${this.bodyPadding.bottom || 20}rpx ${this.bodyPadding.left || 20}rpx`
75
+ let str = `${this.checkValue(this.bodyPadding.top, 0)}rpx`;
76
+ str = `${str} ${this.checkValue(this.bodyPadding.right, 0)}rpx`;
77
+ str = `${str} ${this.checkValue(this.bodyPadding.bottom, 0)}rpx`;
78
+ str = `${str} ${this.checkValue(this.bodyPadding.left, 0)}rpx`;
79
+ return str
73
80
  },
74
81
  outMargin() {
75
- return `${this.bodyMargin.top || 0}rpx ${this.bodyMargin.right || 0}rpx ${this.bodyMargin.bottom || 0}rpx ${this.bodyMargin.left || 0}rpx`
82
+ let str = `${this.checkValue(this.bodyMargin.top, 20)}rpx`;
83
+ str = `${str} ${this.checkValue(this.bodyMargin.right, 20)}rpx`;
84
+ str = `${str} ${this.checkValue(this.bodyMargin.bottom, 20)}rpx`;
85
+ str = `${str} ${this.checkValue(this.bodyMargin.left, 20)}rpx`;
86
+ return str
76
87
  },
77
88
  borderBox() {
78
89
  if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
@@ -85,7 +96,7 @@
85
96
  pwd_url: '',
86
97
  card_url:'',
87
98
  cardName: '',
88
-
99
+
89
100
  //基础
90
101
  color: '#333',
91
102
  backgroundColor: 'rgba(0,0,0,0)',
@@ -94,18 +105,19 @@
94
105
  btnBgColor: '',
95
106
  btnTextColor: '',
96
107
  btnFontSize: 24,
97
-
108
+
98
109
  //边框
99
110
  is_border: 'Y',
100
111
  is_border_w: 0,
101
112
  is_border_c: '',
102
-
113
+
103
114
  //整体
104
- bodyPadding: { top: 20, left: 20, right: 20, bottom: 20 },
115
+ bodyPadding: {},
105
116
  bodyRadius: 0,
106
117
  bodyBackgroundColor: 'rgba(0,0,0,0)',
107
- bodyMargin: {top: 0, left: 0, right: 0, bottom: 0},
118
+ bodyMargin:{},
108
119
  cardNameColor: '#333',
120
+ btnBoxColor:'',
109
121
  }
110
122
  },
111
123
  watch: {
@@ -125,38 +137,39 @@
125
137
  url: type ? `${path}?type=${type}` : path
126
138
  })
127
139
  },
128
-
140
+
129
141
  /**
130
142
  * @description 监听事件变化
131
143
  * @param container {object} 业务组件对象自己
132
144
  */
133
145
  init(container) {
134
-
146
+
135
147
  //整体
136
- this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {top: 0, left: 0, right: 0, bottom: 0});
148
+ this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {});
137
149
  this.bodyRadius = getContainerPropsValue(container, 'content.bodyRadius', 0);
138
150
  this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
139
- this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {top: 20, left: 20, right: 20, bottom: 20});
140
-
151
+ this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {});
152
+
141
153
  //基础
142
154
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
143
155
  this.color = getContainerPropsValue(container, 'content.textColor', '#333');
144
156
  this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
145
157
  this.padding = getContainerPropsValue(container, 'content.padding', 20);
146
158
  this.btnBgColor = getContainerPropsValue(container, 'content.btnBgColor', this.mainGradient);
147
- this.btnTextColor = getContainerPropsValue(container, 'content.btnTextColor', '#333');
159
+ this.btnTextColor = getContainerPropsValue(container, 'content.btnTextColor', '#fff');
148
160
  this.btnFontSize = getContainerPropsValue(container, 'content.btnFontSize',26);
149
161
  this.cardNameColor = getContainerPropsValue(container, 'content.cardNameColor','#333');
162
+ this.btnBoxColor = getContainerPropsValue(container, 'content.cardNameColor','');
150
163
  this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
151
164
  this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
152
165
  this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
153
-
166
+
154
167
  //其他
155
168
  this.add_url = getContainerPropsValue(container, 'content.add_url', {value: ''}).value;
156
169
  this.pwd_url = getContainerPropsValue(container, 'content.pwd_url', {value: ''}).value;
157
170
  this.card_url = getContainerPropsValue(container, 'content.card_url', {value: ''}).value;
158
171
  this.cardName = getContainerPropsValue(container, 'content.cardName', '卡券');
159
-
172
+
160
173
  },
161
174
  }
162
175
  }
@@ -171,14 +184,14 @@
171
184
 
172
185
  }
173
186
  }
174
-
187
+
175
188
  .my-card-add {
176
189
  &__btn {
177
190
  display: flex;
178
191
  justify-content: space-between;
179
192
  align-items: center;
180
193
  font-size: unit(28, rpx);
181
-
194
+
182
195
  & > view:nth-child(2) {
183
196
  width: unit(200, rpx);
184
197
  height: unit(60, rpx);
@@ -189,33 +202,33 @@
189
202
  text-align: center;
190
203
  }
191
204
  }
192
-
205
+
193
206
  &__link {
194
207
  border-radius: unit(20, rpx);
195
208
  border: 1px solid #EEEEEE;
196
209
  padding: unit(40, rpx);
197
-
210
+
198
211
  & > view:first-child {
199
212
  margin-top: 0!important;
200
213
  }
201
-
214
+
202
215
  &-num {
203
216
  display: flex;
204
217
  align-items: center;
205
218
  justify-content: space-between;
206
219
  font-size: unit(28, rpx);
207
-
220
+
208
221
  & > view:nth-child(1) {
209
222
  color: #808080;
210
223
  }
211
-
224
+
212
225
  & > view:last-child {
213
226
  color: #808080;
214
227
  display: flex;
215
228
  align-items: center;
216
229
  }
217
230
  }
218
-
231
+
219
232
  &-btn {
220
233
  width: 100%;
221
234
  height: unit(80, rpx);
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-user-center {
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-user-center {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/