Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7a745b23
authored
Jan 06, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
屏蔽特定园区店协议
1 parent
8ddc5414
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
src/views/alipay/index.vue
src/views/alipay/index.vue
View file @
7a745b2
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
<div
v-show=
"!keyHidden"
class=
"pay-cursor"
/>
<div
v-show=
"!keyHidden"
class=
"pay-cursor"
/>
<div
class=
"pay-after-icon"
>
元
</div>
<div
class=
"pay-after-icon"
>
元
</div>
</div>
</div>
<template
v-if=
"!merchantDisabled"
>
<div
class=
"userCollaborationContainer"
v-if=
"userCollaborationName"
>
<div
class=
"userCollaborationContainer"
v-if=
"userCollaborationName"
>
<!--
<label
class=
"radio"
>
value="
{{
userCollaborationCheck
}}
" -->
<!--
<label
class=
"radio"
>
value="
{{
userCollaborationCheck
}}
" -->
<input
type=
"radio"
class=
"radio"
@
click=
"handleRadio"
hold-keyboard
:checked=
"userCollaborationCheck"
/>
<input
type=
"radio"
class=
"radio"
@
click=
"handleRadio"
hold-keyboard
:checked=
"userCollaborationCheck"
/>
...
@@ -27,6 +28,7 @@
...
@@ -27,6 +28,7 @@
<!--
</label>
-->
<!--
</label>
-->
<div
class=
"linkText"
@
click=
"navToUserCollaboration"
>
《
{{
userCollaborationName
}}
》
</div>
<div
class=
"linkText"
@
click=
"navToUserCollaboration"
>
《
{{
userCollaborationName
}}
》
</div>
</div>
</div>
</
template
>
</div>
</div>
</div>
</div>
<div
class=
"keyboard "
:class=
"{ 'hind_box': !keyHidden }"
>
<div
class=
"keyboard "
:class=
"{ 'hind_box': !keyHidden }"
>
...
@@ -115,7 +117,8 @@ export default {
...
@@ -115,7 +117,8 @@ export default {
// tradeNO: '2022083122001417721446143547'// 测试用数据
// tradeNO: '2022083122001417721446143547'// 测试用数据
userCollaborationName
:
''
,
userCollaborationName
:
''
,
userCollaborationCheck
:
false
,
userCollaborationCheck
:
false
,
isYqType
:
true
isYqType
:
true
,
merchantDisabled
:
false
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -125,6 +128,8 @@ export default {
...
@@ -125,6 +128,8 @@ export default {
// console.log(appId)
// console.log(appId)
const
{
merchantName
,
merchantId
,
shopMerchantId
,
shopMerchantName
}
=
this
.
getHrefParams
()
const
{
merchantName
,
merchantId
,
shopMerchantId
,
shopMerchantName
}
=
this
.
getHrefParams
()
// 区分是流量方还是导流方
// 区分是流量方还是导流方
// this.getMiniAppConfig()
this
.
setMerchantDisabled
(
merchantId
||
shopMerchantId
)
if
(
merchantId
)
{
if
(
merchantId
)
{
this
.
merchantId
=
merchantId
this
.
merchantId
=
merchantId
this
.
merchantName
=
merchantName
this
.
merchantName
=
merchantName
...
@@ -165,6 +170,13 @@ export default {
...
@@ -165,6 +170,13 @@ export default {
this
.
getTitleByModule
()
this
.
getTitleByModule
()
},
},
methods
:
{
methods
:
{
setMerchantDisabled
(
id
)
{
const
{
disabledList
}
=
baseConfig
this
.
merchantDisabled
=
disabledList
.
some
(
item
=>
item
.
merchantId
==
id
)
// that.setData({
// merchantDisabled
// })
},
getTitleByModule
()
{
getTitleByModule
()
{
getTitleByModule
({
module
:
'PrivacyAgreement'
}).
then
((
result
)
=>
{
getTitleByModule
({
module
:
'PrivacyAgreement'
}).
then
((
result
)
=>
{
// console.log(result)
// console.log(result)
...
@@ -255,9 +267,9 @@ export default {
...
@@ -255,9 +267,9 @@ export default {
// 支付
// 支付
handlePay
()
{
handlePay
()
{
// const _this = this
// const _this = this
const
{
payMoney
,
unPayMoneyList
,
userId
,
userCollaborationName
,
userCollaborationCheck
}
=
this
const
{
payMoney
,
unPayMoneyList
,
userId
,
userCollaborationName
,
userCollaborationCheck
,
merchantDisabled
}
=
this
if
(
payMoney
===
''
||
unPayMoneyList
.
includes
(
payMoney
))
return
if
(
payMoney
===
''
||
unPayMoneyList
.
includes
(
payMoney
))
return
if
(
userCollaborationName
&&
!
userCollaborationCheck
)
{
if
(
userCollaborationName
&&
!
userCollaborationCheck
&&
!
merchantDisabled
)
{
return
this
.
showToast
(
`请先阅读并勾选《
${
userCollaborationName
}
》`
)
return
this
.
showToast
(
`请先阅读并勾选《
${
userCollaborationName
}
》`
)
}
}
// this.wxPayment(payMoney)
// this.wxPayment(payMoney)
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment