Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
_milo
Great Teamwork
提交
bbee561d
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看板
提交
bbee561d
编写于
5月 25, 2023
作者:
R
Renic1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增缓存
上级
54b3d950
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
79 addition
and
4 deletion
+79
-4
teamwork/App.vue
teamwork/App.vue
+3
-0
teamwork/pages/my/main.vue
teamwork/pages/my/main.vue
+23
-1
teamwork/pages/my/my-running-record.vue
teamwork/pages/my/my-running-record.vue
+25
-2
teamwork/pages/my/my-walking-record.vue
teamwork/pages/my/my-walking-record.vue
+26
-1
teamwork/pages/team/main.vue
teamwork/pages/team/main.vue
+2
-0
未找到文件。
teamwork/App.vue
浏览文件 @
bbee561d
...
@@ -14,6 +14,9 @@
...
@@ -14,6 +14,9 @@
name
:
''
,
name
:
''
,
type
:
''
,
type
:
''
,
icon
:
''
,
icon
:
''
,
teamNameStorageCount
:
1
,
runningRecordStorageCount
:
1
,
walkingRecordStorageCount
:
1
,
}
}
}
}
</
script
>
</
script
>
...
...
teamwork/pages/my/main.vue
浏览文件 @
bbee561d
...
@@ -59,6 +59,7 @@
...
@@ -59,6 +59,7 @@
schoolName
:
''
,
schoolName
:
''
,
teamName
:
'
新野生动物营
'
,
teamName
:
'
新野生动物营
'
,
userId
:
''
,
userId
:
''
,
teamNameStorageCount
:
1
,
}
}
},
},
methods
:
{
methods
:
{
...
@@ -108,7 +109,17 @@
...
@@ -108,7 +109,17 @@
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
this
.
teamName
=
res
.
result
.
data
.
team
;
this
.
teamName
=
res
.
result
.
data
.
team
;
let
that
=
this
;
uni
.
setStorage
({
key
:
'
teamName_key
'
,
data
:
this
.
teamName
,
success
:
function
()
{
console
.
log
(
that
.
teamName
);
}
})
getApp
().
globalData
.
teamNameStorageCount
=
0
;
});
});
console
.
log
(
this
.
teamName
)
},
},
},
},
onLoad
()
{
onLoad
()
{
...
@@ -119,7 +130,18 @@
...
@@ -119,7 +130,18 @@
this
.
nickname
=
getApp
().
globalData
.
name
;
this
.
nickname
=
getApp
().
globalData
.
name
;
this
.
schoolName
=
getApp
().
globalData
.
school
;
this
.
schoolName
=
getApp
().
globalData
.
school
;
this
.
userId
=
getApp
().
globalData
.
userId
;
this
.
userId
=
getApp
().
globalData
.
userId
;
this
.
getData
();
if
(
getApp
().
globalData
.
teamNameStorageCount
==
1
)
{
//增删改查
this
.
getData
();
}
else
{
uni
.
getStorage
({
key
:
'
teamName_key
'
,
success
:
function
(
res
)
{
console
.
log
(
res
.
data
);
this
.
teamName
=
res
.
data
;
console
.
log
(
this
.
teamName
);
}
})
}
}
}
}
}
</
script
>
</
script
>
...
...
teamwork/pages/my/my-running-record.vue
浏览文件 @
bbee561d
...
@@ -68,7 +68,15 @@
...
@@ -68,7 +68,15 @@
item
.
duration
=
this
.
formatSeconds
(
item
.
duration
);
item
.
duration
=
this
.
formatSeconds
(
item
.
duration
);
item
.
startDatetime
=
this
.
formatDate
(
item
.
startDatetime
);
item
.
startDatetime
=
this
.
formatDate
(
item
.
startDatetime
);
});
});
let
that
=
this
;
uni
.
setStorage
({
key
:
'
runningRecord_key
'
,
data
:
this
.
runningrecordList
,
success
:
function
()
{
console
.
log
(
that
.
runningrecordList
);
}
})
getApp
().
globalData
.
runningRecordStorageCount
=
0
;
});
});
},
},
formatSeconds
(
value
)
{
formatSeconds
(
value
)
{
...
@@ -112,7 +120,22 @@
...
@@ -112,7 +120,22 @@
return
arr
[
0
];
return
arr
[
0
];
},
},
onLoad
()
{
onLoad
()
{
this
.
getData
();
if
(
getApp
().
globalData
.
runningRecordStorageCount
==
1
)
{
this
.
getData
();
}
else
{
uni
.
getStorage
({
key
:
'
runningRecord_key
'
,
success
:
(
res
)
=>
{
console
.
log
(
res
.
data
);
this
.
runningrecordList
=
res
.
data
;
console
.
log
(
this
.
runningrecordList
);
this
.
runningrecordList
.
forEach
((
item
,
index
)
=>
{
item
.
duration
=
this
.
formatSeconds
(
item
.
duration
);
item
.
startDatetime
=
this
.
formatDate
(
item
.
startDatetime
);
});
}
})
}
}
}
}
}
}
}
...
...
teamwork/pages/my/my-walking-record.vue
浏览文件 @
bbee561d
...
@@ -69,6 +69,15 @@
...
@@ -69,6 +69,15 @@
item
.
duration
=
this
.
formatSeconds
(
item
.
duration
);
item
.
duration
=
this
.
formatSeconds
(
item
.
duration
);
item
.
startDatetime
=
this
.
formatDate
(
item
.
startDatetime
);
item
.
startDatetime
=
this
.
formatDate
(
item
.
startDatetime
);
});
});
let
that
=
this
;
uni
.
setStorage
({
key
:
'
walkingRecord_key
'
,
data
:
this
.
walkingrecordList
,
success
:
function
()
{
console
.
log
(
that
.
walkingrecordList
);
}
})
getApp
().
globalData
.
walkingRecordStorageCount
=
0
;
});
});
},
},
formatDate
(
value
)
{
formatDate
(
value
)
{
...
@@ -112,7 +121,23 @@
...
@@ -112,7 +121,23 @@
return
result
;
return
result
;
},
},
onLoad
()
{
onLoad
()
{
this
.
getData
();
if
(
getApp
().
globalData
.
walkingRecordStorageCount
==
1
)
{
this
.
getData
();
}
else
{
uni
.
getStorage
({
key
:
'
walkingRecord_key
'
,
success
:
(
res
)
=>
{
console
.
log
(
res
.
data
);
this
.
walkingrecordList
=
res
.
data
;
console
.
log
(
this
.
walkingrecordList
);
this
.
walkingrecordList
.
forEach
((
item
,
index
)
=>
{
item
.
duration
=
this
.
formatSeconds
(
item
.
duration
);
item
.
startDatetime
=
this
.
formatDate
(
item
.
startDatetime
);
});
}
})
}
}
}
}
}
}
}
...
...
teamwork/pages/team/main.vue
浏览文件 @
bbee561d
...
@@ -197,6 +197,7 @@
...
@@ -197,6 +197,7 @@
uni
.
showToast
({
uni
.
showToast
({
title
:
'
退出成功
'
title
:
'
退出成功
'
});
});
getApp
().
globalData
.
teamNameStorageCount
=
1
;
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'
退出失败
'
,
title
:
'
退出失败
'
,
...
@@ -220,6 +221,7 @@
...
@@ -220,6 +221,7 @@
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
code
=
res
.
result
.
code
this
.
code
=
res
.
result
.
code
console
.
log
(
this
.
userId
)
console
.
log
(
this
.
userId
)
getApp
().
globalData
.
teamNameStorageCount
=
1
;
})
})
this
.
$refs
[
'
popupDialog2
'
].
close
();
this
.
$refs
[
'
popupDialog2
'
].
close
();
await
this
.
showTorM
();
await
this
.
showTorM
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录