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
665b414d
Commit
665b414d
authored
Sep 25, 2020
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7ccecb6d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
comtask.js
taobao_mini/client/components/comtask/comtask.js
+2
-1
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+3
-3
pageshop.js
taobao_mini/client/pages/pageshop/pageshop.js
+2
-2
tb.js
taobao_mini/client/tbcc-sdk/lib/tb.js
+1
-1
No files found.
taobao_mini/client/components/comtask/comtask.js
View file @
665b414d
...
...
@@ -51,13 +51,14 @@ Component({
},
async
handleTapReceiveBtn
(
e
)
{
if
(
flag
)
return
;
my
.
showLoading
();
//
my.showLoading();
flag
=
1
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
taskType
,
sellerId
}
=
item
;
const
{
success
,
data
,
message
}
=
await
API
.
receiveTaskRewards
({
taskType
,
sellerId
}).
catch
(
res
=>
{
commonToast
(
res
&&
res
.
message
);
})
||
{};
// my.hideLoading();
if
(
success
&&
data
)
{
commonToast
(
'领取成功~'
);
}
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
665b414d
...
...
@@ -79,11 +79,11 @@ Page({
myPrizeList
:
[]
})
})
||
{};
if
(
success
&&
data
)
{
if
(
success
&&
data
&&
data
.
list
)
{
this
.
setData
({
myPrizeList
:
data
myPrizeList
:
data
.
list
})
this
.
getEndTime
(
data
)
this
.
getEndTime
(
data
.
list
)
}
if
(
type
!=
'noLoading'
)
{
my
.
hideLoading
();
...
...
taobao_mini/client/pages/pageshop/pageshop.js
View file @
665b414d
...
...
@@ -28,7 +28,7 @@ Page({
async
handleClick
(
e
)
{
if
(
flag
)
return
;
my
.
showLoading
();
//
my.showLoading();
flag
=
1
;
const
{
item
}
=
e
.
target
.
dataset
;
const
{
_id
,
code
,
type
}
=
item
;
...
...
@@ -38,7 +38,7 @@ Page({
commonToast
(
res
&&
res
.
message
);
})
||
{};
my
.
__updateUserInfo__
();
my
.
hideLoading
();
//
my.hideLoading();
if
(
success
&&
data
)
{
this
.
setData
({
exchangedModalVisible
:
1
,
exchangedModalData
:
item
})
...
...
taobao_mini/client/tbcc-sdk/lib/tb.js
View file @
665b414d
...
...
@@ -4,7 +4,7 @@
* @param {number} duration 显示时长
* @param {function} successCb 成功回调
*/
export
const
commonToast
=
(
content
,
duration
=
30
00
,
successCb
)
=>
{
export
const
commonToast
=
(
content
,
duration
=
15
00
,
successCb
)
=>
{
my
.
showToast
({
content
:
content
||
'换个姿势再试一次~'
,
duration
,
...
...
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