Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
bd08fe82
Commit
bd08fe82
authored
Jan 02, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了动态子组件位置
parent
cc3b83f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
Item.vue
pages/components/article/Item.vue
+8
-5
List.vue
pages/components/article/List.vue
+2
-1
article.vue
pages/tab/article.vue
+1
-5
No files found.
pages
Article/components
/Item.vue
→
pages
/components/article
/Item.vue
View file @
bd08fe82
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<
template
v-if=
"info.content"
>
<
template
v-if=
"info.content"
>
<u-read-more
ref=
"uReadMore"
:shadowStyle=
"shadowStyle"
:toggle=
"true"
color=
"#415C9E"
<u-read-more
ref=
"uReadMore"
:shadowStyle=
"shadowStyle"
:toggle=
"true"
color=
"#415C9E"
:textIndent=
"0"
showHeight=
"126rpx"
>
:textIndent=
"0"
showHeight=
"126rpx"
>
<view
@
click=
"go
Detail
"
style=
"font-size: 28rpx;color: #333333;"
>
<view
@
click=
"go
toDetail(info)
"
style=
"font-size: 28rpx;color: #333333;"
>
<!--
<u-parse
:tagStyle=
"tagStyle"
:content=
"info.content"
@
load=
"load"
></u-parse>
-->
<!--
<u-parse
:tagStyle=
"tagStyle"
:content=
"info.content"
@
load=
"load"
></u-parse>
-->
<!--
<rich-text
:nodes=
"info.content"
></rich-text>
-->
<!--
<rich-text
:nodes=
"info.content"
></rich-text>
-->
<view
class=
""
style=
"line-height: 1.5;"
>
<view
class=
""
style=
"line-height: 1.5;"
>
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
<!-- <text>分享</text>-->
<!-- <text>分享</text>-->
<!-- </u-button>-->
<!-- </u-button>-->
</view>
</view>
<view
class=
"btn"
@
click=
"go
Detail
"
>
<view
class=
"btn"
@
click=
"go
toDetail(info)
"
>
<image
src=
"../../static/images/104.png"
mode=
""
></image>
<image
src=
"../../static/images/104.png"
mode=
""
></image>
<text>
{{info.commentCount}}
</text>
<text>
{{info.commentCount}}
</text>
</view>
</view>
...
@@ -112,7 +112,7 @@
...
@@ -112,7 +112,7 @@
import
xzjReadMore
from
"@/components/xzj-readMore/xzj-readMore.vue"
import
xzjReadMore
from
"@/components/xzj-readMore/xzj-readMore.vue"
import
ELM
from
'@/components/elm-toast/index.vue'
;
import
ELM
from
'@/components/elm-toast/index.vue'
;
export
default
{
export
default
{
name
:
'ArticleItem'
,
options
:
{
options
:
{
styleIsolation
:
'shared'
styleIsolation
:
'shared'
},
},
...
@@ -184,8 +184,11 @@
...
@@ -184,8 +184,11 @@
select
()
{
select
()
{
this
.
$emit
(
"selectShare"
,
this
.
info
)
this
.
$emit
(
"selectShare"
,
this
.
info
)
},
},
goDetail
()
{
//查看动态详情
gotoDetail
(
item
)
{
uni
.
navigateTo
({
url
:
'/pages3/articleDetail?userId='
+
item
.
userId
})
},
},
//查看用户详情
//查看用户详情
gotoUserInfo
(
item
)
{
gotoUserInfo
(
item
)
{
...
...
pages
Article/components
/List.vue
→
pages
/components/article
/List.vue
View file @
bd08fe82
...
@@ -27,8 +27,9 @@
...
@@ -27,8 +27,9 @@
<
script
>
<
script
>
import
ItemVue
from
'./Item.vue'
import
ItemVue
from
'./Item.vue'
import
empty
from
'@/components/empty.vue'
import
empty
from
'@/components/empty.vue'
import
login
from
'../../components/login/login.vue'
import
login
from
'../../
../
components/login/login.vue'
export
default
{
export
default
{
name
:
'ArticleList'
,
components
:
{
components
:
{
ItemVue
,
ItemVue
,
empty
,
empty
,
...
...
pages/tab/article.vue
View file @
bd08fe82
...
@@ -38,8 +38,6 @@
...
@@ -38,8 +38,6 @@
<swiper-item
class=
"swiper-item"
v-for=
"(i,index) in list"
:key=
"index"
>
<swiper-item
class=
"swiper-item"
v-for=
"(i,index) in list"
:key=
"index"
>
<!-- 这里的swiper-list-item为demo中为演示用定义的组件,列表及分页代码在swiper-list-item组件内 -->
<!-- 这里的swiper-list-item为demo中为演示用定义的组件,列表及分页代码在swiper-list-item组件内 -->
<!-- 请注意,swiper-list-item非z-paging内置组件,在自己的项目中必须自己创建,若未创建则会报组件不存在的错误 -->
<!-- 请注意,swiper-list-item非z-paging内置组件,在自己的项目中必须自己创建,若未创建则会报组件不存在的错误 -->
<!-- <ItemVue v-for="item in arr" :key="item.id" @delete="deleteFn" :info="item"
" @praise="praise" @close="isOpen = false" @open="isOpen = true" /> -->
<ListVue
ref=
"listItem"
@
selectShare=
"selectShare"
:tabIndex=
"index"
:userInfo=
"userInfo"
<ListVue
ref=
"listItem"
@
selectShare=
"selectShare"
:tabIndex=
"index"
:userInfo=
"userInfo"
:currentIndex=
"current"
@
changeOpen=
"changeOpen"
></ListVue>
:currentIndex=
"current"
@
changeOpen=
"changeOpen"
></ListVue>
</swiper-item>
</swiper-item>
...
@@ -49,16 +47,14 @@
...
@@ -49,16 +47,14 @@
</template>
</template>
<
script
>
<
script
>
import
ItemVue
from
'../../pagesArticle/components/Item.vue'
;
import
empty
from
'@/components/empty.vue'
import
empty
from
'@/components/empty.vue'
import
ListVue
from
'../
../pagesArticle/components
/List.vue'
;
import
ListVue
from
'../
components/article
/List.vue'
;
import
login
from
'../../components/login/login.vue'
;
import
login
from
'../../components/login/login.vue'
;
export
default
{
export
default
{
options
:
{
options
:
{
styleIsolation
:
'shared'
styleIsolation
:
'shared'
},
},
components
:
{
components
:
{
ItemVue
,
empty
,
empty
,
ListVue
ListVue
},
},
...
...
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