Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
office-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
office
office-web
Commits
6177a4fa
Commit
6177a4fa
authored
Dec 07, 2018
by
xiaohai
Committed by
无尘
Dec 10, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2243a433
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
32 deletions
+14
-32
index.vue
src/views/login/index.vue
+14
-32
No files found.
src/views/login/index.vue
View file @
6177a4fa
...
...
@@ -46,7 +46,7 @@
<div
class=
"swiper-button-next"
slot=
"button-next"
><i
class=
"el-icon-arrow-right"
></i></div>
</swiper>
</div>
<el-button
type=
"primary"
@
click=
"toIndex"
>
登录
</el-button>
<el-button
type=
"primary"
>
登录
</el-button>
</div>
</div>
</div>
...
...
@@ -73,22 +73,22 @@ export default {
// 企业列表
enterpriseList
:[
{
id
:
'123
3
'
,
id
:
'123
1
'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络'
},
{
id
:
'123
354
'
,
id
:
'123
2
'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络2'
},
{
id
:
'123
5
3'
,
id
:
'1233'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络'
},
{
id
:
'123
63
4'
,
id
:
'1234'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络2'
}
...
...
@@ -113,11 +113,9 @@ export default {
},
methods
:
{
/**
* 处理路由跳转
*/
// 处理路由跳转
toRouterView
(
val
)
{
const
that
=
this
;
var
that
=
this
;
// 模拟检查数据
// //有两个参数
//{
...
...
@@ -129,21 +127,15 @@ export default {
path
:
val
.
path
})
},
/**
* 折叠事件
*/
// 折叠事件
collapseTag
(
val
){
const
that
=
this
;
var
that
=
this
;
console
.
log
(
val
);
that
.
collapseFlag
=
val
},
/**
* 生成二维码
*/
qrcode
(
text
)
{
const
that
=
this
;
var
that
=
this
;
that
.
qrcodeCase
=
new
QRCode
(
'qrcode'
,
{
width
:
210
,
...
...
@@ -157,35 +149,25 @@ export default {
console
.
log
(
that
.
qrcodeCase
)
},
/**
* 刷新二维码
*/
// 刷新二维码
refreshCode
()
{
const
that
=
this
;
var
that
=
this
;
document
.
getElementById
(
"qrcode"
).
innerHTML
=
''
;
that
.
qrcodeCase
.
clear
();
// 先清除原有的
that
.
qrcode
(
5666315956663159
)
that
.
expiredFlag
=
false
;
//隐藏过期遮罩层
},
/**
* 登录
*/
toIndex
()
{
const
that
=
this
that
.
$router
.
push
(
'/index'
)
}
},
mounted
()
{
const
that
=
this
var
that
=
this
/**
*生成二维码
*/
//
that.qrcode(55555566767)
that
.
qrcode
(
55555566767
)
},
components
:
{
swiper
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment