| | |
| | | } |
| | | } |
| | | }, |
| | | watch: {}, |
| | | mounted() {}, |
| | | // computed: { |
| | | // socketValue() { |
| | | // return this.$store.state.socketValue; |
| | | // } |
| | | // }, |
| | | // watch: { |
| | | // socketValue() { |
| | | // console.log(this.socketValue); |
| | | // let that = this; |
| | | // if (that.socketValue.type === "start") { |
| | | // // console.log("任务开启vuevueveu") |
| | | // // this.$store.commit("addTask", this.socketValue.rid); |
| | | // // uni.request({ |
| | | // // url: this.$store.state.piAPI + "taskqd/selectLi?id=" + this.socketValue.rid, |
| | | // // method: "get", |
| | | // // header: { |
| | | // // "content-type": "application/x-www-form-urlencoded", |
| | | // // }, |
| | | // // success(res) { |
| | | // // let vals = res.data.data.records[0]; |
| | | // let types = uni.getSystemInfoSync().platform; |
| | | // let that = this, |
| | | // d = { |
| | | // serid: uni.getStorageSync("ids") || that.$store.state.puserID, |
| | | // type: 0, |
| | | // }; |
| | | // uni.request({ |
| | | // url: this.$store.state.piAPI + "taskqd/selectLi", |
| | | // method: "POST", |
| | | // data: d, |
| | | // header: { |
| | | // "content-type": "application/x-www-form-urlencoded", |
| | | // }, |
| | | // success(res) { |
| | | // const data = res.data.data; |
| | | // for (let k in data) { |
| | | // if (data[k].id == that.socketValue.rid) { |
| | | // let val = JSON.stringify({ |
| | | // ...data[k], |
| | | // butCT: "beginUp", |
| | | // buttype: 0, |
| | | // myid: d.serid, |
| | | // myName: uni.getStorageSync("name") || that.$store.state.puserName, |
| | | // appenUrl: that.$store.state.piAPI, |
| | | // isOn: true |
| | | // }); |
| | | // if(types == "android"){ |
| | | // uni.navigateTo({ |
| | | // url: "/pages/grabOrders/map?data=" + JSON.stringify(val), |
| | | // }); |
| | | // return |
| | | // } |
| | | // uni.redirectTo({ |
| | | // url: "/pages/grabOrders/map?data=" + JSON.stringify(val), |
| | | // }); |
| | | // } else { |
| | | // continue; |
| | | // } |
| | | // } |
| | | // }, |
| | | // }); |
| | | |
| | | // } else if (that.socketValue.type === "stop") { |
| | | // // console.log("任务结束vuevueveu") |
| | | // // this.$store.commit("stopTask", this.socketValue.rid); |
| | | // // uni.reLaunch({ |
| | | // // url: "/pages/home/home" |
| | | // // }); |
| | | // } |
| | | // } |
| | | // }, |
| | | mounted() { |
| | | // console.log("登入状态", this.$store.state.loging) |
| | | // if (this.$store.state.loging) { |
| | | // this.$store.dispatch("connectws"); |
| | | // } |
| | | }, |
| | | onLaunch: function() { //初始化完成时触发(全局只触发一次) |
| | | console.log('第一次进入') |
| | | // Window.say = Window.console; |
| | | // Window.console = function() { |
| | | // say.log("关闭console") |
| | | // } |
| | | if (WxStorage.get("init") == '') { |
| | | WxStorage.set("init", 'false'); |
| | | console.log('第一次进入') |
| | |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | @import 'smallwei/avue/lib/index.css'; |
| | | // @import '@smallwei/avue/lib/index.css'; |
| | | @import url("/components/feng-parse/parse.css"); |
| | | /*uview全局样式*/ |
| | | @import "uview-ui/index.scss"; |
| | |
| | | width: 100%; |
| | | height: 100%; |
| | | } |
| | | |
| | | .uGridSelected { |
| | | background: #f4f4f4 !important; |
| | | } |
| | | |
| | | /*每个页面公共css */ |
| | | </style> |