Merge branch 'master' of http://42.193.1.25:9521/r/qyjz_applet
| | |
| | | // app.ts |
| | | App({ |
| | | globalData: { |
| | | // url:'https://qyqgawx.cdqingyang.gov.cn/qyjz', |
| | | url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz', |
| | | // url:'https://qyqjzdd.cdqingyang.gov.cn/qyjz', |
| | | url:'http://192.168.3.220:8080', |
| | | // url:'http://221.237.182.28:8443/api', |
| | | imageUrl:'http://qyqjzdd.cdqingyang.gov.cn/minio' |
| | | }, |
| | |
| | | groupList: [] |
| | | }, |
| | | toHome(){ |
| | | wx.navigateTo({url:"../../user/index"}) |
| | | wx.navigateBack() |
| | | }, |
| | | openGroup(e) { |
| | | console.log(e) |
| | | wx.navigateTo({ |
| | | url: "../../user/group/message/index?id=" + e.currentTarget.id + "&&ban=" + e.currentTarget.dataset.ban + "&&reportId=" + e.currentTarget.dataset.rptid |
| | | }) |
| | |
| | | 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') |
| | | wx.request( |
| | | { |
| | |
| | | groupList: res.data.data |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | } |
| | | }) |
| | |
| | | this.setData({ |
| | | causeList:res.data.data |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | }, |
| | |
| | | wx.navigateTo({ |
| | | url: '../user/report/index' |
| | | }) |
| | | } |
| | | ,getPublicty(){ |
| | | }, |
| | | getPublicty() { |
| | | console.log("publicty") |
| | | wx.navigateTo({ |
| | | url:'../user/pubulicty/index' |
| | | }) |
| | | |
| | | } |
| | | ,getGroup(){ |
| | | }, |
| | | getGroup() { |
| | | console.log("group") |
| | | wx.navigateTo({ |
| | | url:'../user/group/index' |
| | | })} |
| | | ,getCause(){ |
| | | }) |
| | | }, |
| | | getCause() { |
| | | console.log("cause") |
| | | wx.navigateTo({ |
| | | url:'../manager/cause/index' |
| | | }) |
| | | } |
| | | ,getAudi(){ |
| | | }, |
| | | getAudi() { |
| | | console.log("myself") |
| | | wx.navigateTo({ |
| | | url:'../user/myself/index' |
| | | }) |
| | | } |
| | | ,more(){ |
| | | }, |
| | | more() { |
| | | console.log("myself") |
| | | wx.navigateTo({ |
| | | url:'../user/pubulicty/index' |
| | |
| | | <text class="font-wenzi">公共宣传</text> |
| | | </view> |
| | | <view class="box1" bindtap="getReport"> |
| | | <image class="icon" src="../icon/9-报案管理.png"></image> |
| | | <image class="icon" src="../icon/9_baoanguangli.png"></image> |
| | | <text class="font-wenzi">我要报案</text> |
| | | </view> |
| | | <view class="box1" bindtap="getAudi"> |
| | |
| | | </view> |
| | | <!-- <view class="container3"> |
| | | <view class="box3" bindtap="getReport"> |
| | | <image class="icon" src="../icon/9-报案管理.png"></image> |
| | | <image class="icon" src="../icon/9_baoanguangli.png"></image> |
| | | <text class="font-wenzi">我要报案</text> |
| | | </view> |
| | | <view class="box4" bindtap="getAudi"> |
| | |
| | | this.setData({ |
| | | causeList:res.data.data |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | } |
| | |
| | | <!--index.wxml--> |
| | | <view class="container"> |
| | | <view class="imageView"> |
| | | <image style="width:100%;" class="indexImage" src="../../../image/5f9c1ee836fbee333ca3a0088e53d2f.png"></image> |
| | | <image style="width:100%;" class="indexImage" src="../../../image/test3.jpg"></image> |
| | | <!-- <text class="font-name">青阳经侦</text> --> |
| | | </view> |
| | | </view> |
| | | <view class="content"> |
| | | <view class="content" style="width:100%;"> |
| | | <view class="lists" wx:for="{{causeList}}" wx:key="id"> |
| | | <view class="item2">{{item.releaseTime}}</view> |
| | | <view class="item">{{item.publicityTitle}}</view> |
| | | <view class="item3">{{item.text}}</view> |
| | | <view class="lists-top"> |
| | | <view class="lists-top-title">{{item.publicityTitle}}</view> |
| | | <view class="lists-top-time">{{item.releaseTime}}</view> |
| | | </view> |
| | | <view class="lists-content">{{item.text}}</view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | |
| | | .imageView{ |
| | | position:absolute; |
| | | top: 0; |
| | | left: 0; |
| | | right: 0; |
| | | width: 100%; |
| | | } |
| | | |
| | | .container{ |
| | | width: 100%; |
| | | } |
| | | |
| | | .content{ |
| | | margin-top: 12%; |
| | | margin-top: 1rem; |
| | | } |
| | | |
| | | .lists{ |
| | | /* margin-top: 50% ; */ |
| | | margin-top: 0.5rem; |
| | | border-bottom: 1px solid rgba(0,0,0,0.1); |
| | | width: 100%; |
| | | margin-left: 2%; |
| | | } |
| | | .item{ |
| | | font-size: 14px; |
| | | margin-bottom: 1%; |
| | | |
| | | .lists .lists-top { |
| | | display: flex; |
| | | justify-content: space-between; |
| | | } |
| | | .item2{ |
| | | |
| | | .lists .lists-top .lists-top-time { |
| | | font-size: 12px; |
| | | float: right; |
| | | margin-right: 40%; |
| | | margin-bottom: 1%; |
| | | color:rgba(0,0,0,0.5); |
| | | margin-right: 0.5rem; |
| | | } |
| | | .item3{ |
| | | |
| | | .lists .lists-top .lists-top-title { |
| | | font-size: 14px; |
| | | margin-right: 40%; |
| | | font-weight: bold; |
| | | margin-left: 0.5rem; |
| | | } |
| | | |
| | | .lists .lists-content { |
| | | font-size: 11px; |
| | | margin-bottom: 2%; |
| | | margin: 0.5rem; |
| | | margin-bottom: 0.5rem; |
| | | } |