| | |
| | | "pages/user/pubulicty/index", |
| | | "pages/user/myself/index", |
| | | "pages/user/report/index", |
| | | "pages/user/announcement/index", |
| | | "pages/user/announcement/announcelist/index", |
| | | "pages/user/report/submitReport/index", |
| | | "pages/user/report/detail/index", |
| | | "pages/user/myself/detail/index", |
| | |
| | | "pages/user/group/index", |
| | | "pages/user/group/message/index", |
| | | "pages/user/group/message/publicty/index" |
| | | |
| | | ], |
| | | "usingComponents": { |
| | | "van-button": "@vant/weapp/button/index", |
| | |
| | | "van-dialog": "@vant/weapp/dialog/index", |
| | | "van-swipe-cell": "@vant/weapp/swipe-cell/index", |
| | | "van-action-sheet": "@vant/weapp/action-sheet/index" |
| | | |
| | | }, |
| | | "window": { |
| | | "backgroundTextStyle": "light", |
| | | "navigationBarBackgroundColor": "#fff", |
| | | "navigationBarTitleText": "青羊公安经侦大队", |
| | | "navigationBarTitleText": "青羊经侦数据应用服务平台", |
| | | "navigationBarTextStyle": "black" |
| | | }, |
| | | "tabBar": { |
| | | |
| | | "list": [{ |
| | | |
| | | "pagePath": "pages/user/index", |
| | | |
| | | "text": "首页", |
| | | |
| | | "iconPath": "/image/home.png", |
| | | |
| | | "selectedIconPath": "/image/home_art.png" |
| | | |
| | | },{ |
| | | |
| | | "pagePath": "pages/user/group/index", |
| | | |
| | | "text": "案件咨询", |
| | | |
| | | "iconPath": "/image/center.png", |
| | | |
| | | "selectedIconPath": "/image/center_art.png" |
| | | |
| | | },{ |
| | | |
| | | "pagePath": "pages/manager/myself/index", |
| | | |
| | | "text": "我的", |
| | | |
| | | "iconPath": "/image/user.png", |
| | | |
| | | "selectedIconPath": "/image/user_art.png" |
| | | |
| | | }] |
| | | |
| | | }, |
| | | "list": [ |
| | | { |
| | | "pagePath": "pages/user/index", |
| | | "text": "首页", |
| | | "iconPath": "/image/home.png", |
| | | "selectedIconPath": "/image/home_art.png" |
| | | }, |
| | | { |
| | | "pagePath": "pages/user/group/index", |
| | | "text": "案件咨询", |
| | | "iconPath": "/image/center.png", |
| | | "selectedIconPath": "/image/center_art.png" |
| | | }, |
| | | { |
| | | "pagePath": "pages/manager/myself/index", |
| | | "text": "我的", |
| | | "iconPath": "/image/user.png", |
| | | "selectedIconPath": "/image/user_art.png" |
| | | } |
| | | ] |
| | | }, |
| | | "sitemapLocation": "sitemap.json" |
| | | } |
| | |
| | | // app.ts |
| | | App({ |
| | | globalData: { |
| | | // url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz', |
| | | url:'http://192.168.3.220:8080', |
| | | url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz', |
| | | // url:'http://192.168.3.220:8080', |
| | | // url:'http://221.237.182.28:8443/api', |
| | | imageUrl:'https://qyqjzdd.cdqingyang.gov.cn/minio' |
| | | // imageUrl:'http://192.168.3.220:8080/minio' |
| | |
| | | wx.setStorageSync('time', 'time') |
| | | } catch (e) { } |
| | | // wx.setStorageSync('time','time') |
| | | this.setData({ |
| | | isInput: 2 |
| | | }) |
| | | // this.setData({ |
| | | // isInput: 2 |
| | | // }) |
| | | |
| | | |
| | | |
| | |
| | | success: (res) => { |
| | | console.log(res); |
| | | wx.reLaunch({ |
| | | url: '../../../manager/index' |
| | | url: '/pages/user/index' |
| | | }) |
| | | } |
| | | }) |
| | |
| | | { |
| | | "usingComponents": {}, |
| | | "navigationBarTitleText": "报案审核" |
| | | "navigationBarTitleText": "登记审核" |
| | | } |
| New file |
| | |
| | | // pages/user/announcement/1.ts |
| | | Page({ |
| | | |
| | | /** |
| | | * 页面的初始数据 |
| | | */ |
| | | data: { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面隐藏 |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面卸载 |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| New file |
| | |
| | | <!--pages/user/announcement/1.wxml--> |
| | | <text>pages/user/announcement/1.wxml</text> |
| New file |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
| New file |
| | |
| | | // pages/user/announcement/announcelist/index.ts |
| | | const userGroups = getApp() |
| | | Page({ |
| | | |
| | | /** |
| | | * 页面的初始数据 |
| | | */ |
| | | data: { |
| | | id:'', |
| | | groupList:{} |
| | | }, |
| | | getList(){ |
| | | wx.request( |
| | | { |
| | | url: userGroups.globalData.url + "/policePublicity/"+this.data.id, |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(res) |
| | | res.data.data.media = userGroups.globalData.imageUrl+'/img/'+ res.data.data.media |
| | | this.setData({ |
| | | groupList: res.data.data |
| | | }) |
| | | console.log(this.data.groupList); |
| | | |
| | | } |
| | | }) |
| | | }, |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(e) { |
| | | console.log(e); |
| | | this.setData({ |
| | | id:e.id |
| | | }) |
| | | this.getList() |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面初次渲染完成 |
| | | */ |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面隐藏 |
| | | */ |
| | | onHide() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面卸载 |
| | | */ |
| | | onUnload() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面上拉触底事件的处理函数 |
| | | */ |
| | | onReachBottom() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 用户点击右上角分享 |
| | | */ |
| | | onShareAppMessage() { |
| | | |
| | | } |
| | | }) |
| New file |
| | |
| | | <view> |
| | | <view class="t-title"> |
| | | <p>{{groupList.title}}</p> |
| | | </view> |
| | | <view class="t-time"> |
| | | {{groupList.ctime}} |
| | | </view> |
| | | <view> |
| | | <van-image width="100%" height="10rem" fit="widthFix" src="{{groupList.media}}" /> |
| | | |
| | | </view> |
| | | <view class="t-text"> |
| | | {{groupList.text}} |
| | | </view> |
| | | </view> |
| New file |
| | |
| | | /* pages/user/announcement/announcelist/index.wxss */ |
| | | .t-title{ |
| | | text-align: center; |
| | | font-size: 20px; |
| | | font-weight: 900; |
| | | } |
| | | .t-time{ |
| | | text-align: center; |
| | | } |
| | | .t-text{ |
| | | padding-bottom: 1.5rem; |
| | | } |
| New file |
| | |
| | | { |
| | | "usingComponents": {} |
| | | } |
| New file |
| | |
| | | // index.ts |
| | | // 获取应用实例 |
| | | const userGroup = getApp() |
| | | |
| | | Page({ |
| | | data: { |
| | | groupList: [] |
| | | }, |
| | | toHome() { |
| | | wx.navigateBack() |
| | | }, |
| | | onTabItemTap() { |
| | | |
| | | this.getmessList() |
| | | }, |
| | | openGroup(e) { |
| | | console.log(e); |
| | | |
| | | wx.navigateTo({ |
| | | url: '/pages/user/announcement/announcelist/index?id=' + e.currentTarget.id |
| | | // url: '../user/report/index' |
| | | // url: "../../manager/group/message/index?id=" + e.currentTarget.id |
| | | }) |
| | | }, |
| | | getmessList() { |
| | | wx.request( |
| | | { |
| | | url: userGroup.globalData.url + "/wx/policeAnnouncement/list", |
| | | method: "GET", |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | console.log(res) |
| | | this.setData({ |
| | | groupList: res.data.data |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | onLoad() { |
| | | this.getmessList() |
| | | } |
| | | }) |
| New file |
| | |
| | | <!--index.wxml--> |
| | | <view> |
| | | <view class="icon"> |
| | | <view wx:for="{{groupList}}" wx:key="index"> |
| | | <view class="conter" data-rptId="{{item.reportId}}" data-ban="{{item.ban}}" id="{{item.id}}" bindtap="openGroup"> |
| | | <view class="conter-left"> |
| | | <image class="icon1" src="../../../image/laba.jpeg"></image> |
| | | <view> |
| | | <view class="font-name"> {{item.title}} </view> |
| | | <!-- <view wx:if="{{item.text!=0&&item.text!=null}}" class="count">{{item.text}}</view> --> |
| | | <view wx:if="{{item.text!=''&&item.text!=null}}" class="font-qita">{{item.text}}</view> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <view wx:if="{{item.ctime!=''&&item.ctime!=null}}" class="font-wenzi">{{item.ctime}}</view> |
| | | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <van-empty class="empty" description="暂无警方公告" wx:if="{{groupList.length === 0}}"> |
| | | <!-- <van-button round type="info" size="small" custom-class ="bottom-button" bind:click="toHome">回到首页</van-button> --> |
| | | </van-empty> |
| | | </view> |
| New file |
| | |
| | | /**index.wxss**/ |
| | | .font-wenzi { |
| | | font-size: 13px; |
| | | color: rgba(0, 0, 0, 0.4); |
| | | } |
| | | |
| | | .font-name { |
| | | font-size: 14px; |
| | | |
| | | } |
| | | |
| | | .font-qita { |
| | | font-size: 13px; |
| | | text-overflow: ellipsis; |
| | | overflow: hidden; |
| | | white-space: nowrap; |
| | | width: 6rem; |
| | | } |
| | | |
| | | .conter { |
| | | height: 3rem; |
| | | display: flex; |
| | | align-items: center; |
| | | padding: 0 1rem; |
| | | justify-content: space-between; |
| | | border-bottom: 1px solid rgba(0, 0, 0, 0.1); |
| | | } |
| | | .conter-left{ |
| | | display: flex; |
| | | flex: 1; |
| | | align-items: center; |
| | | } |
| | | .icon1 { |
| | | width: 35px; |
| | | height: 35px; |
| | | |
| | | } |
| | | |
| | | .count { |
| | | 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%; |
| | | } |
| | | |
| | | .empty .bottom-button{ |
| | | width: 8rem; |
| | | } |
| | |
| | | |
| | | Page({ |
| | | data: { |
| | | videoheight:'', |
| | | autoplay:true, |
| | | role:0, |
| | | videoheight: '', |
| | | autoplay: true, |
| | | role: 0, |
| | | swcurrent: 0, |
| | | isShow: false, |
| | | userInfo: {}, |
| | |
| | | url: '../logs/logs', |
| | | }) |
| | | }, |
| | | resizeVideo(e){ |
| | | resizeVideo(e) { |
| | | console.log(e); |
| | | this.setData({ |
| | | videoheight:e.detail.height |
| | | videoheight: e.detail.height |
| | | }) |
| | | }, |
| | | |
| | | onLoad() { |
| | | |
| | | |
| | | wx.request({ |
| | | url: user.globalData.url+"/wx/login", |
| | | url: user.globalData.url + "/wx/login", |
| | | data: { |
| | | "phone": wx.getStorageSync('phone'), |
| | | }, |
| | |
| | | wx.setStorageSync('token', res.data.data.token) |
| | | wx.setStorageSync('role', res.data.data.role) |
| | | wx.setStorageSync('id', res.data.data.id) |
| | | wx.setStorageSync('card',res.data.data.time) |
| | | wx.setStorageSync('card', res.data.data.time) |
| | | |
| | | wx.request( |
| | | { |
| | |
| | | header: { 'token': wx.getStorageSync('token') }, |
| | | success: (res) => { |
| | | this.setData({ |
| | | role:wx.getStorageSync('role') |
| | | role: wx.getStorageSync('role') |
| | | }) |
| | | |
| | | |
| | | res.data.data.map(i => { |
| | | let imgarr=[] |
| | | let imgarr = [] |
| | | if (i.photoStr != null) { |
| | | |
| | | |
| | | i.photoStr = i.photoStr.split(",").map(i => user.globalData.imageUrl + "/img/" + i), |
| | | this.data.images = i.photoStr |
| | | i.photoStr.map(j=>{ |
| | | let type=j.substring(j.lastIndexOf(".")+1) |
| | | i.photoStr.map(j => { |
| | | let type = j.substring(j.lastIndexOf(".") + 1) |
| | | |
| | | |
| | | let obj={ |
| | | url: j, |
| | | type:'png' |
| | | } |
| | | if (type=='mp4') { |
| | | obj.type = 'mp4' |
| | | }else{ |
| | | obj.type = 'png' |
| | | } |
| | | imgarr.push(obj) |
| | | }) |
| | | i.imagarr=imgarr |
| | | |
| | | let obj = { |
| | | url: j, |
| | | type: 'png' |
| | | } |
| | | if (type == 'mp4') { |
| | | obj.type = 'mp4' |
| | | } else { |
| | | obj.type = 'png' |
| | | } |
| | | imgarr.push(obj) |
| | | }) |
| | | i.imagarr = imgarr |
| | | } |
| | | |
| | | i.releaseTime = i.releaseTime.replace(/-/g,"/") |
| | | i.releaseTime = i.releaseTime.replace(/-/g, "/") |
| | | }) |
| | | this.setData({ |
| | | causeList: res.data.data, |
| | | }) |
| | | console.log(this.data.causeList); |
| | | |
| | | |
| | | console.log(this.data.causeList); |
| | | |
| | | |
| | | } |
| | | }) |
| | | }}) |
| | | } |
| | | }) |
| | | if (wx.getStorageSync('info') == '') { |
| | | wx.redirectTo({ |
| | | url: "pages/user/index" |
| | | }) |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | }, |
| | | videoplay(e){ |
| | | videoplay(e) { |
| | | console.log(e); |
| | | |
| | | |
| | | this.setData({ |
| | | autoplay:false |
| | | autoplay: false |
| | | }) |
| | | }, |
| | | toDetailedInformation(){ |
| | | toDetailedInformation() { |
| | | console.log('报案详情'); |
| | | wx.navigateTo({ |
| | | url: '/pages/manager/report/index' |
| | | }) |
| | | url: '/pages/manager/report/index' |
| | | }) |
| | | }, |
| | | toManage(){ |
| | | toManage() { |
| | | console.log('案件管理'); |
| | | wx.navigateTo({ |
| | | url: '/pages/manager/cause/index' |
| | | }) |
| | | wx.navigateTo({ |
| | | url: '/pages/manager/cause/index' |
| | | }) |
| | | }, |
| | | getReport() { |
| | | wx.navigateTo({ |
| | | url: '../user/report/index' |
| | | }) |
| | | }, |
| | | getamoter() { |
| | | wx.navigateTo({ |
| | | url: '../user/announcement/index' |
| | | }) |
| | | }, |
| | | getPublicty() { |
| | | console.log("publicty") |
| | | wx.navigateTo({ |
| | |
| | | <image class="icon" src="../icon/3_xiaji.png"></image> |
| | | <text class="font-wenzi">个人中心</text> |
| | | </view> --> |
| | | <view class="box2" bindtap="getReport"> |
| | | <view class="box2 box-t" bindtap="getReport"> |
| | | <text class="font-wenzi">受损人员信息登记</text> |
| | | </view> |
| | | <view class="box2 box1 box-t" bindtap="getamoter"> |
| | | <text class="font-wenzi">警方公告</text> |
| | | </view> |
| | | <view wx:if="{{role==1}}" class="box2 box3" bindtap="toDetailedInformation"> |
| | | <text class="font-wenzi">报案详情</text> |
| | | <text class="font-wenzi">登记审核</text> |
| | | </view> |
| | | <view wx:if="{{role==1}}" class="box2 box4" bindtap="toManage"> |
| | | <text class="font-wenzi">案件管理</text> |
| | |
| | | .box-title { |
| | | /* position: fixed; |
| | | top: 2rem; */ |
| | | height: 4rem; |
| | | /* height: 10rem; */ |
| | | display: flex; |
| | | padding: 0.5rem 0.5rem; |
| | | justify-content: space-between; |
| | | flex-wrap: wrap; |
| | | |
| | | } |
| | | .box-t{ |
| | | margin-bottom: 1rem; |
| | | } |
| | | |
| | | .box1 { |
| | | display: inline-grid; |
| | | align-items: center; |
| | | justify-content: center; |
| | | float: left; |
| | | /* margin-top: 50%; */ |
| | | /* margin-left: -5%; */ |
| | | /* margin-right: 15px; */ |
| | | height: 70px; |
| | | width: 100px; |
| | | /* border: 1px solid rgba(0,0,0,0.2); */ |
| | | } |
| | | |
| | | .box2 { |
| | | flex: 1; |
| | | align-items: center; |
| | | width: 10rem; |
| | | height: 4rem; |
| | | /* flex: 1; */ |
| | | /* align-items: center; */ |
| | | /* border: 1px solid #CCC; */ |
| | | border-radius: 1rem; |
| | | background: -webkit-linear-gradient(left,#C0DEFE,#BFDEFD,#D9ECFB,#C0DEFE); |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | } |
| | | |
| | | .box1 { |
| | | background: -webkit-linear-gradient(left,#FCCBCB,#FFE0E0,#FFF4F4,#FCCACA); |
| | | } |
| | | .box3 { |
| | | margin: 0 1rem; |
| | | /* margin: 0 1rem; */ |
| | | background: -webkit-linear-gradient(left,#D8EFDE,#F1FFF0,#D8EFDE,#F1FFF0); |
| | | } |
| | | |
| | |
| | | <swiper indicator-dots autoplay="{{autoplay}}" wx:if="{{item.photoStr!=null}}" current="{{swcurrent}}"> |
| | | <block wx:for="{{item.imagarr}}" wx:for-item="i" wx:for-index="indexs" wx:key="indexs"> |
| | | <swiper-item > |
| | | <video class="swiper-video" bindplay="videoplay" wx:if="{{i.type=='mp4'}}" object-fit='fill' data-pic="{{i}}" id="myVideo+indexs" src="{{i.url}}"controls ></video> |
| | | <video class="swiper-video" bindplay="videoplay" wx:if="{{i.type=='mp4'}}" object-fit='contain' data-pic="{{i}}" id="myVideo+indexs" src="{{i.url}}"controls ></video> |
| | | <image lazy-load="true" wx:else src="{{i.url}}" mode="widthFix" class="top-img"/> |
| | | </swiper-item> |
| | | </block> |
| | |
| | | <van-field bind:input="getLocation" required value="{{ Location }}" label="现住址" placeholder="请输入现住址" /> |
| | | <van-field bind:input="getworkingLocation" required value="{{ workingLocation }}" label="工作单位" placeholder="请输入工作单位" /> |
| | | <view class="cause"> |
| | | <view class="font-wenzi-cause"> <span class="list-sure">*</span>描述</view> |
| | | <view class="font-wenzi-cause"> <span class="list-sure">*</span>按事件</view> |
| | | <picker bindchange="pickCause" class="content" value="{{causeIndex}}" range="{{causeList}}" range-key="{{'name'}}" mode="selector"> |
| | | <view class="picker-cause"> |
| | | {{causeIndex==null?'请选择':causeList[causeIndex].name}}> |