jufubao-mall 2.0.76 → 2.0.77-beta3
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/get.package.path.js +2 -2
- package/package.json +1 -1
- package/src/components/JfbMallSpecialHomeV2/Api.js +33 -0
- package/src/components/JfbMallSpecialHomeV2/Attr.js +27 -0
- package/src/components/JfbMallSpecialHomeV2/JfbMallSpecialHomeV2.vue +863 -0
- package/src/components/JfbMallSpecialHomeV2/JfbMallSpecialHomeV2Less.less +80 -0
- package/src/components/JfbMallSpecialHomeV2/JfbMallSpecialHomeV2Mixin.js +30 -0
- package/src/components/JfbMallSpecialHomeV2/Mock.js +245 -0
- package/src/components/JfbMallSpecialHomeV2/cusAttr/advanced.js +24 -0
- package/src/components/JfbMallSpecialHomeV2/cusAttr/content.js +266 -0
- package/src/components/JfbMallSpecialHomeV2/cusAttr/style.js +459 -0
- package/src/components/JfbMallSpecialInfo/Mock.js +6 -386
package/get.package.path.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
|
|
10
10
|
if(packname === 'gxd-commands-bussiness') {
|
|
11
|
-
return `/Users/shiyonggao/
|
|
11
|
+
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/
|
|
15
|
+
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
module.exports = [
|
|
4
|
+
{
|
|
5
|
+
mapFnName: 'getCategoriesList',
|
|
6
|
+
title: '专题 - 获取专题分类列表',
|
|
7
|
+
path: '/product/v1/:xnamespace/special/:special_id/categories',
|
|
8
|
+
isRule: false,
|
|
9
|
+
params: {
|
|
10
|
+
xnamespace: ['xnamespace', 'Number', '必选'],
|
|
11
|
+
special_id: ['special_id', 'Number', '必选'],
|
|
12
|
+
},
|
|
13
|
+
isConsole: true,
|
|
14
|
+
disabled: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
mapFnName: 'getSpecialProductsList',
|
|
18
|
+
title: '专题 - 分页获取专题分类下商品列表',
|
|
19
|
+
path: '/product/v1/:xnamespace/special/:special_id/specials-products-page',
|
|
20
|
+
isRule: false,
|
|
21
|
+
params: {
|
|
22
|
+
xnamespace: ['xnamespace', 'Number', '必选'],
|
|
23
|
+
special_id: ['special_id', 'Number', '必选'],
|
|
24
|
+
category_id: ['category_id', 'Number'],
|
|
25
|
+
need_show_tags: ['need_show_tags', 'String'],
|
|
26
|
+
is_show_uprice: ['is_show_uprice', 'Number'],
|
|
27
|
+
page_token: ['page_token', 'String', '必选'],
|
|
28
|
+
page_size: ['page_size', 'Number', '必选'],
|
|
29
|
+
},
|
|
30
|
+
isConsole: true,
|
|
31
|
+
disabled: true,
|
|
32
|
+
},
|
|
33
|
+
];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import { getRemoteOptions } from "@/utils/AttrTools";
|
|
3
|
+
import Content from './cusAttr/content'
|
|
4
|
+
import Style from './cusAttr/style'
|
|
5
|
+
import Advanced from './cusAttr/advanced'
|
|
6
|
+
function checkValue(value, dValue = 0) {
|
|
7
|
+
if (value === undefined || value === '' || value === null) return dValue;
|
|
8
|
+
return Number(value || 0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
13
|
+
*/
|
|
14
|
+
export default {
|
|
15
|
+
|
|
16
|
+
style: [],
|
|
17
|
+
content: (data, gValue, gColor, oldData = {}) => {
|
|
18
|
+
return [
|
|
19
|
+
...Content(data, gValue, gColor, oldData),
|
|
20
|
+
...Style(data, gValue, gColor, oldData),
|
|
21
|
+
...Advanced(data, gValue, gColor, oldData),
|
|
22
|
+
|
|
23
|
+
].filter(i => i)
|
|
24
|
+
},
|
|
25
|
+
advanced: [
|
|
26
|
+
],
|
|
27
|
+
};
|