Commit 0908a7541b67549908f8f718fdcfafbf13849bc4
1 parent
51b6a2bd
幸运购参团详情修改
Showing
1 changed file
with
35 additions
and
22 deletions
packageC/pages/luckyGo/luckyGo_details/luckyGo_details.js
| @@ -1155,9 +1155,11 @@ Page({ | @@ -1155,9 +1155,11 @@ Page({ | ||
| 1155 | var luckyGoInfo; | 1155 | var luckyGoInfo; |
| 1156 | var user_id = getApp().globalData.user_id; | 1156 | var user_id = getApp().globalData.user_id; |
| 1157 | 1157 | ||
| 1158 | + | ||
| 1159 | + | ||
| 1158 | // 邀请链接待完善 | 1160 | // 邀请链接待完善 |
| 1159 | 1161 | ||
| 1160 | - await getApp().request.promiseGet("/api/weshop/prom/luckyActivity/page", { | 1162 | + getApp().request.promiseGet("/api/weshop/prom/luckyActivity/page", { |
| 1161 | data: { | 1163 | data: { |
| 1162 | store_id: o.stoid, | 1164 | store_id: o.stoid, |
| 1163 | is_end: 0, | 1165 | is_end: 0, |
| @@ -1168,10 +1170,8 @@ Page({ | @@ -1168,10 +1170,8 @@ Page({ | ||
| 1168 | if(res.data.code == 0) { | 1170 | if(res.data.code == 0) { |
| 1169 | 1171 | ||
| 1170 | luckyGoInfo = res.data.data.pageData[0]; | 1172 | luckyGoInfo = res.data.data.pageData[0]; |
| 1171 | - // if(th.data.param.from == 1) { | ||
| 1172 | - // team_id = luckyGoInfo.team_id; | ||
| 1173 | - // } | ||
| 1174 | - | 1173 | + |
| 1174 | + | ||
| 1175 | 1175 | ||
| 1176 | // else { | 1176 | // else { |
| 1177 | // team_id = luckyGoInfo.team_id; | 1177 | // team_id = luckyGoInfo.team_id; |
| @@ -1216,25 +1216,38 @@ Page({ | @@ -1216,25 +1216,38 @@ Page({ | ||
| 1216 | 1216 | ||
| 1217 | }); | 1217 | }); |
| 1218 | 1218 | ||
| 1219 | - | ||
| 1220 | - // wx.removeStorageSync('team_id'); | ||
| 1221 | - // 幸运购成团信息 | ||
| 1222 | - await getApp().request.promiseGet("/api/weshop/prom/luckyOrder/getUserOrderLastInfo/" + o.stoid + "/" + user_id + "/" + th.data.param.group_id, { | ||
| 1223 | - data: { | ||
| 1224 | - } | ||
| 1225 | - }).then(res => { | ||
| 1226 | - | ||
| 1227 | - if(res.data.code == 0) { | ||
| 1228 | - | ||
| 1229 | - team_id = res.data.data.team_id; | ||
| 1230 | - | ||
| 1231 | - th.setData({ | ||
| 1232 | - team_id, | ||
| 1233 | - }); | 1219 | + if(th.data.param.from == 1) { |
| 1220 | + team_id = th.data.param.team_id; | ||
| 1221 | + } else { | ||
| 1222 | + | ||
| 1223 | + // 单独获取最新的team_id; | ||
| 1224 | + await getApp().request.promiseGet("/api/weshop/prom/luckyOrder/getUserOrderLastInfo/" + o.stoid + "/" + user_id + "/" + th.data.param.group_id, { | ||
| 1225 | + data: { | ||
| 1226 | + } | ||
| 1227 | + }).then(res => { | ||
| 1228 | + | ||
| 1229 | + if(res.data.code == 0) { | ||
| 1230 | + | ||
| 1231 | + // if(th.data.param.from == 1) { | ||
| 1232 | + // team_id = luckyGoInfo.team_id; | ||
| 1233 | + // } else { | ||
| 1234 | + // team_id = res.data.data.team_id; | ||
| 1235 | + // }; | ||
| 1236 | + | ||
| 1237 | + team_id = res.data.data.team_id; | ||
| 1238 | + | ||
| 1239 | + | ||
| 1240 | + th.setData({ | ||
| 1241 | + team_id, | ||
| 1242 | + }); | ||
| 1243 | + | ||
| 1244 | + }; | ||
| 1234 | 1245 | ||
| 1235 | - }; | 1246 | + }); |
| 1236 | 1247 | ||
| 1237 | - }); | 1248 | + }; |
| 1249 | + // wx.removeStorageSync('team_id'); | ||
| 1250 | + | ||
| 1238 | 1251 | ||
| 1239 | 1252 | ||
| 1240 | // 幸运购成团成员 | 1253 | // 幸运购成团成员 |