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
0cc72546
Commit
0cc72546
authored
Mar 04, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
横向标签加载修改
parent
751531f7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
4 deletions
+13
-4
src/components/basicTool/transverse-label/index.vue
+4
-4
src/pages/home/index.vue
+7
-0
static/nativeComponents/GoodsList/index.js
+0
-0
static/nativeComponents/GoodsList/index.wxml
+2
-0
No files found.
src/components/basicTool/transverse-label/index.vue
View file @
0cc72546
...
...
@@ -72,7 +72,7 @@
<!--
<goods-list
class=
"goodsListItem"
:datas=
"item1"
></goods-list>
-->
{{
index
}}
------
<goods-list
:class=
"['goodsListItem
','goodsListItemIndex'+index
]"
:datas=
"item1"
:datasIndex=
"active"
:goodsListIndex=
"index"
></goods-list>
<goods-list
:class=
"['goodsListItem
Index'+index,'transverse-label-goodsListItem'
]"
:datas=
"item1"
:datasIndex=
"active"
:goodsListIndex=
"index"
></goods-list>
</div>
<div
v-else-if=
"item1.componentCode == 'area-navigation' && item1.componentInfo.visible == 1"
>
...
...
@@ -447,11 +447,11 @@ export default {
item
.
getScroll
()
})
}
if
(
this
.
$parent
.
$mp
.
page
.
selectAllComponents
(
'.goodsListItem'
)){
// this.$parent.$mp.page.selectAllComponents('.goodsListItem').forEach(v=>{
if
(
this
.
$parent
.
$mp
.
page
.
selectAllComponents
(
'.
transverse-label-
goodsListItem'
)){
// this.$parent.$mp.page.selectAllComponents('.
transverse-label-
goodsListItem').forEach(v=>{
// v.wheatherLazyloading == true
// })
// console.log(this.$parent.$mp.page.selectAllComponents('.goodsListItem')[res.target.index].setPageDatas(res.target.index));
// console.log(this.$parent.$mp.page.selectAllComponents('.
transverse-label-
goodsListItem')[res.target.index].setPageDatas(res.target.index));
// console.log('setDatas');
}
this
.
active
=
res
.
target
.
index
;
...
...
src/pages/home/index.vue
View file @
0cc72546
...
...
@@ -698,8 +698,15 @@ export default {
this
.
$mp
.
page
.
selectComponent
(
".getIndexHomePage"
).
getScroll
(
el
);
}
if
(
this
.
$mp
.
page
&&
this
.
$mp
.
page
.
selectComponent
(
".goodsListItem"
)){
console
.
log
(
this
.
$mp
.
page
.
selectAllComponents
(
".transverse-label-goodsListItem"
),
'-this.$mp.page.selectComponent(".goodsListItem")'
)
this
.
$mp
.
page
.
selectComponent
(
".goodsListItem"
).
getScroll
(
el
);
}
if
(
this
.
$mp
.
page
&&
this
.
$mp
.
page
.
selectAllComponents
(
".transverse-label-goodsListItem"
)){
this
.
$mp
.
page
.
selectAllComponents
(
".transverse-label-goodsListItem"
).
forEach
(
item
=>
{
console
.
log
(
item
,
'-this.$mp.page.selectComponent(".goodsListItem")'
)
item
.
getScroll
(
el
)
})
}
},
setFooterShow
(
el
){
// return
...
...
static/nativeComponents/GoodsList/index.js
View file @
0cc72546
This diff is collapsed.
Click to expand it.
static/nativeComponents/GoodsList/index.wxml
View file @
0cc72546
...
...
@@ -30,6 +30,8 @@
class="goods-item {{'goodsItemIndex'+index}}"
style="width:{{100/datas.componentData.columnNum}}%;padding-left:{{datas.componentData.proGap*2}}rpx"
>
+{{testFlag}}+
*{{goodsListIndex}}*
<!-- <goods-item
datas="{{datas}}"
items="{{goodsList[index]}}"
...
...
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