|
@@ -53,7 +53,7 @@ export default { |
|
@@ -53,7 +53,7 @@ export default { |
53
|
methods: {
|
53
|
methods: {
|
54
|
goDetail(product, index) {
|
54
|
goDetail(product, index) {
|
55
|
if (this.yasParams && Object.keys(this.yasParams).length) {
|
55
|
if (this.yasParams && Object.keys(this.yasParams).length) {
|
56
|
- this.yasDetail(product.product_id, index);
|
56
|
+ this.yasDetail(product, index);
|
57
|
}
|
57
|
}
|
58
|
|
58
|
|
59
|
this.$router.push({
|
59
|
this.$router.push({
|
|
@@ -102,7 +102,7 @@ export default { |
|
@@ -102,7 +102,7 @@ export default { |
102
|
let DATA = [];
|
102
|
let DATA = [];
|
103
|
|
103
|
|
104
|
list.map((value, i) => {
|
104
|
list.map((value, i) => {
|
105
|
- const prdType = value.pre_sale_flag === 5 ? 2 : 1; //flag=5全新瑕疵,6二手
|
105
|
+ const prdType = value.sechondHandTypeName === '全新瑕疵' ? 2 : 1;
|
106
|
DATA.push({...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.product_id, PRD_TYPE: prdType});
|
106
|
DATA.push({...this.yasParams, I_INDEX: i + index + 1, PRD_ID: value.product_id, PRD_TYPE: prdType});
|
107
|
});
|
107
|
});
|
108
|
|
108
|
|
|
@@ -116,9 +116,12 @@ export default { |
|
@@ -116,9 +116,12 @@ export default { |
116
|
},
|
116
|
},
|
117
|
|
117
|
|
118
|
yasDetail(id, index) {
|
118
|
yasDetail(id, index) {
|
|
|
119
|
+ let { product_id, sechondHandTypeName } = product
|
|
|
120
|
+ let PRD_TYPE = value.sechondHandTypeName === '全新瑕疵' ? 2 : 1;
|
|
|
121
|
+
|
119
|
this.$store.dispatch('reportYas', {
|
122
|
this.$store.dispatch('reportYas', {
|
120
|
params: {
|
123
|
params: {
|
121
|
- param: {...this.yasParams, I_INDEX: index + 1, PRD_ID: id },
|
124
|
+ param: {...this.yasParams, I_INDEX: index + 1, PRD_ID: product_id, PRD_TYPE },
|
122
|
appop: this.yasEventName
|
125
|
appop: this.yasEventName
|
123
|
}
|
126
|
}
|
124
|
});
|
127
|
});
|