Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
frontend
/
qqxb-self-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
18fb1adc
authored
Jun 29, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
updfate
parent
d2bf15e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
35 deletions
src/main.ts
src/views/SelectIdentity.vue
src/main.ts
View file @
18fb1adc
...
...
@@ -7,9 +7,6 @@ import server from '@/services/install';
// import FastClick from 'fastclick'
import
'@/assets/css/index.less'
;
import
*
as
filters
from
'@/utils/filters'
;
//@ts-ignore
import
initJsBridge
from
"@/utils/JsBridge.js"
;
Vue
.
config
.
productionTip
=
false
;
// FastClick.attach(document.body);
...
...
@@ -19,34 +16,6 @@ Object.keys(filters).forEach((key: string) => {
Vue
.
use
(
server
);
Vue
.
prototype
.
closeWebView
=
function
()
{
console
.
log
(
'close webview in jsbridge'
);
try
{
initJsBridge
(()
=>
{
//@ts-ignore
window
.
WebViewJavascriptBridge
.
callHandler
(
"ready"
,
null
,
function
(
//@ts-ignore
response
)
{
try
{
//@ts-ignore
window
.
WebViewJavascriptBridge
.
callHandler
(
"closeWebView"
,
null
,
//@ts-ignore
function
(
response
)
{
console
.
log
(
"closeWebView 来自 ios/android的回传数据:"
,
response
);
}
);
}
catch
(
err
)
{
console
.
log
(
"closeWebView is error"
,
err
);
}
});
});
}
catch
(
err
)
{
console
.
log
(
"closeWebView is error"
,
err
);
}
};
if
(
process
.
env
.
NODE_ENV
===
'development'
||
...
...
src/views/SelectIdentity.vue
View file @
18fb1adc
...
...
@@ -92,7 +92,6 @@ export default class SelectIdentity extends Vue {
await
this
.
$server
.
EmployeeService
.
getUserInfo
({})
.
then
(
res
=>
{
if
(
false
&&
res
.
data
&&
res
.
data
.
uthStatus
&&
res
.
data
.
uthStatus
>
0
)
{
console
.
log
(
res
);
this
.
id_no
=
res
.
data
.
personalIdCardNo
;
localStorage
.
setItem
(
"id_no"
,
res
.
data
.
personalIdCardNo
);
...
...
@@ -105,9 +104,8 @@ export default class SelectIdentity extends Vue {
Dialog
.
alert
({
message
:
"您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
}).
then
(()
=>
{
//@ts-ignore
this
.
closeWebView
();
console
.
log
(
342342
);
location
.
href
=
"http://qqxb://native/identityVerification"
});
}
})
...
...
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