jufubao-base 1.0.134-beta8 → 1.0.134

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/package.json +3 -4
  2. package/src/components/JfbBaseAddress/Attr.js +5 -11
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +3 -3
  4. package/src/components/JfbBaseAddress/JfbBaseAddressLess.less +19 -18
  5. package/src/components/JfbBaseAfterOrderDetail/Attr.js +7 -19
  6. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +4 -6
  7. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetailLess.less +19 -18
  8. package/src/components/JfbBaseAfterOrderList/Attr.js +16 -25
  9. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +9 -6
  10. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderListLess.less +19 -18
  11. package/src/components/JfbBaseBack/JfbBaseBackLess.less +19 -18
  12. package/src/components/JfbBaseBackground/Attr.js +8 -9
  13. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -0
  14. package/src/components/JfbBaseBackground/JfbBaseBackgroundLess.less +19 -18
  15. package/src/components/JfbBaseBlock/Attr.js +2 -12
  16. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +8 -1
  17. package/src/components/JfbBaseBlock/JfbBaseBlockLess.less +19 -18
  18. package/src/components/JfbBaseBottomNotice/JfbBaseBottomNoticeLess.less +19 -18
  19. package/src/components/JfbBaseCard/Attr.js +36 -78
  20. package/src/components/JfbBaseCard/JfbBaseCard.vue +2 -2
  21. package/src/components/JfbBaseCard/JfbBaseCardLess.less +19 -18
  22. package/src/components/JfbBaseCardBind/JfbBaseCardBindLess.less +19 -18
  23. package/src/components/JfbBaseCardBindV2/Attr.js +4 -5
  24. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +1 -3
  25. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2Less.less +19 -18
  26. package/src/components/JfbBaseCardDetail/Attr.js +3 -4
  27. package/src/components/JfbBaseCardDetail/JfbBaseCardDetailLess.less +19 -18
  28. package/src/components/JfbBaseCardDetailEntry/Attr.js +8 -10
  29. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +13 -4
  30. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntryLess.less +19 -18
  31. package/src/components/JfbBaseCardDisabled/Attr.js +3 -1
  32. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabledLess.less +19 -18
  33. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntryLess.less +19 -18
  34. package/src/components/JfbBaseCardEntry/Api.js +1 -1
  35. package/src/components/JfbBaseCardEntry/Attr.js +67 -86
  36. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +5 -6
  37. package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +19 -18
  38. package/src/components/JfbBaseCardInfo/Attr.js +16 -22
  39. package/src/components/JfbBaseCardInfo/JfbBaseCardInfoLess.less +19 -18
  40. package/src/components/JfbBaseCardInfoEntry/Attr.js +11 -16
  41. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntryLess.less +19 -18
  42. package/src/components/JfbBaseCardMerge/Attr.js +8 -21
  43. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +30 -15
  44. package/src/components/JfbBaseCardMerge/JfbBaseCardMergeLess.less +19 -18
  45. package/src/components/JfbBaseCardMergeEntry/Attr.js +6 -20
  46. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +25 -28
  47. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntryLess.less +19 -18
  48. package/src/components/JfbBaseCardShift/Attr.js +4 -18
  49. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -26
  50. package/src/components/JfbBaseCardShift/JfbBaseCardShiftLess.less +19 -18
  51. package/src/components/JfbBaseCardShiftEntry/Attr.js +26 -34
  52. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +257 -294
  53. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntryLess.less +19 -18
  54. package/src/components/JfbBaseCardShiftEntry/Mock.js +1 -2
  55. package/src/components/JfbBaseCardSweepInfo/Attr.js +3 -5
  56. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfoLess.less +19 -18
  57. package/src/components/JfbBaseCardV2/Attr.js +17 -21
  58. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +5 -3
  59. package/src/components/JfbBaseCardV2/JfbBaseCardV2Less.less +19 -18
  60. package/src/components/JfbBaseCardV3/Attr.js +14 -18
  61. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +1 -1
  62. package/src/components/JfbBaseCardV3/JfbBaseCardV3Less.less +19 -18
  63. package/src/components/JfbBaseCity/Attr.js +4 -2
  64. package/src/components/JfbBaseCity/JfbBaseCityLess.less +19 -18
  65. package/src/components/JfbBaseClear/JfbBaseClear.vue +9 -9
  66. package/src/components/JfbBaseClear/JfbBaseClearLess.less +19 -18
  67. package/src/components/JfbBaseClear/JfbBaseClearMixin.js +0 -12
  68. package/src/components/JfbBaseConDialog/Api.js +2 -2
  69. package/src/components/JfbBaseConDialog/Attr.js +14 -23
  70. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +35 -63
  71. package/src/components/JfbBaseConDialog/JfbBaseConDialogLess.less +19 -18
  72. package/src/components/JfbBaseConDialog/Mock.js +1 -20
  73. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +9 -15
  74. package/src/components/JfbBaseConList/Api.js +1 -1
  75. package/src/components/JfbBaseConList/Attr.js +224 -149
  76. package/src/components/JfbBaseConList/JfbBaseConList.vue +133 -150
  77. package/src/components/JfbBaseConList/JfbBaseConListLess.less +19 -18
  78. package/src/components/JfbBaseConPhone/JfbBaseConPhoneLess.less +19 -18
  79. package/src/components/JfbBaseEntry/Attr.js +21 -33
  80. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +23 -34
  81. package/src/components/JfbBaseEntry/JfbBaseEntryLess.less +19 -18
  82. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetailLess.less +19 -18
  83. package/src/components/JfbBaseFastLink/Api.js +54 -1
  84. package/src/components/JfbBaseFastLink/Attr.js +116 -168
  85. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +16 -12
  86. package/src/components/JfbBaseFastLink/JfbBaseFastLinkLess.less +19 -18
  87. package/src/components/JfbBaseFooter/Attr.js +22 -28
  88. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +15 -19
  89. package/src/components/JfbBaseFooter/JfbBaseFooterLess.less +19 -18
  90. package/src/components/JfbBaseHeader/Attr.js +91 -89
  91. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +29 -28
  92. package/src/components/JfbBaseHeader/JfbBaseHeaderLess.less +19 -18
  93. package/src/components/JfbBaseLine/Attr.js +59 -0
  94. package/src/components/JfbBaseLine/JfbBaseLine.vue +105 -0
  95. package/src/components/JfbBaseLine/JfbBaseLineLess.less +80 -0
  96. package/src/components/JfbBaseLine/JfbBaseLineMixin.js +30 -0
  97. package/src/components/JfbBaseLogin/Api.js +1 -1
  98. package/src/components/JfbBaseLogin/Attr.js +88 -111
  99. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +5 -4
  100. package/src/components/JfbBaseLogin/JfbBaseLoginLess.less +19 -18
  101. package/src/components/JfbBaseLoginForgetPwd/Attr.js +45 -52
  102. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +14 -14
  103. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwdLess.less +19 -18
  104. package/src/components/JfbBaseLoginSetPwd/Attr.js +4 -6
  105. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwdLess.less +19 -18
  106. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlayLess.less +19 -18
  107. package/src/components/JfbBaseMapSearch/Attr.js +15 -0
  108. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +25 -1
  109. package/src/components/JfbBaseMapSearch/JfbBaseMapSearchLess.less +19 -18
  110. package/src/components/JfbBaseMergeUserCard/Attr.js +3 -4
  111. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCardLess.less +19 -18
  112. package/src/components/JfbBaseMultipleExpress/Attr.js +3 -4
  113. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpressLess.less +19 -18
  114. package/src/components/JfbBaseMy/JfbBaseMyLess.less +19 -18
  115. package/src/components/JfbBaseMySetting/Attr.js +1 -1
  116. package/src/components/JfbBaseMySetting/JfbBaseMySettingLess.less +19 -18
  117. package/src/components/JfbBaseNotice/Attr.js +58 -109
  118. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +54 -82
  119. package/src/components/JfbBaseNotice/JfbBaseNoticeLess.less +19 -18
  120. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottomLess.less +19 -18
  121. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTopLess.less +19 -18
  122. package/src/components/JfbBaseOrderDetail/Attr.js +193 -210
  123. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +3 -5
  124. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetailLess.less +19 -18
  125. package/src/components/JfbBaseOrderList/Attr.js +44 -56
  126. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +3 -5
  127. package/src/components/JfbBaseOrderList/JfbBaseOrderListLess.less +19 -18
  128. package/src/components/JfbBasePay/Attr.js +13 -2
  129. package/src/components/JfbBasePay/JfbBasePay.vue +6 -7
  130. package/src/components/JfbBasePay/JfbBasePayLess.less +19 -18
  131. package/src/components/JfbBasePay/Mock.js +1 -2
  132. package/src/components/JfbBasePhoneCollect/Attr.js +2 -27
  133. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +1 -1
  134. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollectLess.less +19 -18
  135. package/src/components/JfbBasePhoneLogin/Attr.js +2 -27
  136. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLoginLess.less +19 -18
  137. package/src/components/JfbBasePoster/Attr.js +83 -103
  138. package/src/components/JfbBasePoster/JfbBasePoster.vue +143 -141
  139. package/src/components/JfbBasePoster/JfbBasePosterLess.less +19 -18
  140. package/src/components/JfbBasePoster/MoreScreen.vue +2 -7
  141. package/src/components/JfbBasePosterBigSmall/Attr.js +76 -93
  142. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +9 -10
  143. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmallLess.less +19 -18
  144. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +2 -2
  145. package/src/components/JfbBasePosterEntry/Attr.js +34 -47
  146. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +51 -52
  147. package/src/components/JfbBasePosterEntry/JfbBasePosterEntryLess.less +19 -18
  148. package/src/components/JfbBasePosterType/Attr.js +48 -82
  149. package/src/components/JfbBasePosterType/FourScreen.vue +4 -14
  150. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +59 -36
  151. package/src/components/JfbBasePosterType/JfbBasePosterTypeLess.less +19 -18
  152. package/src/components/JfbBasePosterType/Screen.vue +284 -0
  153. package/src/components/JfbBaseRecharge/Attr.js +23 -35
  154. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +8 -54
  155. package/src/components/JfbBaseRecharge/JfbBaseRechargeLess.less +19 -18
  156. package/src/components/JfbBaseRechargeOrder/Attr.js +22 -32
  157. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +7 -12
  158. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrderLess.less +19 -18
  159. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetailLess.less +19 -18
  160. package/src/components/JfbBaseRechargeSuccess/Attr.js +8 -10
  161. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccessLess.less +19 -18
  162. package/src/components/JfbBaseSearch/Api.js +60 -0
  163. package/src/components/JfbBaseSearch/Attr.js +148 -6
  164. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +37 -8
  165. package/src/components/JfbBaseSearch/JfbBaseSearchLess.less +19 -18
  166. package/src/components/JfbBaseSearch/Mock.js +5 -0
  167. package/src/components/JfbBaseSetPwd/Attr.js +147 -6
  168. package/src/components/JfbBaseSetPwd/JfbBaseSetPwdLess.less +19 -18
  169. package/src/components/JfbBaseSuccess/Attr.js +19 -89
  170. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +24 -46
  171. package/src/components/JfbBaseSuccess/JfbBaseSuccessLess.less +19 -18
  172. package/src/components/JfbBaseSuccess/Mock.js +0 -8
  173. package/src/components/JfbBaseTestApi/JfbBaseTestApi.vue +9 -9
  174. package/src/components/JfbBaseTestApi/JfbBaseTestApiLess.less +19 -18
  175. package/src/components/JfbBaseTestBody/JfbBaseTestBodyLess.less +19 -18
  176. package/src/components/JfbBaseTestBottom/JfbBaseTestBottomLess.less +19 -18
  177. package/src/components/JfbBaseTestNotice/JfbBaseTestNoticeLess.less +19 -18
  178. package/src/components/JfbBaseTestTop/JfbBaseTestTopLess.less +19 -18
  179. package/src/components/JfbBaseUserCenter/Attr.js +53 -72
  180. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +27 -40
  181. package/src/components/JfbBaseUserCenter/JfbBaseUserCenterLess.less +19 -18
  182. package/src/components/JfbBaseUserInfo/Attr.js +45 -54
  183. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +21 -21
  184. package/src/components/JfbBaseUserInfo/JfbBaseUserInfoLess.less +19 -18
  185. package/src/components/JfbBaseUserOrder/Attr.js +94 -119
  186. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +7 -21
  187. package/src/components/JfbBaseUserOrder/JfbBaseUserOrderLess.less +19 -18
  188. package/src/components/JfbBaseVideo/Attr.js +19 -72
  189. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +28 -69
  190. package/src/components/JfbBaseVideo/JfbBaseVideoLess.less +19 -18
  191. package/src/components/JfbBaseVideo/XdVideo.vue +44 -6
  192. package/src/components/JfbBaseWallet/Attr.js +19 -27
  193. package/src/components/JfbBaseWallet/JfbBaseWalletLess.less +19 -18
  194. package/src/components/JfbBaseWalletDetail/Attr.js +6 -2
  195. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetailLess.less +19 -18
  196. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffectiveLess.less +19 -18
  197. package/src/components/JfbBaseWalletIndex/Attr.js +1 -3
  198. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndexLess.less +19 -18
  199. package/src/components/JfbBaseWalletItem/Attr.js +1 -3
  200. package/src/components/JfbBaseWalletItem/JfbBaseWalletItemLess.less +19 -18
  201. package/src/components/JfbBaseWebview/JfbBaseWebviewLess.less +19 -18
  202. package/src/components/JfbBaseWxAuthorize/Api.js +3 -3
  203. package/src/components/JfbBaseWxAuthorize/Attr.js +3 -31
  204. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +28 -34
  205. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorizeLess.less +19 -18
  206. package/src/components/JfbBaseWxAuthorizeError/Attr.js +17 -21
  207. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -4
  208. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeErrorLess.less +19 -18
  209. package/src/components/JfbBaseCardShift/Mock.js +0 -21
  210. package/src/components/JfbBaseClear/Attr.js +0 -17
