Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
吴良建
/
JinQiu
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit a79091bf
由
吴良建
编写于
2023-06-19 17:52:36 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
变化关注位置
1 个父辈
e87b9a02
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
35 行增加
和
60 行删除
pages/index/index.vue
pages/mine/mine.vue
pages/index/index.vue
查看文件 @
a79091b
...
...
@@ -55,18 +55,18 @@
autoHeight
:
true
,
centeredSlides
:
true
,
centeredSlidesBounds
:
true
,
initialSlide
:
1
initialSlide
:
0
},
current
:
1
,
tabs
:
[],
loading
:
false
,
current
:
0
,
tabs
:
[],
loading
:
false
,
timer
:
null
}
},
async
onLoad
()
{
async
onLoad
()
{
this
.
loading
=
true
await
this
.
requestData
()
this
.
loading
=
false
await
this
.
requestData
()
this
.
loading
=
false
},
async
onPullDownRefresh
()
{
await
this
.
requestData
()
...
...
@@ -118,8 +118,7 @@
this
.
match_map
.
clear
()
}
this
.
tabs
.
length
=
0
var
followList
=
await
followHelper
.
getFollowList
()
this
.
match_map
.
set
(
"关注"
,
followList
)
let
zhongyao
=
[]
let
wancheng
=
[]
...
...
@@ -138,6 +137,8 @@
this
.
match_map
.
set
(
"重要"
,
zhongyao
)
this
.
match_map
.
set
(
"完赛"
,
wancheng
)
var
followList
=
await
followHelper
.
getFollowList
()
this
.
match_map
.
set
(
"关注"
,
followList
)
for
(
let
m
of
matchs
)
{
if
(
m
.
GameName
)
{
...
...
@@ -175,9 +176,9 @@
console
.
log
(
list
[
index
])
},
async
startRealTime
(
ref
)
{
if
(
this
.
current
!=
1
)
{
return
async
startRealTime
(
ref
)
{
if
(
this
.
current
!=
1
)
{
return
}
let
query_data
=
`query{
...
...
@@ -265,16 +266,16 @@
onSwiperChange
(
swiper
)
{
this
.
current
=
this
.
$refs
.
zSwiper
.
swiper
.
activeIndex
console
.
log
(
"---》"
+
this
.
tabs
[
this
.
current
]
+
"--"
+
this
.
match_map
.
get
(
this
.
tabs
[
this
.
current
]))
console
.
log
(
'onSwiperChange:'
+
swiper
.
activeIndex
)
var
ref
=
this
.
$refs
.
MatchListRef
[
this
.
current
]
console
.
log
(
this
.
$refs
.
MatchListRef
)
if
(
this
.
current
==
1
)
{
this
.
timer
=
setInterval
(
this
.
startRealTime
(
ref
),
5
*
1000
)
}
else
{
clearInterval
(
this
.
timer
)
}
console
.
log
(
'onSwiperChange:'
+
swiper
.
activeIndex
)
var
ref
=
this
.
$refs
.
MatchListRef
[
this
.
current
]
console
.
log
(
this
.
$refs
.
MatchListRef
)
if
(
this
.
current
==
1
)
{
this
.
timer
=
setInterval
(
this
.
startRealTime
(
ref
),
5
*
1000
)
}
else
{
clearInterval
(
this
.
timer
)
}
if
(
this
.
current
===
0
)
{
var
followList
=
followHelper
.
getFollowList
()
ref
.
onRefreshInfo
(
followList
)
...
...
pages/mine/mine.vue
查看文件 @
a79091b
<
template
>
<view
style=
"background-color: #F5F7FC; justify-content: center; height: 100vh; align-items: center;"
>
<view
class=
"qh-u-header"
>
<text
class=
"qh-u-title"
>
我的
</text>
<view
class=
"qh-u-header"
>
<view>
<text
class=
"qh-u-title"
>
我的
</text>
<text
>
设置
</text>
</view>
<view
style=
"background-color: white; border-radius: 20rpx;
...
...
@@ -15,45 +20,14 @@
<text
style=
"font-size: 36rpx; color: #333333; font-weight: 600;"
>
{{
this
.
hasLogin
?
this
.
userName
:
'登陆/注册'
}}
</text>
<view
style=
"margin-top: 15rpx;"
>
<text
style=
"font-size: 26rpx; color: #999999;"
>
欢迎来到
金球体育
</text>
<text
style=
"font-size: 26rpx; color: #999999;"
>
欢迎来到
一定牛
</text>
</view>
</view>
</view>
</view>
<view
style=
"background-color: white; border-radius: 10rpx;
margin-left: 34rpx; margin-right: 34rpx;
padding-left: 20rpx ; padding-right: 20rpx; margin-top: 10%; align-self: center;"
>
<view
class=
"qh-list-c"
@
click=
"gotoSuggest()"
>
<view
style=
"display: flex;"
>
<image
src=
"../../static/mine_icons/mine_feedback_icon.png"
style=
"width: 50rpx; height: 50rpx;"
/>
<text
class=
"list-text"
>
提建议/问题反馈
</text>
</view>
<image
src=
"../../static/mine_icons/mine_right_arrow.png"
style=
"width: 40rpx; height: 40rpx;"
/>
</view>
<view
class=
"qh-list-c"
@
tap=
"share"
>
<view
style=
"display: flex;"
>
<image
src=
"../../static/mine_icons/mine_share_icon.png"
style=
"width: 50rpx; height: 50rpx;"
/>
<text
class=
"list-text"
>
分享给好友
</text>
</view>
<image
src=
"../../static/mine_icons/mine_right_arrow.png"
style=
"width: 40rpx; height: 40rpx;"
/>
</view>
<view
class=
"qh-list-c"
@
click=
"gotoSettings()"
>
<view
style=
"display: flex;"
>
<image
src=
"../../static/mine_icons/mine_settings_icon.png"
style=
"width: 50rpx; height: 50rpx;"
/>
<text
class=
"list-text"
>
设置
</text>
</view>
<image
src=
"../../static/mine_icons/mine_right_arrow.png"
style=
"width: 40rpx; height: 40rpx;"
/>
</view>
</view>
<view
style=
"display: flex; justify-self: center; width: 100%; margin-top: 30rpx; justify-content: center;"
>
<view
class=
"tip-text"
>
在使用过程如遇问题,请咨询客服微信
</view>
<view
class=
"tip-text2"
@
click=
"copyweixin()"
>
{{
weixin
}}
</view>
</view>
</view>
</view>
</
template
>
...
...
@@ -173,7 +147,7 @@
},
onLoad
()
{
},
},
onShow
:
function
()
{
var
userInfo
=
loginHelper
.
getUserInfo
()
if
(
userInfo
)
{
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论