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
811b61d3
Commit
811b61d3
authored
Jun 21, 2022
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/payLimit' into 'master'
fix: H5收银台判断享花卡额度 See merge request
!16
parents
5fa885c3
9cbcf276
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
52 deletions
+37
-52
package-lock.json
package-lock.json
+6
-48
env.config.js
src/config/env.config.js
+1
-1
extends.js
src/views/pay/extends.js
+9
-0
index.vue
src/views/pay/index.vue
+21
-3
No files found.
package-lock.json
View file @
811b61d3
...
@@ -1167,11 +1167,7 @@
...
@@ -1167,11 +1167,7 @@
"@qg/js-bridge"
:
{
"@qg/js-bridge"
:
{
"version"
:
"1.2.0-beta2"
,
"version"
:
"1.2.0-beta2"
,
"resolved"
:
"http://npmprivate.quantgroups.com/@qg%2fjs-bridge/-/js-bridge-1.2.0-beta2.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/@qg%2fjs-bridge/-/js-bridge-1.2.0-beta2.tgz"
,
"integrity"
:
"sha512-NtCU4D3kqeQhgbL5OpWqp/jEUXPh31PUkF38hoqdUXg7Zsqr+H4g5e6vJikFtr1zo1s0tBOX0b6FOiuC2yIFJA=="
,
"integrity"
:
"sha512-NtCU4D3kqeQhgbL5OpWqp/jEUXPh31PUkF38hoqdUXg7Zsqr+H4g5e6vJikFtr1zo1s0tBOX0b6FOiuC2yIFJA=="
"requires"
:
{
"qs"
:
"^6.10.1"
,
"weixin-js-sdk"
:
"^1.6.0"
}
},
},
"qs"
:
{
"qs"
:
{
"version"
:
"6.10.1"
,
"version"
:
"6.10.1"
,
...
@@ -3004,15 +3000,6 @@
...
@@ -3004,15 +3000,6 @@
}
}
}
}
},
},
"call-bind"
:
{
"version"
:
"1.0.2"
,
"resolved"
:
"http://npmprivate.quantgroups.com/call-bind/-/call-bind-1.0.2.tgz"
,
"integrity"
:
"sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA=="
,
"requires"
:
{
"function-bind"
:
"^1.1.1"
,
"get-intrinsic"
:
"^1.0.2"
}
},
"call-me-maybe"
:
{
"call-me-maybe"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
"resolved"
:
"http://npmprivate.quantgroups.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz"
,
...
@@ -5856,7 +5843,8 @@
...
@@ -5856,7 +5843,8 @@
"function-bind"
:
{
"function-bind"
:
{
"version"
:
"1.1.1"
,
"version"
:
"1.1.1"
,
"resolved"
:
"http://npmprivate.quantgroups.com/function-bind/-/function-bind-1.1.1.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/function-bind/-/function-bind-1.1.1.tgz"
,
"integrity"
:
"sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
"integrity"
:
"sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="
,
"dev"
:
true
},
},
"functional-red-black-tree"
:
{
"functional-red-black-tree"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
...
@@ -5876,16 +5864,6 @@
...
@@ -5876,16 +5864,6 @@
"integrity"
:
"sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
,
"integrity"
:
"sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg=="
,
"dev"
:
true
"dev"
:
true
},
},
"get-intrinsic"
:
{
"version"
:
"1.1.1"
,
"resolved"
:
"http://npmprivate.quantgroups.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz"
,
"integrity"
:
"sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q=="
,
"requires"
:
{
"function-bind"
:
"^1.1.1"
,
"has"
:
"^1.0.3"
,
"has-symbols"
:
"^1.0.1"
}
},
"get-own-enumerable-property-symbols"
:
{
"get-own-enumerable-property-symbols"
:
{
"version"
:
"3.0.2"
,
"version"
:
"3.0.2"
,
"resolved"
:
"http://npmprivate.quantgroups.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/get-own-enumerable-property-symbols/-/get-own-enumerable-property-symbols-3.0.2.tgz"
,
...
@@ -6039,6 +6017,7 @@
...
@@ -6039,6 +6017,7 @@
"version"
:
"1.0.3"
,
"version"
:
"1.0.3"
,
"resolved"
:
"http://npmprivate.quantgroups.com/has/-/has-1.0.3.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/has/-/has-1.0.3.tgz"
,
"integrity"
:
"sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw=="
,
"integrity"
:
"sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw=="
,
"dev"
:
true
,
"requires"
:
{
"requires"
:
{
"function-bind"
:
"^1.1.1"
"function-bind"
:
"^1.1.1"
}
}
...
@@ -6069,7 +6048,8 @@
...
@@ -6069,7 +6048,8 @@
"has-symbols"
:
{
"has-symbols"
:
{
"version"
:
"1.0.1"
,
"version"
:
"1.0.1"
,
"resolved"
:
"http://npmprivate.quantgroups.com/has-symbols/-/has-symbols-1.0.1.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/has-symbols/-/has-symbols-1.0.1.tgz"
,
"integrity"
:
"sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg=="
"integrity"
:
"sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg=="
,
"dev"
:
true
},
},
"has-value"
:
{
"has-value"
:
{
"version"
:
"1.0.0"
,
"version"
:
"1.0.0"
,
...
@@ -11027,23 +11007,6 @@
...
@@ -11027,23 +11007,6 @@
"integrity"
:
"sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg=="
,
"integrity"
:
"sha512-mRz/m/JVscCrkMyPqHc/bczi3OQHkLTqXHEFu0zDhK/qfv3UcOA4SVmRCLmos4bhjr9ekVQubj/R7waKapmiQg=="
,
"dev"
:
true
"dev"
:
true
},
},
"side-channel"
:
{
"version"
:
"1.0.4"
,
"resolved"
:
"http://npmprivate.quantgroups.com/side-channel/-/side-channel-1.0.4.tgz"
,
"integrity"
:
"sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw=="
,
"requires"
:
{
"call-bind"
:
"^1.0.0"
,
"get-intrinsic"
:
"^1.0.2"
,
"object-inspect"
:
"^1.9.0"
},
"dependencies"
:
{
"object-inspect"
:
{
"version"
:
"1.11.0"
,
"resolved"
:
"http://npmprivate.quantgroups.com/object-inspect/-/object-inspect-1.11.0.tgz"
,
"integrity"
:
"sha512-jp7ikS6Sd3GxQfZJPyH3cjcbJF6GZPClgdV+EFygjFLQ5FmW/dRUnTd9PQ9k0JhoNDabWFbpF1yCdSWCC6gexg=="
}
}
},
"signal-exit"
:
{
"signal-exit"
:
{
"version"
:
"3.0.3"
,
"version"
:
"3.0.3"
,
"resolved"
:
"http://npmprivate.quantgroups.com/signal-exit/-/signal-exit-3.0.3.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/signal-exit/-/signal-exit-3.0.3.tgz"
,
...
@@ -14535,11 +14498,6 @@
...
@@ -14535,11 +14498,6 @@
"resolved"
:
"http://npmprivate.quantgroups.com/webwackify/-/webwackify-0.1.6.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/webwackify/-/webwackify-0.1.6.tgz"
,
"integrity"
:
"sha512-pGcw1T3HpNnM/UTRQqqRkkkzythSLts05mB+7Gr00B+0VbL0m39dFL5g20rSIEUt9Wrpw+/8k+snxRlUFHhcqA=="
"integrity"
:
"sha512-pGcw1T3HpNnM/UTRQqqRkkkzythSLts05mB+7Gr00B+0VbL0m39dFL5g20rSIEUt9Wrpw+/8k+snxRlUFHhcqA=="
},
},
"weixin-js-sdk"
:
{
"version"
:
"1.6.0"
,
"resolved"
:
"http://npmprivate.quantgroups.com/weixin-js-sdk/-/weixin-js-sdk-1.6.0.tgz"
,
"integrity"
:
"sha512-3IYQH7aalJGFJrwdT3epvTdR1MboMiH7vIZ5BRL2eYOJ12BNah7csoMkmSZzkq1+l92sSq29XdTCVjCJoK2sBQ=="
},
"which"
:
{
"which"
:
{
"version"
:
"1.3.1"
,
"version"
:
"1.3.1"
,
"resolved"
:
"http://npmprivate.quantgroups.com/which/-/which-1.3.1.tgz"
,
"resolved"
:
"http://npmprivate.quantgroups.com/which/-/which-1.3.1.tgz"
,
...
...
src/config/env.config.js
View file @
811b61d3
...
@@ -2,7 +2,7 @@ let protocol = window.location.protocol;
...
@@ -2,7 +2,7 @@ let protocol = window.location.protocol;
let
payHost
=
protocol
+
'
//mapi-qa.liangkebang.net/pay
'
;
let
payHost
=
protocol
+
'
//mapi-qa.liangkebang.net/pay
'
;
let
shenceHost
=
'
https://bn.xyqb.com/sa?project=default
'
;
// 测试地址
let
shenceHost
=
'
https://bn.xyqb.com/sa?project=default
'
;
// 测试地址
let
talosHost
=
'
http://talos-
test1
.liangkebang.net
'
;
// 电商分期测试环境服务地址
let
talosHost
=
'
http://talos-
qa
.liangkebang.net
'
;
// 电商分期测试环境服务地址
let
operatorHost
=
'
https://operator.liangkebang.com
'
;
let
operatorHost
=
'
https://operator.liangkebang.com
'
;
const
toBHost
=
'
https://tob.liangkebang.net
'
;
const
toBHost
=
'
https://tob.liangkebang.net
'
;
export
default
{
talosHost
,
operatorHost
,
payHost
,
shenceHost
,
test
:
true
,
toBHost
};
export
default
{
talosHost
,
operatorHost
,
payHost
,
shenceHost
,
test
:
true
,
toBHost
};
src/views/pay/extends.js
View file @
811b61d3
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
{
isApp
}
from
'
@/service/validation.service
'
;
export
const
goUrlExtends
=
{
export
const
goUrlExtends
=
{
methods
:
{
methods
:
{
goHome
(
payStatus
)
{
goHome
(
payStatus
)
{
...
@@ -12,6 +13,10 @@ export const goUrlExtends = {
...
@@ -12,6 +13,10 @@ export const goUrlExtends = {
const
returnUrl
=
this
.
getReturnUrl
();
const
returnUrl
=
this
.
getReturnUrl
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
returnUrl
)
{
if
(
returnUrl
)
{
if
(
isApp
&&
returnUrl
===
'
closeWindows
'
)
{
this
.
util
.
closeBrowser
();
return
;
}
window
.
location
.
replace
(
`
${
returnUrl
}
`
);
window
.
location
.
replace
(
`
${
returnUrl
}
`
);
return
;
return
;
}
}
...
@@ -28,6 +33,10 @@ export const goUrlExtends = {
...
@@ -28,6 +33,10 @@ export const goUrlExtends = {
const
returnUrl
=
this
.
getReturnUrl
();
const
returnUrl
=
this
.
getReturnUrl
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
returnUrl
)
{
if
(
returnUrl
)
{
if
(
isApp
&&
returnUrl
===
'
closeWindows
'
)
{
this
.
util
.
closeBrowser
();
return
;
}
window
.
location
.
replace
(
`
${
returnUrl
}
/orderList`
);
window
.
location
.
replace
(
`
${
returnUrl
}
/orderList`
);
return
;
return
;
}
}
...
...
src/views/pay/index.vue
View file @
811b61d3
...
@@ -9,13 +9,12 @@
...
@@ -9,13 +9,12 @@
</p>
</p>
<p
v-else
>
支付超时,订单关闭
</p>
<p
v-else
>
支付超时,订单关闭
</p>
</div>
</div>
<!-- 推荐信用支付 -->
<!-- 推荐信用支付 -->
<cr-pay-card
<cr-pay-card
v-if=
"getObjectKey(creditPayList.payList).length"
v-if=
"getObjectKey(creditPayList.payList).length"
v-model=
"creditPayList"
v-model=
"creditPayList"
:pay-type=
"payType"
:pay-type=
"payType"
:disabled=
"overtime"
:disabled=
"overtime
|| +displayInfo.creditPayInfo.canAmt
<
+
displayInfo
.
orderAmt
"
:risk-limit=
"riskLimit"
:risk-limit=
"riskLimit"
:show-coupon=
"showCoupon"
:show-coupon=
"showCoupon"
:coupon-info=
"selectedCoupon"
:coupon-info=
"selectedCoupon"
...
@@ -340,6 +339,16 @@ export default {
...
@@ -340,6 +339,16 @@ export default {
if
(
creditQuotaInfo
?.
isFreezeCreditInOtherOrder
&&
!
this
.
payInfo
?.
payType
)
{
if
(
creditQuotaInfo
?.
isFreezeCreditInOtherOrder
&&
!
this
.
payInfo
?.
payType
)
{
havePayingOrder
.
call
(
this
);
havePayingOrder
.
call
(
this
);
}
}
if
(
this
.
payType
===
CREDIT_PAY
&&
+
displayInfo
.
creditPayInfo
.
canAmt
<
+
displayInfo
.
orderAmt
)
{
this
.
payType
=
null
;
const
currentPayMethodInfo
=
payMethods
.
find
(
it
=>
it
.
method
!==
CREDIT_PAY
);
if
(
currentPayMethodInfo
)
{
this
.
changePayType
(
currentPayMethodInfo
.
method
,
this
.
payInfo
.
mergePayPretreatmentInfo
);
}
}
},
},
isRiskLimit
()
{
isRiskLimit
()
{
const
{
accountStatus
,
riskManagementAmt
}
=
this
.
creditPayInfo
;
const
{
accountStatus
,
riskManagementAmt
}
=
this
.
creditPayInfo
;
...
@@ -431,7 +440,16 @@ export default {
...
@@ -431,7 +440,16 @@ export default {
}
}
this
.
error
=
''
;
this
.
error
=
''
;
this
.
setAmount
();
this
.
setAmount
();
if
(
!
params
&&
!
this
.
isDetention
&&
IS_THIRD_PAY
(
this
.
payType
)
&&
!
isOcr
)
{
// TODO: 需要补充, 判断 vcc额度是否小于订单金额,根据用户状态和额度进行提示
// (this.displayInfo.accountStatus !== ACCOUNT_APPLY_SUCCESS ||
// (this.displayInfo.accountStatus === ACCOUNT_APPLY_SUCCESS &&
if
(
!
params
&&
!
this
.
isDetention
&&
IS_THIRD_PAY
(
this
.
payType
)
&&
!
isOcr
&&
+
this
.
displayInfo
.
creditPayInfo
.
canAmt
>=
+
this
.
displayInfo
.
orderAmt
)
{
this
.
isDetention
=
true
;
this
.
isDetention
=
true
;
isDetentionFn
.
call
(
this
);
isDetentionFn
.
call
(
this
);
return
;
return
;
...
...
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