Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-ui
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
ui
cauchy-ui
Commits
0fe6725e
Commit
0fe6725e
authored
Sep 15, 2021
by
ben.liu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/activity' of
http://git.quantgroup.cn/ui/cauchy-ui
into feature/activity
parents
291afcd0
e9c2ee56
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
55 additions
and
15 deletions
+55
-15
package-lock.json
package-lock.json
+5
-0
package.json
package.json
+1
-0
main.js
src/main.js
+3
-0
routes.js
src/router/routes.js
+1
-1
index.vue
src/views/home/index.vue
+3
-3
STATIC_DATA.js
src/views/pay/STATIC_DATA.js
+12
-1
PayCardItem.vue
src/views/pay/components/PayCardItem.vue
+1
-1
index.vue
src/views/pay/index.vue
+14
-7
payResult.vue
src/views/pay/payResult.vue
+14
-1
AccountInput.vue
src/views/vipLife/components/AccountInput.vue
+1
-1
No files found.
package-lock.json
View file @
0fe6725e
...
...
@@ -5563,6 +5563,11 @@
"integrity"
:
"sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc="
,
"dev"
:
true
},
"fastclick"
:
{
"version"
:
"1.0.6"
,
"resolved"
:
"https://registry.npm.taobao.org/fastclick/download/fastclick-1.0.6.tgz"
,
"integrity"
:
"sha1-FhYlsnsaWAZAWTa9qaLBkm0Gvmo="
},
"faye-websocket"
:
{
"version"
:
"0.10.0"
,
"resolved"
:
"http://npmprivate.quantgroups.com/faye-websocket/-/faye-websocket-0.10.0.tgz"
,
...
...
package.json
View file @
0fe6725e
...
...
@@ -18,6 +18,7 @@
"
clipboard
"
:
"
^2.0.8
"
,
"
core-js
"
:
"
^3.6.5
"
,
"
crypto-js
"
:
"
^3.3.0
"
,
"
fastclick
"
:
"
^1.0.6
"
,
"
js-cookie
"
:
"
^2.2.1
"
,
"
node-forge
"
:
"
^0.10.0
"
,
"
raven-js
"
:
"
^3.27.2
"
,
...
...
src/main.js
View file @
0fe6725e
...
...
@@ -13,6 +13,9 @@ import RavenVue from 'raven-js/plugins/vue';
import
{
release
}
from
'
../.sentryclirc
'
;
import
fontResize
from
'
./directives/fontResize
'
;
import
cfg
from
'
./config
'
;
import
FastClick
from
'
fastclick
'
;
FastClick
.
attach
(
document
.
body
,
{
tapDelay
:
1
});
if
(
process
.
env
.
SENTRY_ENV
!==
'
test
'
&&
process
.
env
.
NODE_ENV
===
'
production
'
)
{
Raven
.
config
(
'
//7fc2cea5ef8244fd9b4cf13051e408d8@sentry.quantgroups.com/73
'
,
{
release
,
...
...
src/router/routes.js
View file @
0fe6725e
export
default
[
{
path
:
'
/
'
,
redirect
:
'
/
vipLif
e
'
redirect
:
'
/
hom
e
'
},
{
path
:
'
/home
'
,
...
...
src/views/home/index.vue
View file @
0fe6725e
...
...
@@ -20,7 +20,7 @@
:disabled=
"!disabled"
@
click=
"goOrder"
>
{{
selectedRechargeInfo
.
price
?
`¥${selectedRechargeInfo.p
rice
}
`
:
''
}}
立即充值
{{
selectedRechargeInfo
.
salePrice
?
`¥${selectedRechargeInfo.saleP
rice
}
`
:
''
}}
立即充值
<
/cr-button
>
<
/div
>
<
/div
>
...
...
@@ -81,13 +81,13 @@ export default {
this
.
selectedRechargeInfo
=
rechargeInfo
;
}
,
async
goOrderApi
()
{
const
{
skuNo
,
price
}
=
this
.
selectedRechargeInfo
;
const
{
skuNo
,
price
,
salePrice
}
=
this
.
selectedRechargeInfo
;
this
.
$track
.
registeredEvents
(
'
h5_RechargeCenterPagePhoneBillClick
'
,
{
recharge_type
:
this
.
phoneRecharge
[
`${this.rechargeType
}
Type`
]
===
601
?
'
快充
'
:
'
慢充
'
,
cost_value
:
price
}
);
const
[
res
,
error
]
=
await
orderApi
.
orderCreate
({
totalFee
:
p
rice
,
totalFee
:
saleP
rice
,
terminal
:
'
H5
'
,
account
:
this
.
rechargePhoneInfo
?.
phoneNo
,
registrationLocation
:
this
.
rechargePhoneInfo
?.
phoneNoHome
,
...
...
src/views/pay/STATIC_DATA.js
View file @
0fe6725e
...
...
@@ -133,6 +133,16 @@ function filterAllPayList(type, data) {
}
return
data
;
}
const
payTypeMap
=
{
'
1
'
:
'
信用支付
'
,
'
2
'
:
'
微信支付
'
,
'
3
'
:
'
支付宝支付
'
,
'
4
'
:
'
信用支付_微信支付
'
,
'
5
'
:
'
信用支付_支付宝支付
'
,
'
6
'
:
'
虚拟支付0元付
'
};
export
{
status
,
codeArr
,
...
...
@@ -161,5 +171,6 @@ export {
ACCOUNT_APPLY_AUDITING
,
ACCOUNT_APPLY_AUDIT_FAIL
,
SMS_VERIFICATION_CODE_PAY
,
FACE_VERIFICATION_CODE_PAY
FACE_VERIFICATION_CODE_PAY
,
payTypeMap
};
src/views/pay/components/PayCardItem.vue
View file @
0fe6725e
...
...
@@ -23,7 +23,7 @@
<div
v-if=
"showCoupon && value.payType === 1"
class=
"coupon"
>
<p
class=
"couponDes"
:class=
"
{ disable: couponDisabled }" @click.stop="openCouponModal">
<span
v-if=
"couponInfo.pickupId"
>
{{
`满${couponInfo.limitAmount
}
减${couponInfo.faceValue
}
元`
}}
{{
`满${couponInfo.limitAmount
New
}
减${couponInfo.faceValueNew
}
元`
}}
<
/span
>
<
span
v
-
else
>
未选择优惠券
...
...
src/views/pay/index.vue
View file @
0fe6725e
...
...
@@ -194,9 +194,9 @@ export default {
return
this
.
isRiskLimit
();
},
amount
()
{
return
IS_THIRD_PAY
(
this
.
payType
)
||
!
this
.
selectedCoupon
.
faceValue
return
IS_THIRD_PAY
(
this
.
payType
)
||
!
this
.
selectedCoupon
.
faceValue
New
?
this
.
displayInfo
.
orderAmt
:
(
this
.
displayInfo
.
orderAmt
-
this
.
selectedCoupon
.
faceValue
).
toFixed
(
2
);
:
(
this
.
displayInfo
.
orderAmt
-
this
.
selectedCoupon
.
faceValue
New
).
toFixed
(
2
);
},
isShowProtocol
()
{
return
(
...
...
@@ -207,7 +207,7 @@ export default {
},
canUseAmount
()
{
return
(
((
this
.
selectedCoupon
?.
faceValue
&&
+
this
.
selectedCoupon
.
faceValue
)
||
0
)
+
((
this
.
selectedCoupon
?.
faceValue
New
&&
+
this
.
selectedCoupon
.
faceValueNew
)
||
0
)
+
((
this
.
displayInfo
?.
creditPayInfo
?.
canAmt
&&
+
this
.
displayInfo
.
creditPayInfo
.
canAmt
)
||
0
)
-
((
this
.
displayInfo
?.
orderAmt
&&
+
this
.
displayInfo
.
orderAmt
)
||
0
)
);
...
...
@@ -344,7 +344,7 @@ export default {
const
{
accountStatus
,
riskManagementAmt
}
=
this
.
creditPayInfo
;
const
{
orderAmt
}
=
this
.
displayInfo
;
if
(
accountStatus
===
ACCOUNT_APPLY_SUCCESS
)
{
const
coupon
=
+
this
.
selectedCoupon
.
faceValue
||
0
;
const
coupon
=
+
this
.
selectedCoupon
.
faceValue
New
||
0
;
return
+
riskManagementAmt
+
coupon
<
+
orderAmt
;
}
else
{
return
false
;
...
...
@@ -373,7 +373,7 @@ export default {
};
}
else
if
(
accountStatus
===
ACCOUNT_APPLY_SUCCESS
)
{
const
finalCount
=
this
.
showCoupon
?
(
this
.
displayInfo
.
orderAmt
-
(
this
.
selectedCoupon
.
faceValue
||
0
)).
toFixed
(
2
)
?
(
this
.
displayInfo
.
orderAmt
-
(
this
.
selectedCoupon
.
faceValue
New
||
0
)).
toFixed
(
2
)
:
this
.
displayInfo
.
orderAmt
;
const
txt
=
`实际支付
${
finalCount
||
'
0.00
'
}
`
;
this
.
accountS
=
{
...
...
@@ -529,7 +529,8 @@ export default {
name
:
`pay
${
type
}
`
,
query
:
{
reason
:
error
,
orderNo
:
this
.
orderNo
orderNo
:
this
.
orderNo
,
payType
:
this
.
payType
}
});
},
...
...
@@ -554,6 +555,12 @@ export default {
coupon_id
:
id
});
this
.
selectedCoupon
=
selectedCoupon
||
{};
if
(
!
(
'
faceValueNew
'
in
this
.
selectedCoupon
)
&&
'
faceValue
'
in
this
.
selectedCoupon
)
{
this
.
selectedCoupon
.
faceValueNew
=
this
.
selectedCoupon
.
faceValue
;
}
if
(
!
(
'
limitAmountNew
'
in
this
.
selectedCoupon
)
&&
'
limitAmount
'
in
this
.
selectedCoupon
)
{
this
.
selectedCoupon
.
limitAmountNew
=
this
.
selectedCoupon
.
limitAmount
;
}
this
.
getBtnStatus
(
this
.
isRiskLimit
());
this
.
couponPopup
=
false
;
},
...
...
@@ -616,7 +623,7 @@ export default {
return
Object
.
keys
(
obj
);
},
setAmount
()
{
const
faceValue
=
+
this
.
selectedCoupon
?.
faceValue
||
0
;
const
faceValue
=
+
this
.
selectedCoupon
?.
faceValue
New
||
0
;
const
orderAmt
=
+
this
.
displayInfo
?.
orderAmt
||
0
;
const
finalAmt
=
IS_THIRD_PAY
(
this
.
payType
)
||
!
this
.
showCoupon
...
...
src/views/pay/payResult.vue
View file @
0fe6725e
...
...
@@ -55,7 +55,9 @@
import
RecoGoods
from
'
@/components/RecoGoods.vue
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
{
isApp
}
from
'
@/service/validation.service
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
payTypeMap
}
from
'
./STATIC_DATA
'
;
export
default
{
components
:
{
RecoGoods
},
extends
:
goUrlExtends
,
...
...
@@ -72,7 +74,7 @@ export default {
},
created
()
{
this
.
getQuery
();
const
{
orderNo
,
reason
}
=
this
.
$route
.
query
;
const
{
orderNo
,
reason
,
payType
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
amount
=
cookies
.
get
(
'
amount
'
)
||
{};
this
.
money
=
amount
.
finalAmt
;
...
...
@@ -84,6 +86,17 @@ export default {
this
.
$track
.
registeredEvents
(
'
h5_RechargeResultPageExposure
'
,
{
pay_status
:
this
.
payStatus
});
this
.
isSuccess
&&
isApp
&&
this
.
util
.
run
({
event
:
'
reyunAnalytics
'
,
data
:
{
method
:
'
PaySuccess
'
,
//string submitOrder OR PaySuccess
orderId
:
orderNo
,
//string 订单号
amount
:
amount
.
finalAmt
,
//float 金额
payType
:
payTypeMap
[
payType
]
//string 支付类型
}
});
},
methods
:
{
getQuery
()
{
...
...
src/views/vipLife/components/AccountInput.vue
View file @
0fe6725e
...
...
@@ -5,7 +5,7 @@
:placeholder=
"`请输入$
{info.name || ''}账号`"
clearable
class="Vl__account__field"
:type="info.type === 101 ? 'text' : 'number'
"
type="tel
"
@input="checkPhone"
>
<template
#button
>
...
...
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