| | |
| | | var datas = this.Pdata; |
| | | //alert(datas.name) |
| | | uni.navigateTo({ |
| | | url: '/pages/groupChat/chating?chatID=' + datas.recipientId.toString() |
| | | url: '/pages/groupChat/chating?chatID=' + datas.recipientId.toString() + '&data=' + JSON.stringify( |
| | | datas) |
| | | }); |
| | | }, |
| | | QZchating() { |
| | |
| | | pageY: 0, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | console.log(this.callname,1111) |
| | | }, |
| | | components: { |
| | | emoji, |
| | | }, |
| | |
| | | "path": "pages/groupChat/groupChat", |
| | | "style": { |
| | | "navigationBarTitleText": "聊天室", |
| | | "enablePullDownRefresh": false, |
| | | "enablePullDownRefresh": true, |
| | | "navigationStyle": "custom" |
| | | } |
| | | }, |
| | |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/groupChat/friendrequest", |
| | | "style" : { |
| | | "navigationStyle" : "custom" |
| | | } |
| | | "path": "pages/groupChat/friendrequest", |
| | | "style": { |
| | | "navigationStyle": "custom" |
| | | } |
| | | }, |
| | | { |
| | | "path" : "pages/groupChat/addFriend", |
| | | "style" : { |
| | | "navigationStyle" : "custom" |
| | | } |
| | | "path": "pages/groupChat/addFriend", |
| | | "style": { |
| | | "navigationStyle": "custom" |
| | | } |
| | | }, |
| | | { |
| | | "path": "pages/securityStaff/exhibition", |
| | | "style": { |
| | | "navigationBarTitleText": "保安管理", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white" |
| | | "navigationBarTextStyle": "white", |
| | | "enablePullDownRefresh": true |
| | | } |
| | | }, |
| | | { |
| | |
| | | "path": "pages/company/company", |
| | | "style": { |
| | | "navigationBarTitleText": "服务单位", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white" |
| | | "navigationBarTextStyle": "white", |
| | | "enablePullDownRefresh": true |
| | | } |
| | | }, |
| | | { |
| | |
| | | "path": "pages/report/report", |
| | | "style": { |
| | | "navigationBarTitleText": "工作汇报", |
| | | "enablePullDownRefresh": false, |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white", |
| | | "navigationStyle": "custom" |
| | | "navigationStyle": "custom", |
| | | "enablePullDownRefresh": true |
| | | } |
| | | }, |
| | | { |
| | |
| | | "path": "pages/dispatch/dispatch", |
| | | "style": { |
| | | "navigationBarTitleText": "调度指令", |
| | | "enablePullDownRefresh": false, |
| | | "enablePullDownRefresh": true, |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white", |
| | | "navigationStyle": "custom" |
| | |
| | | "path": "pages/message/message", |
| | | "style": { |
| | | "navigationBarTitleText": "通知通告", |
| | | "enablePullDownRefresh": false, |
| | | "enablePullDownRefresh": true, |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white", |
| | | "navigationStyle": "custom" |
| | |
| | | "path": "pages/examine/examine", |
| | | "style": { |
| | | "navigationBarTitleText": "现场检查", |
| | | "enablePullDownRefresh": false, |
| | | "enablePullDownRefresh": true, |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white", |
| | | "navigationStyle": "custom" |
| | |
| | | "navigationStyle": "custom" |
| | | // "enablePullDownRefresh": false |
| | | } |
| | | }, { |
| | | "path": "pages/groupChat/newGroup/newGroup", |
| | | "style": { |
| | | "navigationBarTitleText": "新建群组", |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white" |
| | | } |
| | | |
| | | } |
| | | ,{ |
| | | "path" : "pages/groupChat/newGroup/newGroup", |
| | | "style" : |
| | | { |
| | | "navigationBarTitleText": "新建群组", |
| | | "navigationBarBackgroundColor": "#0BB9C8", |
| | | "navigationBarTextStyle": "white" |
| | | } |
| | | |
| | | } |
| | | ], |
| | | ], |
| | | "globalStyle": { |
| | | "navigationBarTextStyle": "black", |
| | | "navigationBarTitleText": "", |
| | |
| | | keyValue: '', |
| | | pagelist: 0, |
| | | pages: 0, |
| | | flag: true |
| | | flag: true, |
| | | |
| | | pullDown: false |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | |
| | | |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => {this.getCompany();}, 1000) |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getCompany(); |
| | | }, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.dataList.push(item) |
| | | }) |
| | | } |
| | | |
| | | |
| | | if (that.pagelist == that.pages) { |
| | | that.flag = false |
| | | that.status = 'nomore'; |
| | | return |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | }, |
| | |
| | | return |
| | | } else { |
| | | that.newsList = []; |
| | | |
| | | |
| | | uni.request({ |
| | | url: that.$store.state.piAPI + "/information/page", |
| | | method: "get", |
| | |
| | | enterprisename: str |
| | | }, |
| | | success: (res) => { |
| | | |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | |
| | | resdata.forEach(item => { |
| | | that.newsList.push(item) |
| | | }) |
| | | |
| | | |
| | | } |
| | | }); |
| | | |
| | | |
| | | that.flag = false |
| | | that.status = 'nomore'; |
| | | } |
| | |
| | | .inTmain {} |
| | | |
| | | .msg { |
| | | height: 72rpx; |
| | | height: 74rpx; |
| | | line-height: 72rpx; |
| | | text-align: center; |
| | | color: #999; |
| | |
| | | <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8" |
| | | inactive-color="#595959" height="100" @change="change"></u-tabs> |
| | | |
| | | <u-search v-model='keyValue' placeholder='请输入指令内容' shape="round" class="u-search" input-align="center" |
| | | height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' @change='changeValue'> |
| | | <u-search v-model='keyValue' placeholder='请输入指令内容' shape="round" class="u-search" |
| | | input-align="center" height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' |
| | | @change='changeValue'> |
| | | </u-search> |
| | | |
| | | <view v-show="current == 0 && newsList.length > 0"> |
| | |
| | | pages: 0, |
| | | flag: true, |
| | | |
| | | pullDown: false |
| | | |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | that.getSend(); |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | var that = this; |
| | | |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | if (that.current == 0) { |
| | | that.getReceive(); |
| | | } else { |
| | | that.getSend(); |
| | | } |
| | | }, 1000) |
| | | |
| | | }, |
| | | mounted() { |
| | | this.getReceive(); |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | width: 100%; |
| | | max-height: 100vh; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | .head { |
| | | position: relative; |
| | | |
| | |
| | | pages: 0, |
| | | flag: true, |
| | | |
| | | pullDown: false |
| | | |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | var that = this; |
| | | |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | if (that.current == 0) { |
| | | that.getReceive(); |
| | | } else { |
| | | that.getSend(); |
| | | } |
| | | }, 1000) |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getReceive(); |
| | | }, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | width: 100%; |
| | | max-height: 100vh; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | .head { |
| | | position: relative; |
| | | |
| | |
| | | |
| | | <view style="height:205rpx;"></view> |
| | | <view class="tab" style="position: fixed;top: 0;width: 100%;height: 205rpx;z-index: 100;"> |
| | | <u-navbar style="position: relative;" :is-fixed="false" :border-bottom="false" :is-back="false" |
| | | title="好友" :background="{ background: '#0BB9C8' }" title-color="#fff"> |
| | | <u-navbar style="position: relative;" :is-fixed="false" :border-bottom="false" :is-back="false" title="好友" |
| | | :background="{ background: '#0BB9C8' }" title-color="#fff"> |
| | | <u-icon @click="addFriend" slot="right" class="message-icon" mode="widthFix" name="plus" color="#fff"> |
| | | </u-icon> |
| | | <!-- <image src="../../static/add.png" ></image> --> |
| | |
| | | <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8" inactive-color="#595959" |
| | | height="100" @change="change" style="background-color:rgba(255,255,255,0.8); "></u-tabs> |
| | | </view> |
| | | |
| | | |
| | | <swiper id="swiperBoxPeo" :style="{ height: swiperHeight + 'px' }" :current="current" @change="tabsChange"> |
| | | <swiper-item class="swiper-item" v-for="(item, indexs) in list" :key="indexs"> |
| | | <view v-if="indexs == 0" class="main"> |
| | |
| | | </view> |
| | | </swiper-item> |
| | | </swiper> |
| | | |
| | | |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | query |
| | | .select('#swiperBoxPeo') |
| | | .boundingClientRect(data => { |
| | | |
| | | |
| | | that.swiperHeight = safeArea.bottom - data.top; |
| | | |
| | | |
| | | }) |
| | | .exec(); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | |
| | | setTimeout(() => { |
| | | this.getdataList() |
| | | }, 1000) |
| | | |
| | | }, |
| | | |
| | | methods: { |
| | | change(index) { |
| | | this.current = index; |
| | |
| | | } |
| | | } |
| | | that.dataListP = resdata; |
| | | |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | }); |
| | | } else if (this.current == 1) { |
| | |
| | | } |
| | | |
| | | that.dataListTXL = resdata; |
| | | |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | }) |
| | | } else if (this.current == 2) { |
| | |
| | | } |
| | | } |
| | | that.dataListQZ = resdata; |
| | | |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | }); |
| | | } |
| | |
| | | |
| | | .m-main { |
| | | box-sizing: border-box; |
| | | |
| | | .main { |
| | | padding: 0 16px; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | .swiper-item { |
| | | overflow-y: auto !important; |
| | | } |
| | |
| | | pagelist: 0, |
| | | pages: 0, |
| | | flag: true, |
| | | |
| | | |
| | | pullDown: false |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | var that = this; |
| | | |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | if (that.current == 0) { |
| | | that.getReceive(); |
| | | } else { |
| | | that.getSend(); |
| | | } |
| | | }, 1000) |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getReceive(); |
| | | }, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | | that.status = 'nomore'; |
| | |
| | | var reg1 = /<\/?p[^>]*>/g; |
| | | |
| | | item.content = item.content.replace(reg1, ''); |
| | | |
| | | |
| | | var reg2 = /[ ]/g; |
| | | |
| | | |
| | | item.content = item.content.replace(reg2, ''); |
| | | |
| | | console.log(item) |
| | |
| | | <u-tabs :list="list" :is-scroll="false" :current="current" active-color="#14B9C8" |
| | | inactive-color="#595959" height="100" @change="change"></u-tabs> |
| | | |
| | | <u-search v-model='keyValue' placeholder='请输入汇报内容' shape="round" class="u-search" input-align="center" |
| | | height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' @change='changeValue'> |
| | | <u-search v-model='keyValue' placeholder='请输入汇报内容' shape="round" class="u-search" |
| | | input-align="center" height="70" @search='searchValue' @custom='searchValue' @clear='clearValue' |
| | | @change='changeValue'> |
| | | </u-search> |
| | | |
| | | <view v-show="current == 0 && newsList.length > 0"> |
| | |
| | | pages: 0, |
| | | flag: true, |
| | | |
| | | pullDown: false |
| | | |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | } |
| | | }, 1000); |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | var that = this; |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | if (that.current == 0) { |
| | | that.getReceive(); |
| | | } else { |
| | | that.getSend(); |
| | | } |
| | | }, 1000) |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getReceive(); |
| | | }, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (that.pullDown == true) { |
| | | that.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (that.pullDown == true) { |
| | | that.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.status = 'nomore'; |
| | | return |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | }); |
| | |
| | | width: 100%; |
| | | max-height: 100vh; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | .head { |
| | | position: relative; |
| | | |
| | |
| | | keyValue: '', |
| | | pagelist: 0, |
| | | pages: 0, |
| | | flag: true |
| | | flag: true, |
| | | |
| | | pullDown: false |
| | | }; |
| | | }, |
| | | onLoad() { |
| | |
| | | |
| | | |
| | | }, |
| | | |
| | | onPullDownRefresh: function() { |
| | | this.pullDown = true; |
| | | this.pagelist = 0; |
| | | this.pages = 0; |
| | | this.flag = true; |
| | | this.dataList = []; |
| | | this.newsList = []; |
| | | this.status = 'loading'; |
| | | this.keyValue = ''; |
| | | setTimeout(() => { |
| | | this.getCompany(); |
| | | }, 1000) |
| | | |
| | | }, |
| | | |
| | | mounted() { |
| | | this.getCompany(); |
| | | }, |
| | |
| | | that.pages = res.data.data.pages; |
| | | |
| | | var resdata = res.data.data.records; |
| | | |
| | | if (this.pullDown == true) { |
| | | this.pullDown = false; |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | |
| | | if (resdata.length == 0) { |
| | | that.flag = false |
| | |
| | | that.dataList.push(item) |
| | | }) |
| | | } |
| | | |
| | | |
| | | if (that.pagelist == that.pages) { |
| | | that.flag = false |
| | | that.status = 'nomore'; |