Commit 2ca794d3 by hxx

智能推荐

parent 0ae8e2fe
...@@ -175,11 +175,15 @@ const componentOptions = { ...@@ -175,11 +175,15 @@ const componentOptions = {
productId, productId,
productName, productName,
terminalProductId, terminalProductId,
terminalGoodsMixId terminalGoodsMixId,
productSourceType
} = this.data.items; } = this.data.items;
let linkVal = ""; let linkVal = "";
if (goodsType == 0) { if (goodsType == 0) {
linkVal = `/goods/${productId}?terminalProductId=${terminalProductId}`; linkVal = `/goods/${productId}?terminalProductId=${terminalProductId}`;
if (productSourceType != undefined && productSourceType != null) {
if (productSourceType == 0) linkVal += '&productSourceType=0';
}
} else if (goodsType == 1) { } else if (goodsType == 1) {
linkVal = `/pointShop/goodsDetail?productId${productId}&terminalProductId=${terminalProductId}&terminalGoodsMixId=${terminalGoodsMixId}`; linkVal = `/pointShop/goodsDetail?productId${productId}&terminalProductId=${terminalProductId}&terminalGoodsMixId=${terminalGoodsMixId}`;
} }
......
...@@ -145,11 +145,6 @@ const componentOptions = { ...@@ -145,11 +145,6 @@ const componentOptions = {
}, },
// 组件方法 // 组件方法
methods: { methods: {
// setPageDatas(active){
// this.pageGoodsList = this.getStorageSync('pageGoodsList')
// console.log(this.pageGoodsList,active,'active');
// },
filterInput(e) { filterInput(e) {
this.setData({ this.setData({
filterSearchName: e.detail.value filterSearchName: e.detail.value
...@@ -313,6 +308,8 @@ const componentOptions = { ...@@ -313,6 +308,8 @@ const componentOptions = {
}; // 当前页 // 一页多少条 //查询销售数量 //查询收藏数 //是否使用虚拟销售数量 //是否使用虚拟收藏人数 //是否查询商品佣金(0:不查询,1:展示,为空不查佣金) //是否查询会员价 1是 0否 //是否展示营销标签 1是 0否 //是否查询多商户 //商城使用 }; // 当前页 // 一页多少条 //查询销售数量 //查询收藏数 //是否使用虚拟销售数量 //是否使用虚拟收藏人数 //是否查询商品佣金(0:不查询,1:展示,为空不查佣金) //是否查询会员价 1是 0否 //是否展示营销标签 1是 0否 //是否查询多商户 //商城使用
if(this.data.datas.componentData['goodsSource'] == 'classify') { if(this.data.datas.componentData['goodsSource'] == 'classify') {
query.rows = this.data.datas.componentData.classificationLoadNum; query.rows = this.data.datas.componentData.classificationLoadNum;
} else if (this.data.datas.componentData['goodsSource'] == 'intelligenceRec') {
query.productSourceInquiryType = 0;
} else { } else {
query.rows = this.getItemNum(); query.rows = this.getItemNum();
} }
...@@ -659,7 +656,8 @@ const componentOptions = { ...@@ -659,7 +656,8 @@ const componentOptions = {
//数量 //数量
if ( if (
this.data.datas.componentData.style === "list" && 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 ( if (
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<view <view
class="moreTop" class="moreTop"
bindtap="viewMore" 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> <text class="jt"></text>
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
<view <view
class="moreBottom" class="moreBottom"
bindtap="viewMore" 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> <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