...
|
...
|
@@ -31,6 +31,7 @@ |
|
|
import qs from 'yoho-qs/parse';
|
|
|
import bus from 'common/vue-bus';
|
|
|
import tip from 'common/tip';
|
|
|
import cookie from 'yoho-cookie';
|
|
|
|
|
|
import topBar from 'product/shop/top-bar.vue'; // 顶部栏,包括返回、收藏店铺、分享,打开筛选页面
|
|
|
import shopTop from 'product/shop/shop-top.vue'; // 店铺头部信息
|
...
|
...
|
@@ -41,6 +42,21 @@ |
|
|
|
|
|
const $shop = $('#shop');
|
|
|
|
|
|
const channelTrans = {
|
|
|
men: {
|
|
|
key: 'MEN男士',
|
|
|
code: '1,3'
|
|
|
},
|
|
|
women: {
|
|
|
key: 'WOMEN女士',
|
|
|
code: '2,3'
|
|
|
},
|
|
|
lifestyle: {
|
|
|
key: 'LIFESTYLE生活',
|
|
|
code: '1,2,3'
|
|
|
}
|
|
|
};
|
|
|
|
|
|
const shareSubTitle = '我在BLK发现了一个不错的品牌,赶快来看看吧!';
|
|
|
let locationQuery = qs(decodeURIComponent(location.search.replace(/^\?/, '')));
|
|
|
|
...
|
...
|
@@ -160,7 +176,11 @@ |
|
|
}
|
|
|
|
|
|
this.inSearching = true;
|
|
|
let channel = cookie.get('_Channel') || 'men';
|
|
|
let gender = channelTrans[channel].code || '1,3';
|
|
|
return $.get(this.url, Object.assign({
|
|
|
gender,
|
|
|
channel,
|
|
|
order: this.order,
|
|
|
page: nextPage
|
|
|
}, locationQuery, this.filter)).done(result => {
|
...
|
...
|
|