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
a5ec72ee
Commit
a5ec72ee
authored
Dec 07, 2018
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 增加门店权限
parent
eb6609e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
14 deletions
+32
-14
index.vue
src/views/login/index.vue
+32
-14
No files found.
src/views/login/index.vue
View file @
a5ec72ee
...
...
@@ -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"
>
登录
</el-button>
<el-button
type=
"primary"
@
click=
"toIndex"
>
登录
</el-button>
</div>
</div>
</div>
...
...
@@ -73,22 +73,22 @@ export default {
// 企业列表
enterpriseList
:[
{
id
:
'123
1
'
,
id
:
'123
3
'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络'
},
{
id
:
'123
2
'
,
id
:
'123
354
'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络2'
},
{
id
:
'1233'
,
id
:
'123
5
3'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络'
},
{
id
:
'1234'
,
id
:
'123
63
4'
,
src
:
require
(
"../../assets/logo.png"
),
name
:
'达摩网络2'
}
...
...
@@ -113,9 +113,11 @@ export default {
},
methods
:
{
// 处理路由跳转
/**
* 处理路由跳转
*/
toRouterView
(
val
)
{
var
that
=
this
;
const
that
=
this
;
// 模拟检查数据
// //有两个参数
//{
...
...
@@ -127,15 +129,21 @@ export default {
path
:
val
.
path
})
},
// 折叠事件
/**
* 折叠事件
*/
collapseTag
(
val
){
var
that
=
this
;
const
that
=
this
;
console
.
log
(
val
);
that
.
collapseFlag
=
val
},
/**
* 生成二维码
*/
qrcode
(
text
)
{
var
that
=
this
;
const
that
=
this
;
that
.
qrcodeCase
=
new
QRCode
(
'qrcode'
,
{
width
:
210
,
...
...
@@ -149,25 +157,35 @@ export default {
console
.
log
(
that
.
qrcodeCase
)
},
// 刷新二维码
/**
* 刷新二维码
*/
refreshCode
()
{
var
that
=
this
;
const
that
=
this
;
document
.
getElementById
(
"qrcode"
).
innerHTML
=
''
;
that
.
qrcodeCase
.
clear
();
// 先清除原有的
that
.
qrcode
(
5666315956663159
)
that
.
expiredFlag
=
false
;
//隐藏过期遮罩层
},
/**
* 登录
*/
toIndex
()
{
const
that
=
this
that
.
$router
.
push
(
'/index'
)
}
},
mounted
()
{
var
that
=
this
const
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