Showing
3 changed files
with
7 additions
and
5 deletions
@@ -75,7 +75,7 @@ export default { | @@ -75,7 +75,7 @@ export default { | ||
75 | /** | 75 | /** |
76 | * 加入排队 | 76 | * 加入排队 |
77 | */ | 77 | */ |
78 | - addQueue(actId) { | 78 | + addQueue(actId, userId) { |
79 | if (!actId) { | 79 | if (!actId) { |
80 | return Promise.reject({ | 80 | return Promise.reject({ |
81 | code: 403, | 81 | code: 403, |
@@ -85,8 +85,9 @@ export default { | @@ -85,8 +85,9 @@ export default { | ||
85 | return api.post({ | 85 | return api.post({ |
86 | url: '', | 86 | url: '', |
87 | data: { | 87 | data: { |
88 | - method: 'app.drawline.addQueue', | ||
89 | - activityId: actId | 88 | + method: 'app.drawline.addQueueForHelp', |
89 | + activityId: actId, | ||
90 | + userId: userId | ||
90 | } | 91 | } |
91 | }); | 92 | }); |
92 | }, | 93 | }, |
@@ -425,7 +425,7 @@ Page(Object.assign({ | @@ -425,7 +425,7 @@ Page(Object.assign({ | ||
425 | this.setData({ | 425 | this.setData({ |
426 | api_status: 1 | 426 | api_status: 1 |
427 | }); | 427 | }); |
428 | - LimitModel.addQueue(actId).then((res) => { | 428 | + LimitModel.addQueue(actId, uid).then((res) => { |
429 | console.log('加入排队', res); | 429 | console.log('加入排队', res); |
430 | if (res.code === 200 && res.data) { | 430 | if (res.code === 200 && res.data) { |
431 | let sort = res.data.sort; | 431 | let sort = res.data.sort; |
-
Please register or login to post a comment