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 });