@@ -14,29 +14,16 @@
14
14
  </view>
15
15
  <!-- #endif -->
16
16
  <view class="jfb-base-video__body">
17
- <view class="x-line"></view>
18
- <view
19
- class="x-video"
20
- :style="{
21
- backgroundColor:bgColor,
22
- margin:outMargin,
23
- borderRadius:radius + 'rpx',
24
- padding:outPadding,
25
- width: contentWidth + 'rpx',
26
- height:contentHeight + 'rpx'
27
- }"
28
- >
29
-
17
+ <view class="float"></view>
18
+ <view class="video" v-if="video !== null">
30
19
  <xd-video
31
- v-if="video !== null && video !== ''"
32
20
  :key="videoKey"
21
+ :margin="margin"
33
22
  :poster="videoSetting"
34
23
  :video="video"
24
+ :radius="radius"
35
25
  :pack-this="$vm"
36
26
  ></xd-video>
37
- <view class="not-video" v-if="video === ''">
38
- <image :src="getVideoSrc"></image>
39
- </view>
40
27
  </view>
41
28
  </view>
42
29
  </view>
@@ -68,10 +55,6 @@
68
55
  video: null,
69
56
  videoSetting: null,
70
57
  margin:{},
71
- padding:{},
72
- height:0,
73
- width:750,
74
- bgColor:'',
75
58
  radius:0,
