Browse Source

检查时间

master
jingbowen 2 years ago
parent
commit
b0373bd0fb
  1. 2
      components/tabbar.vue
  2. 2
      config.js
  3. 4
      libs/auth.js
  4. 2
      pages/rescue/taskapply.vue
  5. 2
      pages/rescue/taskreceive.vue
  6. 12
      pages/tabbar/index.vue
  7. 14
      pages/tabbar/tow.vue
  8. 2
      pages/tabbar/user.vue
  9. 2
      unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map
  10. 4
      unpackage/dist/dev/mp-weixin/common/vendor.js

2
components/tabbar.vue

@ -71,7 +71,7 @@
console.log("item", item)
console.log("index", index)
let url = item.pagePath;
uni.redirectTo({
uni.switchTab({
url
})

2
config.js

@ -4,7 +4,7 @@ const domain = 'https://fx.anxincloud.cn';
const devApi = 'https://121.36.37.70:8204';
const devDomain = 'https://121.36.37.70:8204';
const online = false; //是否线上模式
const online = true; //是否线上模式
export default {
domain: online ? domain : devDomain,

4
libs/auth.js

@ -19,9 +19,13 @@ const login = {
getLocalUserInfo() {
const user = uni.getStorageSync("token");
console.log('从本地存储中获取用户数据', user, 11111111);
if(user){
request.getToken()
}
if (!user) return false;
if (!user.token) return false;
store.commit('saveToken', user);
return true
},

2
pages/rescue/taskapply.vue

@ -478,7 +478,7 @@
this.nub += 1
}
}
this.opts.subtitle.name = this.nub
this.opts.subtitle.name = JSON.stringify(this.nub)
this.index3 = true
},
dateYear(e) {

2
pages/rescue/taskreceive.vue

@ -485,7 +485,7 @@
this.nub += 1
}
}
this.opts.subtitle.name = this.nub
this.opts.subtitle.name = JSON.stringify(this.nub)
},
dateYear(e) {

12
pages/tabbar/index.vue

@ -1,7 +1,15 @@
<template>
<view class="">
<view class="">
<Dindex v-if="shenfen=='battalion'&&!isSupervisor"></Dindex>
<Zindex v-else-if="shenfen=='brigade'"></Zindex>
<Jindex v-else></Jindex>
</view>
<view class="">
<Zindex v-if="shenfen=='brigade'"></Zindex>
</view>
<view class="">
<Jindex v-if="shenfen=='squadron'||isSupervisor"></Jindex>
</view>
</view>
</template>

14
pages/tabbar/tow.vue

@ -1,7 +1,15 @@
<template>
<view class="">
<view class="">
<Dtask v-if="shenfen=='battalion'&&!isSupervisor"></Dtask>
<Ztask v-else-if="shenfen=='brigade'"></Ztask>
<Jtask v-else></Jtask>
</view>
<view class="">
<Ztask v-if="shenfen=='brigade'"></Ztask>
</view>
<view class="">
<Jtask v-if="shenfen=='squadron'||isSupervisor"></Jtask>
</view>
</view>
</template>
@ -21,7 +29,7 @@
isSupervisor: false
}
},
onLoad() {
onShow() {
let roles = uni.getStorageSync("user").roles
let isSupervisor = roles.find(item => {
return item.name.indexOf('检查') != -1

2
pages/tabbar/user.vue

@ -41,7 +41,7 @@
list: {}
}
},
onLoad() {
onShow() {
this.list = uni.getStorageSync("user")
console.log(this.list);
},

2
unpackage/dist/dev/.sourcemap/mp-weixin/common/vendor.js.map vendored

File diff suppressed because one or more lines are too long

4
unpackage/dist/dev/mp-weixin/common/vendor.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save