Commit 2ca794d3 by hxx

智能推荐

parent 0ae8e2fe
......@@ -175,11 +175,15 @@ const componentOptions = {
productId,
productName,
terminalProductId,
terminalGoodsMixId
terminalGoodsMixId,
productSourceType
} = this.data.items;
let linkVal = "";
if (goodsType == 0) {
linkVal = `/goods/${productId}?terminalProductId=${terminalProductId}`;
if (productSourceType != undefined && productSourceType != null) {
if (productSourceType == 0) linkVal += '&productSourceType=0';
}
} else if (goodsType == 1) {
linkVal = `/pointShop/goodsDetail?productId${productId}&terminalProductId=${terminalProductId}&terminalGoodsMixId=${terminalGoodsMixId}`;
}
......
......@@ -145,11 +145,6 @@ const componentOptions = {
},
// 组件方法
methods: {
// setPageDatas(active){
// this.pageGoodsList = this.getStorageSync('pageGoodsList')
// console.log(this.pageGoodsList,active,'active');
// },
filterInput(e) {
this.setData({
filterSearchName: e.detail.value
......@@ -313,6 +308,8 @@ const componentOptions = {
}; // 当前页 // 一页多少条 //查询销售数量 //查询收藏数 //是否使用虚拟销售数量 //是否使用虚拟收藏人数 //是否查询商品佣金(0:不查询,1:展示,为空不查佣金) //是否查询会员价 1是 0否 //是否展示营销标签 1是 0否 //是否查询多商户 //商城使用
if(this.data.datas.componentData['goodsSource'] == 'classify') {
query.rows = this.data.datas.componentData.classificationLoadNum;
} else if (this.data.datas.componentData['goodsSource'] == 'intelligenceRec') {
query.productSourceInquiryType = 0;
} else {
query.rows = this.getItemNum();
}
......@@ -659,7 +656,8 @@ const componentOptions = {
//数量
if (
this.data.datas.componentData.style === "list" &&
this.data.datas.componentData["goodsSource"] != "assign"
this.data.datas.componentData["goodsSource"] != "assign" &&
this.data.datas.componentData['goodsSource'] != "intelligenceRec"
) {
//网格模式
if (
......
......@@ -12,7 +12,7 @@
<view
class="moreTop"
bindtap="viewMore"
wx:if="{{datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='top' && datas.componentData['goodsSource']!='assign'}}"
wx:if="{{datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='top' && datas.componentData['goodsSource']!='assign' && datas.componentData['goodsSource']!='intelligenceRec'}}"
>
查看更多
<text class="jt"></text>
......@@ -179,7 +179,7 @@
<view
class="moreBottom"
bindtap="viewMore"
wx:if="{{datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='bottom' && datas.componentData['goodsSource']!='assign'}}"
wx:if="{{datas.componentData['moreShow'] && datas.componentData.moreButtonSite=='bottom' && datas.componentData['goodsSource']!='assign' && datas.componentData['goodsSource']!='intelligenceRec'}}"
>
查看更多
<text class="jt"></text>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment