jufubao-base 1.0.232-beta2 → 1.0.232-beta4

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 (95) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBalance/Api.js +58 -0
  3. package/src/components/JfbBaseBalance/Attr.js +48 -0
  4. package/src/components/JfbBaseBalance/JfbBaseBalance.vue +111 -0
  5. package/src/components/JfbBaseBalance/JfbBaseBalanceLess.less +79 -0
  6. package/src/components/JfbBaseBalance/JfbBaseBalanceMixin.js +30 -0
  7. package/src/components/JfbBaseBalance/Mock.js +13 -0
  8. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +30 -29
  9. package/src/components/JfbBaseCodeOpenVip/Api.js +58 -0
  10. package/src/components/JfbBaseCodeOpenVip/Attr.js +250 -0
  11. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVip.vue +213 -0
  12. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipLess.less +79 -0
  13. package/src/components/JfbBaseCodeOpenVip/JfbBaseCodeOpenVipMixin.js +30 -0
  14. package/src/components/JfbBaseCodeOpenVip/Mock.js +13 -0
  15. package/src/components/JfbBaseConsumpCode/Api.js +58 -0
  16. package/src/components/JfbBaseConsumpCode/Attr.js +48 -0
  17. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +657 -0
  18. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeLess.less +79 -0
  19. package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCodeMixin.js +30 -0
  20. package/src/components/JfbBaseConsumpCode/Mock.js +13 -0
  21. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +16 -7
  22. package/src/components/JfbBaseOpenVip/Api.js +58 -0
  23. package/src/components/JfbBaseOpenVip/Attr.js +250 -0
  24. package/src/components/JfbBaseOpenVip/JfbBaseOpenVip.vue +363 -0
  25. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipLess.less +79 -0
  26. package/src/components/JfbBaseOpenVip/JfbBaseOpenVipMixin.js +30 -0
  27. package/src/components/JfbBaseOpenVip/Mock.js +13 -0
  28. package/src/components/JfbBaseOpenVip/XdVipList.vue +81 -0
  29. package/src/components/JfbBaseOpenVipCard/Api.js +58 -0
  30. package/src/components/JfbBaseOpenVipCard/Attr.js +48 -0
  31. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCard.vue +111 -0
  32. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardLess.less +79 -0
  33. package/src/components/JfbBaseOpenVipCard/JfbBaseOpenVipCardMixin.js +30 -0
  34. package/src/components/JfbBaseOpenVipCard/Mock.js +13 -0
  35. package/src/components/JfbBaseOpenVipDetail/Api.js +58 -0
  36. package/src/components/JfbBaseOpenVipDetail/Attr.js +48 -0
  37. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetail.vue +140 -0
  38. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailLess.less +79 -0
  39. package/src/components/JfbBaseOpenVipDetail/JfbBaseOpenVipDetailMixin.js +30 -0
  40. package/src/components/JfbBaseOpenVipDetail/Mock.js +13 -0
  41. package/src/components/JfbBasePersonalData/Api.js +58 -0
  42. package/src/components/JfbBasePersonalData/Attr.js +48 -0
  43. package/src/components/JfbBasePersonalData/JfbBasePersonalData.vue +111 -0
  44. package/src/components/JfbBasePersonalData/JfbBasePersonalDataLess.less +79 -0
  45. package/src/components/JfbBasePersonalData/JfbBasePersonalDataMixin.js +30 -0
  46. package/src/components/JfbBasePersonalData/Mock.js +13 -0
  47. package/src/components/JfbBasePointsCard/Api.js +58 -0
  48. package/src/components/JfbBasePointsCard/Attr.js +223 -0
  49. package/src/components/JfbBasePointsCard/JfbBasePointsCard.vue +291 -0
  50. package/src/components/JfbBasePointsCard/JfbBasePointsCardLess.less +79 -0
  51. package/src/components/JfbBasePointsCard/JfbBasePointsCardMixin.js +30 -0
  52. package/src/components/JfbBasePointsCard/Mock.js +13 -0
  53. package/src/components/JfbBasePointsDetail/Api.js +23 -0
  54. package/src/components/JfbBasePointsDetail/Attr.js +304 -0
  55. package/src/components/JfbBasePointsDetail/JfbBasePointsDetail.vue +221 -0
  56. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailLess.less +79 -0
  57. package/src/components/JfbBasePointsDetail/JfbBasePointsDetailMixin.js +30 -0
  58. package/src/components/JfbBasePointsDetail/Mock.js +13 -0
  59. package/src/components/JfbBaseRechargeOrder/Api.js +3 -13
  60. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +16 -34
  61. package/src/components/JfbBaseSavingDetail/Api.js +58 -0
  62. package/src/components/JfbBaseSavingDetail/Attr.js +48 -0
  63. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetail.vue +111 -0
  64. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailLess.less +79 -0
  65. package/src/components/JfbBaseSavingDetail/JfbBaseSavingDetailMixin.js +30 -0
  66. package/src/components/JfbBaseSavingDetail/Mock.js +13 -0
  67. package/src/components/JfbBaseShare/Api.js +58 -0
  68. package/src/components/JfbBaseShare/Attr.js +48 -0
  69. package/src/components/JfbBaseShare/JfbBaseShare.vue +217 -0
  70. package/src/components/JfbBaseShare/JfbBaseShareLess.less +79 -0
  71. package/src/components/JfbBaseShare/JfbBaseShareMixin.js +30 -0
  72. package/src/components/JfbBaseShare/Mock.js +13 -0
  73. package/src/components/JfbBaseTfkSearch/Attr.js +8 -82
  74. package/src/components/JfbBaseTfkSearch/ContentProduct.vue +13 -5
  75. package/src/components/JfbBaseTfkSearch/JfbBaseTfkSearch.vue +1 -1
  76. package/src/components/JfbBaseUserInfo/Attr.js +102 -10
  77. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +301 -114
  78. package/src/components/JfbBaseWithDrawAgain/Api.js +58 -0
  79. package/src/components/JfbBaseWithDrawAgain/Attr.js +48 -0
  80. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgain.vue +111 -0
  81. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainLess.less +79 -0
  82. package/src/components/JfbBaseWithDrawAgain/JfbBaseWithDrawAgainMixin.js +30 -0
  83. package/src/components/JfbBaseWithDrawAgain/Mock.js +13 -0
  84. package/src/components/JfbBaseWithDrawRecord/Api.js +58 -0
  85. package/src/components/JfbBaseWithDrawRecord/Attr.js +48 -0
  86. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecord.vue +111 -0
  87. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordLess.less +79 -0
  88. package/src/components/JfbBaseWithDrawRecord/JfbBaseWithDrawRecordMixin.js +30 -0
  89. package/src/components/JfbBaseWithDrawRecord/Mock.js +13 -0
  90. package/src/components/JfbBaseWithdraw/Api.js +58 -0
  91. package/src/components/JfbBaseWithdraw/Attr.js +48 -0
  92. package/src/components/JfbBaseWithdraw/JfbBaseWithdraw.vue +111 -0
  93. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawLess.less +79 -0
  94. package/src/components/JfbBaseWithdraw/JfbBaseWithdrawMixin.js +30 -0
  95. package/src/components/JfbBaseWithdraw/Mock.js +13 -0
