uni-app实现扫码签到
作者:互联网
1 uni.scanCode({ 2 success: res => { 3 this.$http({ 4 url: '/checkin/scanSign', 5 data: { 6 codeInfo: res.result 7 }, 8 method: 'GET', 9 header: { 10 "Content-type": "application/x-www-form-urlencoded" 11 }, 12 sslVerify: false, 13 }).then(res => { 14 if (res.data.msg) { 15 uni.navigateTo({ 16 url: '/pages/signSuccess/signSuccess' 17 }); 18 } else { 19 uni.navigateTo({ 20 url: '/pages/signFail/signFail' 21 }); 22 } 23 }) 24 } 25 });
标签:navigateTo,签到,res,app,url,signSuccess,uni,signFail 来源: https://www.cnblogs.com/guwufeiyang/p/14933991.html