Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
tjty-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
王永飞
tjty-app
Commits
389d73f7
Commit
389d73f7
authored
Nov 24, 2022
by
LiZongLin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置文件修改
parent
05b96b41
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
33 deletions
+76
-33
pages.json
tjty-app/pages.json
+9
-8
tjty_home_page.vue
tjty-app/pages_home/tjty_home_page/tjty_home_page.vue
+66
-22
my.vue
tjty-app/pages_my/my/my.vue
+1
-2
request.js
tjty-app/utils/request.js
+0
-1
No files found.
tjty-app/pages.json
View file @
389d73f7
{
"pages"
:
[
{
"path"
:
"pages_home/tjty_home_page/tjty_home_page"
,
"pages"
:
[{
"path"
:
"pages_home/tjty_home_page/tjty_home_page"
,
"style"
:
{
"navigationBarTitleText"
:
"天体运动"
"navigationBarTitleText"
:
"天体运动"
,
"enablePullDownRefresh"
:
true
,
"navigationStyle"
:
"custom"
}
},
...
...
tjty-app/pages_home/tjty_home_page/tjty_home_page.vue
View file @
389d73f7
...
...
@@ -2,18 +2,20 @@
<view
class=
"home_container"
>
<view
class=
"home_content_head"
>
<image
src=
"../../static/home-imgs/home_bg@2x.png"
></image>
<view
class=
"home_title"
:style=
"
{top:marginHight}">海河体育
</view>
<view
class=
"headMenu"
>
<ul>
<li>
<
navigator
url=
"
"
hover-class=
"none"
open-type=
"navigate"
>
<
view
@
click=
"goto
"
hover-class=
"none"
open-type=
"navigate"
>
<view
style=
"text-align: center;"
>
<view>
<image
src=
"../../static/home-imgs/home_icon_fengcai@2x.png"
></image>
</view>
<view
style=
"color: #1F86EE; line-height: 21px;height: 100%;width: 100%;"
>
天体风采
</view>
<view
style=
"color: #1F86EE; line-height: 21px;height: 100%;width: 100%;"
>
天体风采
</view>
</view>
</view>
</navigator>
</li>
<li>
<navigator
url=
"../../pages_activity/activity/activity"
hover-class=
"none"
open-type=
"navigate"
>
...
...
@@ -62,7 +64,7 @@
<view
class=
"home_activity_item"
v-for=
"(item1,index1) in activityList"
:key=
"index1"
@
click=
"goActDetil(item1)"
>
<view
class=
"activity_image"
>
<image
class=
"image"
:src=
"item1.bannerImage"
></image>
<image
class=
"image"
:src=
"
'https://www.aiwanyundong.com/api/' +
item1.bannerImage"
></image>
</view>
<view
class=
"activity-body"
>
<view
class=
"activity_image_title"
>
...
...
@@ -81,10 +83,10 @@
<view
class=
"home_exercise_item"
v-for=
"(item,index) in exerciseList"
:key=
"index"
>
<view
class=
"ima"
>
<image
style=
"width: 116px;height:116px;border-radius:16px "
:src=
"item.image"
></image>
:src=
"
'https://www.aiwanyundong.com/api/' +
item.image"
></image>
</view>
<view>
<view
style=
"height: 80px;
width: 265px
"
>
<view
style=
"width: 66%;"
>
<view
style=
"height: 80px;"
>
<view
class=
"a-card"
>
{{
item
.
mechanismName
}}
</view>
...
...
@@ -92,7 +94,7 @@
适用人群:
{{
item
.
propertyPeople
}}
</view>
</view>
<view
style=
"width: 265px;"
>
<view>
<button
class=
"b-card"
@
click=
"toAppoint(item)"
>
详情
</button>
...
...
@@ -139,7 +141,11 @@
</view>
</view>
</view>
<!--
<uni-popup
ref=
"popup"
type=
"top"
>
正在建设中
</uni-popup>
-->
</view>
</
template
>
<
script
>
...
...
@@ -159,18 +165,31 @@
export
default
{
data
()
{
return
{
marginHight
:
''
,
activityList
:
[],
exerciseList
:
[]
exerciseList
:
[],
url
:
'/pages_home/tjty_home_page/tjty_home_page'
};
},
computed
:
{
...
mapState
(
'm_user'
,
[
'userInfo'
]),
...
mapState
(
'm_user'
,
[
'token'
])
},
onPullDownRefresh
()
{
this
.
activityList
=
[],
this
.
exerciseList
=
[],
this
.
login
()
uni
.
stopPullDownRefresh
()
},
methods
:
{
...
mapMutations
(
'm_user'
,
[
'updateToken'
]),
...
mapMutations
(
'm_user'
,
[
'updateUserInfo'
]),
goto
()
{
uni
.
showToast
({
title
:
'建设中'
,
icon
:
'none'
})
},
//登录判断
login
()
{
if
(
!
this
.
token
)
{
...
...
@@ -232,6 +251,7 @@
})
},
goActDetil
(
item
)
{
// let url = '/pages_activity/activity_detail/activity_detail?activity_id=' + item.activityId
if
(
!
this
.
token
)
{
console
.
log
(
"没有token"
)
uni
.
reLaunch
({
...
...
@@ -251,8 +271,9 @@
}
}
},
create
d
()
{
onLoa
d
()
{
this
.
login
()
this
.
marginHight
=
uni
.
getStorageSync
(
'menuInfo'
).
statusBarHeight
+
9
+
'px'
}
}
</
script
>
...
...
@@ -267,12 +288,24 @@
height
:
212px
;
position
:
relative
;
overflow-x
:
hidden
;
overflow-y
:
hidden
;
.home_title
{
z-index
:
2
;
position
:
absolute
;
font-size
:
18px
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Bold
;
font-weight
:
700
;
left
:
2%
;
bottom
:
75%
;
}
.headMenu
{
z-index
:
1
;
position
:
absolute
;
width
:
100%
;
top
:
35%
;
top
:
25%
;
}
}
...
...
@@ -283,7 +316,7 @@
.headMenu
ul
{
width
:
100%
;
padding-top
:
10rpx
;
padding-top
:
10
0
rpx
;
}
.headMenu
ul
li
{
...
...
@@ -305,13 +338,15 @@
.home_content_body
{
width
:
100%
;
height
:
calc
(
100%
-
272px
);
overflow
:
auto
;
overflow-x
:
hidden
;
overflow-y
:
hidden
;
padding-bottom
:
65px
;
.home_activity
{
margin-top
:
30px
;
.home_activity_item
{
margin
:
3
0rpx
30rpx
30rpx
30rpx
;
margin
:
3
%
2%
4%
2%
;
background
:
#ffffff
;
border-radius
:
16px
;
box-shadow
:
0rpx
6rpx
20rpx
0rpx
#dddddd
;
...
...
@@ -324,6 +359,7 @@
border-top-left-radius
:
15rpx
;
border-top-right-radius
:
15rpx
;
width
:
100%
;
height
:
165px
;
}
}
...
...
@@ -344,9 +380,9 @@
box-shadow
:
0px
3px
10px
0px
#dddddd
;
text-align
:
right
;
button
{
margin-right
:
5
%
;
}
//
button {
// margin-right: 2
%;
//
}
.ima
{
...
...
@@ -373,8 +409,11 @@
.a-card
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
font-size
:
32rpx
;
width
:
500rpx
;
width
:
94%
;
font-family
:
Source
Han
Sans
CN
,
Source
Han
Sans
CN-Bold
;
font-weight
:
700
;
text-align
:
left
;
...
...
@@ -383,11 +422,14 @@
}
.b-card
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
// left: 132px;
top
:
25rpx
;
width
:
152rpx
;
height
:
64rpx
;
right
:
0
%
;
margin-right
:
7
%
;
// height: auto;
text-align
:
center
;
...
...
@@ -396,6 +438,7 @@
line-height
:
32px
;
background
:
#3b7cde
;
border-radius
:
16px
;
// margin-top: -100rpx;
// margin-right: 100rpx;
}
...
...
@@ -408,14 +451,15 @@
.line
{
width
:
100%
;
height
:
1px
;
background
:
#
333333
background
:
#
b6b6b6
}
width
:
100%
;
//
position: fixed;
position
:
fixed
;
bottom
:
0
;
left
:
0
;
height
:
60px
;
background-color
:
white
;
navigator
{
margin-top
:
7px
;
...
...
tjty-app/pages_my/my/my.vue
View file @
389d73f7
<
template
>
<view>
<view
class=
"head_bg"
>
<view>
<view
class=
"avatar"
>
<image
:src=
"userInfo.userPortrait"
></image>
...
...
@@ -120,7 +119,7 @@
return
{
// token: uni.getStorageSync("token"),
type
:
1
,
url
:
'/pages_
my/my/my
'
url
:
'/pages_
home/tjty_home_page/tjty_home_page
'
}
},
computed
:
{
...
...
tjty-app/utils/request.js
View file @
389d73f7
// import 'vuex' from vuex
import
store
from
'@/store/store.js'
const
url_all
=
{
...
...
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