Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
bc6c0b4f
Great Teamwork
项目概览
_milo
/
Great Teamwork
通知
13
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Great Teamwork
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
bc6c0b4f
编写于
5月 24, 2023
作者:
R
Renic1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
后台运行运动功能
上级
c76ed1b7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
3 deletion
+25
-3
teamwork/.hbuilderx/launch.json
teamwork/.hbuilderx/launch.json
+1
-1
teamwork/pages/sport/start.vue
teamwork/pages/sport/start.vue
+24
-2
未找到文件。
teamwork/.hbuilderx/launch.json
浏览文件 @
bc6c0b4f
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
"type"
:
"uniCloud"
"type"
:
"uniCloud"
},
},
{
{
"playground"
:
"
custom
"
,
"playground"
:
"
standard
"
,
"type"
:
"uni-app:app-android"
"type"
:
"uni-app:app-android"
}
}
]
]
...
...
teamwork/pages/sport/start.vue
浏览文件 @
bc6c0b4f
...
@@ -21,11 +21,32 @@
...
@@ -21,11 +21,32 @@
<
script
>
<
script
>
export
default
{
export
default
{
onShow
(
option
)
{
if
(
this
.
load
==
true
)
{
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
this
.
run
()
this
.
load
=
false
;
}
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
run
()
this
.
info
.
startTime
=
this
.
getTime
()
this
.
info
.
startTime
=
this
.
getTime
()
this
.
info
.
type
=
option
.
type
this
.
info
.
type
=
option
.
type
},
},
onHide
(
option
){
if
(
this
.
load
==
false
&&
this
.
is
)
{
clearInterval
(
this
.
timer
);
this
.
timer
=
null
;
this
.
run
()
this
.
load
=
true
;
}
}
,
// onLoad(option) {
// this.run()
// this.info.startTime = this.getTime()
// this.info.type = option.type
// },
data
()
{
data
()
{
return
{
return
{
info
:
{
info
:
{
...
@@ -43,7 +64,7 @@
...
@@ -43,7 +64,7 @@
dottedLine
:
true
dottedLine
:
true
}]
}]
},
},
load
:
true
,
timer
:
null
,
//定时器
timer
:
null
,
//定时器
is
:
true
,
is
:
true
,
start
:
'
/static/sport/start.png
'
,
start
:
'
/static/sport/start.png
'
,
...
@@ -92,6 +113,7 @@
...
@@ -92,6 +113,7 @@
}
}
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
this
.
info
)
this
.
info
.
id
=
res
.
result
.
data
.
id
this
.
info
.
id
=
res
.
result
.
data
.
id
if
(
res
.
result
.
code
===
200
)
{
if
(
res
.
result
.
code
===
200
)
{
uni
.
showToast
({
uni
.
showToast
({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录