Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
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
xugong
hls-xcmg-vue-app
Commits
3f9b5462
Commit
3f9b5462
authored
Jun 25, 2021
by
nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios闪退修复
parent
db18f7fc
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
187 additions
and
168 deletions
+187
-168
config.xml
config.xml
+2
-0
prod.env.js
config/prod.env.js
+1
-1
package.json
package.json
+5
-2
fetch.json
plugins/fetch.json
+2
-2
ios.json
plugins/ios.json
+7
-7
main.js
src/main.js
+2
-2
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+137
-137
previewPdf.vue
src/pages/contractSigning/previewPdf.vue
+1
-1
login.vue
src/pages/login.vue
+6
-0
base-info.vue
src/pages/userBindNew/np/base-info.vue
+24
-16
No files found.
config.xml
View file @
3f9b5462
...
...
@@ -112,4 +112,6 @@
<plugin
name=
"cordova-plugin-splashscreen"
spec=
"5.0.2"
/>
<plugin
name=
"ionic-plugin-keyboard"
spec=
"^2.2.1"
/>
<engine
name=
"android"
spec=
"~6.2.0"
/>
<plugin
name=
"cordova-plugin-ionic-webview"
spec=
"~1.2.1"
/>
<plugin
name=
"cordova-plugin-inappbrowser"
spec=
"~4.0.0"
/>
</widget>
config/prod.env.js
View file @
3f9b5462
...
...
@@ -2,7 +2,7 @@
module
.
exports
=
{
NODE_ENV
:
'"production"'
,
CONFIG_ENV
:
JSON
.
stringify
(
process
.
env
.
CONFIG_ENV
),
debug
:
tru
e
,
debug
:
fals
e
,
isMobilePlatform
:
true
,
loginPath
:
'"http://www.xcmgfs.com:8087/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" '
,
basePath
:
'"http://www.xcmgfs.com:8087/r/api/interface?sysName=XCMG_PROD&apiName="'
,
...
...
package.json
View file @
3f9b5462
...
...
@@ -105,6 +105,9 @@
"ios"
,
"android"
],
"plugins"
:
{}
"plugins"
:
{
"cordova-plugin-inappbrowser"
:
{},
"cordova-plugin-ionic-webview"
:
{}
}
}
}
\ No newline at end of file
plugins/fetch.json
View file @
3f9b5462
...
...
@@ -177,8 +177,8 @@
},
"cordova-plugin-ionic-webview"
:
{
"source"
:
{
"type"
:
"
local
"
,
"
path"
:
"/Volumes/work/APP/xugon/cordova-plugin-ionic-webview
"
"type"
:
"
registry
"
,
"
id"
:
"cordova-plugin-ionic-webview@2.0.0
"
},
"is_top_level"
:
true
,
"variables"
:
{}
...
...
plugins/ios.json
View file @
3f9b5462
...
...
@@ -38,12 +38,6 @@
"cordova-plugin-image-picker"
:
{
"PACKAGE_NAME"
:
"com.xcmg.app"
},
"cordova-plugin-inappbrowser"
:
{
"PACKAGE_NAME"
:
"com.xcmg.app"
},
"cordova-plugin-ionic-webview"
:
{
"PACKAGE_NAME"
:
"com.xcmg.app"
},
"cordova-plugin-jcore"
:
{
"PACKAGE_NAME"
:
"com.xcmg.app"
},
...
...
@@ -75,6 +69,12 @@
"jpush-phonegap-plugin"
:
{
"APP_KEY"
:
"bef4fd44dcf54b79b8ab27c3"
,
"PACKAGE_NAME"
:
"com.xcmg.app"
},
"cordova-plugin-ionic-webview"
:
{
"PACKAGE_NAME"
:
"$(PRODUCT_BUNDLE_IDENTIFIER)"
},
"cordova-plugin-inappbrowser"
:
{
"PACKAGE_NAME"
:
"$(PRODUCT_BUNDLE_IDENTIFIER)"
}
},
"dependent_plugins"
:
{
...
...
src/main.js
View file @
3f9b5462
...
...
@@ -121,9 +121,9 @@ let backButtonPressedOnceToExit
const
errorHandler
=
(
error
,
vm
)
=>
{
console
.
error
(
error
.
stack
)
hlsHttp
.
post
(
'http://hlsapp.hand-china.com/core/public/app/error'
,
{
/*
hlsHttp.post('http://hlsapp.hand-china.com/core/public/app/error', {
'error': error.stack,
})
})
*/
}
Vue
.
config
.
errorHandler
=
errorHandler
...
...
src/pages/contractInquire/repay-detail.vue
View file @
3f9b5462
...
...
@@ -96,7 +96,7 @@
<
script
>
export
default
{
export
default
{
name
:
'RepayDetail'
,
filters
:
{
lengthCheck
:
function
(
value
)
{
...
...
@@ -245,7 +245,7 @@
})
},
},
}
}
</
script
>
<
style
lang=
'less'
>
#repay-detail {
...
...
src/pages/contractSigning/previewPdf.vue
View file @
3f9b5462
...
...
@@ -12,7 +12,7 @@
</h-view>
</
template
>
<
script
>
import
PDFJS
from
'pdfjs-dist'
//
import PDFJS from 'pdfjs-dist'
// const Base64 = require('js-base64').Base64
export
default
{
...
...
src/pages/login.vue
View file @
3f9b5462
...
...
@@ -41,6 +41,8 @@
<div
class=
"both-button"
>
<div
class=
"button submit"
@
click=
"access"
>
登录
</div>
<div
class=
"button submit"
@
click=
"goHome"
>
游客体验
</div>
<!--
<div
class=
"button submit"
@
click=
"faceContrast"
>
游客体验
</div>
<div
class=
"button submit"
@
click=
"openHttps"
>
游客体验
</div>
-->
</div>
</div>
...
...
@@ -319,6 +321,10 @@ export default {
vm
.
hlsPopup
.
showLongCenter
(
'认证失败: '
+
error
.
message
)
})
},
openHttps
()
{
cordova
.
InAppBrowser
.
open
(
'https://www.baidu.com/'
,
'_blank'
,
'location=yes'
)
},
},
}
</
script
>
...
...
src/pages/userBindNew/np/base-info.vue
View file @
3f9b5462
...
...
@@ -727,28 +727,36 @@ export default {
})
switch
(
cdd_item
)
{
case
'NP_ID_CARD_F'
:
// 承租人身份证正面
if
(
res
.
lists
.
length
)
{
if
(
!
vm
.
idCardFrontUrlFlag
)
{
vm
.
idCardFront
=
res
.
lists
[
0
].
url
}
vm
.
idCardFrontAttachmentId
=
res
.
lists
[
0
].
attachment_id
}
break
case
'NP_ID_CARD_B'
:
// 承租人身份证背面
if
(
res
.
lists
.
length
)
{
if
(
!
vm
.
idCardBackUrlFlag
)
{
vm
.
idCardBack
=
res
.
lists
[
0
].
url
}
vm
.
idCardBackAttachmentId
=
res
.
lists
[
0
].
attachment_id
}
break
case
'MATE_ID_CARD_F'
:
// 配偶身份证正面
if
(
res
.
lists
.
length
)
{
if
(
!
vm
.
idCardFrontSpUrlFlag
)
{
vm
.
idCardFrontSp
=
res
.
lists
[
0
].
url
}
vm
.
idCardFrontSpAttachmentId
=
res
.
lists
[
0
].
attachment_id
}
break
case
'MATE_ID_CARD_B'
:
// 配偶身份证背面
if
(
res
.
lists
.
length
)
{
if
(
!
vm
.
idCardBackSpUrlFlag
)
{
vm
.
idCardBackSp
=
res
.
lists
[
0
].
url
}
vm
.
idCardBackSpAttachmentId
=
res
.
lists
[
0
].
attachment_id
}
break
default
:
vm
.
dowload_list
.
push
(
res
.
lists
)
...
...
@@ -1382,26 +1390,26 @@ export default {
let
result
=
res
.
result
.
words_result
if
(
cardType
===
'idCard'
)
{
vm
.
baseInfo
.
id_card_date_from
=
vm
.
timeFormat
(
result
.
签发日期
.
words
)
if
(
result
.
失效日期
.
words
.
indexOf
(
'长期'
)
!=
-
1
)
{
if
(
result
.
失效日期
.
words
.
indexOf
(
'长期'
)
!=
-
1
)
{
hlsPopup
.
showPopup
({
title
:
'提示'
,
content
:
`检测到您的身份证为长期有效,系统自动置为【9999-12-31】`
,
onConfirm
:
()
=>
{},
})
vm
.
baseInfo
.
id_card_date_to
=
'9999-12-31'
}
else
{
}
else
{
vm
.
baseInfo
.
id_card_date_to
=
vm
.
timeFormat
(
result
.
失效日期
.
words
)
}
}
else
{
vm
.
baseInfo
.
id_card_date_from_sp
=
vm
.
timeFormat
(
result
.
签发日期
.
words
)
if
(
result
.
失效日期
.
words
.
indexOf
(
'长期'
)
!=
-
1
)
{
if
(
result
.
失效日期
.
words
.
indexOf
(
'长期'
)
!=
-
1
)
{
hlsPopup
.
showPopup
({
title
:
'提示'
,
content
:
`检测到您的身份证为长期有效,系统自动置为【9999-12-31】`
,
onConfirm
:
()
=>
{},
})
vm
.
baseInfo
.
id_card_date_to_sp
=
'9999-12-31'
}
else
{
}
else
{
vm
.
baseInfo
.
id_card_date_to_sp
=
vm
.
timeFormat
(
result
.
失效日期
.
words
)
}
}
...
...
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