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
Show 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 = {
...
@@ -53,6 +53,11 @@ const apiList = {
method
:
'get'
,
method
:
'get'
,
isShowLoading
:
false
isShowLoading
:
false
},
},
receivLaFeiPrize
:
{
handle
:
'receivLaFeiPrize'
,
method
:
'get'
,
isShowLoading
:
false
},
receiveObjectPrize
:
{
receiveObjectPrize
:
{
handle
:
'receiveObjectPrize'
,
handle
:
'receiveObjectPrize'
,
method
:
'get'
,
method
:
'get'
,
...
...
taobao_mini/client/pages/myprize/myprize.js
View file @
80190476
...
@@ -132,6 +132,7 @@ Page({
...
@@ -132,6 +132,7 @@ Page({
* 发奖
* 发奖
*/
*/
async
cloudTBIssue
(
params
)
{
async
cloudTBIssue
(
params
)
{
console
.
log
(
'cloudTBIssue params'
,
JSON
.
stringify
(
params
))
const
{
const
{
cloud
cloud
}
=
app
;
}
=
app
;
...
@@ -153,6 +154,7 @@ Page({
...
@@ -153,6 +154,7 @@ Page({
console
.
log
(
"alibaba.latour.strategy.issue------catch"
,
err
);
console
.
log
(
"alibaba.latour.strategy.issue------catch"
,
err
);
});
});
console
.
log
(
result
,
"result"
);
console
.
log
(
result
,
"result"
);
commonToast
(
'领取成功~'
)
resolve
(
result
);
resolve
(
result
);
},
},
fail
:
(
err
)
=>
{
fail
:
(
err
)
=>
{
...
@@ -175,13 +177,25 @@ Page({
...
@@ -175,13 +177,25 @@ Page({
item
:
{
item
:
{
strategyCode
,
strategyCode
,
code
,
code
,
channel
channel
,
id
}
}
}
=
e
.
target
.
dataset
;
}
=
e
.
target
.
dataset
;
this
.
cloudTBIssue
({
this
.
cloudTBIssue
({
strategyCode
,
strategyCode
,
code
,
code
,
channel
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;
// const { activityId } = app;
// console.log(item, '领取权益')
// 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