Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
share-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
share-show-h5
Commits
77e2e151
提交
77e2e151
authored
9月 16, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加loading
上级
963fd204
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
1 行删除
+42
-1
details.vue
src/pages/list/details.vue
+11
-0
index.vue
src/pages/list/index.vue
+6
-0
index.vue
src/pages/login/index.vue
+25
-1
没有找到文件。
src/pages/list/details.vue
浏览文件 @
77e2e151
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
Toast
}
from
'vant'
import
action
from
'@action'
import
action
from
'@action'
import
topTitle
from
'../../components/topTitle.vue'
import
topTitle
from
'../../components/topTitle.vue'
export
default
{
export
default
{
...
@@ -88,8 +89,13 @@ export default {
...
@@ -88,8 +89,13 @@ export default {
}
}
},
},
getDetail
()
{
getDetail
()
{
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
})
const
id
=
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
activity_id
const
id
=
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
activity_id
action
.
List
.
getLiveDetail
(
id
).
then
((
res
)
=>
{
action
.
List
.
getLiveDetail
(
id
).
then
((
res
)
=>
{
Toast
.
clear
()
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
detailData
=
res
.
data
.
activity_info
this
.
detailData
=
res
.
data
.
activity_info
this
.
liveData
=
res
.
data
.
live_info
this
.
liveData
=
res
.
data
.
live_info
...
@@ -111,8 +117,13 @@ export default {
...
@@ -111,8 +117,13 @@ export default {
return
year
+
'-'
+
month
+
'-'
+
date
+
' '
+
hours
+
':'
+
minute
+
':'
+
second
return
year
+
'-'
+
month
+
'-'
+
date
+
' '
+
hours
+
':'
+
minute
+
':'
+
second
},
},
getDetailUser
()
{
getDetailUser
()
{
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
})
const
id
=
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
activity_id
const
id
=
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
activity_id
action
.
List
.
getDetailUser
(
id
).
then
((
res
)
=>
{
action
.
List
.
getDetailUser
(
id
).
then
((
res
)
=>
{
Toast
.
clear
()
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
userList
=
res
.
data
.
list
this
.
userList
=
res
.
data
.
list
}
}
...
...
src/pages/list/index.vue
浏览文件 @
77e2e151
...
@@ -52,6 +52,7 @@
...
@@ -52,6 +52,7 @@
</template>
</template>
<
script
>
<
script
>
import
{
Toast
}
from
'vant'
import
action
from
'@action'
import
action
from
'@action'
import
tabbar
from
'../../components/tabbar.vue'
import
tabbar
from
'../../components/tabbar.vue'
export
default
{
export
default
{
...
@@ -68,7 +69,12 @@ export default {
...
@@ -68,7 +69,12 @@ export default {
},
},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
})
action
.
List
.
getLiveList
().
then
((
res
)
=>
{
action
.
List
.
getLiveList
().
then
((
res
)
=>
{
Toast
.
clear
()
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
listData
=
res
.
data
.
list
this
.
listData
=
res
.
data
.
list
}
}
...
...
src/pages/login/index.vue
浏览文件 @
77e2e151
...
@@ -108,8 +108,12 @@ export default {
...
@@ -108,8 +108,12 @@ export default {
this
.
form
.
accountLogin1
.
activity_id
=
this
.
$route
.
query
.
activity_id
this
.
form
.
accountLogin1
.
activity_id
=
this
.
$route
.
query
.
activity_id
this
.
form
.
accountLogin1
.
source
=
this
.
$route
.
query
.
source
this
.
form
.
accountLogin1
.
source
=
this
.
$route
.
query
.
source
}
}
console
.
log
(
this
.
$route
.
query
.
activity_id
)
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
}
)
action
.
Login
.
login
(
this
.
loginType
?
this
.
form
.
accountLogin2
:
this
.
form
.
accountLogin1
).
then
((
res
)
=>
{
action
.
Login
.
login
(
this
.
loginType
?
this
.
form
.
accountLogin2
:
this
.
form
.
accountLogin1
).
then
((
res
)
=>
{
Toast
.
clear
()
if
(
res
.
code
===
0
)
{
if
(
res
.
code
===
0
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/details'
,
path
:
'/details'
,
...
@@ -127,7 +131,12 @@ export default {
...
@@ -127,7 +131,12 @@ export default {
param
.
activity_id
=
this
.
$route
.
query
.
activity_id
param
.
activity_id
=
this
.
$route
.
query
.
activity_id
param
.
source
=
this
.
$route
.
query
.
source
param
.
source
=
this
.
$route
.
query
.
source
}
}
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
}
)
action
.
Login
.
login
(
param
).
then
((
res
)
=>
{
action
.
Login
.
login
(
param
).
then
((
res
)
=>
{
Toast
(
res
.
msg
)
if
(
res
.
code
===
5004
)
{
if
(
res
.
code
===
5004
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/details'
,
path
:
'/details'
,
...
@@ -144,7 +153,12 @@ export default {
...
@@ -144,7 +153,12 @@ export default {
Toast
(
'填写正确信息'
)
Toast
(
'填写正确信息'
)
return
false
return
false
}
}
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
}
)
action
.
Login
.
register
(
this
.
form
.
register
).
then
((
res
)
=>
{
action
.
Login
.
register
(
this
.
form
.
register
).
then
((
res
)
=>
{
Toast
.
clear
()
Toast
(
res
.
msg
)
Toast
(
res
.
msg
)
}
)
}
)
}
,
}
,
...
@@ -159,7 +173,12 @@ export default {
...
@@ -159,7 +173,12 @@ export default {
return
false
return
false
}
}
if
(
this
.
time
.
second
===
60
)
{
if
(
this
.
time
.
second
===
60
)
{
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
}
)
action
.
Login
.
getSendCode
({
mobile
:
this
.
form
.
register
.
mobile
}
).
then
((
res
)
=>
{
action
.
Login
.
getSendCode
({
mobile
:
this
.
form
.
register
.
mobile
}
).
then
((
res
)
=>
{
Toast
.
clear
()
res
.
code
===
0
&&
(
this
.
tickCode
())
res
.
code
===
0
&&
(
this
.
tickCode
())
Toast
(
res
.
msg
)
Toast
(
res
.
msg
)
}
)
}
)
...
@@ -172,7 +191,12 @@ export default {
...
@@ -172,7 +191,12 @@ export default {
return
false
return
false
}
}
if
(
this
.
time
.
second
===
60
)
{
if
(
this
.
time
.
second
===
60
)
{
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
}
)
action
.
Login
.
getSendCode
({
mobile
:
this
.
form
.
accountLogin2
.
mobile
}
).
then
((
res
)
=>
{
action
.
Login
.
getSendCode
({
mobile
:
this
.
form
.
accountLogin2
.
mobile
}
).
then
((
res
)
=>
{
Toast
.
clear
()
res
.
code
===
0
&&
(
this
.
tickCode
())
res
.
code
===
0
&&
(
this
.
tickCode
())
Toast
(
res
.
msg
)
Toast
(
res
.
msg
)
}
)
}
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论