jufubao-base 1.0.55 → 1.0.56-beta10
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.
- package/package.json +1 -1
- package/src/components/JfbBaseCard/Attr.js +4 -4
- package/src/components/JfbBaseCard/JfbBaseCard.vue +9 -9
- package/src/components/JfbBaseCardEntry/Api.js +43 -0
- package/src/components/JfbBaseCardEntry/Attr.js +287 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +973 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryLess.less +80 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntryMixin.js +30 -0
- package/src/components/JfbBaseCardEntry/Mock.js +231 -0
- package/src/components/JfbBaseCardV2/Attr.js +2 -2
- package/src/components/JfbBaseCardV3/Attr.js +2 -2
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +5 -5
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +35 -19
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +7 -6
- package/src/components/JfbBaseSuccess/Mock.js +3 -3
package/package.json
CHANGED
|
@@ -59,10 +59,10 @@ export default {
|
|
|
59
59
|
inline: false,
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
|
-
label: '
|
|
62
|
+
label: '卡券密码绑定地址:', //label
|
|
63
63
|
ele: 'xd-select-pages-path', //package 名称
|
|
64
64
|
valueKey: 'bind_url', //form[valueKey]
|
|
65
|
-
placeholder: '
|
|
65
|
+
placeholder: '请选择卡券密码绑定地址',
|
|
66
66
|
value: null,
|
|
67
67
|
setting: {
|
|
68
68
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -70,10 +70,10 @@ export default {
|
|
|
70
70
|
inline: false,
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
|
-
label: '
|
|
73
|
+
label: '扫码绑定卡券确认地址:', //label
|
|
74
74
|
ele: 'xd-select-pages-path', //package 名称
|
|
75
75
|
valueKey: 'confirm_url', //form[valueKey]
|
|
76
|
-
placeholder: '
|
|
76
|
+
placeholder: '请选择扫码绑定卡券确认地址',
|
|
77
77
|
value: null,
|
|
78
78
|
setting: {
|
|
79
79
|
router: XdBus.getParentApi('getPagesTree'),
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}"
|
|
30
30
|
>
|
|
31
31
|
<xd-font-icon
|
|
32
|
-
style="
|
|
32
|
+
:style="{marginBottom: '15rpx'}"
|
|
33
33
|
size="80"
|
|
34
34
|
icon="iconsaoma"
|
|
35
35
|
></xd-font-icon>
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
}"
|
|
46
46
|
>
|
|
47
47
|
<xd-font-icon
|
|
48
|
-
|
|
48
|
+
:style="{marginBottom: '15rpx'}"
|
|
49
49
|
size="80"
|
|
50
50
|
icon="iconyuechi"
|
|
51
51
|
></xd-font-icon>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
</view>
|
|
68
68
|
</template>
|
|
69
69
|
</view>
|
|
70
|
-
<view class="jfb-base-card__body-line"></view>
|
|
70
|
+
<view class="jfb-base-card__body-line" v-if="!notice"></view>
|
|
71
71
|
<view
|
|
72
72
|
class="jfb-base-card__body-notice"
|
|
73
73
|
:style="{ background: noticeBackgroundColor }"
|
|
@@ -119,10 +119,9 @@
|
|
|
119
119
|
</view>
|
|
120
120
|
<view
|
|
121
121
|
class="jfb-base-card__body-tips"
|
|
122
|
-
:style="{ color:
|
|
122
|
+
:style="{ color: warningColor }"
|
|
123
123
|
v-if="tabIndex === 2"
|
|
124
|
-
|
|
125
|
-
>
|
|
124
|
+
>* 目前仅支持电影票兑换券进行转换</view>
|
|
126
125
|
<view
|
|
127
126
|
v-if="tabIndex === 2 || tabIndex === 1"
|
|
128
127
|
class="jfb-base-card__body-card"
|
|
@@ -302,7 +301,8 @@ export default {
|
|
|
302
301
|
|
|
303
302
|
|
|
304
303
|
//#ifdef H5
|
|
305
|
-
this.isWx = isWechat();
|
|
304
|
+
this.isWx = this.isPreview || isWechat();
|
|
305
|
+
|
|
306
306
|
if (!this.$configProject.isPreview) {
|
|
307
307
|
jfbRootExec("getH5WxAuthorize", {
|
|
308
308
|
vm: this,
|
|
@@ -621,13 +621,13 @@ export default {
|
|
|
621
621
|
|
|
622
622
|
&-line {
|
|
623
623
|
width: 120%;
|
|
624
|
-
height:
|
|
624
|
+
height: 1px;
|
|
625
625
|
background: #eee;
|
|
626
626
|
margin: unit(60, rpx) unit(-35, rpx) 0 unit(-35, rpx);
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
&-notice {
|
|
630
|
-
margin:
|
|
630
|
+
margin: unit(46, rpx) unit(-35, rpx) 0 unit(-35, rpx);
|
|
631
631
|
padding: unit(22, rpx) unit(35, rpx);
|
|
632
632
|
line-height: unit(70, rpx);
|
|
633
633
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 卡券登陆
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: 'getListEntryCardBind',
|
|
10
|
+
isRule: false,
|
|
11
|
+
title: '获得绑定卡',
|
|
12
|
+
prefix: 'list',
|
|
13
|
+
path: '/card/v1/card-bind/list-bind-card',
|
|
14
|
+
params: {},
|
|
15
|
+
disabled: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
mapFnName: 'loginEntryCardBind',
|
|
19
|
+
isRule: false,
|
|
20
|
+
title: '登录卡',
|
|
21
|
+
prefix: 'login',
|
|
22
|
+
path: '/card/v1/card-bind/login-card',
|
|
23
|
+
data: {
|
|
24
|
+
card_number: ['卡号', 'String', '必选'],
|
|
25
|
+
},
|
|
26
|
+
disabled: true,
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
mapFnName: 'getListBaseNewsContent', //自定义方法名字(必选)
|
|
30
|
+
title: '获取内容',
|
|
31
|
+
path: '/cms/v1/news-content',
|
|
32
|
+
isRule: false,
|
|
33
|
+
params: {
|
|
34
|
+
scene: ['使用场景', 'String', '选填'],
|
|
35
|
+
container_id: ['插件ID', 'String', '必填'],
|
|
36
|
+
page_id: ['页面ID', 'String', '必填'],
|
|
37
|
+
page_size: ['记录条数', 'Number', '必填', 1],
|
|
38
|
+
code: ['业务线id', 'String', '选填'],
|
|
39
|
+
},
|
|
40
|
+
isConsole: true,
|
|
41
|
+
disabled: true,
|
|
42
|
+
},
|
|
43
|
+
];
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
style: [],
|
|
5
|
+
advanced: [],
|
|
6
|
+
content: [
|
|
7
|
+
{
|
|
8
|
+
label: '票券登陆文案:',
|
|
9
|
+
ele: 'el-input',
|
|
10
|
+
type: 'text',
|
|
11
|
+
valueKey: 'login_name',
|
|
12
|
+
value: '',
|
|
13
|
+
placeholder: '请输入票券登陆文案',
|
|
14
|
+
className: 'input80',
|
|
15
|
+
inline: false,
|
|
16
|
+
notice: '当未设置文案时候,前台页面显示为"<span style="color:red">登录</span>"'
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '失效卡列表地址:', //label
|
|
20
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
21
|
+
valueKey: 'disabled_url', //form[valueKey]
|
|
22
|
+
placeholder: '请选择失效卡列表地址',
|
|
23
|
+
value: null,
|
|
24
|
+
setting: {
|
|
25
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
26
|
+
},
|
|
27
|
+
inline: false,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: '卡券详情地址:', //label
|
|
31
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
32
|
+
valueKey: 'detail_url', //form[valueKey]
|
|
33
|
+
placeholder: '请选择卡券详情地址',
|
|
34
|
+
value: null,
|
|
35
|
+
setting: {
|
|
36
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
37
|
+
},
|
|
38
|
+
inline: false,
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: '卡券转换地址:', //label
|
|
42
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
43
|
+
valueKey: 'change_url', //form[valueKey]
|
|
44
|
+
placeholder: '请选择卡券转换地址',
|
|
45
|
+
value: null,
|
|
46
|
+
setting: {
|
|
47
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
48
|
+
},
|
|
49
|
+
inline: false,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: '卡券密码绑定地址:', //label
|
|
53
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
54
|
+
valueKey: 'bind_url', //form[valueKey]
|
|
55
|
+
placeholder: '请选择卡券密码绑定地址',
|
|
56
|
+
value: null,
|
|
57
|
+
setting: {
|
|
58
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
59
|
+
},
|
|
60
|
+
inline: false,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: '扫码绑定卡券确认地址:', //label
|
|
64
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
65
|
+
valueKey: 'confirm_url', //form[valueKey]
|
|
66
|
+
placeholder: '请选择扫码绑定卡券确认地址',
|
|
67
|
+
value: null,
|
|
68
|
+
setting: {
|
|
69
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
70
|
+
},
|
|
71
|
+
inline: false,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: '提示内容:',
|
|
75
|
+
ele: 'xd-site-news',
|
|
76
|
+
valueKey: 'notice',
|
|
77
|
+
value: null,
|
|
78
|
+
className: 'input70',
|
|
79
|
+
setting: {
|
|
80
|
+
config: {
|
|
81
|
+
sort: true,
|
|
82
|
+
maxlen: 100,
|
|
83
|
+
action: 'aliyun',
|
|
84
|
+
size: 5,
|
|
85
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
86
|
+
uploadType: 'aliyun',
|
|
87
|
+
type: ['jpg', 'png', 'jpeg']
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
handleCustom({action, data}) {
|
|
91
|
+
if (data && data.params) {
|
|
92
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
93
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
//获取返回参数(场景类型名称为必填)
|
|
97
|
+
let loading = XdBus.getParentApi('loading')({});
|
|
98
|
+
|
|
99
|
+
//获取显示内容
|
|
100
|
+
if (action === 'screen') {
|
|
101
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
102
|
+
.then(res => {
|
|
103
|
+
loading.close();
|
|
104
|
+
data.cb(res['list'])
|
|
105
|
+
})
|
|
106
|
+
.catch(error => {
|
|
107
|
+
console.error(error);
|
|
108
|
+
loading.close();
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
//获取返回参数(广告位高度必选项)
|
|
114
|
+
if (action === 'getNewsInfo') {
|
|
115
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
116
|
+
.then(res => {
|
|
117
|
+
loading.close()
|
|
118
|
+
data.cb({list: res.list, selectId: res.selected})
|
|
119
|
+
})
|
|
120
|
+
.catch(error => {
|
|
121
|
+
loading.close()
|
|
122
|
+
console.error(error);
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
//获取产品业务线列表
|
|
127
|
+
if (action === 'namespace') {
|
|
128
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
129
|
+
.then(res => {
|
|
130
|
+
loading.close()
|
|
131
|
+
data.cb(res['list'])
|
|
132
|
+
})
|
|
133
|
+
.catch(error => {
|
|
134
|
+
loading.close()
|
|
135
|
+
console.error(error);
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
//使用内容分类
|
|
140
|
+
if (action === 'cmsPublishEditxContent') {
|
|
141
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
142
|
+
.then(res => {
|
|
143
|
+
console.log('cmsPublishEditxContent', res)
|
|
144
|
+
loading.close();
|
|
145
|
+
data.cb(res)
|
|
146
|
+
})
|
|
147
|
+
.catch(error => {
|
|
148
|
+
loading.close();
|
|
149
|
+
console.error(error);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
//位置列表
|
|
154
|
+
if (action === 'getListPostion') {
|
|
155
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
156
|
+
.then(res => {
|
|
157
|
+
loading.close();
|
|
158
|
+
data.cb(res)
|
|
159
|
+
})
|
|
160
|
+
.catch(error => {
|
|
161
|
+
loading.close();
|
|
162
|
+
console.error(error);
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
//位置创建
|
|
167
|
+
if (action === 'addPostion') {
|
|
168
|
+
XdBus.getParentApi('addNewsPosition')(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 === 'editPostion') {
|
|
182
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
183
|
+
.then(res => {
|
|
184
|
+
loading.close();
|
|
185
|
+
data.cb(true)
|
|
186
|
+
})
|
|
187
|
+
.catch(error => {
|
|
188
|
+
console.error(error);
|
|
189
|
+
loading.close();
|
|
190
|
+
data.cb(false)
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
//位置删除
|
|
195
|
+
if (action === 'deleltePostion') {
|
|
196
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
197
|
+
.then(res => {
|
|
198
|
+
loading.close();
|
|
199
|
+
data.cb(true)
|
|
200
|
+
})
|
|
201
|
+
.catch(error => {
|
|
202
|
+
console.error(error);
|
|
203
|
+
loading.close();
|
|
204
|
+
data.cb(false)
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
//获取广告位内容列表
|
|
209
|
+
if (action === 'getListContent') {
|
|
210
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
211
|
+
.then(res => {
|
|
212
|
+
loading.close();
|
|
213
|
+
data.cb(res)
|
|
214
|
+
})
|
|
215
|
+
.catch(error => {
|
|
216
|
+
loading.close();
|
|
217
|
+
console.error(error);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
//广告内容创建
|
|
222
|
+
if (action === 'addContent') {
|
|
223
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
224
|
+
.then(res => {
|
|
225
|
+
loading.close();
|
|
226
|
+
data.cb(true)
|
|
227
|
+
})
|
|
228
|
+
.catch(error => {
|
|
229
|
+
console.error(error);
|
|
230
|
+
loading.close();
|
|
231
|
+
data.cb(false)
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
//广告内容编辑
|
|
236
|
+
if (action === 'editContent') {
|
|
237
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
238
|
+
.then(res => {
|
|
239
|
+
loading.close();
|
|
240
|
+
data.cb(true)
|
|
241
|
+
})
|
|
242
|
+
.catch(error => {
|
|
243
|
+
console.error(error);
|
|
244
|
+
loading.close();
|
|
245
|
+
data.cb(false)
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
//广告内容删除
|
|
250
|
+
if (action === 'deleteContent') {
|
|
251
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
252
|
+
.then(res => {
|
|
253
|
+
loading.close();
|
|
254
|
+
data.cb(true)
|
|
255
|
+
})
|
|
256
|
+
.catch(error => {
|
|
257
|
+
console.error(error);
|
|
258
|
+
loading.close();
|
|
259
|
+
data.cb(false)
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
//内容发布
|
|
264
|
+
if (action === 'publish') {
|
|
265
|
+
console.log('publish', data.params)
|
|
266
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
267
|
+
.then(res => {
|
|
268
|
+
loading.close();
|
|
269
|
+
data.cb(res)
|
|
270
|
+
})
|
|
271
|
+
.catch(error => {
|
|
272
|
+
loading.close();
|
|
273
|
+
console.error(error);
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
//通知页面进行刷新
|
|
278
|
+
if (action === 'update') {
|
|
279
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
280
|
+
loading.close()
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
inline: false,
|
|
284
|
+
notice: '请配置温馨提示内容,未配置的情况将不显示此模块',
|
|
285
|
+
},
|
|
286
|
+
],
|
|
287
|
+
};
|