Authored by 李奇

fixed:跳转商品详情时空参数排除

... ... @@ -34,6 +34,7 @@
</style>
<script>
import $ from 'jquery';
import _ from 'lodash';
import yoho from 'yoho';
import qs from 'yoho-qs/parse';
import bus from 'common/vue-bus';
... ... @@ -198,6 +199,13 @@
if (result.code === 200) {
this.page = result.data.page;
this.totalPage = result.data.pageTotal;
// yas report param injection
_.each(result.data.productList, item => {
item.from_page_name = this.pageName;
item.from_page_param = this.pageParam;
});
this.productList = this.productList.concat(result.data.productList);
if (!this.filterConfig) {
this.filterConfig = result.data.filter;
... ...
... ... @@ -46,13 +46,14 @@ export default {
this.$route.name;
}
let from_page_param = Object.keys(this.$route.query).length ? this.$route.query : void 0;
if ((this.$yoho && this.$yoho.isYohoBuy) || this.yoho.env.isYohoBuy) {
let goParams = {
action: 'go.productDetail',
params: {
product_skn: product_skn,
from_page_name: from_page_name,
from_page_param: this.$route.query
from_page_param
}
};
... ...