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
Show 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
...
@@ -232,8 +232,7 @@
...
@@ -232,8 +232,7 @@
}
}
let
that
=
this
;
let
that
=
this
;
if
(
this
.
os
==
'ios'
)
{
if
(
this
.
os
==
'ios'
){
if
(
!
tt
.
canIUse
(
'getOrderPayment.object.imId'
))
{
if
(
!
tt
.
canIUse
(
'getOrderPayment.object.imId'
))
{
message
.
notify
(
'请升级抖音APP版本'
);
message
.
notify
(
'请升级抖音APP版本'
);
return
return
...
@@ -241,26 +240,25 @@
...
@@ -241,26 +240,25 @@
tt
.
getOrderPayment
({
tt
.
getOrderPayment
({
orderId
:
oid
,
orderId
:
oid
,
imId
:
ttData
.
params
.
imId
imId
:
ttData
.
imId
,
success
(
res
)
{
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
;
},
},
fail
(
res
)
{
fail
(
res
)
{
//
message.notify(res.errMsg);
message
.
notify
(
res
.
errMsg
);
},
},
});
});
}
else
{
}
else
{
tt
.
getOrderPayment
({
tt
.
getOrderPayment
({
orderId
:
oid
,
orderId
:
oid
,
success
(
res
)
{
success
(
res
)
{
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
)
;
},
},
fail
(
res
)
{
fail
(
res
)
{
// message.notify(res.errMsg);
message
.
notify
(
res
.
errMsg
);
},
},
});
});
}
}
},
},
queryOrderStatus
(
largeType
,
tid
)
{
queryOrderStatus
(
largeType
,
tid
)
{
let
that
=
this
;
let
that
=
this
;
...
...
vedio/components/home/my.vue
View file @
884994bb
...
@@ -224,7 +224,9 @@
...
@@ -224,7 +224,9 @@
paySuccess
(
largeType
)
{
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=vip 开通vip
// largeType=point 购买看点
// largeType=point 购买看点
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
){
message
.
notify
(
'支付成功'
);
message
.
notify
(
'支付成功'
);
}
this
.
post
({
this
.
post
({
url
:
'/user/baseMsg'
,
url
:
'/user/baseMsg'
,
...
...
vedio/pages/my/my.vue
View file @
884994bb
...
@@ -224,7 +224,10 @@
...
@@ -224,7 +224,10 @@
paySuccess
(
largeType
)
{
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=vip 开通vip
// largeType=point 购买看点
// largeType=point 购买看点
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
){
message
.
notify
(
'支付成功'
);
message
.
notify
(
'支付成功'
);
}
this
.
post
({
this
.
post
({
url
:
'/user/baseMsg'
,
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