Browse Source

政策导航和了解锦水改版为一键服务和解码锦水

master
ZhaoTongYao 5 years ago
parent
commit
06b3510bba
  1. 13
      app.json
  2. 10
      pages/indexNew/indexNew.js
  3. 8
      pages/indexNew/indexNew.wxml
  4. 8
      pages/mine/mine.wxml
  5. 15
      project.config.json
  6. BIN
      subpages/associationNew/images/new_topic.png
  7. 2
      subpages/associationNew/pages/eventlist/eventlist.js
  8. 4
      subpages/associationNew/pages/eventlist/eventlist.wxml
  9. 2
      subpages/associationNew/pages/eventlist/eventlist.wxss
  10. BIN
      subpages/home/images/phone.png
  11. 55
      subpages/home/pages/noticeDetail/noticeDetail.js
  12. 2
      subpages/home/pages/noticeDetail/noticeDetail.json
  13. 13
      subpages/home/pages/noticeDetail/noticeDetail.wxml
  14. 51
      subpages/home/pages/noticeDetail/noticeDetail.wxss
  15. 8
      subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.js
  16. 3
      subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.json
  17. 3
      subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.wxml
  18. 30
      subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.wxss
  19. 0
      subpages/oneKeyService/images/archivesbk.png
  20. BIN
      subpages/oneKeyService/images/ic_zhengce.png
  21. BIN
      subpages/oneKeyService/images/jsda.png
  22. BIN
      subpages/oneKeyService/images/jswd.png
  23. BIN
      subpages/oneKeyService/images/jsyh.png
  24. BIN
      subpages/oneKeyService/images/jsyx.png
  25. BIN
      subpages/oneKeyService/images/phone.png
  26. BIN
      subpages/oneKeyService/images/right.png
  27. BIN
      subpages/oneKeyService/images/search.png
  28. BIN
      subpages/oneKeyService/images/test.jpg
  29. BIN
      subpages/oneKeyService/images/wenjian.png
  30. 224
      subpages/oneKeyService/pages/archives/archives.js
  31. 0
      subpages/oneKeyService/pages/archives/archives.json
  32. 60
      subpages/oneKeyService/pages/archives/archives.wxml
  33. 0
      subpages/oneKeyService/pages/archives/archives.wxss
  34. 2
      subpages/oneKeyService/pages/archivesDept/archivesDept.js
  35. 0
      subpages/oneKeyService/pages/archivesDept/archivesDept.json
  36. 4
      subpages/oneKeyService/pages/archivesDept/archivesDept.wxml
  37. 0
      subpages/oneKeyService/pages/archivesDept/archivesDept.wxss
  38. 0
      subpages/oneKeyService/pages/archivesDetail/archivesDetail.js
  39. 0
      subpages/oneKeyService/pages/archivesDetail/archivesDetail.json
  40. 2
      subpages/oneKeyService/pages/archivesDetail/archivesDetail.wxml
  41. 0
      subpages/oneKeyService/pages/archivesDetail/archivesDetail.wxss
  42. 127
      subpages/oneKeyService/pages/directTo/directTo.js
  43. 7
      subpages/oneKeyService/pages/directTo/directTo.json
  44. 24
      subpages/oneKeyService/pages/directTo/directTo.wxml
  45. 42
      subpages/oneKeyService/pages/directTo/directTo.wxss
  46. BIN
      subpages/oneKeyService/pages/images/ic_yueduliang.png
  47. 64
      subpages/oneKeyService/pages/index/index.js
  48. 3
      subpages/oneKeyService/pages/index/index.json
  49. 13
      subpages/oneKeyService/pages/index/index.wxml
  50. 52
      subpages/oneKeyService/pages/index/index.wxss
  51. 107
      subpages/oneKeyService/pages/noticeDetail/noticeDetail.js
  52. 4
      subpages/oneKeyService/pages/noticeDetail/noticeDetail.json
  53. 25
      subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxml
  54. 130
      subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxss
  55. 110
      subpages/oneKeyService/pages/policyList/policyList.js
  56. 7
      subpages/oneKeyService/pages/policyList/policyList.json
  57. 25
      subpages/oneKeyService/pages/policyList/policyList.wxml
  58. 95
      subpages/oneKeyService/pages/policyList/policyList.wxss
  59. 42
      subpages/oneKeyService/pages/search/search.js
  60. 5
      subpages/oneKeyService/pages/search/search.json
  61. 22
      subpages/oneKeyService/pages/search/search.wxml
  62. 96
      subpages/oneKeyService/pages/search/search.wxss
  63. 146
      subpages/oneKeyService/pages/warning/warning.js
  64. 7
      subpages/oneKeyService/pages/warning/warning.json
  65. 44
      subpages/oneKeyService/pages/warning/warning.wxml
  66. 169
      subpages/oneKeyService/pages/warning/warning.wxss
  67. 22
      subpages/understandJs/pages/index/index.js
  68. 2
      subpages/understandJs/pages/index/index.json
  69. 31
      subpages/understandJs/pages/noticeDetail/noticeDetail.js
  70. 2
      subpages/understandJs/pages/noticeDetail/noticeDetail.json
  71. 6
      subpages/understandJs/pages/noticeDetail/noticeDetail.wxml
  72. 41
      subpages/understandJs/pages/noticeDetail/noticeDetail.wxss
  73. 122
      subpages/understandJs/pages/sclerotia/sclerotia.js
  74. 31
      subpages/understandJs/pages/sclerotia/sclerotia.wxml
  75. 110
      subpages/understandJs/pages/sclerotia/sclerotia.wxss
  76. 2
      utils/config.js
  77. 14
      utils/understandJs.js

13
app.json

@ -120,10 +120,21 @@
"pages/impression/impression",
"pages/delicious/delicious",
"pages/sclerotia/sclerotia",
"pages/noticeDetail/noticeDetail"
]
},
{
"root": "subpages/oneKeyService",
"pages": [
"pages/index/index",
"pages/directTo/directTo",
"pages/archives/archives",
"pages/archivesDept/archivesDept",
"pages/archivesDetail/archivesDetail",
"pages/noticeDetail/noticeDetail"
"pages/warning/warning",
"pages/policyList/policyList",
"pages/noticeDetail/noticeDetail",
"pages/search/search"
]
}
],

10
pages/indexNew/indexNew.js

