jufubao-base 1.0.129 → 1.0.130-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 (196) 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 +25 -7
  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 +136 -142
  130. package/src/components/JfbBasePoster/JfbBasePosterLess.less +18 -19
  131. package/src/components/JfbBasePoster/MoreScreen.vue +2 -1
  132. package/src/components/JfbBasePosterBigSmall/Attr.js +93 -76
  133. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +5 -8
  134. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +18 -19
  135. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  136. package/src/components/JfbBasePosterEntry/Attr.js +44 -33
  137. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +46 -50
  138. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +18 -19
  139. package/src/components/JfbBasePosterType/Attr.js +82 -48
  140. package/src/components/JfbBasePosterType/FourScreen.vue +41 -35
  141. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +51 -73
  142. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +18 -19
  143. package/src/components/JfbBaseRecharge/Attr.js +35 -23
  144. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +54 -8
  145. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +18 -19
  146. package/src/components/JfbBaseRechargeOrder/Attr.js +32 -22
  147. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +12 -7
  148. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +18 -19
  149. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +18 -19
  150. package/src/components/JfbBaseRechargeSuccess/Attr.js +10 -8
  151. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +18 -19
  152. package/src/components/JfbBaseSearch/Attr.js +6 -148
  153. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +8 -37
  154. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +18 -19
  155. package/src/components/JfbBaseSetPwd/Attr.js +6 -147
  156. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +18 -19
  157. package/src/components/JfbBaseSuccess/Attr.js +78 -17
  158. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +20 -10
  159. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +18 -19
  160. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +18 -19
  161. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +18 -19
  162. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +18 -19
  163. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +18 -19
  164. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +18 -19
  165. package/src/components/JfbBaseUserCenter/Attr.js +72 -53
  166. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +40 -27
  167. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +18 -19
  168. package/src/components/JfbBaseUserInfo/Attr.js +54 -45
  169. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  170. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +18 -19
  171. package/src/components/JfbBaseUserOrder/Attr.js +118 -92
  172. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +21 -7
  173. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +18 -19
  174. package/src/components/JfbBaseVideo/Attr.js +72 -19
  175. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +69 -28
  176. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +18 -19
  177. package/src/components/JfbBaseVideo/XdVideo.vue +6 -44
  178. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +18 -19
  179. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +18 -19
  180. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailMixin.js +0 -12
  181. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +18 -19
  182. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +18 -19
  183. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +18 -19
  184. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +18 -19
  185. package/src/components/JfbBaseWxAuthorize/Attr.js +31 -3
  186. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +32 -26
  187. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +18 -19
  188. package/src/components/JfbBaseWxAuthorizeError/Attr.js +21 -17
  189. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +18 -19
  190. package/src/components/JfbBaseLine/Attr.js +0 -59
  191. package/src/components/JfbBaseLine/JfbBaseLine.vue +0 -105
  192. package/src/components/JfbBaseLine/JfbBaseLineLess.less +0 -80
  193. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +0 -30
  194. package/src/components/JfbBasePosterType/Screen.vue +0 -284
  195. package/src/components/JfbBaseSearch/Api.js +0 -60
  196. package/src/components/JfbBaseSearch/Mock.js +0 -5
@@ -13,9 +13,8 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-notice-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-notice-top {
75
- &:before {
76
- content: " ";
77
- display: table;
78
- }
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
79
78
  }
80
79
  /**endNotPreview**/
