jufubao-base 1.0.208-beta1 → 1.0.208
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/JfbBaseCardInfo/JfbBaseCardInfo.vue +5 -5
- package/src/components/JfbBaseConList/JfbBaseConList.vue +1 -5
- package/src/components/JfbBasePoster/Attr.js +13 -11
- package/src/components/JfbBasePoster/JfbBasePoster.vue +3 -1
- package/src/components/JfbBaseRechargeNew/Api.js +0 -58
- package/src/components/JfbBaseRechargeNew/Attr.js +0 -48
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNew.vue +0 -111
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNewLess.less +0 -79
- package/src/components/JfbBaseRechargeNew/JfbBaseRechargeNewMixin.js +0 -30
- package/src/components/JfbBaseRechargeNew/Mock.js +0 -13
package/package.json
CHANGED
|
@@ -198,11 +198,11 @@ export default {
|
|
|
198
198
|
},
|
|
199
199
|
methods: {
|
|
200
200
|
handleLabel(el){
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
201
|
+
this.card_password_focus = false;
|
|
202
|
+
this.card_number_focus = false;
|
|
203
|
+
setTimeout(()=>{
|
|
204
|
+
this[`${el}_focus`] = true;
|
|
205
|
+
},50)
|
|
206
206
|
},
|
|
207
207
|
handleIcon(){
|
|
208
208
|
this.isPassword = !this.isPassword
|
|
@@ -280,8 +280,7 @@ export default {
|
|
|
280
280
|
btn_txt: "",
|
|
281
281
|
btn_style: {},
|
|
282
282
|
btnTextSize: '',
|
|
283
|
-
is_blank_page: 'Y'
|
|
284
|
-
foreign_id: null
|
|
283
|
+
is_blank_page: 'Y'
|
|
285
284
|
};
|
|
286
285
|
},
|
|
287
286
|
computed: {
|
|
@@ -534,7 +533,6 @@ export default {
|
|
|
534
533
|
namespace: this.pageBusinessCode,
|
|
535
534
|
activity_id: this.activity_id,
|
|
536
535
|
prize_id: item.prize_id,
|
|
537
|
-
foreign_id: this.foreign_id
|
|
538
536
|
},
|
|
539
537
|
})
|
|
540
538
|
.then((res) => {
|
|
@@ -568,7 +566,6 @@ export default {
|
|
|
568
566
|
distribution_method: this.method,
|
|
569
567
|
namespace: this.pageBusinessCode,
|
|
570
568
|
activity_id: this.activity_id,
|
|
571
|
-
foreign_id: this.foreign_id
|
|
572
569
|
},
|
|
573
570
|
})
|
|
574
571
|
.then((res) => {
|
|
@@ -663,7 +660,6 @@ export default {
|
|
|
663
660
|
console.log(this.pageBusinessCode, "pageNamespace");
|
|
664
661
|
this.options = options;
|
|
665
662
|
this.activity_id = options.activity_id;
|
|
666
|
-
this.foreign_id = options.foreign_id;
|
|
667
663
|
this.method = options.distribution_method
|
|
668
664
|
? options.distribution_method
|
|
669
665
|
: "entry";
|
|
@@ -258,17 +258,6 @@ export default {
|
|
|
258
258
|
},trigger: ['blur', 'change']
|
|
259
259
|
}],
|
|
260
260
|
},
|
|
261
|
-
params['isCarousel']=== 2 && (params.poster && params.poster['type'] && params.poster['type'] === '1') && {
|
|
262
|
-
label: '是否启用配套背景:',
|
|
263
|
-
ele: 'xd-radio',
|
|
264
|
-
valueKey: 'isSupport',
|
|
265
|
-
value: params['isSupport'] || 'Y',
|
|
266
|
-
groupKey:'style',
|
|
267
|
-
list: [
|
|
268
|
-
{"label": "启用", "value": 'Y'},
|
|
269
|
-
{"label": "禁用", "value": 'N'},
|
|
270
|
-
]
|
|
271
|
-
},
|
|
272
261
|
{
|
|
273
262
|
ele: 'title',
|
|
274
263
|
label: '广告位参数配置',
|
|
@@ -335,6 +324,19 @@ export default {
|
|
|
335
324
|
{"label": "轮播图显示", "value": 2},
|
|
336
325
|
]
|
|
337
326
|
},
|
|
327
|
+
params['isCarousel']=== 2 && (params.poster && params.poster['type'] && params.poster['type'] === '1') && {
|
|
328
|
+
label: '是否启用配套背景:',
|
|
329
|
+
ele: 'xd-radio',
|
|
330
|
+
valueKey: 'isSupport',
|
|
331
|
+
value: params['isSupport'] || 'Y',
|
|
332
|
+
groupKey:'content',
|
|
333
|
+
list: [
|
|
334
|
+
{"label": "启用", "value": 'Y'},
|
|
335
|
+
{"label": "禁用", "value": 'N'},
|
|
336
|
+
],
|
|
337
|
+
inline: false,
|
|
338
|
+
notice: '广告位使用轮播图模式,每个页面中<span style="color:red">仅允许一个广告位启用配套背景功能</span>,否则无法达到效果。',
|
|
339
|
+
},
|
|
338
340
|
params['isCarousel'] === 2 && {
|
|
339
341
|
label: '广告位轮播周期:',
|
|
340
342
|
ele: 'el-input',
|
|
@@ -577,7 +577,9 @@
|
|
|
577
577
|
this.padding = 20;
|
|
578
578
|
}
|
|
579
579
|
this.rows = getContainerPropsValue(container, 'content.rows', 1);
|
|
580
|
-
if(this.posterType === '1' && this.isCarousel === 2)
|
|
580
|
+
if(this.posterType === '1' && this.isCarousel === 2) {
|
|
581
|
+
this.isSupport = getContainerPropsValue(container, 'content.isSupport', 'Y');
|
|
582
|
+
}
|
|
581
583
|
this.mS = getContainerPropsValue(container, 'content.margin', {});
|
|
582
584
|
this.background = getContainerPropsValue(container, "content.background", '');
|
|
583
585
|
this.bgImagePadding = getContainerPropsValue(container, 'content.bgImagePadding', {});
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
/**
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Recharge
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
7
|
-
module.exports = [
|
|
8
|
-
{
|
|
9
|
-
//设置方法名字当别忘记加上【模块名字】:Recharge
|
|
10
|
-
mapFnName: 'getRechargeByIdFilmSquate',
|
|
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
|
-
//设置方法名字当别忘记加上【模块名字】:Recharge
|
|
23
|
-
mapFnName: 'updateRechargeFilmPaiqiDate',
|
|
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
|
-
//设置方法名字当别忘记加上【模块名字】:Recharge
|
|
36
|
-
mapFnName: 'removeRechargeFilmAddress',
|
|
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
|
-
//设置方法名字当别忘记加上【模块名字】:Recharge
|
|
48
|
-
mapFnName: 'addRechargeFilmcart',
|
|
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
|
-
];
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view
|
|
3
|
-
class="jfb-base-recharge-new"
|
|
4
|
-
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx : isEditx && active }"
|
|
6
|
-
>
|
|
7
|
-
<!--#ifdef H5-->
|
|
8
|
-
<view
|
|
9
|
-
class="jfb-base-recharge-new__edit"
|
|
10
|
-
:class="{ editx : isEditx && active }"
|
|
11
|
-
v-if="isEditx && active"
|
|
12
|
-
>
|
|
13
|
-
<view class="jfb-base-recharge-new__edit-icon" @click="delEdit">删除</view>
|
|
14
|
-
</view>
|
|
15
|
-
<!-- #endif -->
|
|
16
|
-
<view class="jfb-base-recharge-new__body">
|
|
17
|
-
<view>测试插件( {{containerId}} )</view>
|
|
18
|
-
</view>
|
|
19
|
-
</view>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
-
import JfbBaseRechargeNewMixin from "./JfbBaseRechargeNewMixin";
|
|
26
|
-
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
-
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
-
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
-
export default {
|
|
30
|
-
name: "JfbBaseRechargeNew",
|
|
31
|
-
components: {
|
|
32
|
-
XdFontIcon
|
|
33
|
-
},
|
|
34
|
-
mixins: [
|
|
35
|
-
componentsMixins, extsMixins, JfbBaseRechargeNewMixin
|
|
36
|
-
],
|
|
37
|
-
data() {
|
|
38
|
-
return {
|
|
39
|
-
|
|
40
|
-
//todo
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
watch: {
|
|
44
|
-
container(value, oldValue) {
|
|
45
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
created() {
|
|
50
|
-
this.init(this.container);
|
|
51
|
-
|
|
52
|
-
//todo
|
|
53
|
-
},
|
|
54
|
-
methods: {
|
|
55
|
-
onJfbLoad(options) {
|
|
56
|
-
|
|
57
|
-
// jfbRootExec('baiduUserLogin', {
|
|
58
|
-
|
|
59
|
-
// vm: this,// data: {
|
|
60
|
-
|
|
61
|
-
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
-
|
|
63
|
-
// }
|
|
64
|
-
|
|
65
|
-
// }).then().catch()
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* @description 监听事件变化
|
|
69
|
-
* @param container {object} 业务组件对象自己
|
|
70
|
-
*/
|
|
71
|
-
init(container) {
|
|
72
|
-
|
|
73
|
-
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
-
|
|
75
|
-
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
-
},
|
|
77
|
-
onJfbScroll(options) {
|
|
78
|
-
console.log('event.onJfbScroll', options)
|
|
79
|
-
},
|
|
80
|
-
onJfbReachBottom(options) {
|
|
81
|
-
console.log('event.onJfbReachBottom', options)
|
|
82
|
-
},
|
|
83
|
-
onJfbShow(options) {
|
|
84
|
-
console.log('event.onJfbShow', options)
|
|
85
|
-
},
|
|
86
|
-
onJfbHide(options) {
|
|
87
|
-
console.log('event.onJfbHide', options)
|
|
88
|
-
},
|
|
89
|
-
onJfbBack(options) {
|
|
90
|
-
console.log('event.onJfbBack', options)
|
|
91
|
-
},
|
|
92
|
-
onJfbUpdate(...data) {
|
|
93
|
-
console.log('event.onJfbUpdate', data)
|
|
94
|
-
},
|
|
95
|
-
onJfbCustomEvent(options) {
|
|
96
|
-
console.log('event.onJfbReachBottom', options)
|
|
97
|
-
},
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
</script>
|
|
102
|
-
|
|
103
|
-
<style scoped lang="less">
|
|
104
|
-
@import "./JfbBaseRechargeNewLess.less";
|
|
105
|
-
|
|
106
|
-
.jfb-base-recharge-new {
|
|
107
|
-
&__body{
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
</style>
|
|
@@ -1,79 +0,0 @@
|
|
|
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-recharge-new {
|
|
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-recharge-new {
|
|
74
|
-
//&:before {
|
|
75
|
-
//content: " ";
|
|
76
|
-
//display: table;
|
|
77
|
-
//}
|
|
78
|
-
}
|
|
79
|
-
/**endNotPreview**/
|
|
@@ -1,30 +0,0 @@
|
|
|
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-recharge-new'
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
created() {
|
|
23
|
-
|
|
24
|
-
//@AttrDataCreated
|
|
25
|
-
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
-
//@EndAttrDataCreated
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
}
|