76
59
  $vm: {},
77
60
  videoKey : Date.now()
@@ -84,51 +67,39 @@
84
67
  if(this.autoplay === 'R') return 'iconplayreplay';
85
68
  },
86
69
  contentWidth(){
87
- let margin = Number(this.checkValue(this.margin.left, 0)) + Number(this.checkValue(this.margin.right, 0));
88
- let padding = Number(this.checkValue(this.padding.left, 0)) + Number(this.checkValue(this.padding.right, 0));
89
70
  let border = 0;
90
- //if(this.isPreview) border = 2;
91
- return this.width - (padding + margin + border);
71
+ if(this.isPreview) border = 2;
72
+ return 750 - (this.margin.left + this.margin.right + border);
92
73
  },
93
74
  contentHeight(){
94
- let margin = Number(this.checkValue(this.margin.left, 0)) + Number(this.checkValue(this.margin.right, 0));
95
- let padding = Number(this.checkValue(this.padding.left, 0)) + Number(this.checkValue(this.padding.right, 0));
96
75
  let border = 0;
97
- //if(this.isPreview) border = 2;
98
- let winWidth = this.width - (padding + margin + border);
76
+ if(this.isPreview) border = 2;
77
+ let winWidth = 750 - ((this.margin.left||0) + (this.margin.right||0) + border);
99
78
  return winWidth * this.height/this.width;
100
79
  },
