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
0a4ba165
Commit
0a4ba165
authored
Jan 03, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增了页面跳转
parent
dd1c6fa0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
178 deletions
+68
-178
login.vue
components/login/login.vue
+4
-6
article.vue
pages/tab/article.vue
+0
-1
index.vue
pages/tab/index.vue
+1
-1
my.vue
pages/tab/my.vue
+4
-4
userList.vue
pagesUser/userList.vue
+59
-166
No files found.
components/login/login.vue
View file @
0a4ba165
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
<view
class=
""
>
<view
class=
""
>
<u-popup
:show=
"isLoginPop"
mode=
"center"
round=
"12"
:safeAreaInsetBottom=
"false"
>
<u-popup
:show=
"isLoginPop"
mode=
"center"
round=
"12"
:safeAreaInsetBottom=
"false"
>
<view
class=
"popup-container"
>
<view
class=
"popup-container"
>
<image
class=
"pop-bgc"
:src=
"
img+'img/home-login
-bg.png'"
></image>
<image
class=
"pop-bgc"
:src=
"
baseUrl+'/login/home-pop
-bg.png'"
></image>
<image
src=
"../../static/images/moon-y.png
"
class=
"moon-bg"
></image>
<image
:src=
"baseUrl+'/login/moon-y.png'
"
class=
"moon-bg"
></image>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"container-c"
>
<view
class=
"container-c"
>
<view
class=
"pop-title"
>
登录欧SSS
</view>
<view
class=
"pop-title"
>
登录欧SSS
</view>
<view
class=
"tips-content"
>
<view
class=
"tips-content"
>
...
@@ -26,8 +25,6 @@
...
@@ -26,8 +25,6 @@
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</u-popup>
</u-popup>
</view>
</view>
...
@@ -44,7 +41,8 @@
...
@@ -44,7 +41,8 @@
},
},
data
()
{
data
()
{
return
{
return
{
img
:
this
.
$BASE_URL
+
"/"
,
//图片路径
baseUrl
:
'http://192.168.1.80/static/images'
,
};
};
},
},
methods
:
{
methods
:
{
...
...
pages/tab/article.vue
View file @
0a4ba165
...
@@ -227,7 +227,6 @@
...
@@ -227,7 +227,6 @@
}
else
{
}
else
{
this
.
isLoginPop
=
true
this
.
isLoginPop
=
true
}
}
},
},
getList
(
isFirst
)
{
getList
(
isFirst
)
{
if
(
isFirst
)
this
.
params
.
pageIndex
=
1
if
(
isFirst
)
this
.
params
.
pageIndex
=
1
...
...
pages/tab/index.vue
View file @
0a4ba165
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
//查看会员详情
//查看会员详情
gotoUserDetail
(
item
){
gotoUserDetail
(
item
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages
2/business/business/
id='
+
item
.
businessId
url
:
'/pages
User/userInfo?
id='
+
item
.
businessId
})
})
},
},
//左上角的搜索
//左上角的搜索
...
...
pages/tab/my.vue
View file @
0a4ba165
...
@@ -206,22 +206,22 @@ import {setUserProfile} from '../../api/login/index'
...
@@ -206,22 +206,22 @@ import {setUserProfile} from '../../api/login/index'
name
:
"金币"
,
name
:
"金币"
,
num
:
0
,
num
:
0
,
la
:
"立即充值"
,
la
:
"立即充值"
,
img
:
baseUrl
+
"
/user/mymoney.png"
,
img
:
"http://192.168.1.80/static/images
/user/mymoney.png"
,
},
{
},
{
name
:
"个人资料"
,
name
:
"个人资料"
,
num
:
''
,
num
:
''
,
la
:
""
,
la
:
""
,
img
:
baseUrl
+
"
/user/myren.png"
,
img
:
"http://192.168.1.80/static/images
/user/myren.png"
,
},
{
},
{
name
:
"推荐给好友"
,
name
:
"推荐给好友"
,
num
:
''
,
num
:
''
,
la
:
""
,
la
:
""
,
img
:
baseUrl
+
"
/user/myshare.png"
,
img
:
"http://192.168.1.80/static/images
/user/myshare.png"
,
},
{
},
{
name
:
"设置"
,
name
:
"设置"
,
num
:
''
,
num
:
''
,
la
:
""
,
la
:
""
,
img
:
baseUrl
+
'
/user/myset.png'
,
img
:
'http://192.168.1.80/static/images
/user/myset.png'
,
}],
}],
info
:
{
info
:
{
headPortrait
:
'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'
,
headPortrait
:
'http://192.168.1.80/upload/CmsBanner/20241230/18E63B570FF04DB3A8EFE277D58256C4.jpg'
,
...
...
pagesUser/userList.vue
View file @
0a4ba165
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<view
class=
"text"
>
暂无数据
</view>
<view
class=
"text"
>
暂无数据
</view>
</view>
</view>
<view
class=
"card"
>
<view
class=
"card"
>
<view
class=
"recommendation-card"
v-for=
"item in userList"
@
click=
"gotoBusiness
Detail(item)"
>
<view
class=
"recommendation-card"
v-for=
"item in userList"
@
click=
"goto
Detail(item)"
>
<view
class=
"card-image"
>
<view
class=
"card-image"
>
<image
class=
"img"
src=
"https://cdn.uviewui.com/uview/album/1.jpg"
/>
<image
class=
"img"
src=
"https://cdn.uviewui.com/uview/album/1.jpg"
/>
</view>
</view>
...
@@ -40,6 +40,7 @@ export default {
...
@@ -40,6 +40,7 @@ export default {
//用户列表
//用户列表
userList
:[
userList
:[
{
{
businessId
:
'1'
,
nickName
:
'暖洋洋'
,
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
gender
:
'FEMALE'
,
age
:
'21'
,
age
:
'21'
,
...
@@ -47,6 +48,7 @@ export default {
...
@@ -47,6 +48,7 @@ export default {
address
:
'重庆市'
address
:
'重庆市'
},
},
{
{
businessId
:
'2'
,
nickName
:
'暖洋洋'
,
nickName
:
'暖洋洋'
,
gender
:
'MALE'
,
gender
:
'MALE'
,
age
:
'21'
,
age
:
'21'
,
...
@@ -54,6 +56,7 @@ export default {
...
@@ -54,6 +56,7 @@ export default {
address
:
'重庆市'
address
:
'重庆市'
},
},
{
{
businessId
:
'3'
,
nickName
:
'暖洋洋'
,
nickName
:
'暖洋洋'
,
gender
:
'MALE'
,
gender
:
'MALE'
,
age
:
'21'
,
age
:
'21'
,
...
@@ -61,6 +64,7 @@ export default {
...
@@ -61,6 +64,7 @@ export default {
address
:
'重庆市'
address
:
'重庆市'
},
},
{
{
businessId
:
'4'
,
nickName
:
'暖洋洋'
,
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
gender
:
'FEMALE'
,
age
:
'21'
,
age
:
'21'
,
...
@@ -68,6 +72,7 @@ export default {
...
@@ -68,6 +72,7 @@ export default {
address
:
'重庆市'
address
:
'重庆市'
},
},
{
{
businessId
:
'5'
,
nickName
:
'暖洋洋'
,
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
gender
:
'FEMALE'
,
age
:
'21'
,
age
:
'21'
,
...
@@ -75,6 +80,7 @@ export default {
...
@@ -75,6 +80,7 @@ export default {
address
:
'重庆市'
address
:
'重庆市'
},
},
{
{
businessId
:
'6'
,
nickName
:
'暖洋洋'
,
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
gender
:
'FEMALE'
,
age
:
'21'
,
age
:
'21'
,
...
@@ -84,8 +90,6 @@ export default {
...
@@ -84,8 +90,6 @@ export default {
],
],
//是否有数据
//是否有数据
isdata
:
false
,
isdata
:
false
,
//页面显示的数据类型 1我喜欢的 2喜欢我的 3互相喜欢
type
:
''
,
//页面数据的数量
//页面数据的数量
num
:
''
,
num
:
''
,
//距离表头
//距离表头
...
@@ -115,170 +119,59 @@ export default {
...
@@ -115,170 +119,59 @@ export default {
this
.
getUserList
()
this
.
getUserList
()
},
},
methods
:
{
methods
:
{
//跳转用户详情
gotoDetail
(
item
){
uni
.
navigateTo
({
url
:
'/pagesUser/userInfo?id='
+
item
.
businessId
})
},
//加载数据
getUserList
(){
getUserList
(){
if
(
this
.
type
==
'1'
){
const
list
=
[
//我喜欢的
{
const
list
=
[
nickName
:
'暖洋洋'
,
{
gender
:
'FEMALE'
,
nickName
:
'暖洋洋'
,
age
:
'21'
,
gender
:
'FEMALE'
,
height
:
'165'
,
age
:
'21'
,
address
:
'重庆市'
height
:
'165'
,
},
address
:
'重庆市'
{
},
nickName
:
'暖洋洋'
,
{
gender
:
'MALE'
,
nickName
:
'暖洋洋'
,
age
:
'21'
,
gender
:
'MALE'
,
height
:
'165'
,
age
:
'21'
,
address
:
'重庆市'
height
:
'165'
,
},
address
:
'重庆市'
{
},
nickName
:
'暖洋洋'
,
{
gender
:
'MALE'
,
nickName
:
'暖洋洋'
,
age
:
'21'
,
gender
:
'MALE'
,
height
:
'165'
,
age
:
'21'
,
address
:
'重庆市'
height
:
'165'
,
},
address
:
'重庆市'
{
},
nickName
:
'暖洋洋'
,
{
gender
:
'FEMALE'
,
nickName
:
'暖洋洋'
,
age
:
'21'
,
gender
:
'FEMALE'
,
height
:
'165'
,
age
:
'21'
,
address
:
'重庆市'
height
:
'165'
,
},
address
:
'重庆市'
{
},
nickName
:
'暖洋洋'
,
{
gender
:
'FEMALE'
,
nickName
:
'暖洋洋'
,
age
:
'21'
,
gender
:
'FEMALE'
,
height
:
'165'
,
age
:
'21'
,
address
:
'重庆市'
height
:
'165'
,
},
address
:
'重庆市'
{
},
nickName
:
'暖洋洋'
,
{
gender
:
'FEMALE'
,
nickName
:
'暖洋洋'
,
age
:
'21'
,
gender
:
'FEMALE'
,
height
:
'165'
,
age
:
'21'
,
address
:
'重庆市'
height
:
'165'
,
},
address
:
'重庆市'
]
},
this
.
userList
=
list
]
this
.
userList
=
list
}
else
if
(
this
.
type
==
'2'
)
{
//喜欢我的
const
list
=
[
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'MALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'MALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
]
this
.
userList
=
list
}
else
if
(
this
.
type
==
'3'
)
{
//互相喜欢的
const
list
=
[
{
nickName
:
'暖洋洋'
,
gender
:
'MALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'MALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
},
{
nickName
:
'暖洋洋'
,
gender
:
'FEMALE'
,
age
:
'21'
,
height
:
'165'
,
address
:
'重庆市'
}
]
this
.
userList
=
list
}
},
},
backbar
()
{
backbar
()
{
uni
.
navigateBack
({
uni
.
navigateBack
({
...
...
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