Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
48280df8
Commit
48280df8
authored
Nov 30, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
113db493
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+23
-18
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
48280df8
...
@@ -72,7 +72,9 @@
...
@@ -72,7 +72,9 @@
<
script
>
<
script
>
import
common
from
'@/mixins/common'
;
import
common
from
'@/mixins/common'
;
import
{
message
}
from
'@/utils/fun'
;
import
{
message
}
from
'@/utils/fun'
;
export
default
{
export
default
{
name
:
'coinPopup'
,
name
:
'coinPopup'
,
mixins
:
[
common
],
mixins
:
[
common
],
...
@@ -188,21 +190,24 @@
...
@@ -188,21 +190,24 @@
// 虚拟支付
// 虚拟支付
let
wxParams
=
wxData
.
params
;
let
wxParams
=
wxData
.
params
;
let
signDataParams
=
wxData
.
params
.
sigData
;
let
signDataParams
=
wxData
.
params
.
sigData
;
// let signDataStr = wxData.params.signDataStr;
let
that
=
this
;
let
that
=
this
;
const
SDKVersion
=
wx
.
getSystemInfoSync
().
SDKVersion
;
const
SDKVersion
=
wx
.
getSystemInfoSync
().
SDKVersion
;
if
(
this
.
compareVersion
(
SDKVersion
,
'2.19.2'
)
>=
0
||
wx
.
canIUse
(
'requestVirtualPayment'
))
{
if
(
this
.
compareVersion
(
SDKVersion
,
'2.19.2'
)
>=
0
||
wx
.
canIUse
(
'requestVirtualPayment'
))
{
wx
.
requestVirtualPayment
({
wx
.
requestVirtualPayment
({
signData
:
JSON
.
stringify
({
// signData :signDataStr,
offerId
:
signDataParams
.
offerId
,
signData
:
JSON
.
stringify
(
wxData
.
params
.
sigData
),
buyQuantity
:
signDataParams
.
buyQuantity
,
// signData: JSON.stringify({
env
:
signDataParams
.
env
,
// offerId: signDataParams.offerId,
currencyType
:
signDataParams
.
currencyType
,
// buyQuantity: signDataParams.buyQuantity,
platform
:
signDataParams
.
platform
,
// env: signDataParams.env,
productId
:
signDataParams
.
productId
,
// currencyType: signDataParams.currencyType,
goodsPrice
:
signDataParams
.
goodsPrice
,
// platform: signDataParams.platform,
outTradeNo
:
signDataParams
.
outTradeNo
,
// productId: signDataParams.productId,
attach
:
signDataParams
.
attach
,
// goodsPrice: signDataParams.goodsPrice,
}),
// outTradeNo: signDataParams.outTradeNo,
// attach: signDataParams.attach,
// }),
paySig
:
wxParams
.
paySig
,
paySig
:
wxParams
.
paySig
,
signature
:
wxParams
.
signature
,
signature
:
wxParams
.
signature
,
mode
:
wxParams
.
mode
,
mode
:
wxParams
.
mode
,
...
@@ -214,7 +219,7 @@
...
@@ -214,7 +219,7 @@
errCode
errCode
})
{
})
{
message
.
notify
(
errMsg
);
message
.
notify
(
errMsg
);
console
.
log
(
'虚拟支付异常:errMsg='
+
errMsg
+
' errCode='
+
errCode
);
console
.
log
(
'虚拟支付异常:errMsg='
+
errMsg
+
' errCode='
+
errCode
);
},
},
})
})
}
else
{
}
else
{
...
...
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