jufubao-mall 2.0.40 → 2.0.41
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
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
2
|
+
import {
|
|
3
|
+
getAttrNoStatus
|
|
4
|
+
} from "@/utils/AttrTools";
|
|
3
5
|
/**
|
|
4
6
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
7
|
*/
|
|
6
8
|
export default {
|
|
7
9
|
style: [],
|
|
8
|
-
content: (data) => {
|
|
10
|
+
content: (data, gValue, gColor, oldData = {}) => {
|
|
11
|
+
console.log(getAttrNoStatus(data, 'isPlatformTags', [[],['flashsale']], { gValue, isBackStrictValue: true }),'aiiaaai');
|
|
12
|
+
|
|
9
13
|
let xnamespace = data.xnamespace || '';
|
|
10
14
|
let isShowMore = 'N';
|
|
11
15
|
if(['Y','N'].includes(data.isShowMore)) isShowMore = data.isShowMore;
|
|
@@ -84,6 +88,34 @@ export default {
|
|
|
84
88
|
});
|
|
85
89
|
},
|
|
86
90
|
},
|
|
91
|
+
{
|
|
92
|
+
label: '平台标签',
|
|
93
|
+
ele: 'xd-site-select-list',
|
|
94
|
+
valueKey: 'isPlatformTags',
|
|
95
|
+
value: getAttrNoStatus(data, 'isPlatformTags', [[], ['flashsale']], { gValue, isBackStrictValue: true }),
|
|
96
|
+
placeholder: '选择需要查询的平台标签',
|
|
97
|
+
className: 'input80',
|
|
98
|
+
groupKey: 'content',
|
|
99
|
+
setting: {
|
|
100
|
+
multiple: true,
|
|
101
|
+
},
|
|
102
|
+
notice: '平台配置的商品标签',
|
|
103
|
+
inline: false,
|
|
104
|
+
handleCustom({ action, data }) {
|
|
105
|
+
//product-partner/v1/xsiteid}/product/options
|
|
106
|
+
XdBus.getParentApi('getBoardOptions')(
|
|
107
|
+
{ server: 'product-partner', fn: 'product', path: 'p2' },
|
|
108
|
+
{ key: Date.now(), partner_product_tag: 1 }
|
|
109
|
+
)
|
|
110
|
+
.then(res => {
|
|
111
|
+
data.cb(res['partner_product_tag'] || [])
|
|
112
|
+
})
|
|
113
|
+
.catch(error => {
|
|
114
|
+
data.cb([])
|
|
115
|
+
console.error(error);
|
|
116
|
+
});
|
|
117
|
+
},
|
|
118
|
+
},
|
|
87
119
|
{
|
|
88
120
|
label: '自定义营销标签:',
|
|
89
121
|
ele: 'el-input',
|
|
@@ -471,6 +471,7 @@
|
|
|
471
471
|
differ: 1,
|
|
472
472
|
isUsePlusPrice: "N",
|
|
473
473
|
is_plus_site: false,
|
|
474
|
+
isPlatformTags:[],
|
|
474
475
|
}
|
|
475
476
|
},
|
|
476
477
|
watch: {
|
|
@@ -517,6 +518,9 @@
|
|
|
517
518
|
sort: 'default',
|
|
518
519
|
is_force_show_vprice: this.isUsePlusPrice
|
|
519
520
|
}
|
|
521
|
+
if(this.isPlatformTags.length > 0){
|
|
522
|
+
params['partner_product_tags'] = this.isPlatformTags.join(',')
|
|
523
|
+
}
|
|
520
524
|
|
|
521
525
|
if(this.productCategory) params['custom_category_id'] = this.productCategory;
|
|
522
526
|
|
|
@@ -540,6 +544,8 @@
|
|
|
540
544
|
* @param container {object} 业务组件对象自己
|
|
541
545
|
*/
|
|
542
546
|
init(container) {
|
|
547
|
+
console.log(JSON.stringify(container),'containercontainercontainer');
|
|
548
|
+
|
|
543
549
|
this.xnamespace = getContainerPropsValue(container, "content.xnamespace", this.projectAttr.business_code);
|
|
544
550
|
this.productCategory = getContainerPropsValue(container, "content.productCategory", '');
|
|
545
551
|
|
|
@@ -581,9 +587,9 @@
|
|
|
581
587
|
this.isContentBorderWidth = getContainerPropsValue(container, 'content.isContentBorderWidth', '0');
|
|
582
588
|
this.contentRadius = getContainerPropsValue(container, 'content.contentRadius', '0');
|
|
583
589
|
this.contentMargin = getContainerPropsValue(container, 'content.contentMargin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
584
|
-
this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', {top: 0, left: 0, right: 0, bottom: 0});
|
|
585
|
-
|
|
586
|
-
|
|
590
|
+
this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', { top: 0, left: 0, right: 0, bottom: 0 });
|
|
591
|
+
this.isPlatformTags = getContainerPropsValue(container, 'content.isPlatformTags', [[],['flashsale']], {isNoStatus: true,isBackStrictValue: true});
|
|
592
|
+
|
|
587
593
|
//title
|
|
588
594
|
this.fontSize = getContainerPropsValue(container, 'content.fontSize', '24');
|
|
589
595
|
this.isTitle = getContainerPropsValue(container, 'content.isTitle', 'N');
|