Commit 4a52d8ca81b8ab1642da6503861d12a2722ddbe5
1 parent
49e4f792
免费领取获取二维码新增GradeId
Showing
1 changed file
with
4 additions
and
3 deletions
pages/user/user_spsy/user_spsy.js
| ... | ... | @@ -35,7 +35,7 @@ Page({ |
| 35 | 35 | now, |
| 36 | 36 | }); |
| 37 | 37 | this.requestData() |
| 38 | - this.getQrCode(FormId) | |
| 38 | + this.getQrCode(FormId,GradeId) | |
| 39 | 39 | }, |
| 40 | 40 | /** |
| 41 | 41 | * 生命周期函数--监听页面显示 |
| ... | ... | @@ -44,11 +44,12 @@ Page({ |
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | }, |
| 47 | - async getQrCode(id) { | |
| 47 | + async getQrCode(FormId,GradeId) { | |
| 48 | 48 | const res = await getApp().request.promiseGet("/api/weshop/users/grade/wares/code/get", { |
| 49 | 49 | data: { |
| 50 | - privilegeId: id, | |
| 50 | + privilegeId: FormId, | |
| 51 | 51 | storeId: os.stoid, |
| 52 | + GradeId:GradeId, | |
| 52 | 53 | userId: getApp().globalData.user_id, |
| 53 | 54 | }, |
| 54 | 55 | }); | ... | ... |