@@ -5,146 +5,12 @@ export default {
5
5
  advanced: [],
6
6
  content: (data)=>{
7
7
  return [
8
- {
9
- label: '外边距:',
10
- ele: 'xd-margin-padding',
11
- valueKey: 'margin',
12
- value: data['margin'] || null,
13
- disabled: false,
14
- setting: {
15
- type: 'margin',
16
- },
17
- placeholder: '请设置外边距',
18
- inline: false,
19
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:0像素',
20
- },
21
- {
22
- label: '背景颜色:',
23
- ele: 'xd-color',
24
- valueKey: 'backgroundColor',
25
- value: data['backgroundColor'] || null,
26
- placeholder: '请选择背景颜色',
27
- classNmae: 'input80',
28
- },
29
- {
30
- label: '间距:',
31
- ele: 'el-input',
32
- type: 'number',
33
- valueKey: 'padding',
34
- value: data.padding || '',
35
- placeholder: '请输入间距',
36
- className: 'input80',
37
- },
38
- {
39
- ele: 'title',
40
- label: '投影设置',
41
- size: 'small', //default/mini/small
42
- },
43
- {
44
- label: '是否有投影:',
45
- ele: 'xd-radio',
46
- valueKey: 'is_shadow',
47
- value: data['is_shadow'] || 'N',
48
- placeholder: '请选择是否投影',
49
- multiple: false,
50
- className: 'input80',
51
- list: [
52
- { label: '是', value: 'Y' },
53
- { label: '否', value: 'N' },
54
- ]
55
- },
56
- data['is_shadow'] === 'Y' && {
57
- label: '投影颜色:',
58
- ele: 'xd-color',
59
- valueKey: 'is_shadow_bg',
60
- value: data['is_shadow_bg'] || '',
61
- placeholder: '请选择投影颜色',
62
- classNmae: 'input80',
63
- },
64
- data['is_shadow'] === 'Y' && {
65
- label: '投影范围:',
66
- ele: 'xd-site-select-list',
67
- valueKey: 'is_shadow_w',
68
- value: data['is_shadow_w'] || '10',
69
- placeholder: '请选择投影范围',
70
- multiple: false,
71
- className: 'input80',
72
- handleCustom({ action, data }) {
73
- XdBus.getParentApi('getOptionsSettingList')({
74
- setting_id: 'edtix_style_radius',
75
- key: Date.now()
76
- })
77
- .then(res => {
78
- data.cb(res.list)
79
- })
80
- .catch(error => {
81
- console.error(error);
82
- });
83
- },
84
- },
85
- {
86
- ele: 'title',
87
- label: '边框设置',
88
- size: 'small', //default/mini/small
89
- },
90
- {
91
- label: '是否有边框:',
92
- ele: 'xd-radio',
93
- valueKey: 'is_border',
94
- value: data['is_border'] || 'N',
95
- placeholder: '请选择是否有边框',
96
- multiple: false,
97
- className: 'input80',
98
- list: [
99
- { label: '是', value: 'Y' },
100
- { label: '否', value: 'N' },
101
- ]
102
- },
103
- data['is_border'] === 'Y' && {
104
- label: '边框颜色:',
105
- ele: 'xd-color',
106
- valueKey: 'is_border_c',
107
- value: data['is_border_c'] || '',
108
- placeholder: '请选择边框颜色',
109
- classNmae: 'input80',
110
- },
111
- data['is_border'] === 'Y' && {
112
- label: '边框大小:',
113
- ele: 'el-input',
114
- type: 'number',
115
- valueKey: 'is_border_w',
116
- value: data['is_border_w'] || '',
117
- placeholder: '请输入边框颜色',
118
- className: 'input80',
119
- },
120
- {
121
- label: '内容圆角设置:',
122
- ele: 'xd-site-select-list',
123
- valueKey: 'radius',
124
- value: data['radius'] || '',
125
- placeholder: '请选择内容圆角设置',
126
- multiple: false,
127
- className: 'input80',
128
- handleCustom({ action, data }) {
129
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
130
- .then(res => {
131
- data.cb(res.list)
132
- })
133
- .catch(error => {
134
- console.error(error);
135
- });
136
- },
137
- },
138
- {
139
- ele: 'title',
140
- label: '其他',
141
- size: 'small', //default/mini/small
142
- },
143
8
  {
144
9
  label: '业务类型预览(只是预览模式生效)',
145
10
  ele: "xd-select-list",
146
11
  valueKey: "viewStatus",
147
12
  value: data.viewStatus || "mall",
13
+ groupKey:'content',
148
14
  className: 'input80',
149
15
  list: [
150
16
  {label: '商城', value: "mall"},
@@ -153,67 +19,15 @@ export default {
153
19
  {label: '在线选座&演出电子码', value: "playCode"},
154
20
  {label: '核销', value: "cashier"},
155
21
  ],
156
- },
157
- {
158
- label: '查看品牌路径:', //label
159
- ele: 'xd-select-pages-path', //package 名称
160
- valueKey: 'brandPath', //form[valueKey]
161
- placeholder: '请选择查看品牌路径',
162
- value: data['brandPath'] || null,
163
- setting: {
164
- router: XdBus.getParentApi('getPagesTree'),
165
- },
166
- inline: false,
167
- },
168
- {
169
- label: '查看访问路径容器:', //label
170
- ele: 'xd-select-pages-path', //package 名称
171
- valueKey: 'webViewPath', //form[valueKey]
172
- placeholder: '请选择查看访问路径容器',
173
- value: data['webViewPath'] || null,
174
- setting: {
175
- router: XdBus.getParentApi('getPagesTree'),
176
- },
177
- inline: false,
178
- },
179
- {
180
- label: '支付路径:', //label
181
- ele: 'xd-select-pages-path', //package 名称
182
- valueKey: 'payPath', //form[valueKey]
183
- placeholder: '请选择支付路径',
184
- value: data['payPath'] || null,
185
- setting: {
186
- router: XdBus.getParentApi('getPagesTree'),
187
- },
188
- inline: false,
189
- },
190
- // {
191
- // label: '查看单个包裹物流路径:', //label
192
- // ele: 'xd-select-pages-path', //package 名称
193
- // valueKey: 'logisticsPath', //form[valueKey]
194
- // placeholder: '请选择查看单个包裹物流路径',
195
- // value: data['logisticsPath'] || null,
196
- // setting: {
197
- // router: XdBus.getParentApi('getPagesTree'),
198
- // },
199
- // inline: false,
200
- // },
201
- {
202
- label: '查看包裹列表路径:', //label
203
- ele: 'xd-select-pages-path', //package 名称
204
- valueKey: 'packageListPath', //form[valueKey]
205
- placeholder: '请选择查看包裹列表路径',
206
- value: data['packageListPath'] || null,
207
- setting: {
208
- router: XdBus.getParentApi('getPagesTree'),
209
- },
210
22
  inline: false,
23
+ notice: '前台页面展示会根据返回数据类型进行页面渲染'
211
24
  },
212
25
  {
213
26
  label: '是否需要客服电话:',
214
27
  ele: 'xd-radio',
215
28
  valueKey: 'is_hot',
216
29
  value: data['is_hot'] || 'N',
30
+ groupKey:'content',
217
31
  placeholder: '请选择是否需要客服电话',
218
32
  multiple: false,
219
33
  className: 'input80',
@@ -226,6 +40,7 @@ export default {
226
40
  label: '自定义内容:',
227
41
  ele: 'xd-site-news',
228
42
  valueKey: 'notice',
43
+ groupKey:'content',
229
44
  value: data['notice'] || null,
230
45
  className: 'input70',
231
46
  setting: {
@@ -246,11 +61,12 @@ export default {
246
61
  }
247
62
 
248
63
  //获取返回参数(场景类型名称为必填)
249
- let loading = XdBus.getParentApi('loading')({});
64
+ //获取返回参数(场景类型名称为必填)
65
+ let loading = { close(){}}
250
66
 
251
67
  //获取显示内容
252
68
  if (action === 'screen') {
253
- XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
69
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
254
70
  .then(res => {
255
71
  loading.close();
256
72
  data.cb(res['list'])
@@ -267,7 +83,7 @@ export default {
267
83
  XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
268
84
  .then(res => {
269
85
  loading.close()
270
- data.cb({ list: res.list, selectId: res.selected })
86
+ data.cb({list: res.list, selectId: res.selected})
271
87
  })
272
88
  .catch(error => {
273
89
  loading.close()
@@ -290,6 +106,7 @@ export default {
290
106
 
291
107
  //使用内容分类
292
108
  if (action === 'cmsPublishEditxContent') {
109
+ loading = XdBus.getParentApi('loading')({});
293
110
  XdBus.getParentApi('cmsPublishEditxContent')(data.params)
294
111
  .then(res => {
295
112
  console.log('cmsPublishEditxContent', res)
@@ -304,6 +121,7 @@ export default {
304
121
 
305
122
  //位置列表
306
123
  if (action === 'getListPostion') {
124
+ loading = XdBus.getParentApi('loading')({});
307
125
  XdBus.getParentApi('getListNewsPosition')(data.params)
308
126
  .then(res => {
309
127
  loading.close();
@@ -317,6 +135,7 @@ export default {
317
135
 
318
136
  //位置创建
319
137
  if (action === 'addPostion') {
138
+ loading = XdBus.getParentApi('loading')({});
320
139
  XdBus.getParentApi('addNewsPosition')(data.params)
321
140
  .then(res => {
322
141
  loading.close();
@@ -331,6 +150,7 @@ export default {
331
150
 
332
151
  //位置编辑
333
152
  if (action === 'editPostion') {
153
+ loading = XdBus.getParentApi('loading')({});
334
154
  XdBus.getParentApi('updateNewsPosition')(data.params)
335
155
  .then(res => {
336
156
  loading.close();
@@ -345,6 +165,7 @@ export default {
345
165
 
346
166
  //位置删除
347
167
  if (action === 'deleltePostion') {
168
+ loading = XdBus.getParentApi('loading')({});
348
169
  XdBus.getParentApi('deleteNewsPosition')(data.params)
349
170
  .then(res => {
350
171
  loading.close();
@@ -359,6 +180,7 @@ export default {
359
180
 
360
181
  //获取广告位内容列表
361
182
  if (action === 'getListContent') {
183
+ loading = XdBus.getParentApi('loading')({});
362
184
  XdBus.getParentApi('getListNewsContent')(data.params)
363
185
  .then(res => {
364
186
  loading.close();
@@ -372,6 +194,7 @@ export default {
372
194
 
373
195
  //广告内容创建
374
196
  if (action === 'addContent') {
197
+ loading = XdBus.getParentApi('loading')({});
375
198
  XdBus.getParentApi('addNewsContent')(data.params)
376
199
  .then(res => {
377
200
  loading.close();
@@ -386,6 +209,7 @@ export default {
386
209
 
387
210
  //广告内容编辑
388
211
  if (action === 'editContent') {
212
+ loading = XdBus.getParentApi('loading')({});
389
213
  XdBus.getParentApi('updateNewsContent')(data.params)
390
214
  .then(res => {
391
215
  loading.close();
@@ -400,6 +224,7 @@ export default {
400
224
 
401
225
  //广告内容删除
402
226
  if (action === 'deleteContent') {
227
+ loading = XdBus.getParentApi('loading')({});
403
228
  XdBus.getParentApi('deleteNewsContent')(data.params)
404
229
  .then(res => {
405
230
  loading.close();
@@ -414,6 +239,7 @@ export default {
414
239
 
415
240
  //内容发布
416
241
  if (action === 'publish') {
242
+ loading = XdBus.getParentApi('loading')({});
417
243
  console.log('publish', data.params)
418
244
  XdBus.getParentApi('cmsPublishContent')(data.params)
419
245
  .then(res => {
@@ -428,12 +254,203 @@ export default {
428
254
 
429
255
  //通知页面进行刷新
430
256
  if (action === 'update') {
257
+ loading = XdBus.getParentApi('loading')({});
431
258
  XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
432
259
  loading.close()
433
260
  }
434
261
  },
262
+ },
263
+ {
264
+ label: '外填充:',
265
+ ele: 'xd-margin-padding',
266
+ valueKey: 'margin',
267
+ value: data['margin'] || null,
268
+ groupKey:'style',
269
+ setting: {
270
+ type: 'margin',
271
+ },
272
+ placeholder: '请设置外填充',
273
+ inline: false,
274
+ notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
275
+ },
276
+ {
277
+ label: '背景颜色:',
278
+ ele: 'xd-color',
279
+ valueKey: 'backgroundColor',
280
+ groupKey:'style',
281
+ value: data['backgroundColor'] || null,
282
+ placeholder: '请选择背景颜色',
283
+ classNmae: 'input80',
284
+ },
285
+ {
286
+ label: '间距:',
287
+ groupKey:'style',
288
+ ele: 'el-input',
289
+ type: 'number',
290
+ valueKey: 'padding',
291
+ value: data.padding || '',
292
+ placeholder: '请输入间距',
293
+ className: 'input80',
294
+ inline: false,
295
+ notice: '间距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
296
+ },
297
+ {
298
+ ele: 'title',
299
+ label: '投影设置',
300
+ size: 'small',
301
+ groupKey:'style',
302
+ },
303
+ {
304
+ label: '是否有投影:',
305
+ ele: 'xd-radio',
306
+ groupKey:'style',
307
+ valueKey: 'is_shadow',
308
+ value: data['is_shadow'] || 'N',
309
+ placeholder: '请选择是否投影',
310
+ multiple: false,
311
+ className: 'input80',
312
+ list: [
313
+ { label: '是', value: 'Y' },
314
+ { label: '否', value: 'N' },
315
+ ]
316
+ },
317
+ data['is_shadow'] === 'Y' && {
318
+ label: '投影颜色:',
319
+ ele: 'xd-color',
320
+ groupKey:'style',
321
+ valueKey: 'is_shadow_bg',
322
+ value: data['is_shadow_bg'] || '',
323
+ placeholder: '请选择投影颜色',
324
+ classNmae: 'input80',
325
+ },
326
+ data['is_shadow'] === 'Y' && {
327
+ label: '投影范围:',
328
+ ele: 'xd-site-select-list',
329
+ valueKey: 'is_shadow_w',
330
+ groupKey:'style',
331
+ value: data['is_shadow_w'] || '10',
332
+ placeholder: '请选择投影范围',
333
+ multiple: false,
334
+ className: 'input80',
335
+ handleCustom({ action, data }) {
336
+ XdBus.getParentApi('getOptionsSettingList')({
337
+ setting_id: 'edtix_style_radius',
338
+ key: Date.now()
339
+ })
340
+ .then(res => {
341
+ data.cb(res.list)
342
+ })
343
+ .catch(error => {
344
+ console.error(error);
345
+ });
346
+ },
347
+ },
348
+ {
349
+ ele: 'title',
350
+ label: '边框设置',
351
+ size: 'small',
352
+ groupKey:'style',
353
+ },
354
+ {
355
+ label: '是否有边框:',
356
+ ele: 'xd-radio',
357
+ valueKey: 'is_border',
358
+ value: data['is_border'] || 'N',
359
+ groupKey:'style',
360
+ placeholder: '请选择是否有边框',
361
+ multiple: false,
362
+ className: 'input80',
363
+ list: [
364
+ { label: '是', value: 'Y' },
365
+ { label: '否', value: 'N' },
366
+ ]
367
+ },
368
+ data['is_border'] === 'Y' && {
369
+ label: '边框颜色:',
370
+ ele: 'xd-color',
371
+ groupKey:'style',
372
+ valueKey: 'is_border_c',
373
+ value: data['is_border_c'] || '',
374
+ placeholder: '请选择边框颜色',
375
+ classNmae: 'input80',
376
+ },
377
+ data['is_border'] === 'Y' && {
378
+ label: '边框大小:',
379
+ groupKey:'style',
380
+ ele: 'el-input',
381
+ type: 'number',
382
+ valueKey: 'is_border_w',
383
+ value: data['is_border_w'] || '',
384
+ placeholder: '请输入边框颜色',
385
+ className: 'input80',
386
+ },
387
+ {
388
+ label: '内容圆角设置:',
389
+ ele: 'xd-site-select-list',
390
+ valueKey: 'radius',
391
+ groupKey:'style',
392
+ value: data['radius'] || '',
393
+ placeholder: '请选择内容圆角设置',
394
+ multiple: false,
395
+ className: 'input80',
396
+ handleCustom({ action, data }) {
397
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
398
+ .then(res => {
399
+ data.cb(res.list)
400
+ })
401
+ .catch(error => {
402
+ console.error(error);
403
+ });
404
+ },
405
+ },
406
+
407
+ {
408
+ label: '查看品牌路径:',
409
+ ele: 'xd-select-pages-path',
410
+ valueKey: 'brandPath',
411
+ groupKey:'advanced',
412
+ placeholder: '请选择查看品牌路径',
413
+ value: data['brandPath'] || null,
414
+ setting: {
415
+ router: XdBus.getParentApi('getPagesTree'),
416
+ },
417
+ inline: false,
418
+ },
419
+ {
420
+ label: '查看访问路径容器:',
421
+ ele: 'xd-select-pages-path',
422
+ valueKey: 'webViewPath',
423
+ groupKey:'advanced',
424
+ placeholder: '请选择查看访问路径容器',
425
+ value: data['webViewPath'] || null,
426
+ setting: {
427
+ router: XdBus.getParentApi('getPagesTree'),
428
+ },
429
+ inline: false,
430
+ },
431
+ {
432
+ label: '支付路径:',
433
+ ele: 'xd-select-pages-path',
434
+ valueKey: 'payPath',
435
+ groupKey:'advanced',
436
+ placeholder: '请选择支付路径',
437
+ value: data['payPath'] || null,
438
+ setting: {
439
+ router: XdBus.getParentApi('getPagesTree'),
440
+ },
441
+ inline: false,
442
+ },
443
+ {
444
+ label: '查看包裹列表路径:',
445
+ ele: 'xd-select-pages-path',
446
+ valueKey: 'packageListPath',
447
+ groupKey:'advanced',
448
+ placeholder: '请选择查看包裹列表路径',
449
+ value: data['packageListPath'] || null,
450
+ setting: {
451
+ router: XdBus.getParentApi('getPagesTree'),
452
+ },
435
453
  inline: false,
436
- notice: '',
437
454
  },
438
455
  ].filter(i=>i)
439
456
  },
@@ -336,9 +336,7 @@
336
336
  padding: 10rpx 0;
337
337
  margin: 32rpx 0 32rpx 32rpx;
338
338
  "
339
- >{{
340
- info.codes.length > 10 ? index + 1 : `0${index + 1}`
341
- }}</view
339
+ >{{info.codes.length > 10 ? index + 1 : `0${index + 1}` }}</view
342
340
  >
343
341
  <view
344
342
  class="jfb-base-order-detail__body-card jfb-base-order-detail__body-num"
@@ -867,9 +865,11 @@ export default {
867
865
  },
868
866
  ...mapState(["brandInfo"]),
869
867
  outMargin() {
870
- return `${this.margin.top || 20}rpx ${this.margin.right || 20}rpx ${
871
- this.margin.bottom || 20
872
- }rpx ${this.margin.left || 20}rpx`;
868
+ let str = `${this.checkValue(this.margin.top, 20)}rpx`;
869
+ str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
870
+ str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
871
+ str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
872
+ return str
873
873
  },
874
874
  shadowBox() {
875
875
  if (this.is_shadow === "Y")
@@ -997,12 +997,30 @@ export default {
997
997
  if(item.logo) {
998
998
  item.logo = getServiceUrl(item.logo)
999
999
  }
1000
- if (item.show_type === "qrcode" || item.show_type === "barcode") {
1000
+ if (
1001
+ item.show_type === "qrcode"
1002
+ || item.show_type === "barcode"
1003
+ || item.show_type === "qrcode-pass"
1004
+ || item.show_type === "barcode-pass"
1005
+ ) {
1001
1006
  let reg = /^(http:\/\/|https:\/\/|\/\/)+.+$/;
1002
1007
  item.code_url = reg.test(item.code_url)? item.code_url:`${this.brandInfo['api_host']}${item.code_url}`
1003
1008
  }
1009
+
1010
+ //二维码 + 密码处理
1011
+ if(item.show_type === "qrcode-pass") {
1012
+ item.show_type = 'qrcode';
1013
+ item.can_read_code = item.can_read_password;
1014
+ }
1015
+ //条形码 + 密码处理
1016
+ if(item.show_type === "barcode-pass") {
1017
+ item.show_type = 'barcode';
1018
+ item.can_read_code = item.can_read_password;
1019
+ }
1020
+
1004
1021
  return item;
1005
1022
  });
1023
+
1006
1024
  if (res.film_show && Object.keys(res.film_show).length > 0) {
1007
1025
  res.film_show.show_time = this.$xdUniHelper.getDate(
1008
1026
  res.film_show.show_time * 1000