Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
cc886fef
Commit
cc886fef
authored
Jun 04, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加防重复提交
parent
ad3655f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
16 deletions
+32
-16
jz_Reserve.vue
pages/jiuzhai/jz_Reserve.vue
+32
-16
No files found.
pages/jiuzhai/jz_Reserve.vue
View file @
cc886fef
...
...
@@ -239,6 +239,9 @@
line-height
:
40
rpx
;
margin-right
:
24
rpx
;
}
.jz_ReserveDisBtn
{
background-color
:
gray
;
}
</
style
>
<
template
>
<view
class=
"jz_Reserve"
>
...
...
@@ -379,7 +382,7 @@
<text
style=
"color:#6E6E6E;font-size:24rpx;"
>
共计
{{
total
}}
人
</text>
</view>
<view
style=
"display:flex;margin-top:-2px;"
>
<view
class=
"jz_OrderReNow"
@
click=
"goPay()"
>
立即支付
</view>
<view
class=
"jz_OrderReNow"
:class=
"
{'jz_ReserveDisBtn':!isSubmit}"
@click="goPay()">立即支付
</view>
</view>
</view>
</view>
...
...
@@ -412,7 +415,9 @@
ltName
:
''
,
tips
:
""
,
contactMobile
:
""
,
contactName
:
""
contactName
:
""
,
//防止重复提交
isSubmit
:
true
,
};
},
created
()
{
...
...
@@ -571,21 +576,32 @@
OrderSource
:
2
,
MiniAppUserId
:
this
.
userInfo
.
UserId
}
this
.
apipost
(
"sellorder_post_SetOrderInfoForB2B"
,
msg
,
res
=>
{
if
(
res
.
resultCode
==
1
)
{
let
data
=
res
.
data
;
data
.
CoverImg
=
this
.
currentPriceInfo
.
CoverImg
;
let
myData
=
JSON
.
stringify
(
data
);
uni
.
navigateTo
({
url
:
"/pages/jiuzhai/jz_SureOrder?orderData="
+
encodeURIComponent
(
myData
)
});
}
else
{
if
(
this
.
isSubmit
){
this
.
isSubmit
=
false
;
uni
.
showLoading
({
title
:
'下单中...'
})
this
.
apipost
(
"sellorder_post_SetOrderInfoForB2B"
,
msg
,
res
=>
{
uni
.
hideLoading
();
this
.
isSubmit
=
true
;
if
(
res
.
resultCode
==
1
)
{
let
data
=
res
.
data
;
data
.
CoverImg
=
this
.
currentPriceInfo
.
CoverImg
;
let
myData
=
JSON
.
stringify
(
data
);
uni
.
navigateTo
({
url
:
"/pages/jiuzhai/jz_SureOrder?orderData="
+
encodeURIComponent
(
myData
)
});
}
else
{
}
},
err
=>
{
uni
.
hideLoading
();
this
.
isSubmit
=
true
;
}
},
null
);
);
}
}
}
}
...
...
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