| | |
| | | "van-cell-group": "@vant/weapp/cell-group/index", |
| | | "van-grid": "@vant/weapp/grid/index", |
| | | "van-grid-item": "@vant/weapp/grid-item/index", |
| | | "van-icon": "@vant/weapp/icon/index" |
| | | "van-icon": "@vant/weapp/icon/index", |
| | | "van-row": "@vant/weapp/row/index", |
| | | "van-col": "@vant/weapp/col/index", |
| | | "van-notify": "@vant/weapp/notify/index", |
| | | "van-toast": "@vant/weapp/toast/index" |
| | | }, |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | <view class="icon"> |
| | | <van-empty class="empty" description="暂无数据" wx:if="{{causeList.length === 0}}"> |
| | | |
| | | </van-empty> |
| | | <view wx:for="{{causeList}}" wx:key="id"> |
| | | <view class="conter" data-cause="{{item}}" bindtap="getDetail"> |
| | | <view class="font-name">{{item.name}} {{item.reportNumber}}人</view> |
| | |
| | | data: { |
| | | groupList: [] |
| | | }, |
| | | openGroup(e){ |
| | | openGroup(e) { |
| | | |
| | | wx.navigateTo({ |
| | | url:"../../manager/group/message/index?id="+e.currentTarget.id |
| | | url: "../../manager/group/message/index?id=" + e.currentTarget.id |
| | | }) |
| | | }, |
| | | onLoad() { |
| | | var date = new Date() |
| | | var month = date.getMonth() + 1 |
| | | var day = date.getDate() |
| | | var hours=date.getHours() |
| | | var minutes=date.getMinutes() |
| | | var secends=date.getSeconds() |
| | | var hours = date.getHours() |
| | | var minutes = date.getMinutes() |
| | | var secends = date.getSeconds() |
| | | var time |
| | | if (month < 10) { |
| | | month = "0" + month |
| | |
| | | if (secends < 10) { |
| | | secends = "0" + secends |
| | | } |
| | | time = date.getFullYear() + "-" + month + "-" + day + " " + hours+":"+minutes+":"+secends |
| | | console.log(time) |
| | | console.log("lastDate",wx.getStorageSync('time')) |
| | | var lastTime=wx.getStorageSync('time') |
| | | time = date.getFullYear() + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + secends |
| | | console.log(time) |
| | | console.log("lastDate", wx.getStorageSync('time')) |
| | | var lastTime = wx.getStorageSync('time') |
| | | wx.request( |
| | | { |
| | | url: managerGroup.globalData.url + "/wx/manager/group/list", |
| | | method: "GET", |
| | | data:{ |
| | | id:wx.getStorageSync('id'), |
| | | newDate:time, |
| | | lastDate:lastTime |
| | | data: { |
| | | id: wx.getStorageSync('id'), |
| | | newDate: time, |
| | | lastDate: lastTime |
| | | }, |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(res.data.data) |
| | | this.setData({ |
| | | console.log(res.data.data) |
| | | res.data.data.map(item=>{ |
| | | item.time = item.time.substr(-8) |
| | | }) |
| | | this.setData({ |
| | | groupList: res.data.data |
| | | }) |
| | | } |
| | | |
| | | |
| | | }) |
| | | |
| | | |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | |
| | | <view class="icon"> |
| | | <van-empty class="empty" description="暂无数据" wx:if="{{groupList.length === 0}}"> |
| | | |
| | | </van-empty> |
| | | <view wx:for="{{groupList}}" wx:key="index" class="list"> |
| | | <view class="conter" id="{{item.id}}" bindtap="openGroup"> |
| | | <view class="inGroup" wx:if="{{item.isInGroup==1}}">已进群</view> |
| | | <view class="noInGroup" wx:if="{{item.isInGroup==0}}">未进群</view> |
| | | <image class="icon1" src="../../icon/群聊.png"></image> |
| | | <view class="font-name"> {{item.groupName}} </view> |
| | | <view class="font-wenzi">{{item.time}}</view> |
| | | <view wx:if="{{item.count!=0&&item.count!=null}}" class="count">{{item.count}}</view> |
| | | <view wx:if="{{item.message!=''&&item.message!=null}}" class="font-qita">{{item.name}}:{{item.message}}</view> |
| | | |
| | | <van-row class="van-row-view"> |
| | | <van-col span="4"> |
| | | <image class="icon1" src="../../icon/群聊.png"></image> |
| | | </van-col> |
| | | <van-col span="16"> |
| | | <view class="font-name"> {{item.groupName}} </view> |
| | | <view wx:if="{{item.message!=''&&item.message!=null}}" class="font-qita">{{item.name}}:{{item.message}}</view> |
| | | </van-col> |
| | | <van-col span="4"> |
| | | <view class="font-wenzi">{{item.time}}</view> |
| | | <view wx:if="{{item.count!=0&&item.count!=null}}" class="count">{{item.count}}</view> |
| | | </van-col> |
| | | </van-row> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | margin: 0.5rem 0; |
| | | } |
| | | .font-wenzi{ |
| | | float: right; |
| | | font-size: 13px; |
| | | margin-right: 20px; |
| | | margin-top: -15px; |
| | | color:rgba(0,0,0,0.4); |
| | | } |
| | | .font-name{ |
| | |
| | | .font-qita{ |
| | | font-size: 13px; |
| | | margin-bottom: 2%; |
| | | margin-left: 15%; |
| | | /* margin-left: 15%; */ |
| | | } |
| | | |
| | | .conter{ |
| | |
| | | align-items: center; |
| | | border-bottom:1px solid rgba(0,0,0,0.1); |
| | | } |
| | | .van-row-view{ |
| | | width: 100%; |
| | | } |
| | | .icon1{ |
| | | width: 35px; |
| | | height: 35px; |
| | | |
| | | } |
| | | .count{ |
| | | margin: auto; |
| | | width: 15px; |
| | | height: 15px; |
| | | float: right; |
| | | font-size: 13px; |
| | | background-color: red; |
| | | text-align:center; |
| | | color:white; |
| | | border-radius: 50%; |
| | | margin-top: 1%; |
| | | margin-right: -30%; |
| | | } |
| | |
| | | url:'../message/records/index?id='+this.data.groupId |
| | | }) |
| | | }, |
| | | more() { |
| | | more() { |
| | | console.log("进来了", this.data.scrollTop) |
| | | if (this.data.isShow == false) { |
| | | this.setData({ |
| | |
| | | value:"" |
| | | }) |
| | | console.log(this.data.messageList) |
| | | wx.setStorageSync('time',time) |
| | | try { |
| | | wx.setStorageSync('time', 'time') |
| | | } catch (e) { } |
| | | // wx.setStorageSync('time','time') |
| | | this.setData({ |
| | | isInput : 1 |
| | | }) |
| | | |
| | | |
| | | |
| | | wx.createSelectorQuery().select('#chat') |
| | | |
| | | .boundingClientRect(function(rect){ |
| | | console.log('rectheight',rect); |
| | | |
| | | /* 将页面移动到最底部(用xxx的height定位) */ |
| | | wx.pageScrollTo({ |
| | | scrollTop: rect.height |
| | |
| | | </view> |
| | | <!--a - 自己的信息--> |
| | | <view class="chat-right" wx:if="{{item.id==uid}}"> |
| | | <view class="chat-context-right">{{item.text}}</view> |
| | | <image class="face-right" src="../../../icon/公安局.png"></image> |
| | | <!-- <view class="chat-message-right" >{{item.name}}-{{item.mobile}}</view> --> |
| | | <view class="chat-context-right">{{item.text}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="list1"></view> |
| | |
| | | <image src="../../../icon/群成员-01.png" class="bottom-icon"></image> |
| | | <view class="wenzi-wenzi">群成员</view> |
| | | </view> |
| | | <view class="view-1" bindtap="publicty"> |
| | | <view class="view-0" bindtap="publicty"> |
| | | <image src="../../../icon/公告.png" class="bottom-icon"></image> |
| | | <view class="wenzi-wenzi">群公告</view> |
| | | </view> |
| | | <view class="view-2" bindtap="banSpeech"> |
| | | <view class="view-0" bindtap="banSpeech"> |
| | | <image src="../../../icon/禁言.png" class="bottom-icon"></image> |
| | | <view class="wenzi-wenzi">禁言</view> |
| | | </view> |
| | | <view class="view-3" bindtap="cause"> |
| | | <view class="view-0" bindtap="cause"> |
| | | <image src="../../../icon/相关案件.png" class="bottom-icon"></image> |
| | | <view class="wenzi-wenzi">案件</view> |
| | | </view> |
| | | <view class="view-4" bindtap="chatRecords"> |
| | | <view class="view-0" bindtap="chatRecords"> |
| | | <image src="../../../icon/聊天记录.png" class="bottom-icon"></image> |
| | | <view class="wenzi-wenzi">聊天记录</view> |
| | | </view> |
| | |
| | | .chat-left{ |
| | | margin-top: 4%; |
| | | } |
| | | .chat-right{ |
| | | margin-right: 50%; |
| | | } |
| | | |
| | | .chat-item{ |
| | | background-color: #F5F5F9; |
| | | margin-bottom: 20%; |
| | |
| | | } |
| | | .chat-right{ |
| | | margin-top: 8%; |
| | | display: flex; |
| | | padding: 0 0.5rem; |
| | | } |
| | | .face-right{ |
| | | width: 40px; |
| | | height: 40px; |
| | | margin-left: 170%; |
| | | |
| | | } |
| | | .chat-message-right{ |
| | | margin-left: 15%; |
| | |
| | | color: rgba(0,0,0,0.4); |
| | | } |
| | | .chat-context-right{ |
| | | margin-left: 30%; |
| | | font-size: 15px; |
| | | padding: 10px ; |
| | | width: 130%; |
| | | font-weight: normal; |
| | | text-align: right; |
| | | margin-top: -20%; |
| | | background-color: #ffffff; |
| | | margin-bottom: 8%; |
| | | margin-left: auto; |
| | | margin-right: 0.5rem; |
| | | } |
| | | .low{ |
| | | position: fixed; |
| | | bottom: 0px; |
| | | bottom: 1.5rem; |
| | | width: 100%; |
| | | background-color: white; |
| | | /* height: 7%; */ |
| | |
| | | /* height: 30px; */ |
| | | /* position: fixed; |
| | | bottom: 0px; */ |
| | | display: flex; |
| | | justify-content: space-around; |
| | | width: 100%; |
| | | height: 70px; |
| | | margin-top: 2%; |
| | | margin-top: 1rem; |
| | | background-color: #F5F5F9; |
| | | /* height: 50%; */ |
| | | } |
| | |
| | | .wenzi-wenzi{ |
| | | font-size: 13px; |
| | | margin-left: 1%; |
| | | white-space: nowrap; |
| | | } |
| | | .bottom-icon1{ |
| | | float: right; |
| | |
| | | font-size: 13px; |
| | | } |
| | | .view-0{ |
| | | margin-left: 4%; |
| | | margin-top: 0.5rem; |
| | | } |
| | | .view-1{ |
| | | margin-left: 24%; |
| | | margin-top: -14%; |
| | | |
| | | } |
| | | .view-2{ |
| | | margin-left: 44%; |
| | | margin-top: -14%; |
| | | |
| | | } |
| | | .view-3{ |
| | | margin-left: 64%; |
| | | margin-top: -13%; |
| | | |
| | | } |
| | | .view-4{ |
| | | margin-left: 84%; |
| | | margin-top: -13%; |
| | | |
| | | } |
| | |
| | | <view class="content"> |
| | | <view class="lists" wx:for="{{causeList}}" wx:key="id"> |
| | | <view class="item2"><image class="icon" src="../../../../icon/公告 (1).png"></image>群公告</view> |
| | | <view class="item">{{item.ctime}}</view> |
| | | <view class="item2"> |
| | | <image class="icon" src="../../../../icon/公告 (1).png"></image> |
| | | <span class="content">群公告</span> |
| | | <view class="item">{{item.ctime}}</view> |
| | | </view> |
| | | |
| | | <view class="item3">{{item.text}}</view> |
| | | </view> |
| | | </view> |
| | |
| | | /* margin-top: 50% ; */ |
| | | border-top: 3px solid rgba(0,0,0,0.1); |
| | | width: 100%; |
| | | margin-left: 2%; |
| | | padding: 0 0.5rem; |
| | | } |
| | | .item{ |
| | | font-size: 13px; |
| | | margin-left: 20%; |
| | | margin-top: -4%; |
| | | |
| | | } |
| | | |
| | | .icon{ |
| | | margin-top: 2%; |
| | | /* margin-top: 2%; */ |
| | | height: 25px; |
| | | width: 25px; |
| | | margin-right: 2%; |
| | | /* margin-right: 2%; */ |
| | | } |
| | | .item2{ |
| | | display: flex; |
| | | align-items: center; |
| | | font-size: 13px; |
| | | margin-top: 0.5rem; |
| | | /* float: right; */ |
| | | /* margin-right: 40%; */ |
| | | /* color:rgba(0,0,0,0.5); */ |
| | | } |
| | | .item3{ |
| | | margin-top: 0.5rem; |
| | | font-size: 14px; |
| | | margin-bottom: 2%; |
| | | } |
| | |
| | | <view class="font-wenzi">关联案件</view> |
| | | </view> |
| | | <view class="button"> |
| | | <button size="mini" class="button3" bindtap="deny">驳 回</button> |
| | | <!-- <button size="mini" class="button3" bindtap="deny">驳 回</button> --> |
| | | <button class="button2" size="mini" bindtap="pass">通 过</button> |
| | | <button class="button1" size="mini" bindtap="cancel">取 消</button> |
| | | </view> |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | <view class="icon"> |
| | | <van-empty class="empty" description="暂无数据" wx:if="{{reportList.length === 0}}"> |
| | | |
| | | </van-empty> |
| | | <view wx:for="{{reportList}}" wx:key="id"> |
| | | <view class="conter" id="{{item.id}}" bindtap="getDetail"> |
| | | <view class="font-name"> {{item.reporterName}} {{item.mobile}}</view> |
| | |
| | | // index.ts |
| | | // 获取应用实例 |
| | | const loginInfo = getApp() |
| | | import Toast from '../../../miniprogram_npm/@vant/weapp/toast/toast'; |
| | | import Notify from '../../../miniprogram_npm/@vant/weapp/notify/notify'; |
| | | let myStyle = ` |
| | | --color:black; |
| | | ` |
| | | |
| | | let chageStyle = ` |
| | | --color:red; |
| | | ` |
| | | Page({ |
| | | data: { |
| | | user:{}, |
| | | isShow:false, |
| | | pic:null |
| | | pic:null, |
| | | viewData: { |
| | | style: myStyle, |
| | | styleId:myStyle |
| | | } |
| | | }, |
| | | |
| | | getName(e){ |
| | | console.log(e.detail.value) |
| | | if(e.detail.value){ |
| | | this.setData({'viewData.style': myStyle}) |
| | | } |
| | | this.data.user.realName=e.detail.value |
| | | }, |
| | | getIdcard(e){ |
| | | if(e.detail.value){ |
| | | this.setData({'viewData.styleId': myStyle}) |
| | | } |
| | | this.data.user.userIdcard=e.detail.value |
| | | }, |
| | | submit(){ |
| | | if(!/^[\u4e00-\u9fa5]{2,4}$/.test(this.data.user.realName)){ |
| | | // Toast.fail('请输入正确的姓名'); |
| | | Notify({ type: 'warning', message: '请输入正确的姓名' }); |
| | | this.setData({'viewData.style': chageStyle}) |
| | | return |
| | | } |
| | | if(!/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(this.data.user.userIdcard)){ |
| | | // Toast.fail('请输入正确的身份证号'); |
| | | Notify({ type: 'warning', message: '请输入正确的身份证号' }); |
| | | this.setData({'viewData.styleId': chageStyle}) |
| | | return |
| | | } |
| | | this.data.user.pic=this.data.pic |
| | | this.data.user.id=wx.getStorageSync('id') |
| | | if ( this.data.user.pic == null||this.data.user.realName==null|| this.data.user.realName==null) { |
| | |
| | | 'content-type': 'application/json' |
| | | }, |
| | | success:(res)=>{ |
| | | // 成功通知 |
| | | Notify({ type: 'primary', message: '采集成功' }); |
| | | const result = JSON.parse(res.data) |
| | | this.setData({ |
| | | pic:result.data, |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | <van-notify id="van-notify" /> |
| | | <van-toast id="van-toast" /> |
| | | <view class="home"> |
| | | <image class="icon" src="../../icon/home.png"></image> |
| | | <form> |
| | | <view class="div"> |
| | | <image class="icon1" src="../../icon/用户.png"></image> |
| | | <input bindinput="getName" class="weui-input" name="input" placeholder="请输入姓名" /> |
| | | <input bindinput="getName" class="weui-input" style="{{viewData.style}}" name="input" placeholder="请输入姓名" /> |
| | | </view> |
| | | <view class="div1"> |
| | | <image class="icon1" src="../../icon/身份证.png"></image> |
| | | <input bindinput="getIdcard" class="weui-input" name="input" placeholder="请输入身份证" /> |
| | | <input bindinput="getIdcard" class="weui-input" style="{{viewData.styleId}}" name="input" placeholder="请输入身份证" /> |
| | | </view> |
| | | <view class="div1"> |
| | | <image class="icon1" src="../../icon/照片.png"></image> |
| | |
| | | </view> |
| | | </form> |
| | | </view> |
| | | <button class="button1" bindtap="submit">提 交</button> |
| | | <view class="foot"> |
| | | <button class="button1" bindtap="submit">提 交</button> |
| | | </view> |
| | | |
| | | </view> |
| | |
| | | .weui-input{ |
| | | float: right; |
| | | margin-top: 3%; |
| | | color: var(--color); |
| | | /* margin-right:10% ; */ |
| | | width: 90%; |
| | | width: 83%; |
| | | } |
| | | .button{ |
| | | float: right; |
| | |
| | | float: right; |
| | | margin-top: 2%; |
| | | } |
| | | .foot{ |
| | | position: absolute; |
| | | bottom: 1rem; |
| | | padding: 0 1rem; |
| | | width: -webkit-fill-available; |
| | | } |
| | | .button1{ |
| | | font-weight: normal; |
| | | background-color:#6699ff; |
| | | color: #ffffff; |
| | | margin-top: 50%; |
| | | |
| | | } |
| | | /* .van-toast__text{ |
| | | white-space: nowrap; |
| | | } |
| | | .van-transition{ |
| | | width: auto; |
| | | } */ |
| | |
| | | <image style="width:100%;" class="indexImage" src="../../../image/test3.jpg"></image> |
| | | <!-- <text class="font-name">青阳经侦</text> --> |
| | | </view> |
| | | <van-empty class="empty" description="暂无数据" wx:if="{{causeList.length === 0}}"> |
| | | |
| | | </van-empty> |
| | | <view class="content" style="width:100%;"> |
| | | |
| | | <view class="lists" wx:for="{{causeList}}" wx:key="id"> |
| | | <swiper indicator-dots autoplay wx:if="{{item.photoStr!=null}}" current="{{swcurrent}}"> |
| | | <block wx:for="{{item.photoStr}}" wx:for-item="i" wx:for-index="indexs" wx:key="indexs"> |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | <view class="icon"> |
| | | <van-empty class="empty" description="暂无数据" wx:if="{{reportList.length === 0}}"> |
| | | |
| | | </van-empty> |
| | | <view wx:for="{{reportList}}" wx:key="id"> |
| | | <view class="conter" id="{{item.id}}" bindtap="getDetail"> |
| | | <view class="inGroup" wx:if="{{item.isInGroup==1}}">已进群</view> |