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
e2fcb163
Commit
e2fcb163
authored
Dec 31, 2024
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加了会员的查看更多列表
parent
eb10c636
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
449 additions
and
44 deletions
+449
-44
pages.json
pages.json
+15
-0
article.vue
pages/tab/article.vue
+3
-14
index.vue
pages/tab/index.vue
+18
-15
userList.vue
pagesUser/userList.vue
+410
-0
likeList.vue
pagesme/me/likeList.vue
+3
-15
No files found.
pages.json
View file @
e2fcb163
...
...
@@ -58,6 +58,21 @@
}
],
"subPackages"
:
[
{
"root"
:
"pagesUser"
,
"pages"
:
[
{
"path"
:
"userList"
,
"style"
:
{
"navigationBarTitleText"
:
"会员信息"
,
"backgroundColor"
:
"#F4F5F9"
,
"backgroundColorTop"
:
"#F4F5F9"
,
"navigationBarBackgroundColor"
:
"#F4F5F9"
,
"navigationStyle"
:
"custom"
}
}
]
},
{
"root"
:
"pagesActivity"
,
"pages"
:
[
...
...
pages/tab/article.vue
View file @
e2fcb163
<
template
>
<!-- 使用z-paging-swiper为根节点可以免计算高度 -->
<z-paging-swiper>
<view
:class=
"['add',isOpen
?
'add2':'']"
>
<view
:class=
"['add',isOpen
?
'add2':'']"
>
<image
@
click=
'goPage("/pagescommunity/newsRelease/newsRelease")'
src=
"../../static/images/102.png"
mode=
""
/>
</view>
<!-- 需要固定在顶部不滚动的view放在slot="top"的view中 -->
...
...
@@ -53,7 +53,6 @@
import
login
from
'../../components/login/login.vue'
;
import
ELM
from
'@/components/elm-toast/index.vue'
;
export
default
{
// 复制下面这行 options 代码
options
:
{
styleIsolation
:
'shared'
},
...
...
@@ -71,9 +70,6 @@
{
name
:
'最近'
,
},
// {
// name: '同城',
// },
],
params
:
{
pageIndex
:
1
,
...
...
@@ -93,8 +89,8 @@
};
},
onLoad
()
{
if
(
uni
.
getStorageSync
(
'
i
nfo'
)
!=
''
)
{
this
.
userInfo
=
uni
.
getStorageSync
(
'
i
nfo'
);
if
(
uni
.
getStorageSync
(
'
userI
nfo'
)
!=
''
)
{
this
.
userInfo
=
uni
.
getStorageSync
(
'
userI
nfo'
);
}
else
{
this
.
userInfo
=
{
id
:
0
...
...
@@ -179,7 +175,6 @@
console
.
log
(
"进来了"
)
let
obj
=
{
...
value
,
}
let
url
=
''
if
(
obj
.
isLike
)
{
...
...
@@ -228,12 +223,6 @@
this
.
params
.
tabType
=
"RECOMMEND"
this
.
current
=
1
}
// else {
// this.params.tabType = "CITY"
// this.current = 2
// }
// this.params.pageIndex = 1
// this.getList(true)
},
goPage
(
path
)
{
if
(
uni
.
getStorageSync
(
'userInfo'
)
!=
''
)
{
...
...
pages/tab/index.vue
View file @
e2fcb163
...
...
@@ -25,7 +25,7 @@
<view
class=
"leftline"
></view>
<view
class=
"title"
>
{{
notice
.
title
}}
</view>
<view
class=
"rightline"
></view>
<view
class=
"notice-more"
@
click=
"goto
page('/pagesNotice/components/list')
"
>
更多
</view>
<view
class=
"notice-more"
@
click=
"goto
MoreNoticeList
"
>
更多
</view>
</view>
<!-- 热门推荐-->
<view
class=
"recommendation-top"
>
...
...
@@ -36,14 +36,14 @@
</view>
</view>
<view
class=
"more"
>
<view
class=
"more-title"
@
click=
"goto
Bussiness
List"
>
查看更多
</view>
<view
class=
"more-title"
@
click=
"goto
MoreUser
List"
>
查看更多
</view>
<view
class=
"more-image"
>
<image
class=
"rightimage"
src=
"../static/images/home/home_icon_jiantou@2x.png"
/>
</view>
</view>
</view>
<view
style=
"border-radius: 12rpx 12rpx 12rpx 12rpx;margin: 34rpx 34rpx 0 34rpx"
>
<view
class=
"card"
v-for=
"(item,index) in businessList"
:key=
"index"
@
click=
"goto
d
etail(item)"
>
<view
class=
"card"
v-for=
"(item,index) in businessList"
:key=
"index"
@
click=
"goto
UserD
etail(item)"
>
<view
class=
"contentBody"
>
<view
class=
"leftlist"
>
<image
src=
"/static/images/home/gonggao.png"
class=
"leftlistimage"
/>
...
...
@@ -191,25 +191,28 @@
console
.
log
(
e
)
})
},
//
页面跳转
goto
page
(
url
)
{
uni
.
reLaunch
({
url
:
url
//
查看更多公告
goto
MoreNoticeList
(
)
{
uni
.
navigateTo
({
url
:
'/pagesNotice/components/list'
});
},
//
热门推荐 跳转
goto
detail
(
item
){
//
查看更多会员用户
goto
MoreUserList
(
){
uni
.
navigateTo
({
url
:
'/pages
2/business/business/id='
+
item
.
businessId
})
url
:
'/pages
User/userList'
})
;
},
goTips
()
{
//查看会员详情
gotoUserDetail
(
item
){
uni
.
navigateTo
({
url
:
'/pages2/explain/explain'
});
url
:
'/pages2/business/business/id='
+
item
.
businessId
})
},
//左上角的搜索
async
screen
()
{
const
res
=
await
this
.
$getId
();
//判断当前是否已登录
// const res = await this.$getId();
console
.
log
(
res
);
if
(
res
==
11003
)
{
this
.
isLoginPop
=
true
;
...
...
pagesUser/userList.vue
0 → 100644
View file @
e2fcb163
This diff is collapsed.
Click to expand it.
pagesme/me/likeList.vue
View file @
e2fcb163
...
...
@@ -297,23 +297,11 @@ export default {
}
},
backbar
()
{
if
(
this
.
share
!=
null
&&
this
.
share
==
"true"
)
{
if
(
uni
.
getStorageSync
(
'userInfo'
))
{
uni
.
switchTab
({
url
:
'/pages/tab/index'
});
}
else
{
uni
.
reLaunch
({
url
:
'/pageslogin/index/index'
});
}
}
else
{
uni
.
navigateBack
({
delta
:
1
,
//返回层数,2则上上页
})
}
}
}
};
</
script
>
...
...
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