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,250 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 当表单组件中有联动操作时候,使用方法进行返回
5
+ */
6
+ export default {
7
+ style: [],
8
+ content: (data) => {
9
+ return [
10
+ {
11
+ label: '共享PLUS会员用户协议:',
12
+ ele: 'xd-site-news',
13
+ valueKey: 'notices',
14
+ groupKey:'content',
15
+ value: data.notices || {type: 'privacy'},
16
+ className: 'input70',
17
+ setting: {
18
+ config: {
19
+ sort: true,
20
+ maxlen: 100,
21
+ action: 'aliyun',
22
+ size: 5,
23
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
24
+ uploadType: 'aliyun',
25
+ type: ['jpg', 'png', 'jpeg']
26
+ },
27
+ },
28
+ handleCustom({action, data}) {
29
+ if (data && data.params) {
30
+ //当一个插件中出现多个内容分类时候需要设置code值,在页面引用时候(容器id + code)进行拼接获取数据列表
31
+ data.params = Object.assign({}, data.params, {code: 'privacy_service'});
32
+ }
33
+
34
+ //获取返回参数(场景类型名称为必填)
35
+ let loading = { close(){}}
36
+
37
+ //获取显示内容
38
+ if (action === 'screen') {
39
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
40
+ .then(res => {
41
+ loading.close();
42
+ data.cb(res['list'])
43
+ })
44
+ .catch(error => {
45
+ console.error(error);
46
+ loading.close();
47
+ });
48
+
49
+ }
50
+
51
+ //获取返回参数(广告位高度必选项)
52
+ if (action === 'getNewsInfo') {
53
+ XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
54
+ .then(res => {
55
+ loading.close()
56
+ data.cb({list: res.list, selectId: res.selected})
57
+ })
58
+ .catch(error => {
59
+ loading.close()
60
+ console.error(error);
61
+ });
62
+ }
63
+
64
+ //获取产品业务线列表
65
+ if (action === 'namespace') {
66
+ XdBus.getParentApi('getOptionsNamespaces')({})
67
+ .then(res => {
68
+ loading.close()
69
+ data.cb(res['list'])
70
+ })
71
+ .catch(error => {
72
+ loading.close()
73
+ console.error(error);
74
+ });
75
+ }
76
+
77
+ //使用内容分类
78
+ if (action === 'cmsPublishEditxContent') {
79
+ loading = XdBus.getParentApi('loading')({});
80
+ XdBus.getParentApi('cmsPublishEditxContent')(data.params)
81
+ .then(res => {
82
+ console.log('cmsPublishEditxContent', res)
83
+ loading.close();
84
+ data.cb(res)
85
+ })
86
+ .catch(error => {
87
+ loading.close();
88
+ console.error(error);
89
+ });
90
+ }
91
+
92
+ //位置列表
93
+ if (action === 'getListPostion') {
94
+ loading = XdBus.getParentApi('loading')({});
95
+ XdBus.getParentApi('getListNewsPosition')(data.params)
96
+ .then(res => {
97
+ loading.close();
98
+ data.cb(res)
99
+ })
100
+ .catch(error => {
101
+ loading.close();
102
+ console.error(error);
103
+ });
104
+ }
105
+
106
+ //位置创建
107
+ if (action === 'addPostion') {
108
+ loading = XdBus.getParentApi('loading')({});
109
+ XdBus.getParentApi('addNewsPosition')(data.params)
110
+ .then(res => {
111
+ loading.close();
112
+ data.cb(true)
113
+ })
114
+ .catch(error => {
115
+ console.error(error);
116
+ loading.close();
117
+ data.cb(false)
118
+ });
119
+ }
120
+
121
+ //位置编辑
122
+ if (action === 'editPostion') {
123
+ loading = XdBus.getParentApi('loading')({});
124
+ XdBus.getParentApi('updateNewsPosition')(data.params)
125
+ .then(res => {
126
+ loading.close();
127
+ data.cb(true)
128
+ })
129
+ .catch(error => {
130
+ console.error(error);
131
+ loading.close();
132
+ data.cb(false)
133
+ });
134
+ }
135
+
136
+ //位置删除
137
+ if (action === 'deleltePostion') {
138
+ loading = XdBus.getParentApi('loading')({});
139
+ XdBus.getParentApi('deleteNewsPosition')(data.params)
140
+ .then(res => {
141
+ loading.close();
142
+ data.cb(true)
143
+ })
144
+ .catch(error => {
145
+ console.error(error);
146
+ loading.close();
147
+ data.cb(false)
148
+ });
149
+ }
150
+
151
+ //获取广告位内容列表
152
+ if (action === 'getListContent') {
153
+ loading = XdBus.getParentApi('loading')({});
154
+ XdBus.getParentApi('getListNewsContent')(data.params)
155
+ .then(res => {
156
+ loading.close();
157
+ data.cb(res)
158
+ })
159
+ .catch(error => {
160
+ loading.close();
161
+ console.error(error);
162
+ });
163
+ }
164
+
165
+ //广告内容创建
166
+ if (action === 'addContent') {
167
+ loading = XdBus.getParentApi('loading')({});
168
+ XdBus.getParentApi('addNewsContent')(data.params)
169
+ .then(res => {
170
+ loading.close();
171
+ data.cb(true)
172
+ })
173
+ .catch(error => {
174
+ console.error(error);
175
+ loading.close();
176
+ data.cb(false)
177
+ });
178
+ }
179
+
180
+ //广告内容编辑
181
+ if (action === 'editContent') {
182
+ loading = XdBus.getParentApi('loading')({});
183
+ XdBus.getParentApi('updateNewsContent')(data.params)
184
+ .then(res => {
185
+ loading.close();
186
+ data.cb(true)
187
+ })
188
+ .catch(error => {
189
+ console.error(error);
190
+ loading.close();
191
+ data.cb(false)
192
+ });
193
+ }
194
+
195
+ //广告内容删除
196
+ if (action === 'deleteContent') {
197
+ loading = XdBus.getParentApi('loading')({});
198
+ XdBus.getParentApi('deleteNewsContent')(data.params)
199
+ .then(res => {
200
+ loading.close();
201
+ data.cb(true)
202
+ })
203
+ .catch(error => {
204
+ console.error(error);
205
+ loading.close();
206
+ data.cb(false)
207
+ });
208
+ }
209
+
210
+ //内容发布
211
+ if (action === 'publish') {
212
+ loading = XdBus.getParentApi('loading')({});
213
+ console.log('publish', data.params)
214
+ XdBus.getParentApi('cmsPublishContent')(data.params)
215
+ .then(res => {
216
+ loading.close();
217
+ data.cb(res)
218
+ })
219
+ .catch(error => {
220
+ loading.close();
221
+ console.error(error);
222
+ });
223
+ }
224
+
225
+ //通知页面进行刷新
226
+ if (action === 'update') {
227
+ loading = XdBus.getParentApi('loading')({});
228
+ XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
229
+ loading.close()
230
+ }
231
+ },
232
+ inline: false,
233
+ notice: '',
234
+ },
235
+ {
236
+ label: 'PLUS会员开通成功跳转路径:',
237
+ ele: 'xd-select-pages-path',
238
+ valueKey: 'vipSuccessPath',
239
+ groupKey:'advanced',
240
+ placeholder: '请选择PLUS会员开通成功跳转路径',
241
+ value: data['vipSuccessPath'] || null,
242
+ setting: {
243
+ router: XdBus.getParentApi('getPagesTree'),
244
+ },
245
+ inline: false,
246
+ },
247
+ ].filter(i=>i)
248
+ },
249
+ advanced: [],
250
+ };
@@ -0,0 +1,213 @@
1
+ <template>
2
+ <view
3
+ class="jfb-base-code-open-vip"
4
+ @click="handleEditxSelect"
5
+ :class="{ editx : isEditx && active }"
6
+ >
7
+ <!--#ifdef H5-->
8
+ <view
9
+ class="jfb-base-code-open-vip__edit"
10
+ :class="{ editx : isEditx && active }"
11
+ v-if="isEditx && active"
12
+ >
13
+ <view class="jfb-base-code-open-vip__edit-icon" @click="delEdit">删除</view>
14
+ </view>
15
+ <!-- #endif -->
16
+ <view class="jfb-base-code-open-vip__body" :style="[bodyStyle]">
17
+ <view v-if="0" class="vip_panel">
18
+ <view class="combo_section">
19
+ <view class="code_input_wrap">
20
+ <input class="code_input" placeholder="请输入兑换码"></input>
21
+ </view>
22
+ </view>
23
+ <view class="combo_section">
24
+ <view class="desc_tit">文案描述</view>
25
+ <view class="desc_cont">文案内容</view>
26
+ </view>
27
+ <view class="fixed_bottom" :style="[fixed_bottom]">
28
+ <xd-button type="primary" width="600rpx">查询</xd-button>
29
+ <view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
30
+ </view>
31
+ </view>
32
+ <view v-else class="vip_panel">
33
+ <view class="combo_section">
34
+ <view class="combo_section-title">兑换码:12312983719283711</view>
35
+ <xd-list-item label="套餐名称" paddingLR="40rpx">¥125.00</xd-list-item>
36
+ <xd-list-item label="套餐期限" paddingLR="40rpx">30天</xd-list-item>
37
+ <xd-list-item label="套餐金额" paddingLR="40rpx">¥125.00</xd-list-item>
38
+ </view>
39
+ <view class="fixed_bottom" :style="[fixed_bottom]">
40
+ <xd-button type="primary" width="600rpx">立即兑换</xd-button>
41
+ <view class="plus_privacy">开通视为同意 <text @click.stop="handlePrivacy('privacy_service')"></text>《共享PLUS会员用户协议》</view>
42
+ </view>
43
+ </view>
44
+ </view>
45
+ </view>
46
+ </template>
47
+
48
+ <script>
49
+ import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
50
+ import XdListItem from "@/components/XdListItem/XdListItem"
51
+ import XdButton from "@/components/XdButton/XdButton";
52
+ import { jfbRootExec } from "@/utils/xd.event";
53
+ import JfbBaseCodeOpenVipMixin from "./JfbBaseCodeOpenVipMixin";
54
+ import { getContainerPropsValue } from "@/utils/xd.base";
55
+ import componentsMixins from "@/mixins/componentsMixins";
56
+ import extsMixins from "@/mixins/extsMixins";
57
+ export default {
58
+ name: "JfbBaseCodeOpenVip",
59
+ components: {
60
+ XdFontIcon,
61
+ XdListItem,
62
+ XdButton
63
+ },
64
+ mixins: [
65
+ componentsMixins, extsMixins, JfbBaseCodeOpenVipMixin
66
+ ],
67
+ data() {
68
+ return {
69
+ //hideMask: true,
70
+ //todo
71
+ vipSuccessPath: "",
72
+ }
73
+ },
74
+ computed: {
75
+ bodyStyle(){
76
+ return {
77
+ minHeight: this.layoutInfo.bodyMinHeightRpx + 'rpx',
78
+ '--main-color': this.mainColor,
79
+ }
80
+ },
81
+ fixed_bottom() {
82
+ return this.fixedStyle({paddingBottom: 36, zIndex: 111})
83
+ },
84
+ },
85
+ watch: {
86
+ container(value, oldValue) {
87
+ if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
88
+ if (this.$configProject['isPreview']) this.init(value)
89
+ },
90
+ },
91
+ created() {
92
+ this.init(this.container);
93
+
94
+ //todo
95
+ },
96
+ methods: {
97
+ onJfbLoad(options) {
98
+
99
+ // jfbRootExec('baiduUserLogin', {
100
+
101
+ // vm: this,// data: {
102
+
103
+ // account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
104
+
105
+ // }
106
+
107
+ // }).then().catch()
108
+ },
109
+ /**
110
+ * @description 监听事件变化
111
+ * @param container {object} 业务组件对象自己
112
+ */
113
+ init(container) {
114
+ this.vipSuccessPath = getContainerPropsValue(container, 'content.vipSuccessPath', {value: ""}).value;
115
+ },
116
+ handlePrivacy(code){
117
+ let params = `page_id=${this.pageAttr["page_id"]}`;
118
+ params = `${params}&container_id=${this.containerId}${code}`;
119
+ this.$xdUniHelper.navigateTo({
120
+ url: `/pages/content/content?${params}`
121
+ })
122
+ },
123
+ onJfbScroll(options) {
124
+ console.log('event.onJfbScroll', options)
125
+ },
126
+ onJfbReachBottom(options) {
127
+ console.log('event.onJfbReachBottom', options)
128
+ },
129
+ onJfbShow(options) {
130
+ console.log('event.onJfbShow', options)
131
+ },
132
+ onJfbHide(options) {
133
+ console.log('event.onJfbHide', options)
134
+ },
135
+ onJfbBack(options) {
136
+ console.log('event.onJfbBack', options)
137
+ },
138
+ onJfbUpdate(...data) {
139
+ console.log('event.onJfbUpdate', data)
140
+ },
141
+ onJfbCustomEvent(options) {
142
+ console.log('event.onJfbReachBottom', options)
143
+ },
144
+ }
145
+ }
146
+
147
+ </script>
148
+
149
+ <style scoped lang="less">
150
+ @import "./JfbBaseCodeOpenVipLess.less";
151
+
152
+ .jfb-base-code-open-vip {
153
+ &__body{
154
+ .combo_section{
155
+ border-radius: 24rpx;
156
+ overflow: hidden;
157
+ margin: 20rpx;
158
+ background-color: #FFFFFF;
159
+ &-title{
160
+ height: 72rpx;
161
+ line-height: 72rpx;
162
+ text-align: center;
163
+ background: linear-gradient(90deg, #FCD083 0%, #FFDEAD 100%);
164
+ font-size: 28rpx;
165
+ color: #915714;
166
+ font-weight: 500;
167
+ }
168
+ ::v-deep .my-list_value{
169
+ color: #999999;
170
+ }
171
+ .desc_tit{
172
+ height: 72rpx;
173
+ line-height: 72rpx;
174
+ text-align: center;
175
+ }
176
+ .desc_cont{
177
+ height: 100rpx;
178
+ padding: 24rpx;
179
+ }
180
+ .code_input_wrap{
181
+ width: 100%;
182
+ padding: 36rpx;
183
+ box-sizing: border-box;
184
+ }
185
+ .code_input{
186
+ width: 100%;
187
+ height: 90rpx;
188
+ background-color: #FAFAFA;
189
+ box-sizing: border-box;
190
+ padding: 0 36rpx;
191
+ border-radius: 16rpx;
192
+ }
193
+ }
194
+ .fixed_bottom{
195
+ position: fixed;
196
+ bottom: 0;
197
+ left: 0;
198
+ width: 100%;
199
+ padding: 36rpx;
200
+ box-sizing: border-box;
201
+ background-color: #FFFFFF;
202
+ display: flex;
203
+ flex-direction: column;
204
+ align-items: center;
205
+ .plus_privacy{
206
+ font-size: 22rpx;
207
+ color: #999;
208
+ margin-top: 16rpx;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ </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-code-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-code-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-code-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
+ getCodeByIdFilmSquate:{},
6
+
7
+ updateCodeFilmPaiqiDate:{},
8
+
9
+ removeCodeFilmAddress:{},
10
+
11
+ addCodeFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,58 @@
1
+ 'use strict';
2
+ /**
3
+ * @description 接口配置,
4
+ * 在设置方法名字当时候,别忘记加上【模块名字】:Consump
5
+ * @type {*[]}
6
+ */
7
+ module.exports = [
8
+ {
9
+ //设置方法名字当别忘记加上【模块名字】:Consump
10
+ mapFnName: 'getConsumpByIdFilmSquate',
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
+ //设置方法名字当别忘记加上【模块名字】:Consump
23
+ mapFnName: 'updateConsumpFilmPaiqiDate',
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
+ //设置方法名字当别忘记加上【模块名字】:Consump
36
+ mapFnName: 'removeConsumpFilmAddress',
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
+ //设置方法名字当别忘记加上【模块名字】:Consump
48
+ mapFnName: 'addConsumpFilmcart',
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
+ groupKey:'advanced',
13
+ className: 'input100',
14
+ ele: 'xd-select-pages-path',
15
+ valueKey: 'openPath',
16
+ value: data['openPath'] || null,
17
+ setting: {
18
+ router: XdBus.getParentApi('getPagesTree')
19
+ },
20
+ },
21
+ {
22
+ label: '切换门店路径:',
23
+ groupKey:'advanced',
24
+ className: 'input100',
25
+ ele: 'xd-select-pages-path',
26
+ valueKey: 'shopPath',
27
+ value: data['shopPath'] || null,
28
+ setting: {
29
+ router: XdBus.getParentApi('getPagesTree')
30
+ },
31
+ },
32
+ {
33
+ label: '支付成功跳转路径:',
34
+ ele: 'xd-select-pages-path',
35
+ valueKey: 'successPath',
36
+ value: data.successPath || null,
37
+ placeholder: '请选择支付成功跳转路径',
38
+ className: 'input100',
39
+ groupKey:'advanced',
40
+ setting: {
41
+ router: XdBus.getParentApi('getPagesTree')
42
+ },
43
+ inline: false,
44
+ },
45
+ ].filter(i=>i)
46
+ },
47
+ advanced: [],
48
+ };