| | |
| | | mounted() {}, |
| | | methods: { |
| | | onLoad() { |
| | | if (this.$store.state.UserData.rname[0] == '保安') { |
| | | |
| | | this.serviceButton = [{ |
| | | name: '接收指令查询', |
| | | img: '/static/images/dispatch/look.png', |
| | | url: '../dispatch/receive' |
| | | }] |
| | | |
| | | } else if (this.$store.state.UserData.rname[0] == '保安公司管理员') { |
| | | |
| | | this.serviceButton = [{ |
| | | name: '接收指令查询', |
| | | img: '/static/images/dispatch/look.png', |
| | | url: '../dispatch/receive' |
| | | }] |
| | | |
| | | } else { |
| | | this.serviceButton = [{ |
| | | name: '下发指令查询', |
| | | img: '/static/images/dispatch/up-down.png', |
| | | url: '../dispatch/send' |
| | | }, |
| | | { |
| | | name: '接收指令查询', |
| | | img: '/static/images/dispatch/look.png', |
| | | url: '../dispatch/receive' |
| | | }, |
| | | { |
| | | name: '文字指令下发', |
| | | img: '/static/images/dispatch/issue.png', |
| | | url: '../dispatch/text' |
| | | }, |
| | | { |
| | | name: '图片指令下发', |
| | | img: '/static/images/dispatch/imgissue.png', |
| | | url: '../dispatch/imgissue' |
| | | } |
| | | ] |
| | | } |
| | | // 加载服务按钮数据 |
| | | fakeServiceButton().then(data => { |
| | | this.serviceButton = data; |
| | | }); |
| | | // fakeServiceButton().then(data => { |
| | | // this.serviceButton = data; |
| | | // }); |
| | | }, |
| | | //页面跳转 |
| | | goBusinessPage(url, index) { |
| | |
| | | <view class="name">{{ item.name }}</view> |
| | | </view> |
| | | </u-grid-item> |
| | | <u-grid-item bg-color="transparent" key="8"> |
| | | <navigator url="/pages/service/service" hover-class="none" class="service-item"> |
| | | <image src="/static/images/home/s8.png" mode="widthFix" class="img"></image> |
| | | <view class="name">更多</view> |
| | | </navigator> |
| | | </u-grid-item> |
| | | </u-grid> |
| | | </view> |
| | | <!-- 服务按钮 end --> |
| | |
| | | <view class="info"> |
| | | {{item.title}} |
| | | </view> |
| | | |
| | | |
| | | <view class="new-content u-line-1" v-html="item.content"> |
| | | |
| | | |
| | | </view> |
| | | <view class="date"> |
| | | <!-- <image src="/static/images/home/date.png" class="icon" mode=""></image> --> |
| | |
| | | //去跳转详情页面 |
| | | goArticleDetail(item) { |
| | | |
| | | console.log(item) |
| | | |
| | | if (item.content != undefined && item.content.indexOf('<p>') != -1) { |
| | | |
| | | var reg1 = /<\/?p[^>]*>/g; |
| | |
| | | getArtcilePageList() { |
| | | var that = this; |
| | | uni.request({ |
| | | url: this.$store.state.piAPI + "/blade-desk/notice/page?category=2&deptId=" + this.$store.state |
| | | url: this.$store.state.piAPI + "/blade-desk/notice/page?category=1&deptId=" + this.$store.state |
| | | .UserData |
| | | .dept_id, |
| | | method: 'GET', |
| | |
| | | line-height: 36rpx; |
| | | letter-spacing: 1px; |
| | | } |
| | | |
| | | |
| | | .new-content { |
| | | margin: 12rpx 0; |
| | | font-size: 0.46rem; |