80
+
101
81
  outMargin(){
102
- let str = `${this.checkValue(this.margin.top, 0)}rpx`;
103
- str = `${str} ${this.checkValue(this.margin.right, 0)}rpx`;
104
- str = `${str} ${this.checkValue(this.margin.bottom, 0)}rpx`;
105
- str = `${str} ${this.checkValue(this.margin.left, 0)}rpx`;
106
- return str
107
- },
108
- outPadding(){
109
- let str = `${this.checkValue(this.padding.top, 0)}rpx`;
110
- str = `${str} ${this.checkValue(this.padding.right, 0)}rpx`;
111
- str = `${str} ${this.checkValue(this.padding.bottom, 0)}rpx`;
112
- str = `${str} ${this.checkValue(this.padding.left, 0)}rpx`;
113
- return str
114
- },
115
- getVideoSrc(){
116
- let width = Math.floor(this.contentWidth * this.$rpxNum);
117
- let height = Math.floor(this.contentHeight * this.$rpxNum);
118
- return `//dummyimage.com/${width}x${height}`;
82
+ let margin = `${this.margin.top !== null ? this.margin.top : 0}rpx`;
83
+ margin = `${margin} ${this.margin.right !== null ? this.margin.right : 0}rpx`;
84
+ margin = `${margin} ${this.margin.bottom !== null ? this.margin.bottom :0}rpx`;
85
+ margin = `${margin} ${this.margin.left !== null ? this.margin.left : 0}rpx`;
86
+ return margin;
119
87
  }
