|
@@ -195,12 +195,13 @@
|
|
|
if(!d.hasOwnProperty('id')||!d) return proxy.$showToast('请扫描正确的活动签到码');
|
|
if(!d.hasOwnProperty('id')||!d) return proxy.$showToast('请扫描正确的活动签到码');
|
|
|
|
|
|
|
|
let { id } = d;
|
|
let { id } = d;
|
|
|
|
|
+ const userId = JSON.parse(uni.getStorageSync('userInfo'))?.id||'';
|
|
|
proxy.$api.post('/core/activity/signup/signinBySingle',{
|
|
proxy.$api.post('/core/activity/signup/signinBySingle',{
|
|
|
- activityId:id??'',
|
|
|
|
|
|
|
+ activityId:id||'',
|
|
|
memberSignupId:memberSignupId.value,
|
|
memberSignupId:memberSignupId.value,
|
|
|
- userId:JSON.parse(uni.getStorageSync('userInfo')).id
|
|
|
|
|
|
|
+ userId
|
|
|
}).then(({data:res})=>{
|
|
}).then(({data:res})=>{
|
|
|
- if(res.code!==0) return proxy.$showToast(res.msg)
|
|
|
|
|
|
|
+ if(res.code!==0) return proxy.$showToast('签到失败,请稍后再试')
|
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
|
url:'/pagesHome/signSuccess'
|
|
url:'/pagesHome/signSuccess'
|
|
|
})
|
|
})
|