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
c850a310
Commit
c850a310
authored
Nov 17, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
406eecf3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
20 deletions
+27
-20
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+27
-20
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
c850a310
...
...
@@ -28,8 +28,10 @@
</view>
<view
class=
"section"
>
<view
class=
"pack-box"
>
<view
class=
"pack-item"
:style=
"item.largeType !=='vip' ?'background: #f5f5f5;':'background: #f4c98b;'"
:class=
"[
{active: index==selectedIndex}]"
v-for='(item, index) in vipList' :key='index' @click="choosePack(item, index)">
<view
class=
"pack-item"
:style=
"item.largeType !=='vip' ?'background: #f5f5f5;':'background: #f4c98b;'"
:class=
"[
{active: index==selectedIndex}]" v-for='(item, index) in vipList' :key='index'
@click="choosePack(item, index)">
<view
style=
"display: flex;flex-direction: column;align-items: center;"
>
<view
class=
"price row"
>
...
...
@@ -40,7 +42,7 @@
{{
item
.
title
}}
</view>
<view
class=
"origin row"
v-if=
"item.remarks!=null"
>
<view
class=
"origin row"
v-if=
"item.remarks!=null
&&item.remarks!=''
"
>
{{
item
.
remarks
}}
</view>
</view>
...
...
@@ -94,7 +96,7 @@
methods
:
{
// 支付完成回调
paySuccess
(
largeType
)
{
this
.
$emit
(
'paySuccess'
,
largeType
);
this
.
$emit
(
'paySuccess'
,
largeType
);
this
.
handleClose
();
},
handleShow
()
{
...
...
@@ -108,7 +110,13 @@
})
=>
{
this
.
vipList
=
data
.
list
;
if
(
data
.
list
!=
null
)
{
this
.
selectedIndex
=
data
.
list
[
0
].
activityType
;
// this.selectedIndex = data.list[0].activityType;
for
(
let
i
=
0
;
i
<
data
.
list
.
length
;
i
++
)
{
if
(
data
.
list
[
i
].
activityType
==
1
)
{
this
.
selectedIndex
=
i
;
break
;
}
}
}
}
});
...
...
@@ -146,11 +154,11 @@
success
:
({
data
})
=>
{
that
.
wxPay
(
data
,
vipBean
.
largeType
);
that
.
wxPay
(
data
,
vipBean
.
largeType
);
}
});
},
wxPay
(
wxData
,
largeType
)
{
wxPay
(
wxData
,
largeType
)
{
let
wxParams
=
wxData
.
params
;
let
that
=
this
;
// 发起微信支付
...
...
@@ -163,8 +171,7 @@
success
(
res
)
{
that
.
paySuccess
(
largeType
);
},
fail
(
res
)
{
}
fail
(
res
)
{}
})
}
},
...
...
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