|
@@ -301,24 +301,24 @@
|
|
|
// 扫码洗车
|
|
|
scanCode () {
|
|
|
let _this = this
|
|
|
- uni.navigateTo({
|
|
|
- url: '/pages/getOrder/getOrder?scene=100040,2001'
|
|
|
- })
|
|
|
+ // uni.navigateTo({
|
|
|
+ // url: '/pages/getOrder/getOrder?scene=100040,2001'
|
|
|
+ // })
|
|
|
// 检验是否登录或登录是否过期
|
|
|
- // uni.scanCode({
|
|
|
- // success: function (res) {
|
|
|
- // console.log(res);
|
|
|
- // if(res.scanType != 'WX_CODE'){
|
|
|
- // setTimeout(()=>{
|
|
|
- // _this.toashMsg("无法识别此二维码")
|
|
|
- // },1000)
|
|
|
- // }else{
|
|
|
- // uni.navigateTo({
|
|
|
- // url: '/'+res.path
|
|
|
- // })
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
+ uni.scanCode({
|
|
|
+ success: function (res) {
|
|
|
+ console.log(res);
|
|
|
+ if(res.scanType != 'WX_CODE'){
|
|
|
+ setTimeout(()=>{
|
|
|
+ _this.toashMsg("无法识别此二维码")
|
|
|
+ },1000)
|
|
|
+ }else{
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/'+res.path
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
// 创建标记点 设备状态 USING :使用中 PAUSE:暂停 ON_LINE:在线
|
|
|
createMarker(point) {
|