Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
share-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
share-show-h5
Commits
478f7154
提交
478f7154
authored
9月 16, 2020
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
7290e2f1
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
38 行增加
和
20 行删除
+38
-20
LoginAction.js
src/action/LoginAction.js
+2
-2
login_api.js
src/api/login_api.js
+1
-1
details.vue
src/pages/list/details.vue
+17
-1
index.vue
src/pages/login/index.vue
+18
-16
没有找到文件。
src/action/LoginAction.js
浏览文件 @
478f7154
...
...
@@ -19,8 +19,8 @@ export default class LoginAction extends BaseACTION {
})
}
login
(
obj
)
{
return
Login
.
login
(
obj
).
then
(
res
=>
{
login
(
obj
,
param
)
{
return
Login
.
login
(
obj
,
param
).
then
(
res
=>
{
return
res
||
{
test
:
'OK'
}
}).
catch
(
res
=>
{
return
res
||
{
test
:
'OK'
}
...
...
src/api/login_api.js
浏览文件 @
478f7154
...
...
@@ -15,7 +15,7 @@ export default class LoginAPI extends BaseAPI {
* 登录
* @param {[string]} id resource_id
*/
login
=
(
obj
)
=>
this
.
post
(
'/share/v1/live-activity/login'
,
obj
,
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
login
=
(
obj
,
param
)
=>
this
.
post
(
`/share/v1/live-activity/login?
${
param
}
`
,
obj
,
{
headers
:
{
'Content-Type'
:
'application/x-www-form-urlencoded'
}
})
/**
* 获取用户信息
* @param {[object]} obj
...
...
src/pages/list/details.vue
浏览文件 @
478f7154
<
template
>
<div>
<div
class=
"d-padd"
>
<div
class=
"top-f"
>
<top-title
:title=
"detailData.name"
></top-title>
</div>
...
...
@@ -53,14 +54,20 @@
</div>
</div>
</div>
<div
class=
"tabbar-box"
>
<tabbar></tabbar>
</div>
</div>
</template>
<
script
>
import
tabbar
from
'../../components/tabbar.vue'
import
{
Toast
}
from
'vant'
import
action
from
'@action'
import
topTitle
from
'../../components/topTitle.vue'
export
default
{
components
:
{
topTitle
topTitle
,
tabbar
},
data
()
{
return
{
...
...
@@ -283,4 +290,13 @@ export default {
}
}
}
.tabbar-box
{
width
:
100%
;
position
:
fixed
;
bottom
:
0
;
left
:
0
;
}
.d-padd
{
padding-bottom
:
1rem
;
}
</
style
>
src/pages/login/index.vue
浏览文件 @
478f7154
...
...
@@ -99,48 +99,50 @@ export default {
return
false
}
}
const
urlParam
=
{
}
let
urlParam
=
''
const
urlParams
=
{
}
if
(
this
.
$route
.
query
.
activity_id
)
{
urlParam
.
activity_id
=
this
.
$route
.
query
.
activity_id
urlParam
.
source
=
this
.
$route
.
query
.
source
this
.
form
.
accountLogin2
.
activity_id
=
this
.
$route
.
query
.
activity_id
this
.
form
.
accountLogin2
.
source
=
this
.
$route
.
query
.
source
this
.
form
.
accountLogin1
.
activity_id
=
this
.
$route
.
query
.
activity_id
this
.
form
.
accountLogin1
.
source
=
this
.
$route
.
query
.
source
urlParam
=
`activity_id=${this.$route.query.activity_id
}
&source=${this.$route.query.source
}
`
urlParams
.
activity_id
=
this
.
$route
.
query
.
activity_id
urlParams
.
source
=
this
.
$route
.
query
.
source
// this.form.accountLogin2.activity_id = this.$route.query.activity_id
// this.form.accountLogin2.source = this.$route.query.source
// this.form.accountLogin1.activity_id = this.$route.query.activity_id
// this.form.accountLogin1.source = this.$route.query.source
}
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
,
urlParam
).
then
((
res
)
=>
{
Toast
.
clear
()
if
(
res
.
code
===
0
)
{
this
.
$router
.
push
({
path
:
'/details'
,
query
:
urlParam
query
:
urlParam
s
}
)
}
Toast
(
res
.
msg
)
}
)
}
,
isLogin
()
{
const
param
=
{
action
:
3
}
let
param
=
''
const
pathParam
=
{
}
if
(
this
.
$route
.
query
.
activity_id
)
{
param
.
activity_id
=
this
.
$route
.
query
.
activity_id
param
.
source
=
this
.
$route
.
query
.
source
param
=
`activity_id=${this.$route.query.activity_id
}
&source=${this.$route.query.source
}
`
pathParam
.
activity_id
=
this
.
$route
.
query
.
activity_id
pathParam
.
source
=
this
.
$route
.
query
.
source
}
Toast
.
loading
({
message
:
'加载中...'
,
duration
:
3000
}
)
action
.
Login
.
login
(
param
).
then
((
res
)
=>
{
action
.
Login
.
login
(
{
action
:
3
}
,
param
).
then
((
res
)
=>
{
Toast
(
res
.
msg
)
if
(
res
.
code
===
5004
)
{
this
.
$router
.
push
({
path
:
'/details'
,
query
:
param
query
:
pa
thPa
ram
}
)
// 跳转
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论