Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BCDH-APP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
首开风险隐患双控平台
BCDH-APP
Commits
8a719d9f
Commit
8a719d9f
authored
Jul 08, 2022
by
王李辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引入h5plus, 登录时申请获取相机权限
parent
73cbe26a
Pipeline
#8563
passed with stage
in 5 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
src/main.js
src/main.js
+2
-1
src/views/Login2.vue
src/views/Login2.vue
+23
-0
No files found.
src/main.js
View file @
8a719d9f
...
...
@@ -14,6 +14,7 @@ import router from './router'
import
store
from
'
./store
'
import
util
from
'
./api/util.js
'
import
'
./permission
'
import
Mui
from
'
vue-awesome-mui
'
;
import
Cookies
from
'
js-cookie
'
import
{
prefix
}
from
'
@/common/js/utils
'
import
{
Divider
,
Popup
,
Overlay
,
Loading
,
Dialog
,
ContactCard
,
Form
,
AddressEdit
,
AddressList
,
Field
,
CellGroup
,
Cell
,
...
...
@@ -26,7 +27,7 @@ import VideoPlayer from 'vue-video-player'
// 全局过滤器
import
filters
from
"
@/utils/filters.js
"
Vue
.
prototype
.
util
=
util
Vue
.
use
(
Mui
)
Vue
.
use
(
vueEsign
)
Vue
.
use
(
VideoPlayer
)
Vue
.
use
(
Divider
).
use
(
Popup
).
use
(
Overlay
).
use
(
Loading
).
use
(
Dialog
).
use
(
Toast
).
use
(
ContactCard
).
use
(
Form
).
use
(
AddressEdit
).
use
(
AddressList
).
use
(
Field
).
use
(
CellGroup
).
use
(
Cell
).
use
(
SwipeCell
).
use
(
Icon
).
use
(
Stepper
).
use
(
Card
).
use
(
Button
).
use
(
Swipe
).
use
(
SwipeItem
).
use
(
PullRefresh
).
use
(
List
).
use
(
Tab
).
use
(
Tabs
).
use
(
GoodsAction
).
use
(
GoodsActionIcon
).
use
(
GoodsActionButton
).
use
(
SubmitBar
).
use
(
Checkbox
).
use
(
CheckboxGroup
).
use
(
Search
).
use
(
Picker
).
use
(
Uploader
).
use
(
Notify
)
...
...
src/views/Login2.vue
View file @
8a719d9f
...
...
@@ -64,7 +64,30 @@ export default {
};
},
mounted
()
{},
created
()
{
// 扩展API是否准备好,如果没有则监听“plusready"事件
if
(
window
.
plus
)
{
this
.
plusReady
()
}
else
{
document
.
addEventListener
(
'
plusready
'
,
this
.
plusReady
,
false
)
}
},
methods
:
{
// 扩展API准备完成后要执行的操作
plusReady
()
{
// var ws = plus.webview.currentWebview(); //pw回车可输出plus.webview
var
barcode
=
plus
.
barcode
.
create
(
'
barcode
'
,
"
aaa
"
,
{
top
:
'
-9999px
'
,
//改为-9999px隐藏该页面
left
:
'
0
'
,
width
:
'
100%
'
,
height
:
'
500px
'
,
position
:
'
static
'
,
});
plus
.
webview
.
currentWebview
().
append
(
barcode
);
//barcode.start();开始扫码识别(我们把这句代码注释了,因为我们不需要扫描任何东西)
},
onSubmit
(
values
)
{
this
.
$toast
.
loading
({
message
:
'
登录中...
'
,
...
...
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