@@ -0,0 +1,363 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-open-vip"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-open-vip__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-open-vip__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-open-vip__body" :style="[bodyStyle]">
17
+ <!-- 用户信息 -->
18
+ <view class="u_header">
19
+ <view class="u_avatar"></view>
20
+ <view class="u_info">
21
+ <view class="u_info-top">
22
+ <view class="vip_name">黑白灰</view>
23
+ <view v-if="0" class="vip_level">普通用户</view>
24
+ <view v-else class="vip_level plus">PLUS会员</view>
25
+ </view>
26
+ <view class="u_sub">
27
+ <view>138****7353</view>
28
+ </view>
29
+ </view>
30
+ <view class="buy_btn" @click="showDrawer=true">立即续费</view>
31
+ </view>
32
+
33
+ <!-- plus会员权益 -->
34
+ <view class="vip_info">
35
+ <view class="vip_box">
36
+ <view class="vip_box-left">
37
+ <view class="vip_box-title">PLUS会员</view>
38
+ <view>开通享受更多权益</view>
39
+ </view>
40
+ <view class="vip_logo"></view>
41
+ </view>
42
+ <view class="vip_banner">
43
+ <view class="banner_item" v-for="i in 4" :key="i">
44
+ <view class="banner_img"></view>
45
+ <view class="banner_text">生日祝福</view>
46
+ </view>
47
+ </view>
48
+ <view class="vip_good">
49
+ <view class="vip_good-title">
50
+ <text class="_text">4大特权</text>
51
+ <view class="line"></view>
52
+ </view>
53
+ <view class="good_list">
54
+ <view class="good_item" v-for="i in 4" :key="i">
55
+ <view class="good_title">
56
+ <view class="good_title-tag">特权福利1</view>
57
+ <view>生日祝福</view>
58
+ </view>
59
+ <view class="good_cont">平台会在生日当天为用户发放专属的生日祝福</view>
60
+ </view>
61
+ </view>
62
+ </view>
63
+ </view>
64
+
65
+ <xd-vip-list @handlePrivacy="handlePrivacy"></xd-vip-list>
66
+
67
+ <xd-down-drawer :show.sync="showDrawer" height="480rpx">
68
+ <view class="drawer_title">立即续费</view>
69
+ <xd-vip-list @handlePrivacy="handlePrivacy"></xd-vip-list>
70
+ </xd-down-drawer>
71
+
72
+ </view>
73
+ </view>
74
+ </template>
75
+
76
+ <script>
77
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
78
+ import XdButton from "@/components/XdButton/XdButton";
79
+ import XdVipList from "./XdVipList.vue";
80
+ import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer.vue"
81
+ import { jfbRootExec } from "@/utils/xd.event";
82
+ import JfbBaseOpenVipMixin from "./JfbBaseOpenVipMixin";
83
+ import { getContainerPropsValue } from "@/utils/xd.base";
84
+ import componentsMixins from "@/mixins/componentsMixins";
85
+ import extsMixins from "@/mixins/extsMixins";
86
+
87
+ export default {
88
+ name: "JfbBaseOpenVip",
89
+ components: {
90
+ XdFontIcon,
91
+ XdButton,
92
+ XdVipList,
93
+ XdDownDrawer
94
+ },
95
+ mixins: [
96
+ componentsMixins, extsMixins, JfbBaseOpenVipMixin
97
+ ],
98
+ data() {
99
+ return {
100
+ //hideMask: true,
101
+
102
+ showDrawer: false,
103
+ //todo
104
+ payPath: "",
105
+ }
106
+ },
107
+ computed: {
108
+ bodyStyle(){
109
+ return {
110
+ minHeight: this.layoutInfo.bodyMinHeightRpx + "rpx",
111
+ '--main-color': this.mainColor
112
+ }
113
+ }
114
+ },
115
+ watch: {
116
+ container(value, oldValue) {
117
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
118
+ if (this.$configProject['isPreview']) this.init(value)
119
+ },
120
+ },
121
+ created() {
122
+ this.init(this.container);
123
+
124
+ //todo
125
+ },
126
+ methods: {
127
+ onJfbLoad(options) {
128
+
129
+ // jfbRootExec('baiduUserLogin', {
130
+
131
+ // vm: this,// data: {
132
+
133
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
134
+
135
+ // }
136
+
137
+ // }).then().catch()
138
+ },
139
+ /**
140
+ * @description 监听事件变化
141
+ * @param container {object} 业务组件对象自己
142
+ */
143
+ init(container) {
144
+ this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
145
+ },
146
+ handlePrivacy(code){
147
+ let params = `page_id=${this.pageAttr["page_id"]}`;
148
+ params = `${params}&container_id=${this.containerId}${code}`;
149
+ this.$xdUniHelper.navigateTo({
150
+ url: `/pages/content/content?${params}`
151
+ })
152
+ },
153
+ onJfbScroll(options) {
154
+ console.log('event.onJfbScroll', options)
155
+ },
156
+ onJfbReachBottom(options) {
157
+ console.log('event.onJfbReachBottom', options)
158
+ },
159
+ onJfbShow(options) {
160
+ console.log('event.onJfbShow', options)
161
+ },
162
+ onJfbHide(options) {
163
+ console.log('event.onJfbHide', options)
164
+ },
165
+ onJfbBack(options) {
166
+ console.log('event.onJfbBack', options)
167
+ },
168
+ onJfbUpdate(...data) {
169
+ console.log('event.onJfbUpdate', data)
170
+ },
171
+ onJfbCustomEvent(options) {
172
+ console.log('event.onJfbReachBottom', options)
173
+ },
174
+ }
175
+ }
176
+
177
+ </script>
178
+
179
+ <style scoped lang="less">
180
+ @import "./JfbBaseOpenVipLess.less";
181
+
182
+ .jfb-base-open-vip {
183
+ &__body{
184
+ .u_header{
185
+ display: flex;
186
+ align-items: center;
187
+ padding: 24rpx 40rpx;
188
+ margin: 20rpx;
189
+
190
+ .u_avatar{
191
+ width: 120rpx;
192
+ height: 120rpx;
193
+ background-color: #f00;
194
+ border-radius: 120rpx;
195
+ margin-right: 24rpx;
196
+ }
197
+ .u_info{
198
+ flex:1;
199
+ &-top{
200
+ display: flex;
201
+ align-items: center;
202
+ .vip_name{
203
+ font-size: 28rpx;
204
+ color: #333333;
205
+ }
206
+ .vip_level{
207
+ padding: 4rpx 16rpx;
208
+ border-radius: 24rpx;
209
+ font-size: 24rpx;
210
+ background-color: #FFE6C4;
211
+ color: #615850;
212
+ margin-left: 8rpx;
213
+ &.plus{
214
+ background: linear-gradient(180deg, #615243 0%, #2D2824 100%);
215
+ color: #FFEFD7;
216
+ }
217
+ }
218
+ }
219
+ .u_sub{
220
+ margin-top: 24rpx;
221
+ }
222
+ }
223
+ .buy_btn{
224
+ width: 146rpx;
225
+ height: 60rpx;
226
+ background-color: var(--main-color);
227
+ color: #fff;
228
+ border-radius: 60rpx;
229
+ line-height: 60rpx;
230
+ text-align: center;
231
+ font-size: 24rpx;
232
+ }
233
+ }
234
+
235
+ .vip_info{
236
+ padding: 20rpx;
237
+ .vip_box{
238
+ width: 100%;
239
+ height: 184rpx;
240
+ border-radius: 24rpx;
241
+ background: linear-gradient(90deg, #E8A841 0%, #FAD48E 100%);
242
+ display: flex;
243
+ align-items: center;
244
+ justify-content: space-between;
245
+ padding: 40rpx;
246
+ box-sizing: border-box;
247
+
248
+ &-left{
249
+ font-size: 24rpx;
250
+ font-weight: 400;
251
+ color: #FFFFFF;
252
+ display: flex;
253
+ align-self: stretch;
254
+ flex-direction: column;
255
+ justify-content: space-between;
256
+ }
257
+ &-title{
258
+ font-size: 32rpx;
259
+ font-weight: bold;
260
+ }
261
+ .vip_logo{
262
+ width: 104rpx;
263
+ height: 104rpx;
264
+ background-color: #E8A841;
265
+ }
266
+ }
267
+
268
+ .vip_banner{
269
+ display: flex;
270
+ padding: 16rpx;
271
+ margin: 20rpx 0;
272
+ justify-content: space-around;
273
+ .banner_item{
274
+ display: flex;
275
+ align-items: center;
276
+ flex-direction: column;
277
+ .banner_img{
278
+ width: 108rpx;
279
+ height: 108rpx;
280
+ border-radius: 108rpx;
281
+ background-color: #EBB963;
282
+ }
283
+ .banner_text{
284
+ color: #333333;
285
+ font-size: 24rpx;
286
+ font-weight: 500;
287
+ margin-top: 16rpx;
288
+ }
289
+ }
290
+ }
291
+
292
+ .vip_good{
293
+ background-color: #FFFFFF;
294
+ border-radius: 24rpx;
295
+ overflow: hidden;
296
+ &-title{
297
+ height: 110rpx;
298
+ line-height: 110rpx;
299
+ font-size: 36rpx;
300
+ font-weight: 500;
301
+ text-align: center;
302
+ color: #000000;
303
+ border-bottom: 1px solid #FAFAFA;
304
+ position: relative;
305
+ .line{
306
+ position: absolute;
307
+ left: 50%;
308
+ top: 50%;
309
+ transform: translate(-50%, -50%);
310
+ width: 280rpx;
311
+ height: 1px;
312
+ background-color: #000000;
313
+ }
314
+ ._text{
315
+ position: relative;
316
+ z-index: 10;
317
+ background-color: #fff;
318
+ padding: 0 24rpx;
319
+ }
320
+ }
321
+ .good_item{
322
+ padding: 32rpx 46rpx;
323
+ border-bottom: 1px solid #FAFAFA;
324
+ &:last-child{
325
+ border-bottom: none;
326
+ }
327
+ .good_title{
328
+ display: flex;
329
+ align-items: center;
330
+ font-size: 28rpx;
331
+ font-weight: 500;
332
+ color: #666666;
333
+
334
+ &-tag{
335
+ padding: 8rpx 16rpx;
336
+ border-radius: 8rpx;
337
+ font-size: 22rpx;
338
+ line-height: 1;
339
+ background: linear-gradient(90deg, #FCD083 0%, #FFDEAD 100%);
340
+ color: #915714;
341
+ margin-right: 16rpx;
342
+ }
343
+ }
344
+ .good_cont{
345
+ font-size: 28rpx;
346
+ color: #BBBBBB;
347
+ font-size: 400;
348
+ margin-top: 16rpx;
349
+ }
350
+ }
351
+ }
352
+ }
353
+ .drawer_title{
354
+ height: 100rpx;
355
+ line-height: 100rpx;
356
+ text-align: center;
357
+ font-size: 28rpx;
358
+ color: #333333;
359
+ font-weight: 500;
360
+ }
361
+ }
362
+ }
363
+ </style>
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-open-vip {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
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
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(-52, rpx);
48
+ height: unit(50, rpx);
49
+ line-height: unit(50, rpx);
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .6);
54
+ border-radius: unit(10, rpx);
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+
59
+ &-icon{
60
+ padding: 0 unit(20, rpx);
61
+ }
62
+
63
+ &.editx {
64
+ box-sizing: border-box;
65
+
66
+ }
67
+ }
68
+ }
69
+ //end
70
+
71
+
72
+ /**notPreview**/
73
+ .jfb-base-open-vip {
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
78
+ }
79
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-open-vip'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getOpenByIdFilmSquate:{},
6
+
7
+ updateOpenFilmPaiqiDate:{},
8
+
9
+ removeOpenFilmAddress:{},
10
+
11
+ addOpenFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,81 @@
1
+ <template>
2
+ <view class="xd_vip_wrap">
3
+ <view class="vip_list">
4
+ <view class="vip_item" :class="{active: i==1}" v-for="i in 6" :key="i">
5
+ <view class="vip_name">1日体验</view>
6
+ <view class="vip_price">10.00</view>
7
+ </view>
8
+ </view>
9
+ <view class="vip_pay">
10
+ <xd-button type="primary" width="600rpx">立即支付¥148/年</xd-button>
11
+ <view class="vip_tip">开通视为同意<text @click.stop="handlePrivacy('privacy_service')">《共享PLUS会员用户协议》</text></view>
12
+ </view>
13
+ </view>
14
+ </template>
15
+
16
+ <script>
17
+ import XdButton from "@/components/XdButton/XdButton.vue"
18
+ export default {
19
+ components: {
20
+ XdButton
21
+ },
22
+ data(){
23
+ return {
24
+
25
+ }
26
+ },
27
+ methods: {
28
+ handlePrivacy(type){
29
+ this.$emit('handlePrivacy', type)
30
+ }
31
+ }
32
+ }
33
+ </script>
34
+
35
+ <style lang="less" scoped>
36
+ .xd_vip_wrap{
37
+ background: #FFFFFF;
38
+ .vip_list{
39
+ width: 100%;
40
+ overflow: auto;
41
+ white-space: nowrap;
42
+ padding: 32rpx 16rpx;
43
+ .vip_item{
44
+ display: inline-block;
45
+ width: 160rpx;
46
+ height: 112rpx;
47
+ border-radius: 24rpx;
48
+ text-align: center;
49
+ color: #999999;
50
+ border: 4rpx solid #EEEEEE;
51
+ background-color: #EEEEEE;
52
+ box-sizing: border-box;
53
+ margin: 0 16rpx;
54
+ padding: 20rpx 0;
55
+ line-height: 1;
56
+ font-weight: 500;
57
+ &.active{
58
+ border-color: #AB6900;
59
+ background-color: #FFF2DE;
60
+ color: #AB6900;
61
+ }
62
+ .vip_name{
63
+ font-size: 24rpx;
64
+ margin-bottom: 12rpx;
65
+ }
66
+ .vip_price{
67
+ font-size: 36rpx;
68
+ }
69
+ }
70
+ }
71
+ .vip_pay{
72
+ padding: 24rpx 0 50rpx;
73
+ }
74
+ .vip_tip{
75
+ text-align: center;
76
+ font-size: 22rpx;
77
+ color: #999999;
78
+ margin-top: 24rpx;
79
+ }
80
+ }
81
+ </style>
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Open
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ //设置方法名字当别忘记加上【模块名字】:Open
10
+ mapFnName: 'getOpenByIdFilmSquate',
11
+ title: '获取电影广场列表',
12
+ path: '/api/account/film/list-film-square',
13
+ isRule: false,
14
+ params: {
15
+ last_key: ['当前页', 'Number', '必选'],
16
+ page_size: ['每页数量', 'Number', '必选'],
17
+ },
18
+ isConsole: true,
19
+ disabled: true,
20
+ },
21
+ {
22
+ //设置方法名字当别忘记加上【模块名字】:Open
23
+ mapFnName: 'updateOpenFilmPaiqiDate',
24
+ title: '更新排期',
25
+ path: '/api/account/film/paiqi-date',
26
+ isRule: false,
27
+ params: {
28
+ film_id: ['电影id', 'Number', '必选'],
29
+ cinema_id: ['影院id', 'Number', '必选'],
30
+ },
31
+ isConsole: true,
32
+ disabled: true,
33
+ },
34
+ {
35
+ //设置方法名字当别忘记加上【模块名字】:Open
36
+ mapFnName: 'removeOpenFilmAddress',
37
+ title: '删除我的配送地址',
38
+ path: '/api/account/film/paiqi-date',
39
+ isRule: false,
40
+ params: {
41
+ film_id: ['电影id', 'Number', '必选'],
42
+ },
43
+ isConsole: true,
44
+ disabled: true,
45
+ },
46
+ {
47
+ //设置方法名字当别忘记加上【模块名字】:Open
48
+ mapFnName: 'addOpenFilmcart',
49
+ title: '添加购物车',
50
+ path: '/api/account/film/paiqi-date',
51
+ isRule: false,
52
+ params: {
53
+ film_id: ['电影id', 'Number', '必选'],
54
+ },
55
+ isConsole: true,
56
+ disabled: true,
57
+ },
58
+ ];
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '背景颜色:',
12
+ ele: 'xd-color',
13
+ valueKey: 'bgColor',
14
+ value: data.bgColor || '',
15
+ placeholder: '请输入占位框背景颜色',
16
+ groupKey:'content',
17
+ },
18
+ {
19
+ label: '选中路径:',
20
+ groupKey:'advanced',
21
+ className: 'input100',
22
+ ele: 'xd-select-pages-path',
23
+ valueKey: 'select-pages-path',
24
+ value: data['select-pages-path'] || null,
25
+ setting: {
26
+ router: XdBus.getParentApi('getPagesTree')
27
+ },
28
+ },
29
+ data.bgColor && {
30
+ label: '高度:',
31
+ ele: 'el-input',
32
+ groupKey:'style',
33
+ type: 'number',
34
+ valueKey: 'height',
35
+ value: data.height || 100,
36
+ placeholder: '请输入占位框高度,单位像素,默认:10px',
37
+ className: 'input60',
38
+ },
39
+ {
40
+ label: '', //label
41
+ groupKey:'advanced',
42
+ ele: 'slot', //package 名称
43
+ slot: 'is_reference',
44
+ },
45
+ ].filter(i=>i)
46
+ },
47
+ advanced: [],
48
+ };