@ -225,8 +225,8 @@ Page({
getNewsList: function() {
let that = this
let para = {
pageIndex: 1, //this.data.pageNo,
pageSize: 5, //this.data.pageSize,
pageIndex: 1,
pageSize: 5,
timestamp: getTimestamp()
}
api.newsList(para).then(function(res) {
@ -475,6 +475,12 @@ Page({
currentIndex: e.detail.current
})
},
//跳转到 一键服务页面(新) 2020.07.15
toOneKeyService () {
wx.navigateTo({
url: '/subpages/oneKeyService/pages/index/index'
})
},
// 点击-更多,跳转通知列表
moreNotice() {
wx.navigateTo({

8
pages/indexNew/indexNew.wxml

@ -129,16 +129,16 @@
<view class="grid-new-text">积分排名</view>
</view>
<view class="grid-new-item">
<button bindtap="moreNotice" class="grid-new-btn" form-type='submit' plain='true' hover-class="hover-btn">
<image src='https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/06/rBAB7161ChOAayOhAACQGnm1tII484.png'></image>
<button bindtap="toOneKeyService" class="grid-new-btn" form-type='submit' plain='true' hover-class="hover-btn">
<image src='https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/1E/rBAB718PtdqAInZyAACHmGFtc9E917.png'></image>
</button>
<view class="grid-new-text">政策导航</view>
<view class="grid-new-text">一键服务</view>
</view>
<view class="grid-new-item">
<button bindtap="toUnderstandJs" class="grid-new-btn" form-type='submit' plain='true' hover-class="hover-btn">
<image src='https://epdc-kongcun.elinkit.com.cn/epdcFile/M00/00/06/rBAB7161CkmAQ8ljAACCxDg25qk058.png'></image>
</button>
<view class="grid-new-text">解锦水</view>
<view class="grid-new-text">解锦水</view>
</view>
<view class="grid-new-item">
<button bindtap="toMine" class="grid-new-btn" form-type='submit' plain='true' hover-class="hover-btn">

8
pages/mine/mine.wxml

@ -62,10 +62,10 @@
<view class="issue-list" wx:if="{{selectedTabBar === 'issue'}}">
<block wx:if="{{issueList.length === 0 && preloadVisible}}">
<preload-issue-item wx:for="{{[1]}}" wx:key="{{index}}" wx:for-index="index"></preload-issue-item>
<preload-issue-item wx:for="{{[1]}}" wx:key="index" wx:for-index="index"></preload-issue-item>
</block>
<block wx:if="{{issueList.length > 0}}">
<issue-item wx:for="{{issueList}}" wx:key="{{item.id}}" wx:for-item="item" bind:toIssueDetail="toIssueDetail" issueObj="{{item}}">
<issue-item wx:for="{{issueList}}" wx:key="id" wx:for-item="item" bind:toIssueDetail="toIssueDetail" issueObj="{{item}}">
</issue-item>
</block>
<view class="issue-nodata" wx:if="{{issueList.length === 0 && !preloadVisible}}">
@ -80,10 +80,10 @@
<view class="project-list" wx:elif="{{selectedTabBar === 'project'}}">
<block wx:if="{{projectList.length === 0 && preloadVisible}}">
<preload-project-item wx:for="{{[1]}}" wx:key="{{index}}" wx:for-index="index"></preload-project-item>
<preload-project-item wx:for="{{[1]}}" wx:key="index" wx:for-index="index"></preload-project-item>
</block>
<block wx:if="{{projectList.length > 0}}">
<project-item wx:for="{{projectList}}" wx:for-item="item" wx:key="{{item.id}}" projectObj="{{item}}" bind:toProjectDetail="toProjectDetail" wx:for-index="index">
<project-item wx:for="{{projectList}}" wx:for-item="item" wx:key="id" projectObj="{{item}}" bind:toProjectDetail="toProjectDetail" wx:for-index="index">
</project-item>
</block>
<view class="project-nodata" wx:if="{{projectList.length === 0 && !preloadVisible}}">

15
project.config.json

@ -58,7 +58,7 @@
"list": []
},
"miniprogram": {
"current": 0,
"current": -1,
"list": [
{
"id": 0,
@ -115,6 +115,19 @@
"pathName": "subpages/understandJs/pages/archives/archives",
"query": "",
"scene": null
},
{
"id": 8,
"name": "搜索页面",
"pathName": "subpages/oneKeyService/pages/search/search",
"query": "",
"scene": null
},
{
"id": -1,
"name": "注册页面",
"pathName": "pages/toRegister/toRegister",
"scene": null
}
]
}

BIN
subpages/associationNew/images/new_topic.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

2
subpages/associationNew/pages/eventlist/eventlist.js

@ -38,7 +38,7 @@ Page({
partyGroupId: options.partyGroupId,
topicType: options.topicType,//0:事好儿鼓个掌 1:话对捧个场
infoCompleted: app.globalData.infoCompleted,
commentViewContent: options.topicType == 0 ? '鼓个掌' : '捧个场'
commentViewContent: '发个小看法' //options.topicType == 0 ? '鼓个掌' : '捧个场'
})
if (options.topicType == 0) {
wx.setNavigationBarTitle({

4
subpages/associationNew/pages/eventlist/eventlist.wxml

@ -66,8 +66,8 @@
<no-data isShow="{{nodata}}"></no-data>
<!-- 是否禁言 0:否 1:是 -->
<view wx:if="{{bannedFlag == '0'}}" class="addIssue" bindtap="navigateToAddTopic">
<image wx:if="{{topicType == '0'}}" src="../../images/story.png" />
<image wx:else src="../../images/speack.png" />
<image wx:if="{{topicType == '0'}}" src="../../images/new_topic.png" />
<image wx:else src="../../images/new_topic.png" />
</view>
<completeInfo-dialog completeInfoDialogVisible="{{completeInfoDialogVisible}}">

2
subpages/associationNew/pages/eventlist/eventlist.wxss

@ -120,7 +120,7 @@ page {
margin-right: 10rpx;
}
.attitude .all .give-data-s {
width: 145rpx;
width: 200rpx;
height: 55rpx;
background: linear-gradient(to right, #f2511b, #ee7a20);
border-radius: 27rpx;

BIN
subpages/home/images/phone.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

55
subpages/home/pages/noticeDetail/noticeDetail.js

@ -4,31 +4,64 @@ import { getTimestamp } from '../../../../utils/common'
Page({
data: {
noticeObj: {},
noticeObjContent: ""
noticeObjContent: "",
noticeCategory: '',
preloadVisible: true
},
onLoad (options) {
this.setData({
noticeCategory: options.code
})
this.getNoticeDetail(options.id)
this.browseNotice(options.id)
// this.browseNotice(options.id)
if (options.code == 'notice_navigation_hot'){
wx.setNavigationBarTitle({
title: '政策详情'
})
} else {
wx.setNavigationBarTitle({
title: '通知详情'
})
}
},
getNoticeDetail (id) {
let that = this
api.getNoticeDetail(id).then(res => {
that.setData({
noticeObj: res.data,
noticeObjContent: util.formatRichText(res.data.noticeContent)
noticeObjContent: util.formatRichText(res.data.noticeContent),
preloadVisible: false
})
}).catch(err => {
console.log(err)
})
},
browseNotice (id) {
let para = {
noticeId: id
}
api.browseNotice(para).then(res => {
}).catch(err => {
console.log(err)
mobile (e) {
wx.showModal({
title: '拨打电话',
content: `您确定拨打${e.currentTarget.dataset.mobile}`,
cancelColor: '#29B9A5',
confirmColor: '#29B9A5',
success: (res) => {
if (res.confirm) {
console.log('用户点击确定')
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.mobile
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
}
// browseNotice (id) {
// let para = {
// noticeId: id
// }
// api.browseNotice(para).then(res => {
// }).catch(err => {
// console.log(err)
// })
// }
})

2
subpages/home/pages/noticeDetail/noticeDetail.json

@ -1,5 +1,5 @@
{
"usingComponents": {
},
"navigationBarTitleText": "通知详情"
"navigationBarTitleText": ""
}

13
subpages/home/pages/noticeDetail/noticeDetail.wxml

@ -1,7 +1,12 @@
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
<view class="notice-detail">
<view class="selfContent">
<view class="detail-title">{{noticeObj.noticeTitle}}</view>
<view class="selfContent" wx:if="{{!preloadVisible}}">
<view class="detail-title">
<view>{{noticeObj.noticeTitle}}</view>
<view class="detail-title-img">
<image wx:if="{{noticeObj.mobile != '' && noticeCategory == 'notice_navigation_hot'}}" src="../../images/phone.png" data-mobile="{{noticeObj.mobile}}" bindtap="mobile"/>
</view>
</view>
<view class="detail-subtitle">
<view class="left">
<span>{{noticeObj.deptName}}</span>
@ -18,4 +23,8 @@
<rich-text space="nbsp" nodes="{{noticeObjContent}}"></rich-text>
</view>
</view>
<view class="preload" wx:else>
<view class="preload-title"></view>
<view class="preload-content"></view>
</view>
</view>

51
subpages/home/pages/noticeDetail/noticeDetail.wxss

@ -20,6 +20,16 @@
line-height: 68rpx;
color: #333333;
padding-top: 40rpx;
margin-bottom: 20rpx;
position: relative;
}
.detail-title-img {
text-align: right;
}
.detail-title image {
width: 176rpx;
height: 66rpx;
vertical-align: middle;
}
.detail-subtitle {
display: flex;
@ -73,4 +83,43 @@
.richContent{
word-break: break-all;
}
}
/* preload start */
.preload {
width: 100%;
background: #fff;
box-sizing: border-box;
border-radius: 16rpx;
padding: 0 24rpx;
overflow: hidden;
margin-bottom: 20rpx;
}
.preload-title {
width: 100%;
height: 80rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
.preload-content {
width: 100%;
height: 200rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
@keyframes loading {
0% {
background-position: 100% 50%
}
100% {
background-position: 0 50%
}
}
/* preload end */

8
subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.js

@ -0,0 +1,8 @@
Component({
data: {
},
methods: {
}
})

3
subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.json

@ -0,0 +1,3 @@
{
"component": true
}

3
subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.wxml

@ -0,0 +1,3 @@
<view class="preload-archives-detail">
<view class="detail-item" wx:for="{{[1,2,3,4,5,6]}}"></view>
</view>

30
subpages/oneKeyService/compontents/preLoadArchivesDetail/preLoadArchivesDetail.wxss

@ -0,0 +1,30 @@
.preload-archives-detail {
width: 100%;
background: #fff;
box-sizing: border-box;
border-radius: 16rpx;
padding: 0 24rpx;
overflow: hidden;
margin-bottom: 20rpx;
}
.preload-archives-detail .detail-item {
width: 100%;
height: 80rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
@keyframes loading {
0% {
background-position: 100% 50%
}
100% {
background-position: 0 50%
}
}

0
subpages/understandJs/images/archivesbk.png → subpages/oneKeyService/images/archivesbk.png

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 192 KiB

BIN
subpages/oneKeyService/images/ic_zhengce.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
subpages/oneKeyService/images/jsda.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
subpages/oneKeyService/images/jswd.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
subpages/oneKeyService/images/jsyh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
subpages/oneKeyService/images/jsyx.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
subpages/oneKeyService/images/phone.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
subpages/oneKeyService/images/right.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

BIN
subpages/oneKeyService/images/search.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
subpages/oneKeyService/images/test.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

BIN
subpages/oneKeyService/images/wenjian.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

224
subpages/understandJs/pages/archives/archives.js → subpages/oneKeyService/pages/archives/archives.js

@ -1,113 +1,113 @@
// subpages/understandJs/pages/archives/archives.js
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
searchContent: '',
pageIndex: 1,
pageSize: 10,
deptList: [],
nodata: false,
loadMoreType: 'none',
loadMoreVisible: false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.archivedepts()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
this.setData({
searchContent: ''
})
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.archivedepts()
}
},
bindInputValue (e) {
this.setData({
searchContent: e.detail.value
})
},
searchFile () {
console.log(this.data.searchContent)
if(!this.data.searchContent.length) {
wx.showToast({
title: '不能为空',
icon: 'loading',
duration: 2000
})
return;
}
let that = this
wx.navigateTo({
url: `../archivesDept/archivesDept?dept=锦水档案&deptId=&searchContent=${that.data.searchContent}`
})
},
archivedepts () {
const parmas = {
pageIndex:this.data.pageIndex,
pageSize:this.data.pageSize
}
api.archivedepts(parmas).then(res => {
console.log(res)
this.setData({
deptList: [...this.data.deptList,...res.data],
loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none',
loadMoreVisible: res.data.length === this.data.pageSize ? false : true
})
if (this.data.deptList.length == 0) {//没有值
this.setData({
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
}
}).catch(err => {
this.setData({
deptList: [],
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
console.log(err)
})
},
/**
* 跳转到档案归属部门
*/
navigateToDept (e) {
this.setData({
searchContent: ''
})
let that = this
wx.navigateTo({
url: `../archivesDept/archivesDept?dept=${e.currentTarget.dataset.dept}&deptId=${e.currentTarget.dataset.deptId}&searchContent=${that.data.searchContent}`
})
}
// subpages/understandJs/pages/archives/archives.js
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
searchContent: '',
pageIndex: 1,
pageSize: 10,
deptList: [],
nodata: false,
loadMoreType: 'none',
loadMoreVisible: false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.archivedepts()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
this.setData({
searchContent: ''
})
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.archivedepts()
}
},
bindInputValue (e) {
this.setData({
searchContent: e.detail.value
})
},
searchFile () {
console.log(this.data.searchContent)
if(!this.data.searchContent.length) {
wx.showToast({
title: '不能为空',
icon: 'loading',
duration: 2000
})
return;
}
let that = this
wx.navigateTo({
url: `../archivesDept/archivesDept?dept=锦水档案&deptId=&searchContent=${that.data.searchContent}`
})
},
archivedepts () {
const parmas = {
pageIndex:this.data.pageIndex,
pageSize:this.data.pageSize
}
api.archivedepts(parmas).then(res => {
console.log(res)
this.setData({
deptList: [...this.data.deptList,...res.data],
loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none',
loadMoreVisible: res.data.length === this.data.pageSize ? false : true
})
if (this.data.deptList.length == 0) {//没有值
this.setData({
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
}
}).catch(err => {
this.setData({
deptList: [],
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
console.log(err)
})
},
/**
* 跳转到档案归属部门
*/
navigateToDept (e) {
this.setData({
searchContent: ''
})
let that = this
wx.navigateTo({
url: `../archivesDept/archivesDept?dept=${e.currentTarget.dataset.dept}&deptId=${e.currentTarget.dataset.deptId}&searchContent=${that.data.searchContent}`
})
}
})

0
subpages/understandJs/pages/archives/archives.json → subpages/oneKeyService/pages/archives/archives.json

60
subpages/understandJs/pages/archives/archives.wxml → subpages/oneKeyService/pages/archives/archives.wxml

@ -1,30 +1,30 @@
<view class="top">
<image class="topbk" src="../../images/archivesbk.png"/>
<view class="search">
<view class="item-all">
<view class="item-left">
<image src="../../images/search.png"></image>
<input placeholder-class="placeholder-style" placeholder="输入档案关键字" bindinput="bindInputValue" value="{{searchContent}}"></input>
</view>
<button class="item-right" bindtap="searchFile" hover-class="none">搜索</button>
</view>
</view>
</view>
<view class="dept-list">
<view
wx:for="{{deptList}}"
wx:for-index="index"
wx:for-item="item"
wx:key="index"
class="list-item" bindtap="navigateToDept" data-dept-id="{{item.deptId}}" data-dept="{{item.dept}}">
<view class="list-name">{{item.dept}}</view>
<image src="../../images/right.png" class="list-arrow"></image>
</view>
</view>
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>
<view class="top">
<image class="topbk" src="../../images/archivesbk.png"/>
<view class="search">
<view class="item-all">
<view class="item-left">
<image src="../../images/search.png"></image>
<input placeholder-class="placeholder-style" placeholder="输入档案关键字" bindinput="bindInputValue" value="{{searchContent}}"></input>
</view>
<button class="item-right" bindtap="searchFile" hover-class="none">搜索</button>
</view>
</view>
</view>
<view class="dept-list">
<view
wx:for="{{deptList}}"
wx:for-index="index"
wx:for-item="item"
wx:key="index"
class="list-item" bindtap="navigateToDept" data-dept-id="{{item.deptId}}" data-dept="{{item.dept}}">
<view class="list-name">{{item.dept}}</view>
<image src="../../images/right.png" class="list-arrow"></image>
</view>
</view>
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>

0
subpages/understandJs/pages/archives/archives.wxss → subpages/oneKeyService/pages/archives/archives.wxss

2
subpages/understandJs/pages/archivesDept/archivesDept.js → subpages/oneKeyService/pages/archivesDept/archivesDept.js

@ -70,7 +70,7 @@ Page({
let reg = new RegExp(keywords,'g')
this.data.archivesList.forEach(item => {
item.title = item.title.replace(reg,'<span style="color:red">'+keywords+'</span>')
item.archivesNum = item.archivesNum.replace(reg,'<span style="color:red">'+keywords+'</span>')
// item.archivesNum = item.archivesNum.replace(reg,'<span style="color:red">'+keywords+'</span>')
})
this.setData({
archivesList: this.data.archivesList

0
subpages/understandJs/pages/archivesDept/archivesDept.json → subpages/oneKeyService/pages/archivesDept/archivesDept.json

4
subpages/understandJs/pages/archivesDept/archivesDept.wxml → subpages/oneKeyService/pages/archivesDept/archivesDept.wxml

@ -20,7 +20,7 @@
class="search-archives-item" bindtap="goToArchivesDetail" data-archive-id="{{item.id}}">
<view class="search-archives-id"><rich-text nodes="<div style='overflow:hidden;text-overflow:ellipsis;white-space:nowrap;'>档号:{{item.archivesNum}}</div>"></rich-text></view>
<view class="search-archives-line"></view>
<view class="search-archives-title"><rich-text nodes="题:{{item.title}}"></rich-text></view>
<view class="search-archives-title"><rich-text nodes="题:{{item.title}}"></rich-text></view>
<!-- <view >归档时间:{{item.archiveTime}}</view> -->
</view>
</view>
@ -32,7 +32,7 @@
wx:key="index"
class="archives-item" bindtap="goToArchivesDetail" data-archive-id="{{item.id}}">
<view class="archives-id"><rich-text nodes="<div style='overflow:hidden;text-overflow:ellipsis;white-space:nowrap;'>档号:{{item.archivesNum}}</div>"></rich-text></view>
<view class="archives-title"><rich-text nodes="题:{{item.title}}"></rich-text></view>
<view class="archives-title"><rich-text nodes="题:{{item.title}}"></rich-text></view>
<view class="archives-line"></view>
<!-- <view >归档时间:{{item.archiveTime}}</view> -->
</view>

0
subpages/understandJs/pages/archivesDept/archivesDept.wxss → subpages/oneKeyService/pages/archivesDept/archivesDept.wxss

0
subpages/understandJs/pages/archivesDetail/archivesDetail.js → subpages/oneKeyService/pages/archivesDetail/archivesDetail.js

0
subpages/understandJs/pages/archivesDetail/archivesDetail.json → subpages/oneKeyService/pages/archivesDetail/archivesDetail.json

2
subpages/understandJs/pages/archivesDetail/archivesDetail.wxml → subpages/oneKeyService/pages/archivesDetail/archivesDetail.wxml

@ -9,7 +9,7 @@
<view class="archive-line"></view>
<view class="archive-item">题名: {{archiveContent.title||'无'}}</view>
<view class="archive-line"></view>
<view class="archive-item">日期: {{filter.formatTime(archiveContent.archiveTime,'yyyyMMdd')||'无'}}</view>
<view class="archive-item">日期: {{archiveContent.archiveTime||'无'}}</view>
<view class="archive-line"></view>
<view class="archive-item">页数: {{archiveContent.pageSize||'无'}}</view>
<view class="archive-line"></view>

0
subpages/understandJs/pages/archivesDetail/archivesDetail.wxss → subpages/oneKeyService/pages/archivesDetail/archivesDetail.wxss

127
subpages/oneKeyService/pages/directTo/directTo.js

@ -0,0 +1,127 @@
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
pageIndex: 1,
pageSize: 10,
deptinfolist: [],
nodata: false,
loadMoreType: 'none',
loadMoreVisible: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.deptinfolist()
},
//了解锦水-硬核管理接口
deptinfolist() {
let that = this;
let params = {
pageIndex: that.data.pageIndex,
pageSize: that.data.pageSize,
}
api.deptinfolist(params).then(function (res) { //了解锦水-模块管理接口
that.setData({
deptinfolist: that.data.deptinfolist.concat(res.data),
loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none',
loadMoreVisible: res.data.length === that.data.pageSize ? false : true
})
if (that.data.deptinfolist.length == 0) {//没有值
that.setData({
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
}
}).catch(err => {
that.setData({
deptinfolist: [],
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
console.log(err)
})
},
mobile(e) {
wx.showModal({
title: '拨打电话',
content: `您确定拨打${e.currentTarget.dataset.mobile}`,
cancelColor: '#29B9A5',
confirmColor: '#29B9A5',
success: (res) => {
if (res.confirm) {
console.log('用户点击确定')
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.mobile
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.deptinfolist();
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

7
subpages/oneKeyService/pages/directTo/directTo.json

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "一键直通",
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data":"../../../../components/nodata/nodata"
}
}

24
subpages/oneKeyService/pages/directTo/directTo.wxml

@ -0,0 +1,24 @@
<view class="list-item"
hover-class="none"
hover-stop-propagation="false"
wx:if="{{deptinfolist.length > 0}}"
wx:for-index="index"
wx:for-item="item"
wx:key="index"
wx:for="{{deptinfolist}}">
<view class="top" hover-class="none" hover-stop-propagation="false">
{{item.deptName}}
</view>
<view class="bottom" hover-class="none" hover-stop-propagation="false">
<view class="name">
{{item.mobile}}
</view>
<image bindtap="mobile"
data-mobile="{{item.mobile}}" class="" src="../../images/phone.png" />
</view>
</view>
<!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>

42
subpages/oneKeyService/pages/directTo/directTo.wxss

@ -0,0 +1,42 @@
page {
background: #f7f7f7;
}
.list-item {
margin-top: 16rpx;
background: #fff;
height: 196rpx;
width: 100%;
padding: 0 30rpx;
}
.list-item .top {
width: calc(100% - 60rpx);
height: 90rpx;
border-bottom: 1rpx solid #f7f7f7;
font-size: 34rpx;
font-weight: bold;
color: rgba(51, 51, 51, 1);
line-height: 90rpx;
}
.list-item .bottom {
width: calc(100% - 60rpx);
height: 106rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.list-item .bottom .name {
height: 106rpx;
line-height: 106rpx;
font-size: 34rpx;
font-weight: 500;
color: rgba(119, 119, 119, 1);
}
.list-item .bottom image {
width: 156rpx;
height: 56rpx;
}

BIN
subpages/oneKeyService/pages/images/ic_yueduliang.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

64
subpages/oneKeyService/pages/index/index.js

@ -0,0 +1,64 @@
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
moduleCategory: 'module_type_service', //module_type_jmjs (解码锦水) //module_type_service (一键服务)
modulelist: []
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.modulelist()
},
modulelist() {
let that = this;
api.modulelist(that.data.moduleCategory).then(function (res) {
that.setData({
modulelist: res.data,
})
})
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
// wx.showToast({
// title: '敬请期待',
// icon: 'none',
// duration: 1000
// })
//政策、通知 /subpages/home/pages/noticeNew/noticeNew
goDetails(e) {//模块编码(政策,通知,档案,警事,一键直通)
console.log(JSON.stringify(e.currentTarget.dataset) + e.currentTarget.dataset.modulecode)
if (e.currentTarget.dataset.modulecode == 'notice_navigation_hot') {
wx.navigateTo({
url: `../policyList/policyList?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'notice_navigation_new') {
wx.navigateTo({
url: `../policyList/policyList?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'module_file') {
wx.navigateTo({
url: '../archives/archives'
})
} else if (e.currentTarget.dataset.modulecode == 'notice_warning') {
wx.navigateTo({
url: `../warning/warning?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'module_hardcore') {
wx.navigateTo({
url: `../directTo/directTo?modulecode=${e.currentTarget.dataset.modulecode}`
})
}
}
})

3
subpages/oneKeyService/pages/index/index.json

@ -0,0 +1,3 @@
{
"navigationBarTitleText": "一键服务"
}

13
subpages/oneKeyService/pages/index/index.wxml

@ -0,0 +1,13 @@
<button class="index top"
hover-class="hover-btn"
bindtap="goDetails"
wx:for-item="item"
wx:key="index"
wx:for-index="index"
wx:for="{{modulelist}}"
data-moduleCode="{{item.moduleCode}}">
<image class="img-bj" src="{{item.imgUrl}}"></image>
<!-- <view class="shadow">
<image class="img-name" src="../../images/jsyx.png"></image>
</view> -->
</button>

52
subpages/oneKeyService/pages/index/index.wxss

@ -0,0 +1,52 @@
.index {
width: calc(100% - 60rpx);
/* margin-top: 28rpx; */
height: 300rpx;
margin-left: 30rpx;
border-radius: 10rpx;
position: relative;
margin-bottom: 28rpx;
padding: 0;
background: #fff;
}
button::after {
border: none;
}
.hover-btn {
box-shadow: 0 0 10rpx rgba(63, 63, 63, 0.1);
}
.index.top {
margin-top: 28rpx;
}
.index .img-bj {
border-radius: 10rpx;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: 10;
}
.index .shadow {
border-radius: 10rpx;
position: relative;
width: 100%;
height: 100%;
z-index: 999;
/* background: rgba(0, 0, 0, 1); */
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
}
.index .shadow .img-name {
width: 210rpx;
height: 58rpx;
opacity: 1;
}

107
subpages/oneKeyService/pages/noticeDetail/noticeDetail.js

@ -0,0 +1,107 @@
const api = require('../../../../utils/understandJs')
import util from '../../../../utils/util'
Page({
/**
* 页面的初始数据
*/
data: {
noticeObj: {},
noticeObjContent: '',
pageIndex:1,
pageSize:10,
noticeCategory:'',
preloadVisible: true
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
noticeCategory:options.modulecode
})
if(options.modulecode == 'notice_warning'){
wx.setNavigationBarTitle({
title: '锦水警事'
})
this.noticeDetail(options.id)
}
},
noticelist() {
let that = this;
let params = {
pageIndex: that.data.pageIndex,
pageSize: that.data.pageSize,
noticeCategory: that.data.noticeCategory
}
api.noticelist(params).then(function (res) {
that.noticeDetail(res.data[0].id)
}).catch(err => {
console.log(err)
})
},
noticeDetail(noticeId){
let that = this;
api.noticeDetail(noticeId).then(function (res) {
that.setData({
noticeObj: res.data,
noticeObjContent: util.formatRichText(res.data.noticeContent),
preloadVisible: false
})
console.log(that.data.noticeObj)
}).catch(err => {
console.log(err)
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

4
subpages/oneKeyService/pages/noticeDetail/noticeDetail.json

@ -0,0 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "锦水"
}

25
subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxml

@ -0,0 +1,25 @@
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
<view class="notice-detail">
<view class="selfContent" wx:if="{{!preloadVisible}}">
<view class="detail-title">{{noticeObj.noticeTitle}}</view>
<view class="detail-subtitle">
<view class="left">
<span>{{noticeObj.deptName}}</span>
<span>{{filter.formatTime(noticeObj.newsStartTime, 'yyyy-MM-dd')}}</span>
</view>
<view class="right">
<view class="readNum">
<image src="../images/ic_yueduliang.png" />
</view>
<view class="num">{{noticeObj.readingAmount}}</view>
</view>
</view>
<view class="richContent">
<rich-text space="nbsp" nodes="{{noticeObjContent}}"></rich-text>
</view>
</view>
<view class="preload" wx:else>
<view class="preload-title"></view>
<view class="preload-content"></view>
</view>
</view>

130
subpages/oneKeyService/pages/noticeDetail/noticeDetail.wxss

@ -0,0 +1,130 @@
page{
background: #f7f7f7;
}
.notice-detail {
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 20rpx;
background: #f7f7f7;
}
.richContent img{
width: 100%!important;
height: auto;
}
.selfContent {
width: 100%;
display: table;
background: #ffffff;
border-radius: 16rpx;
box-sizing: border-box;
padding: 0 25rpx 38rpx;
}
.detail-title {
font-family: PingFang-SC-Bold;
font-size: 48rpx;
font-weight: bold;
line-height: 68rpx;
color: #333333;
padding-top: 40rpx;
}
.detail-subtitle {
display: flex;
width: 100%;
justify-content: space-between;
font-size: 22rpx;
color: #999999;
margin-top:45rpx;
}
.detail-subtitle .left span:nth-child(1){
margin-right: 32rpx;
}
.detail-subtitle .right{
display: flex;
height: 32rpx;
line-height: 32rpx;
}
.detail-subtitle .right .readNum {
/* display: inline-block; */
width: 32rpx;
height: 32rpx;
margin-right: 10rpx;
}
.detail-subtitle .right .readNum image{
width: 100%;
height: 100%;
float:left;
object-fit: cover;
}
.banner {
width: 100%;
height: 400rpx;
margin: 39rpx 0 19rpx 0;
}
.banner image{
width: 100%;
height: 100%;
float:left;
object-fit: cover;
border-radius: 16rpx;
overflow: hidden;
}
.paragraph {
font-size: 38rpx;
line-height: 58rpx;
color: #333333;
text-indent: 76rpx;
margin-top:22rpx;
}
.default {
border: 1px solid #eaeaea;
}
.default span {
color: #999999;
}
.active {
border: 1px solid #ffab00;
}
.active span {
color: #ffb700;
}
/* preload start */
.preload {
width: 100%;
background: #fff;
box-sizing: border-box;
border-radius: 16rpx;
padding: 0 24rpx;
overflow: hidden;
margin-bottom: 20rpx;
}
.preload-title {
width: 100%;
height: 80rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
.preload-content {
width: 100%;
height: 200rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
@keyframes loading {
0% {
background-position: 100% 50%
}
100% {
background-position: 0 50%
}
}
/* preload end */

110
subpages/oneKeyService/pages/policyList/policyList.js

@ -0,0 +1,110 @@
// subpages/home/pages/noticeNew/noticeNew.js
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
pageIndex: 1,
pageSize: 10,
noticeCategory: 'notice_navigation_hot',// 通知:notice_navigation_new
noticelist: [],
// selectTab: 'tab1',
nodata: false,
loadMoreType: 'none',
loadMoreVisible: false,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
noticeCategory: options.modulecode
})
wx.setNavigationBarTitle({
title: options.modulecode == 'notice_navigation_hot' ? '最热政策' : options.modulecode == 'notice_navigation_new' ? '最新通知' : ''
})
this.noticelist();
},
// 加载网格长管辖的网格列表
noticelist() {
let that = this
let params = {
pageIndex: that.data.pageIndex,
pageSize: that.data.pageSize,
noticeCategory: that.data.noticeCategory
}
api.noticelist(params).then(res => {
that.setData({
noticelist: that.data.noticelist.concat(res.data),
loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none',
loadMoreVisible: res.data.length === that.data.pageSize ? false : true
})
if (that.data.noticelist.length == 0) {//没有值
that.setData({
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
}
}).catch(err => {
that.setData({
noticelist: [],
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
console.log(err)
})
},
// tab 切换
//模块编码(政策导航-最热政策:notice_navigation_hot、了解锦水-印象:notice_impression、了解锦水-味道:notice_taste、政策导航-最新通知: notice_navigation_new、了解锦水-警示:notice_warning)
// onTabChange(e) {
// if (e.currentTarget.dataset.tab == 'tab1') {
// this.setData({
// noticeCategory: 'notice_navigation_hot',
// })
// } else {
// this.setData({
// noticeCategory: 'notice_navigation_new',
// })
// }
// this.setData({
// selectTab: e.currentTarget.dataset.tab,
// pageIndex: 1,
// pageSize: 10,
// noticelist: [],
// loadMoreType: 'loading',
// loadMoreVisible: true,
// nodata: false,
// })
// this.noticelist();
// },
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.noticelist();
}
},
toDetail(e) {
console.log(e.currentTarget.dataset.id)
wx.navigateTo({ url: '/subpages/home/pages/noticeDetail/noticeDetail?id=' + e.currentTarget.dataset.id +'&code=' + this.data.noticeCategory })
}
})

7
subpages/oneKeyService/pages/policyList/policyList.json

@ -0,0 +1,7 @@
{
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data":"../../../../components/nodata/nodata"
},
"navigationBarTitleText": ""
}

25
subpages/oneKeyService/pages/policyList/policyList.wxml

@ -0,0 +1,25 @@
<!-- tabbar -->
<!-- <view class="tab-bar">
<view class="tab tab1 {{selectTab === 'tab1' ? 'select-tab' : ''}}" data-tab="tab1" bindtap="onTabChange">最热政策
</view>
<view class="tab tab2 {{selectTab === 'tab2' ? 'select-tab' : ''}}" data-tab="tab2" bindtap="onTabChange">最新通知
</view>
<view class="select-bar {{selectTab === 'tab1' ? 'tab1' : 'tab2'}}"></view>
</view> -->
<!-- 列表 -->
<view class="list-lu" wx:if="{{noticelist.length > 0}}">
<view class="list-li" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{noticelist}}"
bindtap="toDetail" data-id="{{item.id}}">
<view class="item-name">{{item.noticeTitle}}</view>
<view class="item-info">
<image src="../../images/ic_zhengce.png" />
<view class="street">{{item.deptName}}</view>
<view class="time">{{item.noticeTime}}</view>
</view>
</view>
</view>
<!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>

95
subpages/oneKeyService/pages/policyList/policyList.wxss

@ -0,0 +1,95 @@
page {
background: #f7f7f7;
}
.tab-bar {
width: 100%;
height: 80rpx;
background: #fff;
display: flex;
justify-content: space-around;
position: relative;
}
.tab-bar .tab {
flex: 1;
height: 80rpx;
line-height: 80rpx;
text-align: center;
width: 50%;
font-size: 32rpx;
font-weight: 500;
color: rgba(153, 153, 153, 1);
}
.tab-bar .select-tab {
color: #b20004;
font-size: 32rpx;
font-weight: bold;
}
.tab-bar .select-bar {
width: 40rpx;
height: 8rpx;
border-radius: 5rpx;
background: #b20004;
position: absolute;
bottom: 0rpx;
}
.tab-bar .select-bar.tab1 {
left: calc(25% - 15rpx);
transition: left linear 0.4s;
}
.tab-bar .select-bar.tab2 {
left: calc(75% - 15rpx);
transition: left linear 0.4s;
}
/* 列表样式 */
.list-lu .list-li:first-child {
margin-top: 27rpx;
}
.list-li {
width: 100%;
background: #fff;
padding: 38rpx 30rpx;
margin-top: 16rpx;
}
.list-li .item-name {
width: calc(100% - 60rpx);
font-size: 34rpx;
font-weight: 500;
color: rgba(51, 51, 51, 1);
line-height: 52rpx;
}
.list-li .item-info {
width: calc(100% - 60rpx);
height: 28rpx;
margin-top: 30rpx;
display: flex;
align-items: center;
}
.list-li .item-info image {
width: 28rpx;
height: 28rpx;
}
.list-li .item-info .street {
margin-left: 11rpx;
font-size: 24rpx;
font-weight: 500;
color: rgba(153, 153, 153, 1);
}
.list-li .item-info .time {
margin-left: 22rpx;
font-size: 24rpx;
font-weight: 500;
color: rgba(153, 153, 153, 1);
}

42
subpages/oneKeyService/pages/search/search.js

@ -0,0 +1,42 @@
// subpages/oneKeyService/pages/search/search.js
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
searchContent: '',
deptId: '',
historylist: [
{
label: '就业',
hot: true
},
{
label: '创业',
hot: false
}
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
console.log(options)
this.setData({
searchContent: options.searchContent,
deptId: options.deptId
})
},
bindInputValue (e) {
this.setData({
searchContent: e.detail.value
})
},
searchFile () {
}
})

5
subpages/oneKeyService/pages/search/search.json

@ -0,0 +1,5 @@
{
"usingComponents": {
},
"navigationBarTitleText": "搜索"
}

22
subpages/oneKeyService/pages/search/search.wxml

@ -0,0 +1,22 @@
<!--subpages/oneKeyService/pages/search/search.wxml-->
<view class="top">
<view class="search">
<view class="item-all">
<view class="item-left">
<image src="../../images/search.png"></image>
<input placeholder-class="placeholder-style" placeholder="输入档案关键字" bindinput="bindInputValue" value="{{searchContent}}"></input>
</view>
<button class="item-right" bindtap="searchFile" hover-class="none">搜索</button>
</view>
</view>
</view>
<view class="history">
<view
class="history-label {{item.hot?'hot-label':''}}"
wx:for="{{historylist}}"
wx:for-index="index"
wx:for-item="item"
wx:key="index">
{{item.label}}
</view>
</view>

96
subpages/oneKeyService/pages/search/search.wxss

@ -0,0 +1,96 @@
/* subpages/oneKeyService/pages/search/search.wxss */
page {
background: #fff;
}
.top {
margin-top: 3rpx;
width: 100%;
height: 94rpx;
background: #fff;
display: flex;
align-items: center;
}
.search {
/* margin-top: 17rpx; */
width: calc(100% - 60rpx);
height: 66rpx;
margin-left: 30rpx;
background: rgba(242, 242, 242, 1);
border-radius: 33rpx;
display: flex;
align-items: center;
justify-content: center;
}
.search .item-all {
height: 30rpx;
width: 100%;
width: calc(100% - 60rpx);
display: flex;
align-items: center;
justify-content: space-between;
}
.search .item-all .item-left {
/* background: red; */
width: calc(100% - 73rpx);
height: 30rpx;
border-right: 1rpx solid #BFBFBF;
display: flex;
align-items: center;
justify-content: space-between;
}
.search .item-all .item-left image {
width: 30rpx;
height: 28rpx;
}
.search .item-all .item-left input {
width: calc(100% - 41rpx);
height: 30rpx;
font-size: 28rpx;
color: #333;
}
.placeholder-style {
font-size: 28rpx;
font-weight: 500;
color: rgba(168, 168, 168, 1);
}
.search .item-all .item-right {
font-size: 28rpx;
font-weight: 500;
color: rgba(51, 51, 51, 1);
background-color: rgba(242, 242, 242, 1);
}
button {
width: 100rpx;
height: 58rpx;
padding: 0;
border-radius: 0;
line-height: 58rpx;
}
button::after {
border-radius: 0px;
border: none;
}
.history {
padding-left: 30rpx;
}
.history-label {
width: 100rpx;
border-radius: 25rpx;
text-align: center;
height: 50rpx;
background-color: lightgray;
}
.hot-label {
background-color: lightblue;
}

146
subpages/oneKeyService/pages/warning/warning.js

@ -0,0 +1,146 @@
// subpages/understandJs/pages/warning/warning.js
const api = require('../../../../utils/understandJs')
Page({
/**
* 页面的初始数据
*/
data: {
pageIndex: 1,
pageSize: 10,
noticelist: [],
nodata: false,
loadMoreType: 'none',
loadMoreVisible: false,
noticeCategory: '',//模块编码(政策导航-最热政策:notice_navigation_hot、了解锦水-印象:notice_impression、了解锦水-味道:notice_taste、政策导航-最新通知: notice_navigation_new、了解锦水-警示:notice_warning)
noticeContentNew:'',
swiperBannerList: [],
indicatorDots: false, //指示点
autoplay: true, //true,//自动播放
circular: true, //衔接滑动
interval: 3000, //自动播放间隔时长(ms)
duration: 500, //幻灯片切换时长(ms)
currentSwiper: 0,
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.setData({
noticeCategory:options.modulecode
})
if(options.modulecode == 'notice_impression'){
wx.setNavigationBarTitle({
title: '锦水印象'
})
}else{
wx.setNavigationBarTitle({
title: '锦水警事'
})
}
this.noticelist()
this.getBannerList()
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.noticelist();
}
},
noticelist() {
let that = this;
let params = {
pageIndex: that.data.pageIndex,
pageSize: that.data.pageSize,
noticeCategory: that.data.noticeCategory,
}
api.noticelist(params).then(function (res) { //了解锦水-模块管理接口
let noticelistObj = {}
let noticelistItem = []
for(var i = 0; i < res.data.length; i++){
noticelistObj= res.data[i]
noticelistObj.noticeContentNew = res.data[i].noticeContent.replace(/<img/gi, '<img style="display:none" ');
noticelistItem.push(noticelistObj)
}
that.setData({
noticelist: that.data.noticelist.concat(noticelistItem),
loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none',
loadMoreVisible: res.data.length === that.data.pageSize ? false : true
})
if (that.data.noticelist.length == 0) {//没有值
that.setData({
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
}
}).catch(err => {
that.setData({
noticelist: [],
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
})
console.log(err)
})
},
//跳转倒详情页面
toDetail(e){
wx.navigateTo({
url: `../noticeDetail/noticeDetail?id=${e.currentTarget.dataset.id}&modulecode=${this.data.noticeCategory}`
})
},
getBannerList: function() {
let that = this
api.bannerList('2').then(function(res) {
// console.log('res==', res.data)
that.setData({
swiperBannerList: res.data
})
})
},
swiperChange: function(e) {
this.setData({
currentSwiper: e.detail.current
})
},
// swiperChange2: function(e) {
// this.setData({
// 'options2.currentSwiper': e.detail.current,
// currentIndex: e.detail.current
// })
// },
// 跳转到banner详情
//navigatetoBannerDetail(e) {
// const {
// id,
// url,
// newsflag
// } = e.currentTarget.dataset
// console.log(id, url, newsflag)
// if (newsflag == '0') {
// wx.navigateTo({
// url: `/subpages/home/pages/webview/webview?url=${url}`
// })
// } else if (newsflag == '1') {
// wx.navigateTo({
// url: `/subpages/home/pages/newsDetail/newsDetail?id=${id}`
// })
// }
//}
})

7
subpages/oneKeyService/pages/warning/warning.json

@ -0,0 +1,7 @@
{
"navigationBarTitleText": "锦水警事",
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data":"../../../../components/nodata/nodata"
}
}

44
subpages/oneKeyService/pages/warning/warning.wxml

@ -0,0 +1,44 @@
<!-- banner swiperBannerList -->
<view class="banner">
<view class="page-section page-section-spacing swiper">
<swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" circular="{{circular}}" interval="{{interval}}" duration="{{duration}}" bindchange="swiperChange">
<block wx:for="{{swiperBannerList}}" wx:for-item="item" wx:for-index="index" wx:key="index">
<swiper-item>
<view data-banner="{{item}}">
<view class="swiper-item" data-id="{{item.id}}">
<!-- <view class="altitle">
<view class="altitle-name">{{item.title}}</view>
</view> -->
<image class="banner" src='{{item.imgUrl}}' mode="aspectFill" />
</view>
</view>
</swiper-item>
</block>
</swiper>
<!-- 重置小圆点的样式 -->
<view class="dots">
<block wx:for="{{ swiperBannerList }}" wx:key="index">
<view class="dot {{index == currentSwiper ? ' active' : '' }}"></view>
</block>
</view>
</view>
</view>
<view class="list-item"
wx:if="{{noticelist.length > 0}}"
wx:for-index="index"
wx:for-item="item"
wx:key="index"
wx:for="{{noticelist}}"
bindtap="toDetail"
data-id="{{item.id}}">
<view class="name">{{item.noticeTitle}}</view>
<view class="info">
<rich-text space="nbsp" nodes="{{item.noticeContentNew}}"></rich-text>
</view>
</view>
<!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>

169
subpages/oneKeyService/pages/warning/warning.wxss

@ -0,0 +1,169 @@
page {
background: #f7f7f7;
}
.list-item {
width: 100%;
padding: 40rpx 28rpx;
margin-top: 16rpx;
background: #fff;
box-sizing: border-box;
}
.list-item .name {
/* width: calc(100% - 56rpx); */
font-size: 34rpx;
font-weight: 500;
color: rgba(51, 51, 51, 1);
line-height: 50rpx;
}
.list-item .info {
/* margin-top: 15rpx;
width: calc(100% - 56rpx);
font-size: 28rpx;
font-weight: 500;
color: rgba(153, 153, 153, 1);
line-height: 44rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden; */
margin-top: 15rpx;
/* width: calc(100% - 56rpx); */
/* height: 75rpx; */
font-size: 28rpx;
font-family: PingFang SC;
font-weight: 500;
color: rgba(153, 153, 153, 1);
}
.list-item .info rich-text {
/* width:100%; */
line-height: 44rpx;
display: -webkit-box;
overflow: hidden;
text-overflow: ellipsis;
word-wrap: break-word;
white-space: normal !important;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
/* 轮播图start */
.altitle {
position: absolute;
width: 100%;
height: 66rpx;
background-color: black;
margin-top: 237rpx;
border-bottom-right-radius: 16rpx;
border-bottom-left-radius: 16rpx;
opacity: 0.5;
font-size: 22rpx;
font-weight: 500;
color: rgba(255, 255, 255, 1);
}
.altitle-name {
margin: 10rpx 20rpx;
}
.container {
width: 100vw;
}
.page-body {
padding-top: 30rpx;
background: #fff;
height: 300rpx;
}
.page-section {
width: 100%;
margin-bottom: 60rpx;
}
.page-section_center {
display: flex;
flex-direction: column;
align-items: center;
}
.page-section:last-child {
margin-bottom: 0;
}
.page-section-gap {
box-sizing: border-box;
padding: 0 30rpx;
}
.page-section-spacing {
box-sizing: border-box;
padding: 0 20rpx;
height: 300rpx;
background-color: #fff;
}
.page-section-title {
font-size: 28rpx;
color: #999;
margin-bottom: 10rpx;
padding-left: 30rpx;
padding-right: 30rpx;
}
.page-section-gap .page-section-title {
padding-left: 0;
padding-right: 0;
}
.swiper-item {
display: block;
height: 300rpx;
}
.banner {
overflow: hidden;
height: 300rpx;
display: flex;
width: 100%;
border-radius: 16rpx;
}
.dots {
display: flex;
justify-content: center;
margin-top: -16rpx;
z-index: 999;
position: relative;
}
.dots .dot {
width: 8rpx;
height: 8rpx;
border-radius: 8rpx;
margin-left: 10rpx;
background: #d2d5da;
transition: all 0.3s;
}
.dots .dot.active {
width: 24rpx;
background: #fff;
}
.page-section-title {
margin-top: 60rpx;
position: relative;
}
swiper {
height: 300rpx;
box-shadow: 0px 4px 29px 0px rgba(63, 63, 63, 0.1);
}
/* 轮播图end */

22
subpages/understandJs/pages/index/index.js

@ -5,6 +5,7 @@ Page({
* 页面的初始数据
*/
data: {
moduleCategory: 'module_type_jmjs', //module_type_jmjs (解码锦水) //module_type_service (一键服务) //'' (旧版)
modulelist: []
},
@ -16,7 +17,7 @@ Page({
},
modulelist() {
let that = this;
api.modulelist().then(function (res) { //了解锦水-模块管理接口
api.modulelist(that.data.moduleCategory).then(function (res) {
that.setData({
modulelist: res.data,
})
@ -70,29 +71,16 @@ Page({
onShareAppMessage: function () {
},
goDetails(e) {//模块编码(0-政策导航,1-印象,2-味道,3-硬核,4-档案
goDetails(e) {//模块编码(印象,味道,硬核)
console.log(JSON.stringify(e.currentTarget.dataset) + e.currentTarget.dataset.modulecode)
if (e.currentTarget.dataset.modulecode == 'notice_warning') { //警事
wx.navigateTo({
url: `../impression/impression?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'notice_impression' || e.currentTarget.dataset.modulecode == 'notice_taste') {//印象//味道
if (e.currentTarget.dataset.modulecode == 'notice_impression' || e.currentTarget.dataset.modulecode == 'notice_taste') {//印象//味道
wx.navigateTo({
url: `../noticeDetail/noticeDetail?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'module_hardcore') {//硬核
} else if (e.currentTarget.dataset.modulecode == 'notice_yh') {
wx.navigateTo({
url: `../sclerotia/sclerotia?modulecode=${e.currentTarget.dataset.modulecode}`
})
} else if (e.currentTarget.dataset.modulecode == 'module_file') {//档案
// wx.showToast({
// title: '敬请期待',
// icon: 'none',
// duration: 1000
// })
wx.navigateTo({
url: '../archives/archives'
})
}
}
})

2
subpages/understandJs/pages/index/index.json

@ -1,3 +1,3 @@
{
"navigationBarTitleText": "解锦水"
"navigationBarTitleText": "解锦水"
}

31
subpages/understandJs/pages/noticeDetail/noticeDetail.js

@ -1,5 +1,4 @@
const api = require('../../../../utils/understandJs')
const api_home = require('../../../../utils/home')
import util from '../../../../utils/util'
Page({
@ -11,7 +10,8 @@ Page({
noticeObjContent: '',
pageIndex:1,
pageSize:10,
noticeCategory:''
noticeCategory:'',
preloadVisible: true
},
/**
@ -21,7 +21,7 @@ Page({
this.setData({
noticeCategory:options.modulecode
})
if (options.modulecode == 'notice_taste'){//味道
if (options.modulecode == 'notice_taste'){
wx.setNavigationBarTitle({
title: '锦水味道'
})
@ -31,11 +31,15 @@ Page({
title: '锦水印象'
})
this.noticelist()
} else if(options.modulecode == 'notice_yh'){
wx.setNavigationBarTitle({
title: '锦水硬核'
})
this.noticeDetail(options.id)
} else if(options.modulecode == 'notice_warning'){
wx.setNavigationBarTitle({
title: '锦水警事'
})
this.browseNotice(options.id)
this.noticeDetail(options.id)
}
},
@ -47,8 +51,7 @@ Page({
pageSize: that.data.pageSize,
noticeCategory: that.data.noticeCategory
}
api.noticelist(params).then(function (res) { //了解锦水-模块管理接口
that.browseNotice(res.data[0].id)
api.noticelist(params).then(function (res) {
that.noticeDetail(res.data[0].id)
}).catch(err => {
console.log(err)
@ -56,10 +59,11 @@ Page({
},
noticeDetail(noticeId){
let that = this;
api.noticeDetail(noticeId).then(function (res) { //了解锦水-模块管理接口
api.noticeDetail(noticeId).then(function (res) {
that.setData({
noticeObj: res.data,
noticeObjContent: util.formatRichText(res.data.noticeContent)
noticeObjContent: util.formatRichText(res.data.noticeContent),
preloadVisible: false
})
console.log(that.data.noticeObj)
@ -67,16 +71,7 @@ Page({
console.log(err)
})
},
browseNotice (id) {
let para = {
noticeId: id
}
api_home.browseNotice(para).then(res => {
}).catch(err => {
console.log(err)
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/

2
subpages/understandJs/pages/noticeDetail/noticeDetail.json

@ -1,4 +1,4 @@
{
"usingComponents": {},
"navigationBarTitleText": "锦水"
"navigationBarTitleText": ""
}

6
subpages/understandJs/pages/noticeDetail/noticeDetail.wxml

@ -1,6 +1,6 @@
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
<view class="notice-detail">
<view class="selfContent">
<view class="selfContent" wx:if="{{!preloadVisible}}">
<view class="detail-title">{{noticeObj.noticeTitle}}</view>
<view class="detail-subtitle">
<view class="left">
@ -18,4 +18,8 @@
<rich-text space="nbsp" nodes="{{noticeObjContent}}"></rich-text>
</view>
</view>
<view class="preload" wx:else>
<view class="preload-title"></view>
<view class="preload-content"></view>
</view>
</view>

41
subpages/understandJs/pages/noticeDetail/noticeDetail.wxss

@ -88,4 +88,43 @@ page{
}
.active span {
color: #ffb700;
}
}
/* preload start */
.preload {
width: 100%;
background: #fff;
box-sizing: border-box;
border-radius: 16rpx;
padding: 0 24rpx;
overflow: hidden;
margin-bottom: 20rpx;
}
.preload-title {
width: 100%;
height: 80rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
.preload-content {
width: 100%;
height: 200rpx;
border-radius: 8rpx;
background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
animation: loading 1.4s ease infinite;
background-size: 400% 100%;
margin-top: 20rpx;
}
@keyframes loading {
0% {
background-position: 100% 50%
}
100% {
background-position: 0 50%
}
}
/* preload end */

122
subpages/understandJs/pages/sclerotia/sclerotia.js

@ -8,7 +8,7 @@ Page({
data: {
pageIndex: 1,
pageSize: 10,
deptinfolist: [],
sclerotialist: [],
nodata: false,
loadMoreType: 'none',
loadMoreVisible: false,
@ -18,111 +18,57 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.deptinfolist()
this.getSclerotiaList()
},
//了解锦水-硬核管理接口
deptinfolist() {
let that = this;
let params = {
pageIndex: that.data.pageIndex,
pageSize: that.data.pageSize,
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.getSclerotiaList()
}
},
getSclerotiaList: function() {
let that = this
let para = {
pageIndex: this.data.pageIndex,
pageSize: this.data.pageSize,
noticeCategory: 'notice_yh'
}
api.deptinfolist(params).then(function (res) { //了解锦水-模块管理接口
api.noticelist(para).then(function(res) {
that.setData({
deptinfolist: that.data.deptinfolist.concat(res.data),
sclerotialist: that.data.sclerotialist.concat(res.data),
loadMoreType: res.data.length === that.data.pageSize ? 'loading' : 'none',
loadMoreVisible: res.data.length === that.data.pageSize ? false : true
})
if (that.data.deptinfolist.length == 0) {//没有值
if (that.data.sclerotialist.length == 0) {
that.setData({
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
loadMoreVisible: false
})
}
}).catch(err => {
}).catch(() => {
that.setData({
deptinfolist: [],
nodata: true,
loadMoreType: 'none',
loadMoreVisible: false,
sclerotialist: []
})
console.log(err)
})
},
mobile(e) {
wx.showModal({
title: '拨打电话',
content: `您确定拨打${e.currentTarget.dataset.mobile}`,
cancelColor: '#29B9A5',
confirmColor: '#29B9A5',
success: (res) => {
if (res.confirm) {
console.log('用户点击确定')
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.mobile
})
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
this.setData({
loadMoreVisible: true
toDetail (e) {
wx.navigateTo({
url: '../noticeDetail/noticeDetail?modulecode=notice_yh&id=' + e.currentTarget.dataset.id
})
if (this.data.loadMoreType === 'loading') {
this.setData({
pageIndex: this.data.pageIndex + 1,
pageSize: this.data.pageSize,
})
this.deptinfolist();
}
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})

31
subpages/understandJs/pages/sclerotia/sclerotia.wxml

@ -1,24 +1,19 @@
<view class="list-item"
hover-class="none"
hover-stop-propagation="false"
wx:if="{{deptinfolist.length > 0}}"
wx:for-index="index"
wx:for-item="item"
wx:key="index"
wx:for="{{deptinfolist}}">
<view class="top" hover-class="none" hover-stop-propagation="false">
{{item.deptName}}
</view>
<view class="bottom" hover-class="none" hover-stop-propagation="false">
<view class="name">
{{item.mobile}}
<wxs module="filter" src="../../../../utils/filter.wxs"></wxs>
<!-- 列表 -->
<view class="list-all">
<view class="list-item" wx:for-index="index" wx:for-item="item" wx:key="index" wx:for="{{sclerotialist}}" data-id="{{item.id}}" bindtap="toDetail">
<view class="item-info">
<view class="item-info-name">{{item.noticeTitle}}
</view>
<view class="item-info-time">
<text>{{item.deptName}}</text>
<text>{{filter.formatTime(item.noticeTime, 'yyyy-MM-dd')}}</text>
</view>
</view>
<image bindtap="mobile"
data-mobile="{{item.mobile}}" class="" src="../../images/phone.png" />
<image src="{{item.imgUrl}}"></image>
</view>
</view>
<!--加载更多提示-->
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<load-more loadMoreType="{{loadMoreType}}" loadMoreVisible="{{loadMoreVisible}}"></load-more>
<no-data isShow="{{nodata}}"></no-data>

110
subpages/understandJs/pages/sclerotia/sclerotia.wxss

@ -2,41 +2,83 @@ page {
background: #f7f7f7;
}
.list-item {
margin-top: 16rpx;
background: #fff;
height: 196rpx;
width: 100%;
padding: 0 30rpx;
}
/* 列表样式 */
.list-item .top {
width: calc(100% - 60rpx);
height: 90rpx;
border-bottom: 1rpx solid #f7f7f7;
font-size: 34rpx;
font-weight: bold;
color: rgba(51, 51, 51, 1);
line-height: 90rpx;
}
.list-item .bottom {
width: calc(100% - 60rpx);
height: 106rpx;
.list-all {
/* width: calc(100% - 48rpx);
margin-left: 21rpx;
margin-top: 50rpx;*/
width: 100%;
background-color: #fff;
}
.list-all .list-item {
border-bottom: 1rpx solid #eaeaea;
margin-top: 16rpx;
padding: 40rpx 18rpx 30rpx 16rpx;
display: flex;
align-items: center;
/* align-items: center; */
}
.list-all .list-item:first-child {
border-top: 1rpx solid #eaeaea;
}
.list-all .list-item:last-child {
border-bottom: none;
}
.list-all .list-item .item-info {
width: calc(100% - 220rpx);
height: 146rpx;
position: relative;
}
.list-all .list-item .item-info .item-info-name {
width: calc(100% - 47rpx);
font-size: 32rpx;
font-weight: 500;
color: rgba(63, 63, 63, 1);
line-height: 50rpx;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
.list-all .list-item .item-info .item-info-time {
width: calc(100% - 47rpx);
height: 22rpx;
position: absolute;
bottom: 5rpx;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.list-item .bottom .name {
height: 106rpx;
line-height: 106rpx;
font-size: 34rpx;
}
.list-all .list-item .item-info .item-info-time text {
font-size: 22rpx;
font-weight: 500;
color: rgba(119, 119, 119, 1);
}
.list-item .bottom image {
width: 156rpx;
height: 56rpx;
}
color: rgba(170, 170, 170, 1);
line-height: 22rpx;
}
.list-all .list-item image {
width: 220rpx;
height: 146rpx;
border-radius: 10rpx;
}
.list-all .list-item .label {
position: absolute;
z-index: 999;
width: 34rpx;
height: 34rpx;
right: 45rpx;
}
.list-all .list-item .label image {
position: absolute;
width: 100%;
height: 100%;
}

2
utils/config.js

@ -13,7 +13,7 @@ function BASEURL() {
// return 'https://epdc-app.qingdaoshibei.cn/epdc-api/api/' // 电政办 正式环境 接口地址
// return 'https://epdc-shibei.elinkservice.cn/epdc-api/api/' // 电政办 正式环境 接口地址
// return 'https://epdc-jinshui.elinkservice.cn/epdc-api/api/' // 锦水正式环境接口地址
// return 'http://10.10.10.64:9094/epdc-api/api/'
// return 'http://192.168.43.19:9094/epdc-api/api/'
}
function WEBROOT() {

14
utils/understandJs.js

@ -6,11 +6,12 @@ module.exports = {
noticeDetail:noticeDetail,
archivedepts:archivedepts,
archivelist:archivelist,
archiveDetail:archiveDetail
archiveDetail:archiveDetail,
bannerList:bannerList
}
// 了解锦水-模块管理接口
function modulelist() {
return fly.get('custom/module/list')
function modulelist(moduleCategory='') {
return fly.get(`custom/module/list/${moduleCategory}`)
}
//了解锦水-硬核管理接口
function deptinfolist(params) {
@ -35,4 +36,11 @@ function archivelist(params) {
// 了解锦水-锦水档案详情
function archiveDetail(archiveId) {
return fly.get(`custom/archive/detail/${archiveId}`)
}
//获取锦水警事banner列表
function bannerList(position) {
return fly.get('news/banner/list', {
position
})
}
Loading…
Cancel
Save