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
884994bb
Commit
884994bb
authored
Feb 28, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
096ac992
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
24 deletions
+27
-24
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+19
-21
my.vue
vedio/components/home/my.vue
+3
-1
my.vue
vedio/pages/my/my.vue
+5
-2
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
884994bb
...
...
@@ -231,36 +231,34 @@
return
}
let
that
=
this
;
if
(
this
.
os
==
'ios'
){
if
(
!
tt
.
canIUse
(
'getOrderPayment.object.imId'
))
{
message
.
notify
(
'请升级抖音APP版本'
);
return
let
that
=
this
;
if
(
this
.
os
==
'ios'
)
{
if
(
!
tt
.
canIUse
(
'getOrderPayment.object.imId'
))
{
message
.
notify
(
'请升级抖音APP版本'
);
return
}
tt
.
getOrderPayment
({
orderId
:
oid
,
imId
:
ttData
.
params
.
imId
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
},
fail
(
res
)
{
// message.notify(res.errMsg);
},
});
}
else
{
tt
.
getOrderPayment
({
orderId
:
oid
,
imId
:
ttData
.
imId
,
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
;
},
fail
(
res
)
{
//
message.notify(res.errMsg);
message
.
notify
(
res
.
errMsg
);
},
});
});
}
else
{
tt
.
getOrderPayment
({
orderId
:
oid
,
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
);
},
fail
(
res
)
{
message
.
notify
(
res
.
errMsg
);
},
});
}
},
queryOrderStatus
(
largeType
,
tid
)
{
let
that
=
this
;
...
...
vedio/components/home/my.vue
View file @
884994bb
...
...
@@ -224,7 +224,9 @@
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
message
.
notify
(
'支付成功'
);
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
){
message
.
notify
(
'支付成功'
);
}
this
.
post
({
url
:
'/user/baseMsg'
,
...
...
vedio/pages/my/my.vue
View file @
884994bb
...
...
@@ -223,8 +223,11 @@
},
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
message
.
notify
(
'支付成功'
);
// largeType=point 购买看点
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
){
message
.
notify
(
'支付成功'
);
}
this
.
post
({
url
:
'/user/baseMsg'
,
...
...
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