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

 

uni-app实现扫码签到

上一篇:教你用PS钢笔工具画多啦A梦


下一篇:oracle服务器和客户端字符集的查看和修改