Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
2ca794d3
Commit
2ca794d3
authored
Jul 06, 2023
by
hxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
智能推荐
parent
0ae8e2fe
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
static/nativeComponents/GoodsList/GoodsItem/index.js
+5
-1
static/nativeComponents/GoodsList/index.js
+4
-6
static/nativeComponents/GoodsList/index.wxml
+2
-2
No files found.
static/nativeComponents/GoodsList/GoodsItem/index.js
View file @
2ca794d3
...
...
@@ -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
}
`
;
}
...
...
static/nativeComponents/GoodsList/index.js
View file @
2ca794d3
...
...
@@ -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
(
...
...
static/nativeComponents/GoodsList/index.wxml
View file @
2ca794d3
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment