jufubao-mall 2.0.29 → 2.0.31-beta21
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/JfbMallNavigation/Api.js +23 -0
- package/src/components/JfbMallNavigation/Attr.js +48 -0
- package/src/components/JfbMallNavigation/JfbMallNavigation.vue +113 -0
- package/src/components/JfbMallNavigation/JfbMallNavigationLess.less +80 -0
- package/src/components/JfbMallNavigation/JfbMallNavigationMixin.js +30 -0
- package/src/components/JfbMallNavigation/Mock.js +13 -0
- package/src/components/JfbMallProductInfo/cusAttr/style.js +3 -0
- package/src/components/JfbMallSpecialHome/Attr.js +8 -584
- package/src/components/JfbMallSpecialHome/JfbMallSpecialHome.vue +230 -160
- package/src/components/JfbMallSpecialHome/Mock.js +90 -698
- package/src/components/JfbMallSpecialHome/cusAttr/advanced.js +38 -0
- package/src/components/JfbMallSpecialHome/cusAttr/content.js +319 -0
- package/src/components/JfbMallSpecialHome/cusAttr/style.js +983 -0
- package/src/components/JfbMallSpecialInfo/Attr.js +12 -383
- package/src/components/JfbMallSpecialInfo/JfbMallSpecialInfo.vue +107 -68
- package/src/components/JfbMallSpecialInfo/Mock.js +0 -177
- package/src/components/JfbMallSpecialInfo/cusAttr/advanced.js +24 -0
- package/src/components/JfbMallSpecialInfo/cusAttr/content.js +281 -0
- package/src/components/JfbMallSpecialInfo/cusAttr/style.js +459 -0
- package/src/components/JfbMallSpecialProduct/Attr.js +529 -714
- package/src/components/JfbMallSpecialProduct/JfbMallSpecialProduct.vue +255 -169
- package/src/components/JfbMallSpecialProduct/Mock.js +399 -0
- package/src/components/JfbMallSpecialProduct/components/title.vue +174 -0
- package/src/components/JfbMallSpecialProduct/cusAttr/advanced.js +21 -0
- package/src/components/JfbMallSpecialProduct/cusAttr/content.js +393 -0
- package/src/components/JfbMallSpecialProduct/cusAttr/style.js +1002 -0
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Navigation
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Navigation
|
|
10
|
+
mapFnName: 'getNavigationCategoryList',
|
|
11
|
+
title: '导航管理 - 列表',
|
|
12
|
+
path: '/cms/v1/navigation-setting-category',
|
|
13
|
+
isRule: false,
|
|
14
|
+
params: {
|
|
15
|
+
template_id: ['模板ID', 'String', '必选'],
|
|
16
|
+
parent_id: ['父级ID', 'String', '必选'],
|
|
17
|
+
type: ['类型 left、top', 'String', '必选'],
|
|
18
|
+
city_code: ['城市编码', 'String', '必选'],
|
|
19
|
+
},
|
|
20
|
+
isConsole: true,
|
|
21
|
+
disabled: true,
|
|
22
|
+
},
|
|
23
|
+
];
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view
|
|
3
|
+
class="jfb-mall-navigation"
|
|
4
|
+
@click="handleEditxSelect"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
|
+
>
|
|
7
|
+
<!--#ifdef H5-->
|
|
8
|
+
<view
|
|
9
|
+
class="jfb-mall-navigation__edit"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
|
+
v-if="isEditx && active"
|
|
12
|
+
>
|
|
13
|
+
<view class="jfb-mall-navigation__edit-icon" @click.stop="delEdit">
|
|
14
|
+
<xd-font-icon icon="iconshanchu-01" color="#fff" size="30"></xd-font-icon>
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
<!-- #endif -->
|
|
18
|
+
<view class="jfb-mall-navigation__body">
|
|
19
|
+
<view>综合导航</view>
|
|
20
|
+
</view>
|
|
21
|
+
</view>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
26
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
27
|
+
import JfbMallNavigationMixin from "./JfbMallNavigationMixin";
|
|
28
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
29
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
30
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
31
|
+
export default {
|
|
32
|
+
name: "JfbMallNavigation",
|
|
33
|
+
components: {
|
|
34
|
+
XdFontIcon
|
|
35
|
+
},
|
|
36
|
+
mixins: [
|
|
37
|
+
componentsMixins, extsMixins, JfbMallNavigationMixin
|
|
38
|
+
],
|
|
39
|
+
data() {
|
|
40
|
+
return {
|
|
41
|
+
|
|
42
|
+
//todo
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
watch: {
|
|
46
|
+
container(value, oldValue) {
|
|
47
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
48
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
created() {
|
|
52
|
+
this.init(this.container);
|
|
53
|
+
|
|
54
|
+
//todo
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
onJfbLoad(options) {
|
|
58
|
+
|
|
59
|
+
// jfbRootExec('baiduUserLogin', {
|
|
60
|
+
|
|
61
|
+
// vm: this,// data: {
|
|
62
|
+
|
|
63
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
64
|
+
|
|
65
|
+
// }
|
|
66
|
+
|
|
67
|
+
// }).then().catch()
|
|
68
|
+
},
|
|
69
|
+
/**
|
|
70
|
+
* @description 监听事件变化
|
|
71
|
+
* @param container {object} 业务组件对象自己
|
|
72
|
+
*/
|
|
73
|
+
init(container) {
|
|
74
|
+
|
|
75
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
76
|
+
|
|
77
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
78
|
+
},
|
|
79
|
+
onJfbScroll(options) {
|
|
80
|
+
console.log('event.onJfbScroll', options)
|
|
81
|
+
},
|
|
82
|
+
onJfbReachBottom(options) {
|
|
83
|
+
console.log('event.onJfbReachBottom', options)
|
|
84
|
+
},
|
|
85
|
+
onJfbShow(options) {
|
|
86
|
+
console.log('event.onJfbShow', options)
|
|
87
|
+
},
|
|
88
|
+
onJfbHide(options) {
|
|
89
|
+
console.log('event.onJfbHide', options)
|
|
90
|
+
},
|
|
91
|
+
onJfbBack(options) {
|
|
92
|
+
console.log('event.onJfbBack', options)
|
|
93
|
+
},
|
|
94
|
+
onJfbUpdate(...data) {
|
|
95
|
+
console.log('event.onJfbUpdate', data)
|
|
96
|
+
},
|
|
97
|
+
onJfbCustomEvent(options) {
|
|
98
|
+
console.log('event.onJfbReachBottom', options)
|
|
99
|
+
},
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
</script>
|
|
104
|
+
|
|
105
|
+
<style scoped lang="less">
|
|
106
|
+
@import "./JfbMallNavigationLess.less";
|
|
107
|
+
|
|
108
|
+
.jfb-mall-navigation {
|
|
109
|
+
&__body{
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
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-mall-navigation {
|
|
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: var(--preview-z-index);
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&__edit {
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
position: absolute;
|
|
46
|
+
right: unit(0, rpx);
|
|
47
|
+
top: unit(0, rpx);
|
|
48
|
+
height: unit(50, rpx);
|
|
49
|
+
z-index: 100;
|
|
50
|
+
display: flex;
|
|
51
|
+
justify-content: center;
|
|
52
|
+
align-items: center;
|
|
53
|
+
background: rgba(0, 0, 0, .4);
|
|
54
|
+
border-radius: 0 0 0 20rpx;
|
|
55
|
+
box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
|
|
56
|
+
color: #fff;
|
|
57
|
+
font-size: unit(22, rpx);
|
|
58
|
+
padding: 0 6rpx 0 6px;
|
|
59
|
+
|
|
60
|
+
&-icon{
|
|
61
|
+
padding: 0 unit(20, rpx);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&.editx {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
//end
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**notPreview**/
|
|
74
|
+
.jfb-mall-navigation {
|
|
75
|
+
//&:before {
|
|
76
|
+
//content: " ";
|
|
77
|
+
//display: table;
|
|
78
|
+
//}
|
|
79
|
+
}
|
|
80
|
+
/**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-mall-navigation'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -528,6 +528,9 @@ export default function (data, gValue, gColor, oldData) {
|
|
|
528
528
|
handleCustom({ action, data }) {
|
|
529
529
|
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
530
530
|
.then(res => {
|
|
531
|
+
res.list = res.list.filter(item => {
|
|
532
|
+
return item.label !== '无';
|
|
533
|
+
})
|
|
531
534
|
data.cb(res.list)
|
|
532
535
|
})
|
|
533
536
|
.catch(error => {
|