jufubao-base 1.0.131 → 1.0.132-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 (195) 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 +37 -8
  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 +5 -3
  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 +8 -2
  140. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +36 -59
  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/JfbBaseSuccess.vue +29 -4
  158. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  159. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  160. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  161. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  162. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  163. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  164. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  165. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  166. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  167. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  168. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  169. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  170. package/src/components/JfbBaseUserOrder/Attr.js +118 -92
  171. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  172. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  173. package/src/components/JfbBaseVideo/Attr.js +72 -19
  174. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  175. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  176. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  177. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  178. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  179. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  180. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  181. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  182. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  183. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  184. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  185. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
  186. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  187. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  188. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  189. package/src/components/JfbBaseLine/Attr.js +0 -59
  190. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  191. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  192. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  193. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  194. package/src/components/JfbBaseSearch/Api.js +0 -60
  195. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -11,86 +11,153 @@ export default {
11
11
  label: '',
12
12
  ele: 'slot',
13
13
  slot: 'is_reference_title',
14
+ groupKey:'advanced',
14
15
  },
15
16
  {
16
- label: '文字颜色:',
17
- ele: 'xd-color',
18
- valueKey: 'textColor',
19
- value: data['textColor'] || '',
20
- placeholder: '请选择文字颜色',
21
- classNmae: 'input80',
22
- },
23
- {
24
- label: 'ICON颜色:',
25
- ele: 'xd-color',
26
- valueKey: 'iconColor',
27
- value: data['iconColor'] || '',
28
- placeholder: '请选择ICON颜色',
29
- classNmae: 'input80',
17
+ label: '设置订单状态:',
18
+ ele: 'xd-order-setting',
19
+ valueKey: 'orderTypeList',
20
+ groupKey:'content',
21
+ value: data['orderTypeList'] || null,
22
+ setting: {
23
+ router: XdBus.getParentApi('getPagesTree'),
24
+ },
25
+ handleCustom({action, data}) {
26
+ if (action === 'number') {
27
+ data.cb([
28
+ {"label": "全部", "value": 'all'},
29
+ {"label": "待付款", "value": 'unpaid'},
30
+ {"label": "待收货", "value": 'unreceived'},
31
+ {"label": "已取消", "value": 'cancel'},
32
+ {"label": "已完成", "value": 'com'},
33
+ ])
34
+ }
35
+ },
36
+ inline: false,
37
+ notice: '设置订单状态, ICON图标(<a href="https://www.iconfont.cn/manage/index?spm=a313x.7781069.1998910419.db775f1f3&manage_type=myprojects&projectId=3378319&keyword=&project_type=&page=" style="color: blue" target="_blank">ICONFONT库</a>)、ICON大小(单位:<sapn style="color: red">像素</sapn>)同一个订单状态不可<sapn style="color: red">重复配置</sapn>',
38
+ rules: [
39
+ {required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
40
+ ],
30
41
  },
31
42
  {
32
43
  label: '背景颜色:',
33
44
  ele: 'xd-color',
34
- valueKey: 'backgroundColor',
35
- value: data['backgroundColor'] || '',
45
+ groupKey:'style',
46
+ valueKey: 'bodyBackgroundColor',
47
+ value: data['bodyBackgroundColor'] || null,
36
48
  placeholder: '请选择背景颜色',
37
49
  classNmae: 'input80',
38
50
  },
39
51
  {
40
- label: '文字颜色:',
41
- ele: 'xd-color',
42
- valueKey: 'cardNameColor',
43
- value: data['cardNameColor'] || null,
44
- placeholder: '请选择卡券文字颜色',
45
- classNmae: 'input80',
52
+ label: '圆角设置:',
53
+ groupKey:'style',
54
+ ele: 'xd-site-select-list',
55
+ valueKey: 'bodyRadius',
56
+ value: data['bodyRadius'],
57
+ placeholder: '请选择圆角设置',
58
+ multiple: false,
59
+ className: 'input60',
60
+ handleCustom({action, data}) {
61
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
62
+ .then(res => {
63
+ data.cb(res.list)
64
+ })
65
+ .catch(error => {
66
+ console.error(error);
67
+ });
68
+ },
46
69
  },
47
70
  {
48
- ele: 'title',
49
- label: '整体风格',
50
- size: 'small', //default/mini/small
71
+ label: '间距:',
72
+ ele: 'el-input',
73
+ type: 'number',
74
+ valueKey: 'spacing',
75
+ groupKey:'style',
76
+ value: data.spacing || '',
77
+ placeholder: '请输入间距',
78
+ className: 'input60',
79
+ inline: false,
80
+ notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
51
81
  },
52
82
  {
53
83
  label: '外边距:',
54
84
  ele: 'xd-margin-padding',
55
85
  valueKey: 'bodyMargin',
86
+ groupKey:'style',
56
87
  value: data['bodyMargin'] || null,
57
- disabled: false,
58
88
  setting: {
59
89
  type: 'margin',
60
90
  },
61
91
  placeholder: '请设置外边距',
62
92
  inline: false,
63
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
93
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
64
94
  },
65
95
  {
66
96
  label: '填充:',
67
97
  ele: 'xd-margin-padding',
68
98
  valueKey: 'bodyPadding',
99
+ groupKey:'style',
69
100
  value: data['bodyPadding'] || null,
70
- disabled: false,
71
101
  setting: {
72
102
  type: 'padding',
73
103
  },
74
104
  placeholder: '请设置外边距',
75
105
  inline: false,
76
- notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:0像素',
106
+ notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
107
+ },
108
+ {
109
+ label: '标题样式颜色:',
110
+ ele: 'xd-color',
111
+ groupKey:'style',
112
+ valueKey: 'cardNameColor',
113
+ value: data['cardNameColor'] || null,
114
+ placeholder: '请选择卡券文字颜色',
115
+ classNmae: 'input60',
116
+ },
117
+
118
+
119
+ {
120
+ ele: 'title',
121
+ label: '内容样式设置',
122
+ size: 'small',
123
+ groupKey:'style',
124
+ },
125
+ {
126
+ label: '文字颜色:',
127
+ ele: 'xd-color',
128
+ groupKey:'style',
129
+ valueKey: 'textColor',
130
+ value: data['textColor'] || '',
131
+ placeholder: '请选择文字颜色',
132
+ classNmae: 'input80',
133
+ },
134
+ {
135
+ label: 'ICON颜色:',
136
+ ele: 'xd-color',
137
+ valueKey: 'iconColor',
138
+ groupKey:'style',
139
+ value: data['iconColor'] || '',
140
+ placeholder: '请选择ICON颜色',
141
+ classNmae: 'input80',
77
142
  },
78
143
  {
79
144
  label: '背景颜色:',
80
145
  ele: 'xd-color',
81
- valueKey: 'bodyBackgroundColor',
82
- value: data['bodyBackgroundColor'] || null,
146
+ groupKey:'style',
147
+ valueKey: 'backgroundColor',
148
+ value: data['backgroundColor'] || '',
83
149
  placeholder: '请选择背景颜色',
84
150
  classNmae: 'input80',
85
151
  },
86
152
  {
87
153
  label: '圆角设置:',
88
154
  ele: 'xd-site-select-list',
89
- valueKey: 'bodyRadius',
90
- value: data['bodyRadius'],
91
- placeholder: '请选择圆角设置',
155
+ valueKey: 'radius',
156
+ value: data['radius'] || '10',
157
+ groupKey:'style',
158
+ placeholder: '请选择内容圆角设置',
92
159
  multiple: false,
93
- className: 'input80',
160
+ className: 'input60',
94
161
  handleCustom({action, data}) {
95
162
  XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
96
163
  .then(res => {
@@ -103,8 +170,9 @@ export default {
103
170
  },
104
171
  {
105
172
  ele: 'title',
106
- label: '边框设置',
107
- size: 'small', //default/mini/small
173
+ label: '内容边框设置',
174
+ size: 'small',
175
+ groupKey:'style',
108
176
  },
109
177
  {
110
178
  label: '是否有边框:',
@@ -112,6 +180,7 @@ export default {
112
180
  valueKey: 'is_border',
113
181
  value: data['is_border'] || 'N',
114
182
  placeholder: '请选择是否有边框',
183
+ groupKey:'style',
115
184
  multiple: false,
116
185
  className: 'input80',
117
186
  list: [
@@ -122,6 +191,7 @@ export default {
122
191
  data['is_border'] === 'Y' && {
123
192
  label: '边框颜色:',
124
193
  ele: 'xd-color',
194
+ groupKey:'style',
125
195
  valueKey: 'is_border_c',
126
196
  value: data['is_border_c'] || '',
127
197
  placeholder: '请选择边框颜色',
@@ -131,38 +201,18 @@ export default {
131
201
  label: '边框大小:',
132
202
  ele: 'el-input',
133
203
  type: 'number',
204
+ groupKey:'style',
134
205
  valueKey: 'is_border_w',
135
206
  value: data['is_border_w'] || '',
136
207
  placeholder: '请输入边框颜色',
137
208
  className: 'input80',
138
209
  },
210
+
139
211
  {
140
- label: '内容圆角设置:',
141
- ele: 'xd-site-select-list',
142
- valueKey: 'radius',
143
- value: data['radius'] || '10',
144
- placeholder: '请选择内容圆角设置',
145
- multiple: false,
146
- className: 'input80',
147
- handleCustom({action, data}) {
148
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
149
- .then(res => {
150
- data.cb(res.list)
151
- })
152
- .catch(error => {
153
- console.error(error);
154
- });
155
- },
156
- },
157
- {
158
- ele: 'title',
159
- label: '其他设置',
160
- size: 'small', //default/mini/small
161
- },
162
- {
163
- label: '设置售后订单列表地址:', //label
164
- ele: 'xd-select-pages-path', //package 名称
165
- valueKey: 'after_url', //form[valueKey]
212
+ label: '设置售后订单列表地址:',
213
+ ele: 'xd-select-pages-path',
214
+ valueKey: 'after_url',
215
+ groupKey:'advanced',
166
216
  placeholder: '请选择设置售后订单列表地址',
167
217
  value: data['after_url'] || null,
168
218
  setting: {
@@ -174,9 +224,10 @@ export default {
174
224
  inline: false,
175
225
  },
176
226
  {
177
- label: '设置订单列表路径:', //label
178
- ele: 'xd-select-pages-path', //package 名称
179
- valueKey: 'order_url', //form[valueKey]
227
+ label: '设置订单列表路径:',
228
+ ele: 'xd-select-pages-path',
229
+ valueKey: 'order_url',
230
+ groupKey:'advanced',
180
231
  placeholder: '请选择设置订单列表路径',
181
232
  value: data['order_url'] || null,
182
233
  setting: {
@@ -187,36 +238,11 @@ export default {
187
238
  ],
188
239
  inline: false,
189
240
  },
190
- {
191
- label: '设置订单状态:', //label
192
- ele: 'xd-order-setting', //package 名称
193
- valueKey: 'orderTypeList', //form[valueKey]
194
- value: data['orderTypeList'] || null,
195
- setting: {
196
- router: XdBus.getParentApi('getPagesTree'),
197
- },
198
- handleCustom({action, data}) {
199
- if (action === 'number') {
200
- data.cb([
201
- {"label": "全部", "value": 'all'},
202
- {"label": "待付款", "value": 'unpaid'},
203
- {"label": "待收货", "value": 'unreceived'},
204
- {"label": "已取消", "value": 'cancel'},
205
- {"label": "已完成", "value": 'com'},
206
- ])
207
- }
208
- },
209
- inline: false,
210
- notice: '设置订单状态, ICON图标(<a href="https://www.iconfont.cn/manage/index?spm=a313x.7781069.1998910419.db775f1f3&manage_type=myprojects&projectId=3378319&keyword=&project_type=&page=" style="color: blue" target="_blank">ICONFONT库</a>)、ICON大小(单位:<sapn style="color: red">像素</sapn>)同一个订单状态不可<sapn style="color: red">重复配置</sapn>',
211
- rules: [
212
- {required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
213
- ],
214
- },
215
-
216
241
  {
217
242
  label: '',
218
243
  ele: 'slot',
219
244
  slot: 'is_reference',
245
+ groupKey:'advanced',
220
246
  },
221
247
  ].filter(i=>i)
222
248
  },
@@ -21,14 +21,14 @@
21
21
  <view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
22
22
  <view class="my-order__add">
23
23
  <view :style="{color:cardNameColor}">我的订单</view>
24
- <view @click="handleToLink(afterUrl)" :style="{borderColor:mainColor,color: mainColor}">售后订单</view>
24
+ <view @click="handleToLink(afterUrl)" :style="{borderColor:subColor || mainColor,color: subColor || mainColor}">售后订单</view>
25
25
  </view>
26
26
  <view
27
27
  class="my-order__content"
28
28
  :style="{
29
29
  borderRadius: radius + 'rpx',
30
30
  background: backgroundColor,
31
- marginTop: margin.top ? margin.top + 'rpx': '20rpx',
31
+ marginTop: spacing + 'rpx',
32
32
  border: borderBox,
33
33
  }"
34
34
  >
@@ -75,10 +75,18 @@
75
75
  mixins: [componentsMixins,extsMixins,JfbBaseUserOrderMixin],
76
76
  computed: {
77
77
  outPadding() {
78
- return `${this.bodyPadding.top || 20}rpx ${this.bodyPadding.right || 20}rpx ${this.bodyPadding.bottom || 20}rpx ${this.bodyPadding.left || 20}rpx`
78
+ let str = `${this.checkValue(this.bodyPadding.top, 0)}rpx`;
79
+ str = `${str} ${this.checkValue(this.bodyPadding.right, 0)}rpx`;
80
+ str = `${str} ${this.checkValue(this.bodyPadding.bottom, 0)}rpx`;
81
+ str = `${str} ${this.checkValue(this.bodyPadding.left, 0)}rpx`;
82
+ return str
79
83
  },
80
84
  outMargin() {
81
- return `${this.bodyMargin.top || 0}rpx ${this.bodyMargin.right || 0}rpx ${this.bodyMargin.bottom || 0}rpx ${this.bodyMargin.left || 0}rpx`
85
+ let str = `${this.checkValue(this.bodyMargin.top, 20)}rpx`;
86
+ str = `${str} ${this.checkValue(this.bodyMargin.right, 20)}rpx`;
87
+ str = `${str} ${this.checkValue(this.bodyMargin.bottom, 20)}rpx`;
88
+ str = `${str} ${this.checkValue(this.bodyMargin.left, 20)}rpx`;
89
+ return str
82
90
  },
83
91
  borderBox() {
84
92
  if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
@@ -95,6 +103,7 @@
95
103
  backgroundColor: 'rgba(0,0,0,0)',
96
104
  radius: 0,
97
105
  iconColor: '',
106
+ spacing:20,
98
107
 
99
108
  //边框
100
109
  is_border: 'Y',
@@ -111,11 +120,15 @@
111
120
  bodyBackgroundColor: 'rgba(0,0,0,0)',
112
121
  bodyMargin: {top: 0, left: 0, right: 0, bottom: 0},
113
122
  cardNameColor: '#333',
123
+ subColor:'',
114
124
  }
115
125
  },
116
126
  watch: {
117
127
  container(value) {
118
- this.init(value)
128
+ this.init(value);
129
+ if(this.$configProject.isPreview) {
130
+ this.onJfbLoad( this.options)
131
+ }
119
132
  }
120
133
  },
121
134
  created() {
@@ -124,7 +137,6 @@
124
137
  methods: {
125
138
  onJfbLoad(options) {
126
139
  this.options = options;
127
-
128
140
  //处理方法
129
141
  const handle = (res)=>{
130
142
  this.list = this.list.map(item => {
@@ -146,7 +158,7 @@
146
158
  'com': [0, 4, 9, 99, 888][this.$xdUniHelper.random(0, 4)],
147
159
  };
148
160
  handle(res)
149
- }, 1000)
161
+ }, 400)
150
162
  }
151
163
  else{
152
164
  jfbRootExec('getBaseOrderListCount', {
@@ -172,6 +184,8 @@
172
184
  this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
173
185
  this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {top: 20, left: 20, right: 20, bottom: 20});
174
186
  this.cardNameColor = getContainerPropsValue(container, 'content.cardNameColor', '#333');
187
+ this.subColor = getContainerPropsValue(container, 'content.cardNameColor', '');
188
+ this.spacing = getContainerPropsValue(container, 'content.spacing', 20);
175
189
 
176
190
  //其他
177
191
  this.afterUrl = getContainerPropsValue(container, 'content.after_url', {value: ''}).value;
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-user-order {
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-order {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -8,16 +8,28 @@ import console from "@dcloudio/uni-h5/src/core/helpers/console";
8
8
  export default {
9
9
  style:[],
10
10
  content:(params)=>{
11
+ let size = {width:750};
12
+ let video = {
13
+ size: Object.assign({},(params.video && params.video.size),size),
14
+ type:'1',
15
+ position: Object.assign({},params.video && params.video.position)
16
+ };
11
17
  return [
12
18
  {
13
- label: '视频位置配置:', //label
14
- ele: 'xd-site-poster', //package 名称
15
- valueKey: 'video', //form[valueKey]
19
+ label: '视频位置配置:',
20
+ ele: 'xd-site-poster',
21
+ valueKey: 'video',
22
+ groupKey:'content',
16
23
  className: 'input80',
17
- value: params.video || {},
24
+ value:video,
18
25
  setting: {
19
26
  count: 1,
20
- scene: {label: '视频', value: 'video'}
27
+ scene: {label: '视频', value: 'video'},
28
+ sizeDisabled: {
29
+ wDisabled:true,
30
+ hDisabled: false,
31
+ },
32
+ typeDisabled: true
21
33
  },
22
34
  handleCustom({action, data}) {
23
35
  //设置场景参数
@@ -212,32 +224,46 @@ export default {
212
224
  loading.close()
213
225
  }
214
226
  },
215
- inline: false,
216
- notice: '',
217
227
  rules: [
218
- {required: true, message: '请选择视频位置', trigger: 'change'},
228
+ {
229
+ required: true,
230
+ validator: (rule, value, callback) => {
231
+ let message = '请设置视频位置相关内容';
232
+ if(!value) {
233
+ callback(message);
234
+ return;
235
+ }
236
+ if(value.size && !value.size.height){
237
+ callback(message);
238
+ return
239
+ }
240
+ // if(value.position && (!value.position['position_name'] || !value.position['position_id'])) {
241
+ // callback(message);
242
+ // return
243
+ // }
244
+ callback()
245
+ },trigger: ['blur', 'change']
246
+ }
219
247
  ],
220
248
  },
221
249
  {
222
- label: '视频位边距设置:',
223
- ele: 'xd-margin-padding',
224
- valueKey: 'margin',
225
- value: params.margin || null,
226
- disabled: false,
227
- setting: {
228
- type: 'margin',
229
- },
230
- placeholder: '请设置视频位边距设置',
231
-
250
+ label: '背景颜色:',
251
+ ele: 'xd-color',
252
+ valueKey: 'bgColor',
253
+ groupKey:'style',
254
+ value: params.bgColor || '',
255
+ placeholder: '请选择背景颜色',
256
+ classNmae: 'input80',
232
257
  },
233
258
  {
234
259
  label: '内容圆角设置:',
235
260
  ele: 'xd-site-select-list',
236
261
  valueKey: 'radius',
262
+ groupKey:'style',
237
263
  value: params['radius'] || '0',
238
264
  placeholder: '请选择内容圆角设置',
239
265
  multiple: false,
240
- className: 'input80',
266
+ className: 'input60',
241
267
  handleCustom({action, data}) {
242
268
  XdBus.getParentApi('getOptionsSettingList')({
243
269
  setting_id: 'edtix_style_radius',
@@ -251,6 +277,33 @@ export default {
251
277
  });
252
278
  },
253
279
  },
280
+ {
281
+ label: '视频位边距设置:',
282
+ ele: 'xd-margin-padding',
283
+ valueKey: 'margin',
284
+ groupKey:'style',
285
+ value: params.margin || null,
286
+ setting: {
287
+ type: 'margin',
288
+ },
289
+ placeholder: '请设置视频位边距设置',
290
+ inline: false,
291
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
292
+ },
293
+ {
294
+ label: '视频位填充设置:',
295
+ ele: 'xd-margin-padding',
296
+ valueKey: 'padding',
297
+ groupKey:'style',
298
+ value: params.padding || null,
299
+ setting: {
300
+ type: 'padding',
301
+ },
302
+ placeholder: '请设置视频位填充设置',
303
+ inline: false,
304
+ notice: '设置填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
305
+ },
306
+
254
307
  ].filter(i=>i)
255
308
  },
256
309
  advanced: [