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,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-consump-code {
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-consump-code {
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-consump-code'
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
+ getConsumpByIdFilmSquate:{},
6
+
7
+ updateConsumpFilmPaiqiDate:{},
8
+
9
+ removeConsumpFilmAddress:{},
10
+
11
+ addConsumpFilmcart:{},
12
+
13
+ }
@@ -17,7 +17,8 @@
17
17
  </view>
18
18
  <!-- #endif -->
19
19
  <view class="jfb-base-login__body" :style="{
20
- '--agreement-align': agreementAlign
20
+ '--agreement-align': agreementAlign,
21
+ '--main-color': mainColor,
21
22
  }">
22
23
 
23
24
  <view v-if="showLogo === 'Y'" class="logo-wrap" :style="{
@@ -108,15 +109,13 @@
108
109
  class="_item"
109
110
  :class="{ active: accountLoginType === 'phone' }"
110
111
  @click="setAccountLoginType('phone')"
111
- >验证码登录<text :style="{ background: mainColor }"></text
112
- ></view>
112
+ >验证码登录</view>
113
113
  <view
114
114
  v-if="pwdLogin"
115
115
  class="_item"
116
116
  :class="{ active: accountLoginType === 'pwd' }"
117
117
  @click="setAccountLoginType('pwd')"
118
- >密码登录<text :style="{ background: mainColor }"></text
119
- ></view>
118
+ >密码登录</view>
120
119
  </view>
121
120
  <view :style="loginFormStyle">
122
121
  <xd-form
@@ -1269,11 +1268,21 @@ export default {
1269
1268
  color: #383838;
1270
1269
  font-size: 36rpx;
1271
1270
 
1272
- text {
1271
+ // text {
1272
+ // position: absolute;
1273
+ // height: 6rpx;
1274
+ // width: 90rpx;
1275
+ // border-radius: 6rpx;
1276
+ // left: 50%;
1277
+ // bottom: 0;
1278
+ // transform: translateX(-50%);
1279
+ // }
1280
+ &::after {
1281
+ content: ' ';
1273
1282
  position: absolute;
1274
1283
  height: 6rpx;
1275
1284
  width: 90rpx;
1276
- border-radius: 6rpx;
1285
+ background-color: var(--main-color);
1277
1286
  left: 50%;
1278
1287
  bottom: 0;
1279
1288
  transform: translateX(-50%);
@@ -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,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: '支付跳转路径:',
237
+ ele: 'xd-select-pages-path',
238
+ valueKey: 'payPath',
239
+ groupKey:'advanced',
240
+ placeholder: '请选择支付跳转路径',
241
+ value: data['payPath'] || null,
242
+ setting: {
243
+ router: XdBus.getParentApi('getPagesTree'),
244
+ },
245
+ inline: false,
246
+ },
247
+ ].filter(i=>i)
248
+ },
249
+ advanced: [],
250
+ };