Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
accord-with-name
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
malin
accord-with-name
Commits
2dafc70d
Commit
2dafc70d
authored
Apr 15, 2021
by
malin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
r
parent
5e595d9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
2 deletions
+28
-2
PayInfo.vue
src/views/Pay/child_cpn/PayInfo.vue
+28
-2
No files found.
src/views/Pay/child_cpn/PayInfo.vue
View file @
2dafc70d
...
@@ -65,14 +65,16 @@
...
@@ -65,14 +65,16 @@
<!-- 支付按钮 -->
<!-- 支付按钮 -->
<div
<div
class=
"row-center-center fc-f fs-36 ff-pp fw-5"
class=
"row-center-center fc-f fs-36 ff-pp fw-5"
style=
"margin-top: 0.66rem"
style=
"margin-top: 0.66rem
; position: relative
"
>
>
<div
<div
ref=
"payBtn"
ref=
"payBtn"
class=
"pay-btn row-center-center"
class=
"pay-btn row-center-center"
@
click
.
once=
"_payment"
@
click
.
once=
"_payment"
>
>
立即支付
<div>
立即支付
</div>
<div
v-if=
"loading"
class=
"loading"
></div>
</div>
</div>
</div>
</div>
...
@@ -101,6 +103,7 @@ export default {
...
@@ -101,6 +103,7 @@ export default {
cash
:
0
,
cash
:
0
,
originalPrice
:
"139"
,
originalPrice
:
"139"
,
baseInfo
:
[],
baseInfo
:
[],
loading
:
false
,
};
};
},
},
...
@@ -139,6 +142,8 @@ export default {
...
@@ -139,6 +142,8 @@ export default {
// 支付
// 支付
async
_payment
()
{
async
_payment
()
{
this
.
$refs
.
payBtn
.
style
.
opacity
=
"0.5"
;
this
.
loading
=
true
;
const
h5LogsObj
=
JSON
.
parse
(
decodeURI
(
utils
.
getCookie
(
"h5LogsObj"
)));
const
h5LogsObj
=
JSON
.
parse
(
decodeURI
(
utils
.
getCookie
(
"h5LogsObj"
)));
let
link
=
decodeURI
(
utils
.
getCookie
(
"link"
));
let
link
=
decodeURI
(
utils
.
getCookie
(
"link"
));
...
@@ -181,6 +186,8 @@ export default {
...
@@ -181,6 +186,8 @@ export default {
outTradeNo
:
orderId
,
outTradeNo
:
orderId
,
totalFee
:
1
,
totalFee
:
1
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
this
.
$refs
.
payBtn
.
style
.
opacity
=
"1"
;
this
.
loading
=
false
;
let
mwebUrl
=
res
.
result
.
data
.
wakeup
.
mwebUrl
;
let
mwebUrl
=
res
.
result
.
data
.
wakeup
.
mwebUrl
;
let
tempUrl
=
window
.
location
.
href
;
let
tempUrl
=
window
.
location
.
href
;
tempUrl
=
tempUrl
.
replace
(
"pay"
,
"result"
);
tempUrl
=
tempUrl
.
replace
(
"pay"
,
"result"
);
...
@@ -292,4 +299,23 @@ export default {
...
@@ -292,4 +299,23 @@ export default {
padding
:
0.16rem
;
padding
:
0.16rem
;
line-height
:
0.4rem
;
line-height
:
0.4rem
;
}
}
.loading
{
width
:
0.2rem
;
height
:
0.2rem
;
margin-left
:
0.2rem
;
border-radius
:
50%
;
border-top
:
0.05rem
solid
#1f9fff
;
border-left
:
0.05rem
solid
#1f9fff
;
animation
:
rotate
0.8s
infinite
linear
;
}
@keyframes
rotate
{
0
%
{
transform
:
rotate
(
0
);
}
100
%
{
transform
:
rotate
(
360deg
);
}
}
</
style
>
</
style
>
\ No newline at end of file
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