Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
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
wildfirecode13
new_taobao
Commits
6829b712
Commit
6829b712
authored
Oct 18, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
助力弹窗防连点
parent
e1512fb6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1927 additions
and
0 deletions
+1927
-0
cominvitemodal.js
taobao_jn/client/components/cominvitemodal/cominvitemodal.js
+7
-0
debug.log
taobao_jn/debug.log
+1920
-0
No files found.
taobao_jn/client/components/cominvitemodal/cominvitemodal.js
View file @
6829b712
...
@@ -13,6 +13,7 @@ const {
...
@@ -13,6 +13,7 @@ const {
getSystemInfo
getSystemInfo
}
=
tbcc
.
tb
}
=
tbcc
.
tb
Component
({
Component
({
canDoHelp
:
true
,
props
:
{},
props
:
{},
data
:
{
data
:
{
resList
:
resList
resList
:
resList
...
@@ -33,6 +34,8 @@ Component({
...
@@ -33,6 +34,8 @@ Component({
},
},
/**助力 */
/**助力 */
async
doHelp
()
{
async
doHelp
()
{
if
(
!
this
.
canDoHelp
)
return
;
this
.
canDoHelp
=
false
;
my
.
showLoading
();
my
.
showLoading
();
const
{
const
{
success
,
success
,
...
@@ -45,13 +48,16 @@ Component({
...
@@ -45,13 +48,16 @@ Component({
if
(
r
.
data
&&
!
r
.
data
.
isVip
)
{
if
(
r
.
data
&&
!
r
.
data
.
isVip
)
{
my
.
hideLoading
();
my
.
hideLoading
();
commonToast
(
"3s入会,即可为好友助力"
,
1500
,
()
=>
{
commonToast
(
"3s入会,即可为好友助力"
,
1500
,
()
=>
{
this
.
canDoHelp
=
true
;
app
.
isGoVip
=
true
;
app
.
isGoVip
=
true
;
navigateToOutside
(
r
.
data
.
url
);
navigateToOutside
(
r
.
data
.
url
);
})
})
}
else
if
(
r
.
data
&&
r
.
data
.
isVip
)
{
}
else
if
(
r
.
data
&&
r
.
data
.
isVip
)
{
this
.
canDoHelp
=
true
;
my
.
hideLoading
();
my
.
hideLoading
();
this
.
openInviteFailedModal
();
this
.
openInviteFailedModal
();
}
else
{
}
else
{
this
.
canDoHelp
=
true
;
my
.
hideLoading
();
my
.
hideLoading
();
const
{
const
{
onCloseModal
onCloseModal
...
@@ -62,6 +68,7 @@ Component({
...
@@ -62,6 +68,7 @@ Component({
})
||
{};
})
||
{};
console
.
log
(
"hhahahha"
)
console
.
log
(
"hhahahha"
)
if
(
success
)
{
if
(
success
)
{
this
.
canDoHelp
=
true
;
this
.
openInviteSuccessModal
();
this
.
openInviteSuccessModal
();
}
}
my
.
hideLoading
();
my
.
hideLoading
();
...
...
taobao_jn/debug.log
View file @
6829b712
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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