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
80190476
Commit
80190476
authored
Oct 13, 2020
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'refs/remotes/origin/tianmaoxiaoyuan' into tianmaoxiaoyuan
parents
6b9919c4
6bfb0cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
api.js
taobao_mini/client/api.js
+5
-0
myprize.js
taobao_mini/client/pages/myprize/myprize.js
+16
-2
No files found.
taobao_mini/client/api.js
View file @
80190476
...
...
@@ -53,6 +53,11 @@ const apiList = {
method
:
'get'
,
isShowLoading
:
false
},
receivLaFeiPrize
:
{
handle
:
'receivLaFeiPrize'
,
method
:
'get'
,
isShowLoading
:
false
},
receiveObjectPrize
:
{
handle
:
'receiveObjectPrize'
,
method
:
'get'
,
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
80190476
...
...
@@ -132,6 +132,7 @@ Page({
* 发奖
*/
async
cloudTBIssue
(
params
)
{
console
.
log
(
'cloudTBIssue params'
,
JSON
.
stringify
(
params
))
const
{
cloud
}
=
app
;
...
...
@@ -152,7 +153,8 @@ Page({
commonToast
(
'领取失败~'
)
console
.
log
(
"alibaba.latour.strategy.issue------catch"
,
err
);
});
console
.
log
(
result
,
"result"
);
console
.
log
(
result
,
"result"
);
commonToast
(
'领取成功~'
)
resolve
(
result
);
},
fail
:
(
err
)
=>
{
...
...
@@ -175,13 +177,25 @@ Page({
item
:
{
strategyCode
,
code
,
channel
channel
,
id
}
}
=
e
.
target
.
dataset
;
this
.
cloudTBIssue
({
strategyCode
,
code
,
channel
}).
then
(()
=>
{
API
.
receivLaFeiPrize
({
id
}).
then
((
res
)
=>
{
console
.
log
(
'receivLaFeiPrize res'
,
res
)
this
.
getMyPrize
()
})
.
catch
((
error
)
=>
{
console
.
log
(
'receivLaFeiPrize error'
,
error
)
})
})
.
catch
(
err
=>
{
API
.
receivLaFeiPrize
({
result
:
err
})
})
// const { activityId } = app;
// console.log(item, '领取权益')
...
...
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