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
e2d7524f
Commit
e2d7524f
authored
Dec 02, 2019
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add:371 359 356
parent
edfda19e
Pipeline
#4001
canceled with stages
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
252 additions
and
52 deletions
+252
-52
currencyInput.vue
src/components/currencyInput.vue
+1
-1
my-info.vue
src/pages/myInfo/my-info.vue
+149
-22
contract-record.vue
src/pages/pay/firstPay/contract-record.vue
+2
-2
first-pay.vue
src/pages/pay/firstPay/first-pay.vue
+5
-2
first-pay.vue
src/pages/pay/marginPay/first-pay.vue
+6
-2
contract-record.vue
src/pages/pay/payment/contract-record.vue
+3
-3
new-list.vue
src/pages/pay/payment/new-list.vue
+4
-3
pwd-forgotten.vue
src/pages/pwd-forgotten.vue
+30
-11
regiester2.vue
src/pages/regiester2.vue
+24
-5
reimburse-myself-list.Vue
src/pages/reimburseMyself/reimburse-myself-list.Vue
+28
-1
No files found.
src/components/currencyInput.vue
View file @
e2d7524f
...
...
@@ -37,7 +37,7 @@ export default {
formatValue
()
{
let
currency
=
this
.
$options
.
filters
[
'currency'
]
if
(
!
this
.
focused
)
{
return
currency
(
this
.
value
)
return
`¥
${
currency
(
this
.
value
)}
`
}
else
{
return
this
.
value
}
...
...
src/pages/myInfo/my-info.vue
View file @
e2d7524f
...
...
@@ -9,17 +9,20 @@
<
template
>
<h-view
id=
"my-info"
>
<h-header
class=
"bar-custom"
>
<div
slot=
"center"
>
个人中心
</div>
<div
slot=
"center"
>
个人中心
</div>
</h-header>
<div
class=
"top"
style=
"margin-top:-1px;"
>
<div
class=
"card-top"
>
<img
src=
"@/assets/myInfo/1.png
"
@
click=
"checkType"
>
<img
:src=
"upLoadObj.picture
"
@
click=
"checkType"
>
<div
class=
"sign"
>
<span>
{{
user_phone
}}
</span>
<div>
电子签
<p
:class=
"[elecStatus?'across':'un-across']"
@
click=
"certification"
>
{{
elecStatusDesceibe
}}
</p>
<p
:class=
"[elecStatus?'across':'un-across']"
@
click=
"certification"
>
{{
elecStatusDesceibe
}}
</p>
</div>
</div>
</div>
...
...
@@ -60,7 +63,7 @@
>
{{
confirmCount
>
99
?
'99+'
:
confirmCount
}}
</span>
<img
src=
"@/assets/myInfo/unConfirm.png"
>
<p>
待确认
</p>
</div>
-->
</div>
-->
<div
class=
"content-wrap"
@
click=
"goVideoSign"
>
<span
v-if=
"vedioCount > 0"
...
...
@@ -72,7 +75,8 @@
<div
class=
"content-wrap"
@
click=
"goCarConfirm"
>
<span
v-if=
"carCount > 0"
:class=
"
{'content-wrap-class-width':carCount>99, 'content-wrap-class':carCount
<99
}"
style=
"margin-left:5px;"
:class=
"
{'content-wrap-class-width':carCount>99, 'content-wrap-class':carCount
<99
}"
style=
"margin-left:5px;"
>
{{
carCount
>
99
?
'99+'
:
carCount
}}
</span>
<img
src=
"@/assets/myInfo/carConfirm.png"
>
<p>
发车确认
</p>
...
...
@@ -122,12 +126,17 @@
</div>
</h-content>
<role-switch
v-show=
"roleSwitchFlag"
ref=
"roleSwitch"
:roleList=
"roleList"
@
roleConfirm=
"roleConfirm"
@
roleCancle=
"roleCancle"
/>
v-show=
"roleSwitchFlag"
ref=
"roleSwitch"
:roleList=
"roleList"
@
roleConfirm=
"roleConfirm"
@
roleCancle=
"roleCancle"
/>
</h-view>
</
template
>
<
script
>
import
roleSwitch
from
'./role-switch-component'
import
defaultImg
from
'../../assets/myInfo/1.png'
export
default
{
components
:
{
roleSwitch
,
...
...
@@ -135,6 +144,10 @@ export default {
data
()
{
return
{
currentVersion
:
process
.
env
.
currentVersion
,
upLoadObj
:
{
picture
:
defaultImg
,
filePath
:
''
,
},
// 上传的图片
flag
:
true
,
isAGENT
:
false
,
elecStatusDesceibe
:
''
,
...
...
@@ -230,9 +243,7 @@ export default {
// }
},
},
created
()
{
},
created
()
{},
beforeRouteEnter
(
to
,
from
,
next
)
{
next
(
vm
=>
{
vm
.
userQuery
()
...
...
@@ -457,10 +468,13 @@ export default {
},
checkType
()
{
this
.
hlsPopup
.
showActionSheet
({
buttonArray
:
this
.
bp_id
===
undefined
?
[
'修改头像'
]
:
[
'修改头像'
,
'用户信息'
,
'角色切换'
],
callback
:
(
index
)
=>
{
buttonArray
:
this
.
bp_id
===
undefined
?
[
'修改头像'
]
:
[
'修改头像'
,
'用户信息'
,
'角色切换'
],
callback
:
index
=>
{
if
(
index
===
0
)
{
hlsPopup
.
showLongCenter
(
'修改头像功能敬请期待!
'
)
this
.
imgUploadShow
(
'app_user_id
'
)
}
else
if
(
index
===
1
)
{
this
.
changePageHead
()
}
else
if
(
index
===
2
)
{
...
...
@@ -469,6 +483,115 @@ export default {
},
})
},
// 图片上传入口
imgUploadShow
(
check_id
)
{
let
vm
=
this
// vm.upload_list = []
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
callback
:
index
=>
{
if
(
index
===
0
)
{
vm
.
imgUploadOpenCamera
(
check_id
)
}
else
{
vm
.
imgUploadTakePicture
(
check_id
)
}
},
})
},
imgUploadOpenCamera
(
check_id
)
{
let
vm
=
this
let
obj
=
{
pkvalue
:
check_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
check_id
,
filePath
:
''
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
''
,
}
let
cameraoptions
=
{
quality
:
100
,
}
let
success
=
function
(
imgdata
)
{
obj
.
picture
=
imgdata
obj
.
filePath
=
imgdata
Object
.
assign
(
vm
.
upLoadObj
,
obj
)
vm
.
save_picture
(
obj
)
}
let
error
=
function
()
{
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
imgUploadTakePicture
(
check_id
)
{
let
vm
=
this
let
cameraoptions
=
{
quality
:
100
,
}
let
success
=
function
(
imgUrl
)
{
let
obj
=
{
pkvalue
:
check_id
,
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
check_id
,
filePath
:
''
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
''
,
}
obj
.
picture
=
imgUrl
obj
.
filePath
=
imgUrl
Object
.
assign
(
vm
.
upLoadObj
,
obj
)
// 拍完一张立马执行保存图片逻辑
vm
.
save_picture
(
obj
)
}
let
error
=
function
()
{}
vm
.
hlsUtil
.
takePicture
(
cameraoptions
,
success
,
error
)
},
openCamera
(
ocrType
,
type
)
{
let
vm
=
this
let
cameraoptions
=
{
quality
:
60
,
width
:
1843
,
height
:
1382
,
}
let
success
=
function
(
imgdata
)
{
if
(
!
imgdata
)
{
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
}
let
error
=
function
()
{
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
takePicture
(
ocrType
,
type
)
{
let
vm
=
this
var
cameraoptions
=
{
quality
:
70
,
width
:
1843
,
height
:
1382
,
maxCount
:
1
,
}
let
success
=
function
(
imgUrl
)
{
if
(
imgUrl
.
length
===
0
)
{
hlsPopup
.
showLongCenter
(
'请选择一张图片'
)
}
}
let
error
=
function
()
{
hlsPopup
.
showLongCenter
(
error
)
}
vm
.
hlsUtil
.
takePicture
(
cameraoptions
,
success
,
error
)
},
save_picture
(
obj
)
{
if
(
obj
)
{
hlsUtil
.
fileUploadSvc
(
obj
)
}
else
{
hlsPopup
.
hideLoading
()
}
},
changePageHead
()
{
let
vm
=
this
if
(
vm
.
bp_id
)
{
...
...
@@ -591,7 +714,11 @@ export default {
async
certification
()
{
let
vm
=
this
if
(
vm
.
bp_id
)
{
if
(
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
||
vm
.
bp_identity
===
'ORG_AUTH_NO'
)
{
if
(
vm
.
bp_identity
===
'NP_NO'
||
vm
.
bp_identity
===
'ORG_L_NO'
||
vm
.
bp_identity
===
'ORG_AUTH_NO'
)
{
let
authUrl
=
await
vm
.
getNpCertificationUrl
()
if
(
authUrl
)
{
vm
.
$router
.
push
({
...
...
@@ -671,7 +798,7 @@ export default {
align-items: center;
.sign {
margin-left: 24px;
height:55px;
height:
55px;
span {
font-family: PingFangSC-Semibold;
font-size: 18px;
...
...
@@ -690,7 +817,7 @@ export default {
display: flex;
align-items: center;
justify-content: center;
padding:0 5px;
padding:
0 5px;
height: 20px;
margin-left: 10px;
border: 1px solid #fff;
...
...
@@ -700,10 +827,10 @@ export default {
color: #ffffff;
letter-spacing: 0;
}
.across{
background-color: #1
D3FFF
;
.across
{
background-color: #1
d3fff
;
}
.un-across{
.un-across
{
background: #0523ce;
}
}
...
...
@@ -775,7 +902,7 @@ export default {
height: 121px;
background-color: #fff;
border-radius: 4px;
margin-top:18px;
margin-top:
18px;
}
.userInfo {
height: 45px;
...
...
@@ -892,7 +1019,7 @@ export default {
.platform-ios {
#my-info {
button {
margin-bottom: 98px;
margin-bottom: 98px;
}
}
}
...
...
@@ -902,7 +1029,7 @@ export default {
.platform-ios {
#my-info {
button {
margin-bottom: 98px;
margin-bottom: 98px;
}
}
}
...
...
src/pages/pay/firstPay/contract-record.vue
View file @
e2d7524f
...
...
@@ -34,8 +34,8 @@
<p>
本次还款
</p>
</div>
<div
class=
"item-right"
>
<p>
{{
parseFloat
(
e
.
due_amount
).
toFixed
(
2
)
|
currency
}}
</p>
<p>
{{
e
.
received_amount
|
currency
}}
</p>
<p>
¥
{{
parseFloat
(
e
.
due_amount
).
toFixed
(
2
)
|
currency
}}
</p>
<p>
¥
{{
e
.
received_amount
|
currency
}}
</p>
<CurrencyInput
v-model=
"e.amount"
placeholder=
"请输入还款金额"
/></div>
</div>
</div>
...
...
src/pages/pay/firstPay/first-pay.vue
View file @
e2d7524f
...
...
@@ -27,7 +27,7 @@
</div>
<div
class=
"pay-input"
>
<span>
应还首付款
</span>
<
input
v-model=
"money"
type=
"text"
placeholder=
"请输入支付金额"
>
<
CurrencyInput
v-model=
"money"
placeholder=
"请输入支付金额"
/
>
<div
@
click=
"createOrder"
>
<img
src=
"@/assets/payment/into.png"
>
</div>
...
...
@@ -52,9 +52,12 @@
</
template
>
<
script
>
import
CurrencyInput
from
'../../../components/currencyInput'
export
default
{
name
:
'FirstPay'
,
components
:
{},
components
:
{
CurrencyInput
,
},
data
()
{
return
{
money
:
0
,
...
...
src/pages/pay/marginPay/first-pay.vue
View file @
e2d7524f
...
...
@@ -27,7 +27,7 @@
</div>
<div
class=
"pay-input"
>
<span>
应还保证金
</span>
<
input
v-model=
"money"
type=
"number"
placeholder=
"请输入支付金额"
>
<
CurrencyInput
v-model=
"money"
type=
"number"
placeholder=
"请输入支付金额"
/
>
<!--
<div
@
click=
"createOrder"
>
<img
src=
"@/assets/payment/into.png"
>
</div>
-->
...
...
@@ -59,8 +59,12 @@
</
template
>
<
script
>
import
CurrencyInput
from
'../../../components/currencyInput'
export
default
{
components
:
{},
components
:
{
CurrencyInput
,
},
data
()
{
return
{
money
:
0
,
...
...
src/pages/pay/payment/contract-record.vue
View file @
e2d7524f
...
...
@@ -48,7 +48,7 @@
</div>
<div>
<span>
应还金额
</span>
<span
class=
"orange"
>
{{
detail
.
due_amount
|
currency
}}
</span>
<span
class=
"orange"
>
¥
{{
detail
.
due_amount
|
currency
}}
</span>
</div>
</div>
<div
class=
"list"
>
...
...
@@ -59,7 +59,7 @@
<div>
<span>
已还金额
</span>
<span
class=
"blue"
>
{{
detail
.
received_amount
|
currency
}}
</span>
<span
class=
"blue"
>
¥
{{
detail
.
received_amount
|
currency
}}
</span>
</div>
</div>
<div
class=
"list"
>
...
...
@@ -81,7 +81,7 @@
<list-item
:item-height=
"44"
>
<item>
<div
slot=
"name"
>
逾期利息
</div>
<span
slot=
"content"
>
{{
money
|
currency
}}
</span>
<span
slot=
"content"
>
¥
{{
money
|
currency
}}
</span>
</item>
</list-item>
</section>
...
...
src/pages/pay/payment/new-list.vue
View file @
e2d7524f
...
...
@@ -26,7 +26,7 @@
</div>
<div
class=
"pay-input"
>
<span>
应还租金
</span>
<
input
v-model=
"pay_rent"
type=
"text"
placeholder=
"请输入支付金额"
>
<
CurrencyInput
v-model=
"pay_rent"
type=
"text"
placeholder=
"请输入支付金额"
/
>
<div
@
click=
"createOrder"
>
<img
src=
"@/assets/payment/into.png"
>
</div>
...
...
@@ -40,8 +40,7 @@
</div>
<div
class=
"pay-input"
>
<span>
逾期利息
</span>
<input
v-model=
"liquidated_damages"
readonly
type=
"text"
placeholder=
"请输入支付金额"
>
</div>
<CurrencyInput
v-model=
"liquidated_damages"
readonly
type=
"text"
placeholder=
"请输入支付金额"
/></currencyinput></div>
</div>
</div>
</section>
...
...
@@ -62,9 +61,11 @@
</
template
>
<
script
>
import
CurrencyInput
from
'../../../components/currencyInput'
export
default
{
name
:
'NewList'
,
components
:
{
CurrencyInput
,
},
data
()
{
return
{
...
...
src/pages/pwd-forgotten.vue
View file @
e2d7524f
...
...
@@ -46,7 +46,7 @@
</
template
>
<
script
>
var
CryptoJS
=
require
(
'crypto-js'
)
var
CryptoJS
=
require
(
'crypto-js'
)
export
default
{
data
()
{
return
{
...
...
@@ -65,9 +65,9 @@ export default {
captchaKey
:
'123456'
,
phoneCodeTimeOut
:
false
,
timer
:
6
0000
,
timer
:
12
0000
,
showTimer
:
false
,
timerCount
:
6
0
,
timerCount
:
12
0
,
text
:
'获取验证码'
,
}
},
...
...
@@ -128,6 +128,8 @@ export default {
vm
.
showTimer
=
false
clearInterval
(
counter
)
vm
.
showTimer
=
false
vm
.
captchaKey
=
(
'000000'
+
Math
.
floor
(
Math
.
random
()
*
999999
)).
slice
(
-
6
)
hlsPopup
.
showLongCenter
(
'验证码失效,请重新获取'
)
vm
.
timerCount
=
vm
.
timer
/
1000
},
vm
.
timer
)
}
else
{
...
...
@@ -159,7 +161,7 @@ export default {
let
vm
=
this
if
(
!
vm
.
phoneNumberFlag
)
{
hlsPopup
.
showLongCenter
(
'请输入手机号!'
)
}
else
if
(
!
vm
.
verifiedCodeFlag
)
{
}
else
if
(
vm
.
verifiedCode
!==
vm
.
captchaKey
)
{
hlsPopup
.
showLongCenter
(
'验证码错误!'
)
}
else
if
(
!
vm
.
passwordFlag
)
{
hlsPopup
.
showLongCenter
(
'请输入密码!'
)
...
...
@@ -170,7 +172,7 @@ export default {
let
md5passwprd
=
CryptoJS
.
MD5
(
vm
.
user_password
).
toString
().
toUpperCase
()
let
params
=
{
phone
:
vm
.
phone_number
,
password
:
md5passwprd
password
:
md5passwprd
,
}
hlsHttp
.
post
(
url
,
params
).
then
(
function
(
res
)
{
if
(
res
.
result
===
'S'
)
{
...
...
@@ -184,7 +186,24 @@ export default {
},
getVerifiedCode
()
{
let
vm
=
this
hlsPopup
.
showLongCenter
(
'测试验证码为123456'
)
let
url
=
process
.
env
.
basePath
+
'sms_verify_post'
let
signcode
=
(
'000000'
+
Math
.
floor
(
Math
.
random
()
*
999999
)).
slice
(
-
6
)
vm
.
captchaKey
=
signcode
let
param
=
{
'info'
:
{
'phone'
:
vm
.
phone_number
,
'signcode'
:
signcode
,
},
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showSuccess
(
'验证码已发送'
)
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
/* let url = process.env.rootPath + '/aliyun/sms'
let params = {
phoneNumber: vm.phone_number,
...
...
@@ -213,7 +232,7 @@ export default {
<
style
scoped
lang=
"less"
>
@import "../styles/mixin";
.header {
background-color:
#00469c
;
background-color:
@headerColor
;
color: #fff;
.h-header-btn {
img {
...
...
@@ -234,7 +253,7 @@ export default {
.description{
.wh(100%,50px);
.fja();
background-color:
#00469c
;
background-color:
@headerColor
;
.sc(14px,#fff);
}
.verified-code{
...
...
@@ -243,16 +262,16 @@ export default {
.verified-code-box{
margin-left: 14px;
.border-left;
color:
#0057C3
;
color:
@headerColor
;
line-height: 30px;
}
.verified-code-des{
font-size: 10px;
color:
#0057C3
;
color:
@headerColor
;
}
}
.tab-content{
background-color:
#00469c
;
background-color:
@headerColor
;
margin: 0 2%;
color: #fff;
}
...
...
src/pages/regiester2.vue
View file @
e2d7524f
...
...
@@ -65,12 +65,11 @@ export default {
verifiedCodeFlag
:
false
,
passwordFlag
:
false
,
confirmPassword
:
false
,
captchaKey
:
'123456'
,
phoneCodeTimeOut
:
false
,
timer
:
6
0000
,
timer
:
12
0000
,
showTimer
:
false
,
timerCount
:
6
0
,
timerCount
:
12
0
,
text
:
'获取验证码'
,
}
},
...
...
@@ -152,6 +151,8 @@ export default {
vm
.
showTimer
=
false
clearInterval
(
counter
)
vm
.
showTimer
=
false
vm
.
captchaKey
=
(
'000000'
+
Math
.
floor
(
Math
.
random
()
*
999999
)).
slice
(
-
6
)
hlsPopup
.
showLongCenter
(
'验证码失效,请重新获取'
)
vm
.
timerCount
=
vm
.
timer
/
1000
},
vm
.
timer
)
}
else
{
...
...
@@ -183,7 +184,7 @@ export default {
let
vm
=
this
if
(
!
vm
.
phoneNumberFlag
)
{
hlsPopup
.
showLongCenter
(
'请输入手机号!'
)
}
else
if
(
!
vm
.
verifiedCodeFlag
)
{
}
else
if
(
vm
.
verifiedCode
!==
vm
.
captchaKey
)
{
hlsPopup
.
showLongCenter
(
'验证码错误!'
)
}
else
if
(
!
vm
.
passwordFlag
)
{
hlsPopup
.
showLongCenter
(
'请输入密码!'
)
...
...
@@ -217,7 +218,25 @@ export default {
},
getVerifiedCode
()
{
let
vm
=
this
hlsPopup
.
showLongCenter
(
'测试验证码为123456'
)
// hlsPopup.showLongCenter('测试验证码为123456')
let
url
=
process
.
env
.
basePath
+
'sms_verify_post'
let
signcode
=
(
'000000'
+
Math
.
floor
(
Math
.
random
()
*
999999
)).
slice
(
-
6
)
vm
.
captchaKey
=
signcode
let
param
=
{
'info'
:
{
'phone'
:
vm
.
phone_number
,
'signcode'
:
signcode
,
},
}
vm
.
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showSuccess
(
'验证码已发送'
)
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
res
.
message
)
}
})
/* let url = process.env.rootPath + '/aliyun/sms'
let params = {
phoneNumber: vm.phone_number,
...
...
src/pages/reimburseMyself/reimburse-myself-list.Vue
View file @
e2d7524f
...
...
@@ -100,7 +100,7 @@ export default {
.search {
background-color: #fff;
padding: 8px 12px;
//
position: absolute;
position: absolute;
width: 100%;
z-index: 100;
// margin-top: 52px;
...
...
@@ -176,4 +176,31 @@ export default {
position: absolute;
}
}
.platform-ios {
#startList {
.scrollContent {
padding-top: 2.2rem;
}
}
}
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#startList {
.scrollContent {
padding-top: 2.62rem;
}
}
}
}
// iPhoneXR适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#startList {
.scrollContent {
padding-top: 2.62rem;
}
}
}
}
</
style
>
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