120
88
  },
121
89
  watch: {
122
- container(value, oloValue) {
123
- if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
90
+ container(value) {
124
91
  this.init(value);
125
- if (this.$configProject['isPreview']) this.onJfbLoad(this.options)
92
+ if(this.timer) clearTimeout(this.timer);
93
+ this.timer = setTimeout(()=>{
94
+ if (this.$configProject['isPreview']) this.onJfbLoad(this.options)
95
+ }, 400)
126
96
  }
127
97
  },
128
98
  created() {
129
99
  this.$vm = this;
130
100
  this.isPreview = this.$configProject.isPreview;
131
101
  this.init(this.container);
102
+
132
103
  },
133
104
  methods: {
134
105
 
@@ -138,14 +109,8 @@
138
109
  */
139
110
  init(container) {
140
111
  this.videoSetting = getContainerPropsValue(container, 'content.video', {size:{width: 400, height: 300}, type: '1'});
141
- if(this.videoSetting && this.videoSetting.size && this.videoSetting.size.height) {
142
- this.height = Number(this.videoSetting.size.height) || 563;
143
- this.width = 750;
144
- }
145
- this.margin = getContainerPropsValue(container, 'content.margin', {});
146
- this.padding = getContainerPropsValue(container, 'content.padding', {});
112
+ this.margin = getContainerPropsValue(container, 'content.margin', {top:0, bottom:0, right:0, left: 0});
147
113
  this.radius = getContainerPropsValue(container, 'content.radius', 0);
148
- this.bgColor = getContainerPropsValue(container, 'content.bgColor', 'rgba(0,0,0,0)');
149
114
  },
150
115
 
151
116
  onJfbLoad(options) {
@@ -162,7 +127,6 @@
162
127
  if(res && res.list && res.list.length > 0) {
163
128
  this.video = res.list[0];
164
129
  }
165
- else this.video = '';
166
130
  this.videoKey = Date.now()
167
131
  })
168
132
  .catch(error => {
@@ -184,20 +148,15 @@
184
148
 
185
149
  .jfb-base-video {
186
150
  &__body{
187
- .x-video {
188
- overflow: hidden;
189
- }
190
151
 
191
- .not-video {
192
- width: 100%;
193
- height: 100%;
194
-
195
- & > image {
196
- width: 100%;
197
- height: 100%;
198
- }
199
- }
200
152
  }
153
+
154
+ }
155
+
156
+ .float {
157
+ height: 1px;
158
+ width: 100%;
159
+ overflow: hidden;
201
160
  }
202
161
 
203
162
  </style>
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-video {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
16
17
  box-sizing: border-box;
17
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
18
19
 
19
20
  &__body{
20
21
  position: relative;
@@ -22,21 +23,21 @@
22
23
  z-index: 2
23
24
  }
24
25
 
25
- &.editx,&:hover {
26
+ &.editx {
26
27
  position: relative;
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
39
33
 
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
40
41
  }
41
42
 
42
43
 
@@ -71,9 +72,9 @@
71
72
 
72
73
  /**notPreview**/
73
74
  .jfb-base-video {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -1,6 +1,18 @@
1
1
  <template>
2
- <view class="video-box">
3
- <view class="thumb" :class="{noImageUrl: !imageUrl}" v-if="!playStatus">
2
+ <view
3
+ class="video-box"
4
+ :style="{
5
+ width: contentWidth + 'rpx',
6
+ height:contentHeight + 'rpx',
7
+ margin: outMargin
8
+ }"
9
+ >
10
+ <view
11
+ class="thumb"
12
+ :class="{noImageUrl: !imageUrl}"
13
+ v-if="!playStatus"
14
+ :style="{borderRadius: radius + 'rpx'}"
15
+ >
4
16
  <image :src="imageUrl" v-if="imageUrl" />
5
17
  <view v-if="videoUrl" @click="handlePlay()">
6
18
  <xd-font-icon
@@ -8,6 +20,7 @@
8
20
  size="100"
9
21
  color="#fff"
10
22
  ></xd-font-icon>
23
+
11
24
  </view>
12
25
  </view>
13
26
  <view
@@ -39,7 +52,12 @@
39
52
  margin:{
40
53
  type: Object,
41
54
  default(){
42
- return {}
55
+ return {
56
+ top:0,
57
+ left:0,
58
+ right:0,
59
+ bottom:0
60
+ }
43
61
  }
44
62
  },
45
63
  poster:{
@@ -63,6 +81,10 @@
63
81
  return {
64
82
  isPreview: false,
65
83
 
84
+ //css
85
+ width: 0,
86
+ height: 0,
87
+
66
88
  //play
67
89
  imageUrl: '',
68
90
  videoUrl: '',
@@ -76,6 +98,25 @@
76
98
  if(this.autoplay === 'E') return 'iconshibai';
77
99
  if(this.autoplay === 'R') return 'iconplayreplay';
78
100
  },
101
+ contentWidth(){
102
+ let border = 0;
103
+ if(this.isPreview) border = 2;
104
+ return 750 - (this.margin.left + this.margin.right + border);
105
+ },
106
+ contentHeight(){
107
+ let border = 0;
108
+ if(this.isPreview) border = 2;
109
+ let winWidth = 750 - ((this.margin.left||0) + (this.margin.right||0) + border);
110
+ return winWidth * this.height/this.width;
111
+ },
112
+
113
+ outMargin(){
114
+ let margin = `${this.margin.top !== null ? this.margin.top : 0}rpx`;
115
+ margin = `${margin} ${this.margin.right !== null ? this.margin.right : 0}rpx`;
116
+ margin = `${margin} ${this.margin.bottom !== null ? this.margin.bottom :0}rpx`;
117
+ margin = `${margin} ${this.margin.left !== null ? this.margin.left : 0}rpx`;
118
+ return margin;
119
+ }
79
120
  },
80
121
  watch:{
81
122
  poster(){
@@ -132,9 +173,6 @@
132
173
 
133
174
  <style scoped lang="less">
134
175
  .video-box {
135
- width: 100%;
136
- height: 100%;
137
- box-sizing: border-box;
138
176
  view.noImageUrl {
139
177
  background: rgba(0,0,0,.6);
140
178
  }
@@ -11,7 +11,6 @@ export default {
11
11
  label: '更改分类label(可排序):',
12
12
  ele: 'xd-set-sort-label',
13
13
  valueKey: 'newLabel',
14
- groupKey:'content',
15
14
  value: data['newLabel'] || null,
16
15
  disabled: false,
17
16
  defaultValue: data['newLabel'],
@@ -21,7 +20,7 @@ export default {
21
20
  label: "票券",
22
21
  value: 'card',
23
22
  sort: 1
24
- },
23
+ },
25
24
  {
26
25
  icon: "iconyuanbao",
27
26
  label: "元宝",
@@ -40,41 +39,36 @@ export default {
40
39
  label: '是否展示票券入口:',
41
40
  ele: 'xd-radio',
42
41
  valueKey: 'isCard',
43
- groupKey:'content',
44
42
  value: data['isCard'] || 'Y',
45
43
  list: [
46
44
  { "label": "是", "value": 'Y' },
47
45
  { "label": "否", "value": 'N' },
48
46
  ]
49
47
  },
50
-
48
+ {
49
+ label: '票券跳转路径:',
50
+ ele: 'xd-select-pages-path',
51
+ valueKey: 'cardPath',
52
+ value: data['cardPath'] || {},
53
+ setting: {
54
+ router: XdBus.getParentApi('getPagesTree')
55
+ },
56
+ inline: false,
57
+ },
51
58
  {
52
59
  label: '是否展示元宝入口:',
53
60
  ele: 'xd-radio',
54
61
  valueKey: 'isYuanbao',
55
- groupKey:'content',
56
62
  value: data['isYuanbao'] || 'Y',
57
63
  list: [
58
64
  { "label": "是", "value": 'Y' },
59
65
  { "label": "否", "value": 'N' },
60
66
  ]
61
67
  },
62
- {
63
- label: '是否展示积分入口:',
64
- ele: 'xd-radio',
65
- valueKey: 'isIntegral',
66
- groupKey:'content',
67
- value: data['isIntegral'] || 'Y',
68
- list: [
69
- { "label": "是", "value": 'Y' },
70
- { "label": "否", "value": 'N' },
71
- ]
72
- },
73
68
  {
74
69
  label: '元宝跳转路径:',
75
70
  ele: 'xd-select-pages-path',
76
71
  valueKey: 'yuanbaoPath',
77
- groupKey:'advanced',
78
72
  value: data['yuanbaoPath'] || {},
79
73
  setting: {
80
74
  router: XdBus.getParentApi('getPagesTree')
@@ -82,20 +76,18 @@ export default {
82
76
  inline: false,
83
77
  },
84
78
  {
85
- label: '票券跳转路径:',
86
- ele: 'xd-select-pages-path',
87
- valueKey: 'cardPath',
88
- groupKey:'advanced',
89
- value: data['cardPath'] || {},
90
- setting: {
91
- router: XdBus.getParentApi('getPagesTree')
92
- },
93
- inline: false,
79
+ label: '是否展示积分入口:',
80
+ ele: 'xd-radio',
81
+ valueKey: 'isIntegral',
82
+ value: data['isIntegral'] || 'Y',
83
+ list: [
84
+ { "label": "是", "value": 'Y' },
85
+ { "label": "否", "value": 'N' },
86
+ ]
94
87
  },
95
88
  {
96
89
  label: '积分跳转路径:',
97
90
  ele: 'xd-select-pages-path',
98
- groupKey:'advanced',
99
91
  valueKey: 'integralPath',
100
92
  value: data['integralPath'] || {},
101
93
  setting: {
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-wallet {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
16
17
  box-sizing: border-box;
17
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
18
19
 
19
20
  &__body{
20
21
  position: relative;
@@ -22,21 +23,21 @@
22
23
  z-index: 2
23
24
  }
24
25
 
25
- &.editx,&:hover {
26
+ &.editx {
26
27
  position: relative;
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
39
33
 
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
40
41
  }
41
42
 
42
43
 
@@ -71,9 +72,9 @@
71
72
 
72
73
  /**notPreview**/
73
74
  .jfb-base-wallet {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -6,7 +6,11 @@
6
6
  export default {
7
7
  style: [],
8
8
  content: (data) => {
9
- return [].filter(i=>i)
9
+ return [
10
+
11
+ ].filter(i=>i)
10
12
  },
11
- advanced: [],
13
+ advanced: [
14
+ ],
12
15
  };
16
+
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-wallet-detail {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
16
17
  box-sizing: border-box;
17
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
18
19
 
19
20
  &__body{
20
21
  position: relative;
@@ -22,21 +23,21 @@
22
23
  z-index: 2
23
24
  }
24
25
 
25
- &.editx,&:hover {
26
+ &.editx {
26
27
  position: relative;
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
39
33
 
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
40
41
  }
41
42
 
42
43
 
@@ -71,9 +72,9 @@
71
72
 
72
73
  /**notPreview**/
73
74
  .jfb-base-wallet-detail {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-wallet-effective {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
16
17
  box-sizing: border-box;
17
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
18
19
 
19
20
  &__body{
20
21
  position: relative;
@@ -22,21 +23,21 @@
22
23
  z-index: 2
23
24
  }
24
25
 
25
- &.editx,&:hover {
26
+ &.editx {
26
27
  position: relative;
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
39
33
 
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
40
41
  }
41
42
 
42
43
 
@@ -71,9 +72,9 @@
71
72
 
72
73
  /**notPreview**/
73
74
  .jfb-base-wallet-effective {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/
@@ -11,17 +11,15 @@ export default {
11
11
  label: '钱包详情跳转路径:',
12
12
  ele: 'xd-select-pages-path',
13
13
  valueKey: 'walletDetailPath',
14
- groupKey:'advanced',
15
14
  value: data['walletDetailPath'] || {},
16
15
  setting: {
17
16
  router: XdBus.getParentApi('getPagesTree')
18
17
  },
19
18
  inline: false,
20
- },
19
+ },
21
20
  {
22
21
  label: '账单详情跳转路径:',
23
22
  ele: 'xd-select-pages-path',
24
- groupKey:'advanced',
25
23
  valueKey: 'billDetailPath',
26
24
  value: data['billDetailPath'] || {},
27
25
  setting: {
@@ -13,8 +13,9 @@
13
13
 
14
14
  //start
15
15
  .jfb-base-wallet-index {
16
+ border: 1px dashed rgba(0, 0, 0, 0);
16
17
  box-sizing: border-box;
17
- min-height: unit(100, rpx);
18
+ min-height: unit(50, rpx);
18
19
 
19
20
  &__body{
20
21
  position: relative;
@@ -22,21 +23,21 @@
22
23
  z-index: 2
23
24
  }
24
25
 
25
- &.editx,&:hover {
26
+ &.editx {
26
27
  position: relative;
27
- z-index: 3;
28
- &::after {
29
- border: 2rpx dashed blue;
30
- content: " ";
31
- position: absolute;
32
- top:0;
33
- left:0;
34
- bottom:0;
35
- right:0;
36
- z-index: 4;
37
- cursor: pointer;
38
- }
28
+ border: 1px dashed blue;
29
+ box-sizing: border-box;
30
+ z-index: 3
31
+
32
+ }
39
33
 
34
+ &:hover {
35
+ border: 1px dashed blue;
36
+ }
37
+
38
+ &.noBorder {
39
+ border-color: rgba(0,0,0,0);
40
+ border-width: 0;
40
41
  }
41
42
 
42
43
 
@@ -71,9 +72,9 @@
71
72
 
72
73
  /**notPreview**/
73
74
  .jfb-base-wallet-index {
74
- //&:before {
75
- //content: " ";
76
- //display: table;
77
- //}
75
+ &:before {
76
+ content: " ";
77
+ display: table;
78
+ }
78
79
  }
79
80
  /**endNotPreview**/