|
|
@@ -158,6 +158,7 @@
|
|
|
import authObj from '@/plugins/auth.js';
|
|
|
import {getDevcieByQrcode,bindDevice} from '@/api/device/device';
|
|
|
import UImage from "../../uni_modules/uview-ui/components/u--image/u--image";
|
|
|
+import config from '@/config'
|
|
|
export default {
|
|
|
components: {UImage},
|
|
|
data() {
|
|
|
@@ -167,20 +168,17 @@ export default {
|
|
|
current: 0,
|
|
|
swiperDotIndex: 0,
|
|
|
show:false,
|
|
|
+ imgUrl:"",
|
|
|
scanDevice:{},
|
|
|
- data: [{
|
|
|
- image: '/static/images/banner/banner01.png'
|
|
|
- },
|
|
|
- // {
|
|
|
- // image: '/static/images/banner/banner02.jpg'
|
|
|
- // },
|
|
|
- // {
|
|
|
- // image: '/static/images/banner/banner03.jpg'
|
|
|
- // }
|
|
|
+ data: [
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
|
+ this.imgUrl = config.imgUrl
|
|
|
+ this.data.push({
|
|
|
+ image:this.imgUrl+"/mini/banner/banner01.png"
|
|
|
+ });
|
|
|
if(this.isCompanyUser()){
|
|
|
this.deptId = this.$store.state.user.user.deptId;
|
|
|
console.log( this.deptId );
|