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
26d8ecfe
Commit
26d8ecfe
authored
Jun 25, 2021
by
jiacheng.mao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
手机号增加校验,合同明细下载pdf文件调整,pdf预览逻辑调整
parent
694f29f0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
3 deletions
+20
-3
main.js
src/main.js
+7
-0
repay-detail.vue
src/pages/contractInquire/repay-detail.vue
+9
-1
previewPdf.vue
src/pages/contractSigning/previewPdf.vue
+2
-2
base-info.vue
src/pages/userBindNew/np/base-info.vue
+2
-0
No files found.
src/main.js
View file @
26d8ecfe
...
...
@@ -45,6 +45,11 @@ import hlsPopup from './scripts/hlsPopup'
*/
import
{
post
,
get
}
from
'./scripts/hlsHttp'
/**
* PDFJS
*/
import
PDFJS
from
'pdfjs-dist'
/** 全局函数hlsUtil**/
import
hlsUtil
from
'./scripts/hlsUtil'
...
...
@@ -95,6 +100,8 @@ let hlsHttp = {
}
Vue
.
prototype
.
hlsHttp
=
window
.
hlsHttp
=
hlsHttp
Vue
.
prototype
.
PDFJS
=
window
.
PDFJS
=
PDFJS
Vue
.
prototype
.
hlsUtil
=
window
.
hlsUtil
=
hlsUtil
Vue
.
prototype
.
Jpush
=
window
.
Jpush
=
Jpush
...
...
src/pages/contractInquire/repay-detail.vue
View file @
26d8ecfe
...
...
@@ -151,7 +151,15 @@
if
(
res
.
result
===
'S'
)
{
vm
.
fileArray
=
res
.
info
vm
.
fileArray
.
forEach
(
i
=>
{
cordova
.
InAppBrowser
.
open
(
i
.
fileUrl
,
'_system'
,
'location=yes,hideurlbar=no,toolbarposition=top'
)
//cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes,hideurlbar=no,toolbarposition=top')
//cordova.InAppBrowser.open(i.fileUrl, '_system', 'location=yes')
if
(
vum
.
Platform
.
isAndroid
())
{
//android终端
window
.
open
(
i
.
fileUrl
,
"_system"
,
"location=yes"
)
}
else
if
(
vum
.
Platform
.
isIOS
()
||
vum
.
Platform
.
isIPad
())
{
//ios终端
window
.
location
.
href
=
i
.
fileUrl
;
}
else
{
window
.
open
(
i
.
fileUrl
,
"_system"
,
"location=yes"
)
}
})
// vm.pdfDownload()
}
else
{
...
...
src/pages/contractSigning/previewPdf.vue
View file @
26d8ecfe
...
...
@@ -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
{
...
...
@@ -76,7 +76,7 @@ export default {
},
_loadFile
(
url
)
{
console
.
log
(
'URL ==== '
+
url
)
PDFJS
.
getDocument
(
url
).
then
((
pdf
)
=>
{
this
.
PDFJS
.
getDocument
(
url
).
then
((
pdf
)
=>
{
this
.
pdfDoc
=
pdf
// debugger
console
.
log
(
'pdf ==== '
+
pdf
)
...
...
src/pages/userBindNew/np/base-info.vue
View file @
26d8ecfe
...
...
@@ -1055,6 +1055,8 @@ export default {
vm
.
hlsPopup
.
showLongCenter
(
'配偶联系地址不能为空!'
)
}
else
if
(
!
vm
.
hlsUtil
.
phoneNumber
(
vm
.
baseInfo
.
cell_phone
))
{
vm
.
hlsPopup
.
showLongCenter
(
'手机号码有误!'
)
}
else
if
(
vm
.
baseInfo
.
marital_status_n
===
'已婚'
&&
!
vm
.
hlsUtil
.
phoneNumber
(
vm
.
baseInfo
.
spouse_phone
))
{
vm
.
hlsPopup
.
showLongCenter
(
'配偶手机号码有误!'
)
}
else
{
let
bpId
=
await
vm
.
saveProtocol
()
return
true
...
...
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