diff --git a/app.js b/app.js
index cce3651..e1e133c 100644
--- a/app.js
+++ b/app.js
@@ -50,22 +50,27 @@ App({
globalData: {
versionCode: 'V1',
userInfo: {},
- // headerUrl: "http://42.193.40.239:8017/"
- headerUrl: "http://192.168.110.10:8017/"
- // headerUrl: "http://192.168.110.186:8017/"
+ // headerUrl: "http://42.193.40.239:8017/" //线上
+ // headerUrl: "http://192.168.110.10:8017/" //线下
+ headerUrl: "https://city.sczysoft.com/df/"
},
-
- // 文件服务器地址
- // FILE_SERVER_URL: "http://192.168.110.186", //查看
- FILE_SERVER_URL: "http://42.193.40.239:8888", //查看
- FILE_SERVER_UP_URL: "http://42.193.40.239:8017/", //上传
+ // https://city.sczysoft.com/df/doc.html //接口
+ // https://city.sczysoft.com/dffile //查看拼接
+ publicService:'656693c8-bd84-11ee-8332-525400286c11',//为民服务id
+
+ // 测试地址
+ // FILE_SERVER_URL: "http://42.193.40.239:8888", //查看
+ // FILE_SERVER_UP_URL: "http://42.193.40.239:8017/", //上传
+ // 线上地址
+ FILE_SERVER_URL: "https://city.sczysoft.com/dffile", //查看
+ FILE_SERVER_UP_URL: "https://city.sczysoft.com/df/", //上传
// 文件类型
FileType: {
avatar: "SysPhoto", // 用户头像
resumptionAcs: "WorkFile", // 履职附件
msgAcs: "MsgAcs", // 消息附件
- eventAcs: "eventAcs", //突发事件上报
+ eventAcs: "eventAcs", //突发/应急事件上报
userSign: "UserSign", //用户签名
@@ -91,7 +96,7 @@ App({
data: data,
header: {
'content-type': 'application/json;charset=UTF-8',
- 'userToken': this.globalData.userInfo.userToken || ""
+ 'userToken': this.globalData.userInfo.tokenValue || ""
},
success: function (res) {
var data = res.data
diff --git a/app.json b/app.json
index f209c2c..e20bd8a 100644
--- a/app.json
+++ b/app.json
@@ -21,7 +21,19 @@
"pages/emergency/s-b/index/index",
"pages/emergency/t-x/index/index",
"pages/work/d-b-s-x/up/index",
- "pages/the-masses/index/index"
+ "pages/the-masses/index/index",
+ "pages/the-masses/appeal/index",
+ "pages/the-masses/web/index",
+ "pages/the-masses/escalation/index",
+ "pages/party-member/index/index",
+ "pages/party-member/problem/index",
+ "pages/party-member/web/index",
+ "pages/party-member/serve/index",
+ "pages/party-member/internalIndex/index",
+ "pages/emergency/s-b/escalation/index",
+ "pages/agreement/index",
+ "pages/emergency/t-x-l/index/index",
+ "pages/statistic/j-b-x-x/detail/index"
],
"window": {
"backgroundTextStyle": "light",
@@ -35,6 +47,7 @@
"empty": "/components/empty/empty",
"title-bar": "/components/title-bar/index"
},
+ "requiredPrivateInfos": ["getLocation","chooseLocation"],
"permission": {
"scope.userLocation": {
"desc": "你的位置信息将用于记录检查佐证"
diff --git a/images/check/icon_building.png b/images/check/icon_building.png
deleted file mode 100644
index 7df2464..0000000
Binary files a/images/check/icon_building.png and /dev/null differ
diff --git a/images/check/icon_pass.png b/images/check/icon_pass.png
deleted file mode 100644
index c1ae288..0000000
Binary files a/images/check/icon_pass.png and /dev/null differ
diff --git a/images/check/icon_unpass.png b/images/check/icon_unpass.png
deleted file mode 100644
index 6e42648..0000000
Binary files a/images/check/icon_unpass.png and /dev/null differ
diff --git a/images/danger/examine_icon.png b/images/danger/examine_icon.png
deleted file mode 100644
index 4018f8b..0000000
Binary files a/images/danger/examine_icon.png and /dev/null differ
diff --git a/images/danger/icon-fixed.png b/images/danger/icon-fixed.png
deleted file mode 100644
index b13dd29..0000000
Binary files a/images/danger/icon-fixed.png and /dev/null differ
diff --git a/images/danger/icon_pass.png b/images/danger/icon_pass.png
deleted file mode 100644
index c5fa8ea..0000000
Binary files a/images/danger/icon_pass.png and /dev/null differ
diff --git a/images/danger/icon_review.png b/images/danger/icon_review.png
deleted file mode 100644
index 975869b..0000000
Binary files a/images/danger/icon_review.png and /dev/null differ
diff --git a/images/danger/icon_unpass.png b/images/danger/icon_unpass.png
deleted file mode 100644
index 0a160a5..0000000
Binary files a/images/danger/icon_unpass.png and /dev/null differ
diff --git a/images/danger/not_rectified_icon.png b/images/danger/not_rectified_icon.png
deleted file mode 100644
index 57c2820..0000000
Binary files a/images/danger/not_rectified_icon.png and /dev/null differ
diff --git a/images/danger/rectified_icon.png b/images/danger/rectified_icon.png
deleted file mode 100644
index 9c16525..0000000
Binary files a/images/danger/rectified_icon.png and /dev/null differ
diff --git a/images/danger/under_rectification_icon.png b/images/danger/under_rectification_icon.png
deleted file mode 100644
index 21c05a3..0000000
Binary files a/images/danger/under_rectification_icon.png and /dev/null differ
diff --git a/images/home/icon_top-bg.png b/images/home/icon_top-bg.png
index f747bff..2b5394f 100644
Binary files a/images/home/icon_top-bg.png and b/images/home/icon_top-bg.png differ
diff --git a/images/home/icon_w_4.png b/images/home/icon_w_4.png
new file mode 100644
index 0000000..fa1948e
Binary files /dev/null and b/images/home/icon_w_4.png differ
diff --git a/images/logo.png b/images/logo.png
new file mode 100644
index 0000000..feeeeb2
Binary files /dev/null and b/images/logo.png differ
diff --git a/images/partyMember/suqiu.png b/images/partyMember/suqiu.png
new file mode 100644
index 0000000..1c67774
Binary files /dev/null and b/images/partyMember/suqiu.png differ
diff --git a/images/partyMember/title.png b/images/partyMember/title.png
new file mode 100644
index 0000000..3a4b266
Binary files /dev/null and b/images/partyMember/title.png differ
diff --git a/images/theMasses/fuwu.png b/images/theMasses/fuwu.png
new file mode 100644
index 0000000..30979f7
Binary files /dev/null and b/images/theMasses/fuwu.png differ
diff --git a/images/theMasses/title.png b/images/theMasses/title.png
new file mode 100644
index 0000000..5a087dd
Binary files /dev/null and b/images/theMasses/title.png differ
diff --git a/pages/account/info/index.js b/pages/account/info/index.js
index 822e3d7..6de9fa8 100644
--- a/pages/account/info/index.js
+++ b/pages/account/info/index.js
@@ -77,7 +77,9 @@ Page({
*/
deal: function (params) {
wx.navigateTo({
- url: `/pages/web/index?title=用户协议和隐私协议`,
+ // url: `/pages/web/index?title=用户协议和隐私协议`,
+ url: `/pages/agreement/index`,
+
})
},
/**
diff --git a/pages/agreement/index.js b/pages/agreement/index.js
new file mode 100644
index 0000000..20b7538
--- /dev/null
+++ b/pages/agreement/index.js
@@ -0,0 +1,105 @@
+// pages/agreement/index.js
+const app = getApp();
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ url: '',
+ title: '',
+ currentIndex: 0,
+ tabs: [{
+ lab: '用户协议'
+ }, {
+ lab: '隐私协议'
+ }],
+ dealContent:'',
+ },
+ /**
+ * 选择菜单
+ */
+tabSelect: function (params) {
+ this.data.currentIndex = params.currentTarget.dataset.index;
+ console.log(this.data.currentIndex,'this.data.currentIndex==>');
+ this.setData(this.data);
+ this.getDetail();
+},
+
+/**
+ * 获取消息详情
+ */
+getDetail: function () {
+ let dealKeyWord = '';
+ if (this.data.currentIndex == 1) {
+ dealKeyWord = 'privacy_deal';
+ }else{
+ dealKeyWord = 'user_deal';
+ }
+ app.axios("GET", "app", `/sysKey/dealSetting/${dealKeyWord}`, {}, false).then(res => {
+ console.log(res,'res===>');
+ if (res.code == 1) {
+
+ this.data.dealContent = res.data.dealContent;
+ this.setData(this.data)
+ }
+ })
+},
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.getDetail()
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/agreement/index.json b/pages/agreement/index.json
new file mode 100644
index 0000000..965b8e8
--- /dev/null
+++ b/pages/agreement/index.json
@@ -0,0 +1,4 @@
+{
+ "usingComponents": {},
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/agreement/index.wxml b/pages/agreement/index.wxml
new file mode 100644
index 0000000..31c2c9b
--- /dev/null
+++ b/pages/agreement/index.wxml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ {{item.lab}}
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/agreement/index.wxss b/pages/agreement/index.wxss
new file mode 100644
index 0000000..6ea69df
--- /dev/null
+++ b/pages/agreement/index.wxss
@@ -0,0 +1,130 @@
+
+scroll-view {
+ background-color: #f5f5f5;
+}
+
+.rich-text{
+ min-height: 100%;
+}
+.picker {
+ width: 100%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background-color: white;
+ border-top: 1rpx solid #f5f5f5;
+ height: 80rpx;
+ font-size: 30rpx;
+}
+
+.cu-item {
+ font-size: 30rpx;
+ font-weight: bold;
+}
+
+.item {
+ background-color: #ffffff;
+ padding: 32rpx 20rpx 20rpx 20rpx;
+ box-shadow: 0px 0px 6px 1px #DDECF3;
+ margin: 16rpx 16rpx 0 16rpx;
+ position: relative;
+ border-radius: 10rpx;
+ z-index: 2;
+}
+
+.item .g-container {
+ flex: 1;
+ height: 16rpx;
+ border-radius: 50rpx;
+ background: #eee;
+ margin: 20rpx 0;
+ overflow: hidden;
+}
+
+.item .g-progress {
+ width: 50%;
+ height: inherit;
+ border-radius: 50rpx;
+}
+
+.item .content {
+ font-size: 32rpx;
+ margin-right: 30rpx;
+}
+
+.item .content .time::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.item .content .title {
+ display: flex;
+ align-items: center;
+}
+
+.item .content .des {
+ margin: 10rpx 0;
+}
+
+.item .content .time {
+ font-size: 26rpx;
+}
+
+.item .content .title::before {
+ display: inline-block;
+ content: '';
+ width: 10rpx;
+ height: 30rpx;
+ margin-right: 10rpx;
+ border-radius: 5rpx;
+ background-color: var(--blue);
+}
+
+.item .content .des {
+ font-size: 30rpx;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+.item .val {
+ font-size: 26rpx;
+ color: #222222;
+ margin-left: 16rpx;
+}
+
+.item .add {
+ color: var(--blue);
+ margin-left: 15rpx;
+ font-size: 30rpx;
+ margin-left: 20rpx;
+}
+
+.item .add .add-tv {
+ margin-left: 10rpx;
+}
+
+.item .line {
+ margin: 10rpx 0;
+ border-bottom: 1rpx dashed #f5f5f5;
+}
+
+.item .record {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+ color: var(--blue);
+}
+
+.item .more {
+ position: absolute;
+ right: 10rpx;
+}
\ No newline at end of file
diff --git a/pages/emergency/s-b/escalation/index.js b/pages/emergency/s-b/escalation/index.js
new file mode 100644
index 0000000..3f5a455
--- /dev/null
+++ b/pages/emergency/s-b/escalation/index.js
@@ -0,0 +1,611 @@
+// 上报动态
+import Utils from "../../../../utils/util"
+const app = getApp();
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ baseUrl: app.FILE_SERVER_URL,
+
+ dateFilter: Utils.formatTime(new Date(), '-'),
+ showTypePop: false,
+ showAdvicePop: false,
+ TypeData: [],
+ postData: {},
+ files: [],
+ userInfo:{},
+
+ areamultiArray:[],
+ areamultiIndex: [0, 0, 0],
+ areamultiIds: [],
+ areanewArr: [],
+ area:[],
+ areatate : false,
+
+ multiArray: [],
+ multiIndex: [0, 0, 0],
+ multiIds: [],
+ newArr: [],
+ organization:[],
+ organizationtate : false,
+ },
+
+ /**
+ * 显示/关闭弹窗
+ */
+ popModal: function (params) {
+ const type = params.currentTarget.dataset.type;
+ this.data[type] = !this.data[type];
+ this.setData(this.data)
+ },
+
+ /**
+ * 事件类型
+ */
+ typeChange: function (params) {
+ const index = params.currentTarget.dataset.index;
+ console.log(params,'params===>');
+ this.data.postData.emerTypeId = params.currentTarget.dataset.item.emerTypeId;
+ this.data.postData.type = index + 1;
+ this.data.showTypePop = false;
+ this.setData(this.data);
+ },
+
+ /**
+ * 输入框赋值
+ */
+ inputContent: function (e) {
+ const name = e.currentTarget.dataset.name;
+ this.data.postData[name] = e.detail.value;
+ this.setData(this.data);
+ },
+
+ /**
+ * 发布
+ */
+ push: function () {
+ if (!this.data.postData.title) {
+ wx.showToast({
+ title: '请输入标题',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.createTime) {
+ wx.showToast({
+ title: '请选择时间',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.emerTypeId) {
+ wx.showToast({
+ title: '请选择事件类型',
+ icon: 'none'
+ })
+ return
+ }
+
+ if (this.data.organizationtate==false) {
+ wx.showToast({
+ title: '请选择所属组织',
+ icon: 'none'
+ })
+ return
+ }
+ if (this.data.areatate==false) {
+ wx.showToast({
+ title: '请选择地区',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.addressName) {
+ wx.showToast({
+ title: '请选择详细地址',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.content) {
+ wx.showToast({
+ title: '请输入事件描述',
+ icon: 'none'
+ })
+ return
+ }
+
+ let data = {
+ ...this.data.postData,
+ emerEventId:this.data.uuid,
+ userId:this.data.userInfo.userId,
+ address:this.data.postData.addressName,
+ };
+ data.listPerformId = this.data.organization?this.data.multiArray[0].children[0].children[this.data.organization[2]].listperformid:'';
+ data.areaCode = this.data.areamultiArray[0].children[this.data.area[1]].orgcode?this.data.areamultiArray[0].children[this.data.area[1]].orgcode:'';
+ console.log(data,'data===>');
+ app.axios("POST", "app", `/emerEvent/saveEmerEvent`,data).then(res => {
+ console.log(res,'res===>');
+ if (res.code == 1) {
+ wx.showToast({
+ title: '发布成功',
+ icon: 'none'
+ })
+ setTimeout(() => {
+ wx.navigateBack()
+ }, 1500);
+ } else {
+ wx.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ }
+ })
+ },
+ getweidu:function (params) {
+ wx.getLocation({
+ type: 'gcj02', //返回可以用于wx.openLocation的经纬度
+ success (res) {
+ const latitude = res.latitude
+ const longitude = res.longitude
+ wx.openLocation({
+ latitude,
+ longitude,
+ scale: 18
+ })
+ }
+ })
+ },
+
+ /**
+ * 选择文件
+ */
+ chooseFile: function () {
+ wx.chooseImage({
+ count: 1,
+ type: 'all',
+ success: (res) => {
+ const tempFilePaths = res.tempFiles;
+ const path = tempFilePaths[0].path;
+ this.postImg(path)
+ }
+ })
+ },
+
+ /**
+ * 上传图片
+ */
+ postImg(filePath) {
+ wx.showLoading({
+ title: '文件上传中...',
+ })
+ app.uploadFile(this.data.uuid, app.FileType.eventAcs, filePath).then(res => {
+
+ let resdata = JSON.parse(res);
+ console.log(resdata,'resdata===>');
+ // if (resdata.code == 1) {
+ console.log(resdata,'res==>');
+ wx.hideLoading();
+ this.getFiles();
+ // }
+ })
+ },
+
+ /**
+ * 获取图片
+ */
+ getFiles: function () {
+ console.log(1111);
+ app.axios("GET", "common", "/upload/getFile", {
+ otcid: this.data.postData.emerEventId || this.data.uuid,
+ otctype: app.FileType.eventAcs
+ }).then(res => {
+ if (res.code == 1) {
+ console.log(res,'res===>');
+ this.data.files = res.data;
+ this.setData(this.data)
+ }
+ })
+ },
+
+ /**
+ * 删除图片
+ * @param {*} params
+ */
+ deleteFile: function (e) {
+ var id = e.currentTarget.dataset.id;
+ wx.showModal({
+ title: '删除提示',
+ content: '是否要删除该附件?',
+ success: (res) => {
+ if (res.confirm) {
+ app.axios("GET", 'common', "/upload/delFile", {
+ documentId: id,
+ }).then(res => {
+ if (res.code == 1) {
+ this.getFiles();
+ }
+ })
+ }
+ }
+ })
+ },
+
+ /**
+ * 预览文件
+ */
+ filePre: function (params) {
+ const url = params.currentTarget.dataset.url;
+ const imgs = [];
+ this.data.files.forEach(item => {
+ imgs.push(this.data.baseUrl + item.filepath)
+ })
+ wx.previewImage({
+ urls: imgs,
+ current: this.data.baseUrl + url
+ })
+ },
+
+ /**
+ * 时间
+ */
+ bindDateChange: function (params) {
+ this.data.postData.createTime = params.detail.value;
+ this.setData(this.data)
+ },
+
+ /**
+ * 选择位置
+ */
+ // chooseAddress: function (params) {
+ // wx.chooseLocation({
+ // success: (res) => {
+ // this.data.postData.lat = res.latitude;
+ // this.data.postData.lng = res.longitude;
+ // this.data.postData.address = res.address;
+ // this.setData(this.data)
+ // }
+ // })
+ // },
+ /**
+ * 查询所有应急上报事件类型
+ */
+ getEmerEventType: function () {
+ app.axios("GET", "app", "/emerEvent/emerEventType").then(res => {
+ if (res.code == 1) {
+ console.log(res);
+ this.data.TypeData = res.data;
+ this.setData(this.data);
+ }
+ })
+ },
+
+/**
+ * 查看应急上报事件详情
+ */
+ getEmerEventDetail: function (id) {
+ app.axios("GET", "app", `/emerEvent/emerEventDetail/${id}`).then(res => {
+ if (res.code == 1) {
+ this.data.postData = res.data;
+ this.data.postData.emerTypeName;
+ for (let index = 0; index < this.data.TypeData.length; index++) {
+ if (this.data.TypeData[index].emerTypeName == res.data.emerTypeName) {
+ this.data.postData.type = index+1;
+ }
+ };
+ this.setData(this.data);
+ this.getFiles();
+ }
+ })
+ },
+// 地区获取
+getAreaTree: function () {
+ app.axios("GET", "common", "/sysorg/areaTree").then(res => {
+ if (res.code == 1) {
+ console.log(res);
+ this.data.areamultiArray = res.data;
+ this.data.areamultiArray[0].children.forEach(item => {
+ item.children = []
+ });
+ this.setData(this.data);
+ let state = {
+ arr: [],
+ arr1: [],
+ arr2: [],
+ arr3: [],
+ areamultiIds: []
+ }
+ this.data.areamultiArray.map((v, vk) => {
+ state.arr1.push(v.orgname);
+ if (this.data.areamultiIndex[0] === vk) {
+ state.areamultiIds[0] = v;
+ }
+ if (state.arr2.length <= 0) {
+ v.children.map((c, ck) => {
+ state.arr2.push(c.orgname);
+ if (this.data.areamultiIndex[1] === ck) {
+ state.areamultiIds[1] = c;
+ }
+ if (state.arr3.length <= 0) {
+ c.children.map((t, tk) => {
+ state.arr3.push(t.orgname);
+ if (this.data.areamultiIndex[2] === tk) {
+ state.areamultiIds[2] = t;
+ }
+ });
+ }
+ });
+ }
+ });
+ state.arr[0] = state.arr1;
+ state.arr[1] = state.arr2;
+ state.arr[2] = state.arr3;
+ this.setData({
+ areanewArr: state.arr,
+ areamultiIds: state.areamultiIds,
+ });
+ }
+ })
+},
+ // 级联选择地区
+ areabindMultiPickerChange(e) {
+ console.log(this.data.areamultiIds,'级联选择地区==>');
+ this.setData({
+ area: e.detail.value,
+ areatate:true
+ });
+ },
+ areabindMultiPickerColumnChange(e) {
+ let data = {
+ areanewArr: this.data.areanewArr,
+ areamultiIndex: this.data.areamultiIndex,
+ areamultiIds: this.data.areamultiIds,
+ };
+ data.areamultiIndex[e.detail.column] = e.detail.value;
+
+ let searchColumn = () => {
+ let arr1 = [];
+ let arr2 = [];
+ this.data.areamultiArray.map((v, vk) => {
+ if (data.areamultiIndex[0] === vk) {
+ data.areamultiIds[0] = {
+ ...v,
+ };
+ v.children.map((c, ck) => {
+ arr1.push(c.orgname);
+ if (data.areamultiIndex[1] === ck) {
+ data.areamultiIds[1] = {
+ ...c,
+ };
+ c.children.map((t, vt) => {
+ arr2.push(t.orgname);
+ if (data.areamultiIndex[2] === vt) {
+ data.areamultiIds[2] = {
+ ...t,
+ };
+ }
+ });
+ }
+ });
+ }
+ });
+ data.areanewArr[1] = arr1;
+ data.areanewArr[2] = arr2;
+ };
+ switch (e.detail.column) {
+ case 0:
+ // 每次切换还原初始值
+ data.areamultiIndex[1] = 0;
+ data.areamultiIndex[2] = 0;
+ // 执行函数处理
+ searchColumn();
+ break;
+ case 1:
+ data.areamultiIndex[2] = 0;
+ searchColumn();
+ break;
+ }
+ this.setData(data);
+ },
+
+
+// 所属组织获取
+getAreaTree1: function () {
+ app.axios("GET", "app", "/Sys/getListperformTree").then(res => {
+ if (res.code == 1) {
+ console.log(res);
+ this.data.multiArray = res.data
+ this.setData(this.data);
+
+ let state = {
+ arr: [],
+ arr1: [],
+ arr2: [],
+ arr3: [],
+ multiIds: []
+ }
+ this.data.multiArray.map((v, vk) => {
+ state.arr1.push(v.performclassname);
+ if (this.data.multiIndex[0] === vk) {
+ state.multiIds[0] = v;
+ }
+ if (state.arr2.length <= 0) {
+ v.children.map((c, ck) => {
+ state.arr2.push(c.performclassname);
+ if (this.data.multiIndex[1] === ck) {
+ state.multiIds[1] = c;
+ }
+ if (state.arr3.length <= 0) {
+ c.children.map((t, tk) => {
+ state.arr3.push(t.performclassname);
+ if (this.data.multiIndex[2] === tk) {
+ state.multiIds[2] = t;
+ }
+ });
+ }
+ });
+ }
+ });
+ state.arr[0] = state.arr1;
+ state.arr[1] = state.arr2;
+ state.arr[2] = state.arr3;
+ this.setData({
+ newArr: state.arr,
+ multiIds: state.multiIds,
+ });
+ }
+ })
+},
+bindMultiPickerChange(e) {
+ console.log(e,'e==>');
+
+ this.setData({
+ organization: e.detail.value,
+ organizationtate:true
+ });
+ console.log(this.data.organization,'e==>');
+ console.log(this.data.multiIds);
+},
+bindMultiPickerColumnChange(e) {
+ let data = {
+ newArr: this.data.newArr,
+ multiIndex: this.data.multiIndex,
+ multiIds: this.data.multiIds,
+ };
+ data.multiIndex[e.detail.column] = e.detail.value;
+
+ let searchColumn = () => {
+ let arr1 = [];
+ let arr2 = [];
+ this.data.multiArray.map((v, vk) => {
+ if (data.multiIndex[0] === vk) {
+ data.multiIds[0] = {
+ ...v,
+ };
+ v.children.map((c, ck) => {
+ arr1.push(c.performclassname);
+ if (data.multiIndex[1] === ck) {
+ data.multiIds[1] = {
+ ...c,
+ };
+ c.children.map((t, vt) => {
+ arr2.push(t.performclassname);
+ if (data.multiIndex[2] === vt) {
+ data.multiIds[2] = {
+ ...t,
+ };
+ }
+ });
+ }
+ });
+ }
+ });
+ data.newArr[1] = arr1;
+ data.newArr[2] = arr2;
+ };
+ switch (e.detail.column) {
+ case 0:
+ // 每次切换还原初始值
+ data.multiIndex[1] = 0;
+ data.multiIndex[2] = 0;
+ // 执行函数处理
+ searchColumn();
+ break;
+ case 1:
+ data.multiIndex[2] = 0;
+ searchColumn();
+ break;
+ }
+ this.setData(data);
+},
+
+//地点选择/经纬度
+toShowAddress() {
+ let that = this;
+ wx.chooseLocation({
+ success(res) {
+ that.data.postData.lat = res.latitude;
+ that.data.postData.lon = res.longitude;
+ that.data.postData.addressName = res.name;
+ that.setData(that.data);
+ },
+ })
+},
+
+
+
+
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.data.uuid = Utils.uuid();
+ this.data.userInfo = app.globalData.userInfo;
+ this.setData(this.data);
+ this.getEmerEventType();
+ this.getAreaTree();
+ this.getAreaTree1();
+ if (options.emerEventId) {
+ console.log(options.emerEventId,'options.emerEventId===>');
+ this.getEmerEventDetail(options.emerEventId)
+ }
+ },
+
+
+
+
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/emergency/s-b/escalation/index.json b/pages/emergency/s-b/escalation/index.json
new file mode 100644
index 0000000..c666f1f
--- /dev/null
+++ b/pages/emergency/s-b/escalation/index.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "tree": "/components/tree/index"
+ },
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/emergency/s-b/escalation/index.wxml b/pages/emergency/s-b/escalation/index.wxml
new file mode 100644
index 0000000..c90ec97
--- /dev/null
+++ b/pages/emergency/s-b/escalation/index.wxml
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 当前选择:{{areamultiArray[0].children[area[1]].orgname}}
+
+
+
+
+
+
+
+
+ 当前选择:{{multiArray[0].children[0].children[organization[2]].performclassname}}
+
+
+
+
+
+ 地址:{{postData.addressName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上报
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/emergency/s-b/escalation/index.wxss b/pages/emergency/s-b/escalation/index.wxss
new file mode 100644
index 0000000..3e14aab
--- /dev/null
+++ b/pages/emergency/s-b/escalation/index.wxss
@@ -0,0 +1,123 @@
+/* pages/msg/push/index.wxss */
+scroll-view {
+ background-color: #f5f5f5;
+ box-sizing: border-box;
+}
+
+.filter {
+ margin: 0 10rpx;
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+}
+
+.filter picker {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+}
+
+.item {
+ background-color: #ffffff;
+ margin: 32rpx 20rpx 20rpx 20rpx;
+ padding: 20rpx;
+ position: relative;
+ border-radius: 10rpx;
+ z-index: 2;
+}
+
+.item .header {
+ margin-top: 16rpx;
+}
+
+.item .header .single {
+ width: 8rpx;
+ height: 36rpx;
+ background: #4882EE;
+ border-radius: 4rpx;
+ margin-right: 10rpx;
+}
+
+.item .header .title {
+ font-size: 30rpx;
+ font-weight: bold;
+ color: #222222;
+}
+
+.item .put {
+ width: 100%;
+ background: #F5F7FC;
+ border-radius: 12rpx;
+ min-height: 72rpx;
+ padding: 15rpx;
+ margin-top: 16rpx;
+ color: #333333;
+ font-size: 28rpx;
+}
+
+.grid {
+ margin-top: 20rpx;
+ display: grid;
+ grid-gap: 20rpx 20rpx;
+ grid-template-columns: calc((100vw - 140rpx)/3) auto auto;
+}
+
+.grid .img {
+ width: calc((100vw - 140rpx)/3);
+ height: calc((100vw - 140rpx)/3);
+ background-color: #f5f5f5;
+ border-radius: 10rpx;
+}
+
+.grid .del {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ z-index: 1;
+ font-size: 40rpx;
+}
+
+.option {
+ position: fixed;
+ bottom: calc(constant(safe-area-inset-bottom) + 30rpx);
+ bottom: calc(env(safe-area-inset-bottom) + 30rpx);
+ left: 0;
+ right: 0;
+ margin-top: 30rpx;
+ padding: 16rpx 32rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx 0rpx 12rpx 2rpx #DDECF3;
+ z-index: 10;
+}
+
+.option .btn {
+ padding: 14rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #409CFF;
+ color: #FFFFFF;
+ border-radius: 12rpx;
+}
+
+.option .btn:active {
+ opacity: 0.8;
+}
+
+.space {
+ height: calc(constant(safe-area-inset-bottom) + 150rpx);
+ height: calc(env(safe-area-inset-bottom) + 150rpx);
+}
+.picker1{
+ width: 100%;
+ background: #F5F7FC;
+ border-radius: 12rpx;
+ min-height: 72rpx;
+ padding: 15rpx;
+ margin-top: 16rpx;
+ color: #333333;
+ font-size: 28rpx;
+}
\ No newline at end of file
diff --git a/pages/emergency/s-b/index/index.js b/pages/emergency/s-b/index/index.js
index a37b8dd..b754b31 100644
--- a/pages/emergency/s-b/index/index.js
+++ b/pages/emergency/s-b/index/index.js
@@ -1,5 +1,3 @@
-// 上报动态
-import Utils from "../../../../utils/util"
const app = getApp();
Page({
@@ -9,149 +7,87 @@ Page({
*/
data: {
topBarH: app.globalData.CustomBar,
- baseUrl: app.FILE_SERVER_URL,
-
- dateFilter: Utils.formatTime(new Date(), '-'),
- showTypePop: false,
- showAdvicePop: false,
- TypeData: ['火灾', '洪涝', '民事纠纷'],
- postData: {},
- files: []
+ list: [],
+ startTime: '',
+ endTime: '',
+ page: 1,
+ pageSize: 10,
+ userInfo:{}
},
/**
- * 显示/关闭弹窗
+ * 开始时间
*/
- popModal: function (params) {
- const type = params.currentTarget.dataset.type;
- this.data[type] = !this.data[type];
- this.setData(this.data)
+ startTimeChange: function (e) {
+ this.data.startTime = e.detail.value;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList();
},
-
/**
- * 事件类型
+ * 开始时间
*/
- typeChange: function (params) {
- const index = params.currentTarget.dataset.index;
- this.data.postData.type = index + 1;
- this.data.showTypePop = false;
- this.setData(this.data)
+ endTimeChange: function (e) {
+ this.data.endTime = e.detail.value;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList();
},
-
/**
- * 事件描述
+ * 上拉刷新
*/
- inputContent: function (e) {
- this.data.postData.content = e.detail.value;
+ refresh: function () {
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList();
},
-
+
/**
- * 发布
+ * 下拉加载
+ */
+ dropDown: function (params) {
+ this.data.page = this.data.page+1;
+ this.setData(this.data);
+ this.getList();
+ },
+ /**
+ * 上报困难诉求
*/
push: function (params) {
-
- },
-
- /**
- * 选择文件
- */
- chooseFile: function () {
- wx.chooseImage({
- count: 1,
- type: 'all',
- success: (res) => {
- const tempFilePaths = res.tempFiles;
- const path = tempFilePaths[0].path;
- this.postImg(path)
- }
+ wx.navigateTo({
+ url: `/pages/emergency/s-b/escalation/index`,
})
},
/**
- * 上传图片
+ * 获取工困难诉求列表
*/
- postImg(filePath) {
- wx.showLoading({
- title: '文件上传中...',
- })
- app.uploadFile(this.data.uuid, app.FileType.eventAcs, filePath).then(res => {
- wx.hideLoading();
- this.getFiles();
- })
- },
-
- /**
- * 获取图片
- */
- getFiles: function () {
- app.axios("GET", "common", "/upload/getFile", {
- otcid: this.data.uuid,
- otctype: app.FileType.eventAcs
- }).then(res => {
+ getList: function () {
+ let params = {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ endTime:this.data.endTime,
+ startTime:this.data.startTime,
+ userId:this.data.userInfo.userId,
+ };
+ app.axios("GET", "app", `/emerEvent/userEmerEventPage`, params).then(res => {
+ console.log(res);
if (res.code == 1) {
- this.data.files = res.data;
- this.setData(this.data)
+ this.data.freshIng = false;
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
}
})
},
-
/**
- * 删除图片
- * @param {*} params
+ * 查看详情
*/
- deleteFile: function (e) {
- var id = e.currentTarget.dataset.id;
- wx.showModal({
- title: '删除提示',
- content: '是否要删除该附件?',
- success: (res) => {
- if (res.confirm) {
- app.axios("GET", 'common', "/upload/delFile", {
- documentId: id,
- }).then(res => {
- if (res.code == 1) {
- this.getFiles();
- }
- })
- }
- }
- })
- },
-
- /**
- * 预览文件
- */
- filePre: function (params) {
- const url = params.currentTarget.dataset.url;
- const imgs = [];
- this.data.files.forEach(item => {
- imgs.push(this.data.baseUrl + item.filepath)
- })
- wx.previewImage({
- urls: imgs,
- current: this.data.baseUrl + url
- })
- },
-
- /**
- * 时间
- */
- bindDateChange: function (params) {
- this.data.postData.time = params.detail.value;
- this.setData(this.data)
- },
-
- /**
- * 选择位置
- */
- chooseAddress: function (params) {
- wx.chooseLocation({
- success: (res) => {
- this.data.postData.lat = res.latitude;
- this.data.postData.lng = res.longitude;
- this.data.postData.address = res.address;
- this.setData(this.data)
- }
+ toDetail: function (params) {
+ wx.navigateTo({
+ url: `/pages/emergency/s-b/escalation/index?emerEventId=${params.currentTarget.dataset.item.emerEventId}`,
})
},
@@ -159,8 +95,10 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
- this.data.uuid = Utils.uuid();
- this.setData(this.data)
+ this.data.freshIng = true;
+ this.data.userInfo = app.globalData.userInfo;
+ this.setData(this.data);
+ this.getList();
},
/**
@@ -201,7 +139,7 @@ Page({
/**
* 页面上拉触底事件的处理函数
*/
- onReachBottom() {
+ onReachBottom(data) {
},
@@ -211,4 +149,14 @@ Page({
onShareAppMessage() {
}
-})
\ No newline at end of file
+})
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/emergency/s-b/index/index.json b/pages/emergency/s-b/index/index.json
index c666f1f..965b8e8 100644
--- a/pages/emergency/s-b/index/index.json
+++ b/pages/emergency/s-b/index/index.json
@@ -1,6 +1,4 @@
{
- "usingComponents": {
- "tree": "/components/tree/index"
- },
+ "usingComponents": {},
"navigationStyle": "custom"
}
\ No newline at end of file
diff --git a/pages/emergency/s-b/index/index.wxml b/pages/emergency/s-b/index/index.wxml
index 6f17a8e..ebe3106 100644
--- a/pages/emergency/s-b/index/index.wxml
+++ b/pages/emergency/s-b/index/index.wxml
@@ -1,69 +1,32 @@
-
-
-
-
-
-
工作内容
-
+
时间
diff --git a/pages/statistic/g-z-t-j/index/index.js b/pages/statistic/g-z-t-j/index/index.js
index f35ed95..7a86856 100644
--- a/pages/statistic/g-z-t-j/index/index.js
+++ b/pages/statistic/g-z-t-j/index/index.js
@@ -15,6 +15,7 @@ Page({
endTime: '',
page: 1,
pageSize: 10,
+ userInfo:{}
},
/**
@@ -32,17 +33,17 @@ Page({
*/
startTimeChange: function (e) {
this.data.startTime = e.detail.value;
- this.data.page = 1;
- this.data.currentIndex = 0;
- this.data.list = [];
- this.setData(this.data);
- this.getList(this.data.tab[0].typeId);
+ this.timeGetList();
},
/**
* 开始时间
*/
endTimeChange: function (e) {
this.data.endTime = e.detail.value;
+ this.timeGetList();
+ },
+ //时间请求
+ timeGetList: function () {
this.data.page = 1;
this.data.currentIndex = 0;
this.data.list = [];
@@ -74,7 +75,7 @@ Page({
dropDown: function (params) {
this.data.page = this.data.page+1;
this.setData(this.data);
- this.getList();
+ this.getList(this.data.tab[this.data.currentIndex].typeId);
},
/**
* 获取工作统计每项数据列表
@@ -86,8 +87,8 @@ Page({
endTime:this.data.endTime,
startTime:this.data.startTime,
typeId:id,
+ userId:this.data.userInfo.userId,
};
- console.log(params,'params===>');
app.axios("GET", "app", `/work/workListPage`, params).then(res => {
if (res.code == 1) {
this.data.freshIng = false;
@@ -103,6 +104,7 @@ Page({
*/
onLoad(options) {
this.data.freshIng = true;
+ this.data.userInfo = app.globalData.userInfo;
this.setData(this.data);
this.getType();
},
diff --git a/pages/statistic/j-b-x-x/detail/index.js b/pages/statistic/j-b-x-x/detail/index.js
new file mode 100644
index 0000000..8af9d76
--- /dev/null
+++ b/pages/statistic/j-b-x-x/detail/index.js
@@ -0,0 +1,99 @@
+// 上报动态
+import Utils from "../../../../utils/util"
+const app = getApp();
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ baseUrl: app.FILE_SERVER_URL,
+
+ dateFilter: Utils.formatTime(new Date(), '-'),
+ showTypePop: false,
+ showAdvicePop: false,
+ TypeData: [],
+ postData: {},
+ files: [],
+ userInfo:{}
+ },
+/**
+ * 查看人员详情
+ */
+ getEmerEventDetail: function (id) {
+ app.axios("GET", "app", `/people/peopleDetail/${id}`).then(res => {
+ if (res.code == 1) {
+ console.log(res.data,'data===>');
+ this.data.userInfo = res.data;
+ this.setData(this.data);
+ // this.data.postData.emerTypeName;
+ // for (let index = 0; index < this.data.TypeData.length; index++) {
+ // if (this.data.TypeData[index].emerTypeName == res.data.emerTypeName) {
+ // this.data.postData.type = index+1;
+ // }
+ // };
+ // this.setData(this.data);
+ // this.getFiles();
+ }
+ })
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ if (options.peopleId) {
+ this.getEmerEventDetail(options.peopleId)
+ }
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/statistic/j-b-x-x/detail/index.json b/pages/statistic/j-b-x-x/detail/index.json
new file mode 100644
index 0000000..c666f1f
--- /dev/null
+++ b/pages/statistic/j-b-x-x/detail/index.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "tree": "/components/tree/index"
+ },
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/statistic/j-b-x-x/detail/index.wxml b/pages/statistic/j-b-x-x/detail/index.wxml
new file mode 100644
index 0000000..70b57af
--- /dev/null
+++ b/pages/statistic/j-b-x-x/detail/index.wxml
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/statistic/j-b-x-x/detail/index.wxss b/pages/statistic/j-b-x-x/detail/index.wxss
new file mode 100644
index 0000000..6ccb7fa
--- /dev/null
+++ b/pages/statistic/j-b-x-x/detail/index.wxss
@@ -0,0 +1,113 @@
+/* pages/msg/push/index.wxss */
+scroll-view {
+ background-color: #f5f5f5;
+ box-sizing: border-box;
+}
+
+.filter {
+ margin: 0 10rpx;
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+}
+
+.filter picker {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+}
+
+.item {
+ background-color: #ffffff;
+ margin: 32rpx 20rpx 20rpx 20rpx;
+ padding: 20rpx;
+ position: relative;
+ border-radius: 10rpx;
+ z-index: 2;
+}
+
+.item .header {
+ margin-top: 16rpx;
+}
+
+.item .header .single {
+ width: 8rpx;
+ height: 36rpx;
+ background: #4882EE;
+ border-radius: 4rpx;
+ margin-right: 10rpx;
+}
+
+.item .header .title {
+ font-size: 30rpx;
+ font-weight: bold;
+ color: #222222;
+}
+
+.item .put {
+ width: 100%;
+ background: #F5F7FC;
+ border-radius: 12rpx;
+ min-height: 72rpx;
+ padding: 15rpx;
+ margin-top: 16rpx;
+ color: #333333;
+ font-size: 28rpx;
+}
+
+.grid {
+ margin-top: 20rpx;
+ display: grid;
+ grid-gap: 20rpx 20rpx;
+ grid-template-columns: calc((100vw - 140rpx)/3) auto auto;
+}
+
+.grid .img {
+ width: calc((100vw - 140rpx)/3);
+ height: calc((100vw - 140rpx)/3);
+ background-color: #f5f5f5;
+ border-radius: 10rpx;
+}
+
+.grid .del {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ z-index: 1;
+ font-size: 40rpx;
+}
+
+.option {
+ position: fixed;
+ bottom: calc(constant(safe-area-inset-bottom) + 30rpx);
+ bottom: calc(env(safe-area-inset-bottom) + 30rpx);
+ left: 0;
+ right: 0;
+ margin-top: 30rpx;
+ padding: 16rpx 32rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx 0rpx 12rpx 2rpx #DDECF3;
+ z-index: 10;
+}
+
+.option .btn {
+ padding: 14rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #409CFF;
+ color: #FFFFFF;
+ border-radius: 12rpx;
+}
+
+.option .btn:active {
+ opacity: 0.8;
+}
+
+.space {
+ height: calc(constant(safe-area-inset-bottom) + 150rpx);
+ height: calc(env(safe-area-inset-bottom) + 150rpx);
+}
\ No newline at end of file
diff --git a/pages/statistic/j-b-x-x/index/index.js b/pages/statistic/j-b-x-x/index/index.js
index 63d93b3..1d964d4 100644
--- a/pages/statistic/j-b-x-x/index/index.js
+++ b/pages/statistic/j-b-x-x/index/index.js
@@ -9,42 +9,45 @@ Page({
data: {
topBarH: app.globalData.CustomBar,
currentIndex: 0,
- tab: [{
- label: '总人口',
- val: 1000
- }, {
- label: '常驻人口',
- val: 800
- }, {
- label: '脱贫户',
- val: 10
- }, {
- label: '新生儿',
- val: 50
- }, {
- label: '在校生',
- val: 200
- }, {
- label: '残疾人',
- val: 2
- }, {
- label: '低保户',
- val: 2
- }, {
- label: '五保户',
- val: 2
- }, {
- label: '党员',
- val: 60
- }, {
- label: '村组干部',
- val: 100
- }],
- list: [{
- factorcnt: '开展安全生产工作调研和检查指导'
- }, {
- factorcnt: '认真贯彻执行党中央及上级党委关于安全生产工作的决策部署和指示精神。'
- }],
+ tab: [],
+ list: [],
+ // startTime: '',
+ // endTime: '',
+ page: 1,
+ pageSize: 10,
+ userInfo:{},
+ search:"",
+ TypeData: [],
+ showTypePop: false,
+ postData:{
+ orgcode:''
+ },
+ typeId:'',
+
+
+ // 地区数据
+ areamultiIndex: [0, 0, 0],
+ areamultiIds: [],
+ areanewArr: [],
+ area:[],
+
+ // value:'',
+ // tree: [
+ // {
+ // id: 1,
+ // name: '001',
+ // open: true,
+ // children: [{
+ // id: 2,
+ // name: '001-01',
+ // children: [{
+ // id: 3,
+ // name: '001-01-01',
+ // children: []
+ // }]
+ // }]
+ // }
+ // ]
},
/**
@@ -52,14 +55,254 @@ Page({
*/
changeItem: function (params) {
this.data.currentIndex = params.currentTarget.dataset.index;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.data.typeId = params.currentTarget.dataset.item.typeId;
+ this.getList(params.currentTarget.dataset.item.typeId);
+ },
+ /**
+ * 查看详情
+ */
+ toDetail: function (params) {
+ wx.navigateTo({
+ url: `/pages/statistic/j-b-x-x/detail/index?peopleId=${params.currentTarget.dataset.item.peopleId}`,
+ })
+ },
+ /**
+ * 显示/关闭弹窗筛选
+ */
+ popModal: function (params) {
+ const type = params.currentTarget.dataset.type;
+ this.data[type] = !this.data[type];
this.setData(this.data)
},
+ /**
+ * 地址
+ */
+ typeChange: function (params) {
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ const index = params.currentTarget.dataset.index;
+ this.data.postData.type = index + 1;
+ this.data.postData.orgcode = this.data.TypeData[index].orgcode;
+ this.data.showTypePop = false;
+ this.setData(this.data);
+ this.getList(this.data.typeId);
+ },
+ /**
+ * 获取地区
+ */
+ getAreaTree: function () {
+ app.axios("GET", "common", "/sysorg/areaTree", {
+ classify: 2
+ }).then(res => {
+ if (res.code == 1) {
+ console.log(res,'res===>');
+ this.data.TypeData = res.data[0].children;
+ this.setData(this.data)
+ }
+ })
+ },
+ // /**
+ // * 开始时间
+ // */
+ // startTimeChange: function (e) {
+ // this.data.startTime = e.detail.value;
+ // this.timeGetList();
+ // },
+ // /**
+ // * 开始时间
+ // */
+ // endTimeChange: function (e) {
+ // this.data.endTime = e.detail.value;
+ // this.timeGetList();
+ // },
+ // //时间请求
+ // timeGetList: function () {
+ // this.data.page = 1;
+ // this.data.currentIndex = 0;
+ // this.data.list = [];
+ // this.setData(this.data);
+ // this.getList(this.data.tab[0].typeId);
+ // },
+ /**
+ * 获取工作统计类型
+ */
+ getType: function () {
+ app.axios("GET", "app", `/people/populationByType`).then(res => {
+ if (res.code == 1) {
+ this.data.tab = res.data;
+ this.setData(this.data);
+ this.data.typeId = res.data[0].typeId;
+ this.getList(res.data[0].typeId);
+ }
+ })
+ },
+ /**
+ * 上拉刷新
+ */
+ refresh: function () {
+ this.data.page = 1;
+ this.data.currentIndex = 0;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(this.data.tab[0].typeId);
+ },
+ dropDown: function (params) {
+ this.data.page = this.data.page+1;
+ this.setData(this.data);
+ this.getList(this.data.tab[this.data.currentIndex].typeId);
+ },
+ /**
+ * 获取工作统计每项数据列表
+ */
+ getList: function (id) {
+ let params = {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ // endTime:this.data.endTime,
+ // startTime:this.data.startTime,
+ typeId:id,
+ typeId:'',
+ // userId:this.data.userInfo.userId,
+ condition:this.data.search,
+ };
+
+ if (this.data.postData.orgcode) {
+ params.orgCode = this.data.postData.orgcode
+ }
+ console.log(params,'params==>');
+ app.axios("GET", "app", `/people/peopleInfoByType`, params).then(res => {
+ if (res.code == 1) {
+ this.data.freshIng = false;
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
+ }
+ })
+ },
+
+
+
+
+
+
+ // 地区获取
+// getAreaTree: function () {
+// app.axios("GET", "common", "/sysorg/areaTree").then(res => {
+// if (res.code == 1) {
+// this.data.areamultiArray = res.data
+// this.setData(this.data);
+// let state = {
+// arr: [],
+// arr1: [],
+// arr2: [],
+// arr3: [],
+// areamultiIds: []
+// }
+// this.data.areamultiArray.map((v, vk) => {
+// state.arr1.push(v.orgname);
+// if (this.data.areamultiIndex[0] === vk) {
+// state.areamultiIds[0] = v;
+// }
+// if (state.arr2.length <= 0) {
+// v.children.map((c, ck) => {
+// state.arr2.push(c.orgname);
+// if (this.data.areamultiIndex[1] === ck) {
+// state.areamultiIds[1] = c;
+// }
+// if (state.arr3.length <= 0) {
+// c.children.map((t, tk) => {
+// state.arr3.push(t.orgname);
+// if (this.data.areamultiIndex[2] === tk) {
+// state.areamultiIds[2] = t;
+// }
+// });
+// }
+// });
+// }
+// });
+// state.arr[0] = state.arr1;
+// state.arr[1] = state.arr2;
+// state.arr[2] = state.arr3;
+// this.setData({
+// areanewArr: state.arr,
+// areamultiIds: state.areamultiIds,
+// });
+// }
+// })
+// },
+ // 级联选择地区
+ areabindMultiPickerChange(e) {
+ console.log(this.data.areamultiIds,'级联选择地区==>');
+ this.setData({
+ area: e.detail.value,
+ areatate:true
+ });
+ },
+ areabindMultiPickerColumnChange(e) {
+ let data = {
+ areanewArr: this.data.areanewArr,
+ areamultiIndex: this.data.areamultiIndex,
+ areamultiIds: this.data.areamultiIds,
+ };
+ data.areamultiIndex[e.detail.column] = e.detail.value;
+
+ let searchColumn = () => {
+ let arr1 = [];
+ let arr2 = [];
+ this.data.areamultiArray.map((v, vk) => {
+ if (data.areamultiIndex[0] === vk) {
+ data.areamultiIds[0] = {
+ ...v,
+ };
+ v.children.map((c, ck) => {
+ arr1.push(c.orgname);
+ if (data.areamultiIndex[1] === ck) {
+ data.areamultiIds[1] = {
+ ...c,
+ };
+ c.children.map((t, vt) => {
+ arr2.push(t.orgname);
+ if (data.areamultiIndex[2] === vt) {
+ data.areamultiIds[2] = {
+ ...t,
+ };
+ }
+ });
+ }
+ });
+ }
+ });
+ data.areanewArr[1] = arr1;
+ data.areanewArr[2] = arr2;
+ };
+ switch (e.detail.column) {
+ case 0:
+ // 每次切换还原初始值
+ data.areamultiIndex[1] = 0;
+ data.areamultiIndex[2] = 0;
+ // 执行函数处理
+ searchColumn();
+ break;
+ case 1:
+ data.areamultiIndex[2] = 0;
+ searchColumn();
+ break;
+ }
+ this.setData(data);
+ },
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
-
+ this.data.freshIng = true;
+ this.data.userInfo = app.globalData.userInfo;
+ this.setData(this.data);
+ this.getType();
+ this.getAreaTree();
},
/**
@@ -100,7 +343,7 @@ Page({
/**
* 页面上拉触底事件的处理函数
*/
- onReachBottom() {
+ onReachBottom(data) {
},
diff --git a/pages/statistic/j-b-x-x/index/index.json b/pages/statistic/j-b-x-x/index/index.json
index 965b8e8..ea853c4 100644
--- a/pages/statistic/j-b-x-x/index/index.json
+++ b/pages/statistic/j-b-x-x/index/index.json
@@ -1,4 +1,5 @@
{
- "usingComponents": {},
+ "usingComponents": {
+ },
"navigationStyle": "custom"
}
\ No newline at end of file
diff --git a/pages/statistic/j-b-x-x/index/index.wxml b/pages/statistic/j-b-x-x/index/index.wxml
index e001d3f..116d610 100644
--- a/pages/statistic/j-b-x-x/index/index.wxml
+++ b/pages/statistic/j-b-x-x/index/index.wxml
@@ -1,29 +1,45 @@
-
+
+
+
-
-
+
-
+
- {{item.label}}
- {{item.val}}
+ {{item.typeName}}
+ {{item.typeNum}}
人
+
+
+
+
+ 所属社区
+
+ {{TypeData[postData.type-1].orgname}}
+
+
@@ -31,23 +47,47 @@
姓名:
- 张三
+ {{item.name}}
- 性别:男
- 年龄:26
+ 性别:{{item.sex==1?"男":"女"}}
+
+ 出生日期:{{item.birthday}}
+
+
家庭住址:
- xxxxx
+ {{item.domicileAddress}}
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/statistic/j-b-x-x/index/index.wxss b/pages/statistic/j-b-x-x/index/index.wxss
index 4394ffe..4640e0c 100644
--- a/pages/statistic/j-b-x-x/index/index.wxss
+++ b/pages/statistic/j-b-x-x/index/index.wxss
@@ -52,7 +52,7 @@
padding: 0 20rpx;
font-size: 28rpx;
position: sticky;
- top: 90rpx;
+ /* top: 90rpx; */
border-bottom: 1rpx solid #f5f5f5;
}
@@ -128,4 +128,32 @@
width: 1rpx;
height: 80%;
background-color: #f5f5f5;
+}
+
+.in-bg {
+ margin: auto;
+ background: #ffffff;
+ border-radius: 90rpx;
+ height: 90rpx;
+ width: 95%;
+ margin-top: 5rpx;
+ padding: 0 20rpx;
+}
+
+.in-bg input {
+ width: 100%;
+ height: 100%;
+}
+
+.in-bg image {
+ width: 40rpx;
+ height: 35rpx;
+ margin-right: 20rpx;
+}
+
+.in-bg .lab {
+ margin-left: 20rpx;
+ width: 230rpx;
+ font-size: 28rpx;
+ color: #333333;
}
\ No newline at end of file
diff --git a/pages/statistic/y-j/index/index.js b/pages/statistic/y-j/index/index.js
index 5925536..b3d2a64 100644
--- a/pages/statistic/y-j/index/index.js
+++ b/pages/statistic/y-j/index/index.js
@@ -22,7 +22,7 @@ const getPixelRatio = () => {
/**
* 设置echarts
*/
-function initChart(data) {
+function initChart(data,typeNum) {
if (chart == null) return
chart.init((canvas, width, height) => {
var dpr = getPixelRatio();
@@ -33,13 +33,13 @@ function initChart(data) {
});
canvas.setChart(chart);
- var colorList = ["#FF9C00", "#FF4E00", ]
- var dataList = [data.resolving, data.unresolved];
- var totalNum = 10;
+ var colorList = ["#FF9C00", "#FF4E00","#0000FF","#FFFF00" ]
+ var dataList = data;
+ var totalNum = typeNum;
var seriesList = []
dataList.forEach((item, index) => {
var obj = {
- value: Math.floor(item / totalNum * 100),
+ value: Math.floor(item.typeNum / totalNum * 100),
}
seriesList.push({
type: 'bar',
@@ -115,18 +115,18 @@ Page({
* 页面的初始数据
*/
data: {
- topBarH: app.globalData.CustomBar,
ec: {
lazyLoad: true
},
+ topBarH: app.globalData.CustomBar,
currentIndex: 0,
- tab: [{
- label: '已办事项',
- val: 8
- }, {
- label: '待办事项',
- val: 2
- }],
+ tab: [],
+ list: [],
+ startTime: '',
+ endTime: '',
+ page: 1,
+ pageSize: 10,
+ userInfo:{}
},
/**
@@ -134,26 +134,109 @@ Page({
*/
changeItem: function (params) {
this.data.currentIndex = params.currentTarget.dataset.index;
- this.setData(this.data)
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(params.currentTarget.dataset.item.typeId);
+ },
+ /**
+ * 开始时间
+ */
+ startTimeChange: function (e) {
+ this.data.startTime = e.detail.value;
+ this.timeGetList();
+ },
+ /**
+ * 开始时间
+ */
+ endTimeChange: function (e) {
+ this.data.endTime = e.detail.value;
+ this.timeGetList();
+ },
+ //时间请求
+ timeGetList: function () {
+ this.data.page = 1;
+ this.data.currentIndex = 0;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(this.data.tab[0].typeId);
+ },
+ /**
+ * 获取工作统计类型
+ */
+ getType: function () {
+ app.axios("GET", "app", `/emerEvent/emerCount/`).then(res => {
+ if (res.code == 1) {
+ console.log(res,'res===>');
+ this.data.tab = res.data;
+ this.setData(this.data);
+ console.log(res.data[0].typeId);
+ this.getList(res.data[0].typeId);
+ //渲染图标
+ let typeNum = 0;
+ res.data.forEach(item => {
+ typeNum += item.typeNum;
+ });
+ setTimeout(() => {
+ initChart(res.data,typeNum)
+ }, 500);
+ }
+ })
+ },
+ /**
+ * 上拉刷新
+ */
+ refresh: function () {
+ this.data.page = 1;
+ this.data.currentIndex = 0;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(this.data.tab[0].typeId);
+ },
+ dropDown: function (params) {
+ this.data.page = this.data.page+1;
+ this.setData(this.data);
+ this.getList(this.data.tab[this.data.currentIndex].typeId);
+ },
+ /**
+ * 获取工作统计每项数据列表
+ */
+ getList: function (id) {
+ let params = {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ endTime:this.data.endTime,
+ startTime:this.data.startTime,
+ emerTypeId:id,
+ userId:this.data.userInfo.userId,
+ };
+ app.axios("GET", "app", `/emerEvent/userEmerEventPage`, params).then(res => {
+ if (res.code == 1) {
+ this.data.freshIng = false;
+ console.log(res, 'res===>');
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
+ }
+ })
},
/**
* 生命周期函数--监听页面加载
*/
- onLoad(options) {},
-
+ onLoad(options) {
+ this.data.freshIng = true;
+ this.data.userInfo = app.globalData.userInfo;
+ this.setData(this.data);
+
+ },
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
chart = this.selectComponent('#d-chart')
this.setData(this.data)
- setTimeout(() => {
- initChart({
- resolving: 10,
- unresolved: 1,
- })
- }, 500);
+
+ this.getType();
},
/**
diff --git a/pages/statistic/y-j/index/index.wxml b/pages/statistic/y-j/index/index.wxml
index 5ffff04..dfecc21 100644
--- a/pages/statistic/y-j/index/index.wxml
+++ b/pages/statistic/y-j/index/index.wxml
@@ -1,31 +1,44 @@
-
+
-
+
- 开始时间: {{dateFilter}}
+ 开始时间: {{startTime}}
-
+
- 结束时间: {{dateFilter}}
+ 结束时间: {{endTime}}
-
- {{item.label}}
- {{item.val}}
+
+ {{item.typeName}}
+ {{item.typeNum}}
条记录
-
-
+
+
+
+
+
+ 类型:{{item.emerTypeName}}
+ 标题:{{item.title}}
+ 内容:{{item.content}}
+ 时间:{{item.createTimeString}}
+
+
+
-
\ No newline at end of file
+
+
+
+
diff --git a/pages/statistic/y-j/index/index.wxss b/pages/statistic/y-j/index/index.wxss
index 118c009..28848a6 100644
--- a/pages/statistic/y-j/index/index.wxss
+++ b/pages/statistic/y-j/index/index.wxss
@@ -76,6 +76,185 @@
height: 300rpx;
}
+.line {
+ width: 1rpx;
+ height: 80%;
+ background-color: #f5f5f5;
+}
+/* pages/t-j/g-z/index/index.wxss */
+.table {
+ display: flex;
+ flex-direction: column;
+ background-color: white;
+ margin: 10rpx;
+ border-right: 10rpx;
+}
+
+.table .tab-item {
+ display: flex;
+ flex-direction: row;
+ align-items: center;
+ width: 100%;
+ padding: 10rpx;
+ border-radius: 10rpx;
+ border-bottom: 1rpx solid #f5f5f5;
+}
+
+.table .tab-item-checked {
+ background-color: rgba(0, 0, 0, 0.1);
+}
+
+.table .tab-item .lab {
+ font-size: 30rpx;
+ width: 30vw;
+ text-align: center;
+ border-right: 1rpx solid #f5f5f5;
+}
+
+.table .tab-item .val {
+ font-size: 35rpx;
+ font-weight: bold;
+ padding-left: 10vw;
+ padding-right: 10rpx;
+}
+
+.table view:last-child {
+ border-bottom: none;
+}
+
+.content {
+ display: flex;
+ flex-direction: column;
+}
+
+.content .filter {
+ margin: 0 10rpx;
+ width: calc(100vw - 20rpx);
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+ align-items: center;
+}
+
+.content .filter picker {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+}
+
+.content .item {
+ background-color: #ffffff;
+ padding: 32rpx 20rpx 20rpx 20rpx;
+ box-shadow: 0px 0px 6px 1px #DDECF3;
+ margin: 16rpx 16rpx 0 16rpx;
+ border-radius: 10rpx;
+}
+
+.content .item .val::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.content .item .val {
+ font-size: 30rpx;
+ color: #222222;
+ margin-left: 16rpx;
+ padding: 10rpx 0;
+}
+
+
+.item .content {
+ font-size: 32rpx;
+ margin-right: 30rpx;
+ width: 100%;
+}
+
+.item .content .time::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.item .content .title {
+ display: flex;
+ align-items: center;
+}
+
+.item .content .des {
+ margin: 10rpx 0;
+}
+
+.item .content .time {
+ font-size: 26rpx;
+}
+
+.item .content .title::before {
+ display: inline-block;
+ content: '';
+ width: 10rpx;
+ height: 30rpx;
+ margin-right: 10rpx;
+ border-radius: 5rpx;
+ background-color: var(--blue);
+}
+
+.item .content .des {
+ font-size: 30rpx;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+.item .val {
+ font-size: 26rpx;
+ color: #222222;
+ margin-left: 16rpx;
+}
+
+.item .add {
+ color: var(--blue);
+ margin-left: 15rpx;
+ font-size: 30rpx;
+ margin-left: 20rpx;
+}
+
+.item .add .add-tv {
+ margin-left: 10rpx;
+}
+
+.item .line {
+ margin: 10rpx 0;
+ border-bottom: 1rpx dashed #f5f5f5;
+}
+
+.item .record {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+ color: var(--blue);
+}
+
+.item .more {
+ position: absolute;
+ right: 10rpx;
+}
+
.line {
width: 1rpx;
height: 80%;
diff --git a/pages/the-masses/appeal/index.js b/pages/the-masses/appeal/index.js
new file mode 100644
index 0000000..1378bd7
--- /dev/null
+++ b/pages/the-masses/appeal/index.js
@@ -0,0 +1,177 @@
+const app = getApp();
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ curTab: 0,
+ tabs: [{
+ lab: '待处置',
+ val: 1
+ }, {
+ lab: '已处置',
+ val: 2
+ }, {
+ lab: '已取消',
+ val: 3
+ }],
+
+ list: [],
+ startTime: '',
+ endTime: '',
+ page: 1,
+ pageSize: 10,
+ userInfo:{}
+ },
+
+ /**
+ * 开始时间
+ */
+ startTimeChange: function (e) {
+ this.data.startTime = e.detail.value;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(this.data.curTab+1);
+ },
+ /**
+ * 开始时间
+ */
+ endTimeChange: function (e) {
+ this.data.endTime = e.detail.value;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(this.data.curTab+1);
+ },
+ /**
+ * 切换筛选
+ */
+ tabSelect: function (params) {
+ const index = params.currentTarget.dataset.index;
+ this.data.curTab = index;
+ this.data.freshIng = true;
+ this.setData(this.data)
+
+ },
+ /**
+ * 上拉刷新
+ */
+ refresh: function () {
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList(this.data.curTab+1);
+ },
+
+ /**
+ * 下拉加载
+ */
+ dropDown: function (params) {
+ this.data.page = this.data.page+1;
+ this.setData(this.data);
+ this.getList(this.data.curTab+1);
+ },
+ /**
+ * 上报困难诉求
+ */
+ push: function (params) {
+ wx.navigateTo({
+ url: `/pages/the-masses/escalation/index`,
+ })
+ },
+
+ /**
+ * 获取工困难诉求列表
+ */
+ getList: function (id) {
+ let params = {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ endTime:this.data.endTime,
+ startTime:this.data.startTime,
+ difficultyState:id,
+ userId:this.data.userInfo.userId,
+ };
+ console.log(params,'params===>');
+ app.axios("GET", "app", `/difficultyAppeal/difficultyList`, params).then(res => {
+ if (res.code == 1) {
+ console.log(res,'res===>');
+ this.data.freshIng = false;
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
+ }
+ })
+ },
+ /**
+ * 查看详情
+ */
+ toDetail: function (params) {
+ console.log(params,'params===>');
+ wx.navigateTo({
+ url: `/pages/the-masses/escalation/index?difficultyId=${params.currentTarget.dataset.item.difficultyId}`,
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.data.freshIng = true;
+ this.data.userInfo = app.globalData.userInfo;
+ this.setData(this.data);
+ this.getList(1);
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom(data) {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/the-masses/appeal/index.json b/pages/the-masses/appeal/index.json
new file mode 100644
index 0000000..965b8e8
--- /dev/null
+++ b/pages/the-masses/appeal/index.json
@@ -0,0 +1,4 @@
+{
+ "usingComponents": {},
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/the-masses/appeal/index.wxml b/pages/the-masses/appeal/index.wxml
new file mode 100644
index 0000000..a4955e7
--- /dev/null
+++ b/pages/the-masses/appeal/index.wxml
@@ -0,0 +1,39 @@
+
+
+
+
+
+
+ {{item.lab}}
+
+
+
+
+
+
+
+
+ 开始时间: {{startTime}}
+
+
+
+
+
+ 结束时间: {{endTime}}
+
+
+
+
+
+
+ 处置状态:{{item.difficultyState==1?"待处置":item.difficultyState==2?"已处置":"已取消"}}
+
+ 时间:{{item.createTime}}
+
+
+
+
+
+
+ 上报诉求
+
\ No newline at end of file
diff --git a/pages/the-masses/appeal/index.wxss b/pages/the-masses/appeal/index.wxss
new file mode 100644
index 0000000..90d64eb
--- /dev/null
+++ b/pages/the-masses/appeal/index.wxss
@@ -0,0 +1,170 @@
+
+.content {
+ display: flex;
+ flex-direction: column;
+}
+
+.content .filter {
+ margin: 0 10rpx;
+ width: calc(100vw - 20rpx);
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+ align-items: center;
+}
+
+.content .filter picker {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+}
+
+.content .item {
+ background-color: #ffffff;
+ padding: 32rpx 20rpx 20rpx 20rpx;
+ box-shadow: 0px 0px 6px 1px #DDECF3;
+ margin: 16rpx 16rpx 0 16rpx;
+ border-radius: 10rpx;
+}
+
+.content .item .val::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.content .item .val {
+ font-size: 30rpx;
+ color: #222222;
+ margin-left: 16rpx;
+ padding: 10rpx 0;
+}
+
+
+.item .content {
+ font-size: 32rpx;
+ margin-right: 30rpx;
+}
+
+.item .content .time::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.item .content .title {
+ display: flex;
+ align-items: center;
+}
+
+.item .content .des {
+ margin: 10rpx 0;
+}
+
+.item .content .time {
+ font-size: 26rpx;
+}
+
+.item .content .title::before {
+ display: inline-block;
+ content: '';
+ width: 10rpx;
+ height: 30rpx;
+ margin-right: 10rpx;
+ border-radius: 5rpx;
+ background-color: var(--blue);
+}
+
+.item .content .des {
+ font-size: 30rpx;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+.item .val {
+ font-size: 26rpx;
+ color: #222222;
+ margin-left: 16rpx;
+}
+
+.item .add {
+ color: var(--blue);
+ margin-left: 15rpx;
+ font-size: 30rpx;
+ margin-left: 20rpx;
+}
+
+.item .add .add-tv {
+ margin-left: 10rpx;
+}
+
+.item .line {
+ margin: 10rpx 0;
+ border-bottom: 1rpx dashed #f5f5f5;
+}
+
+.item .record {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+ color: var(--blue);
+}
+
+.item .more {
+ position: absolute;
+ right: 10rpx;
+}
+
+.line {
+ width: 1rpx;
+ height: 80%;
+ background-color: #f5f5f5;
+}
+
+.cu-item {
+ font-size: 30rpx;
+ font-weight: bold;
+}
+
+.option {
+ position: fixed;
+ bottom: calc(constant(safe-area-inset-bottom) + 30rpx);
+ bottom: calc(env(safe-area-inset-bottom) + 30rpx);
+ left: 0;
+ right: 0;
+ margin-top: 30rpx;
+ padding: 16rpx 32rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx 0rpx 12rpx 2rpx #DDECF3;
+ z-index: 10;
+}
+
+.option .btn {
+ padding: 14rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #409CFF;
+ color: #FFFFFF;
+ border-radius: 12rpx;
+}
+
+.option .btn:active {
+ opacity: 0.8;
+}
\ No newline at end of file
diff --git a/pages/the-masses/escalation/index.js b/pages/the-masses/escalation/index.js
new file mode 100644
index 0000000..f29fdbf
--- /dev/null
+++ b/pages/the-masses/escalation/index.js
@@ -0,0 +1,174 @@
+import Utils from "../../../utils/util"
+const app = getApp();
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ postData: {},
+ userInfo:{}
+ },
+ /**
+ * 输入内容
+ */
+ inputContent: function (e) {
+ const name = e.currentTarget.dataset.name;
+ this.data.postData[name] = e.detail.value;
+ },
+ /**
+ * 发布
+ */
+ push: function () {
+ if (!this.data.postData.content) {
+ wx.showToast({
+ title: '请输入内容',
+ icon: 'none'
+ })
+ return
+ };
+ let params= {
+ ...this.data.postData,
+ difficultyId:this.data.postData.difficultyId||'',
+ userId:this.data.userInfo.userId,
+ };
+ app.axios("POST", "app", "/difficultyAppeal/addDifficulty", params).then(res => {
+ if (res.code == 1) {
+ wx.showToast({
+ title: '发布成功',
+ icon: 'none'
+ })
+ setTimeout(() => {
+ wx.navigateBack()
+ }, 1500);
+ } else {
+ wx.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ }
+ })
+ },
+ //撤销上报
+ cancellation:function () {
+ let id = this.data.postData.difficultyId;
+ let userId = this.data.userInfo.userId;
+ wx.showModal({
+ title: '撤销上报',
+ content: '是否确认撤销上报',
+ success (res) {
+ if (res.confirm) {
+ app.axios("PUT", "app", `/difficultyAppeal/cancelDifficulty/${id}/${userId}`).then(res => {
+ if (res.code == 1) {
+ wx.showToast({
+ title: '撤销上报成功',
+ icon: 'none'
+ })
+ setTimeout(() => {
+ wx.navigateBack()
+ }, 1500);
+ }
+ });
+ } else if (res.cancel) {
+ }
+ }
+ })
+
+ },
+ //删除详情
+ delete:function (params) {
+ let id = this.data.postData.difficultyId;
+ let userId = this.data.userInfo.userId;
+ wx.showModal({
+ title: '删除',
+ content: '是否确认取消',
+ success (res) {
+ if (res.confirm) {
+ app.axios("DELETE", "app", `/difficultyAppeal/deleteDifficulty/${id}/${userId}`).then(res => {
+ if (res.code == 1) {
+ wx.showToast({
+ title: '删除成功',
+ icon: 'none'
+ })
+ setTimeout(() => {
+ wx.navigateBack()
+ }, 1500);
+ }
+ });
+ } else if (res.cancel) {
+ }
+ }
+ })
+ },
+ //获取详情
+ getDetail:function (id) {
+ app.axios("GET", "app", `/difficultyAppeal/difficultyDetail/${id}`).then(res => {
+ this.data.postData = res.data;
+ this.setData(this.data);
+ });
+ },
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ if (options.difficultyId) {
+ this.getDetail(options.difficultyId);
+ }
+ // this.data.isUserDetail = options.user;
+ // this.data.uuid = Utils.uuid();
+ // this.setData(this.data)
+ this.data.userInfo = app.globalData.userInfo;
+ this.setData(this.data);
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/the-masses/escalation/index.json b/pages/the-masses/escalation/index.json
new file mode 100644
index 0000000..c666f1f
--- /dev/null
+++ b/pages/the-masses/escalation/index.json
@@ -0,0 +1,6 @@
+{
+ "usingComponents": {
+ "tree": "/components/tree/index"
+ },
+ "navigationStyle": "custom"
+}
\ No newline at end of file
diff --git a/pages/the-masses/escalation/index.wxml b/pages/the-masses/escalation/index.wxml
new file mode 100644
index 0000000..cc427f0
--- /dev/null
+++ b/pages/the-masses/escalation/index.wxml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+ 上报
+
+
+
+ 取消上报
+ 删除
+
+
\ No newline at end of file
diff --git a/pages/the-masses/escalation/index.wxss b/pages/the-masses/escalation/index.wxss
new file mode 100644
index 0000000..aba9fab
--- /dev/null
+++ b/pages/the-masses/escalation/index.wxss
@@ -0,0 +1,122 @@
+scroll-view {
+ background-color: #f5f5f5;
+ box-sizing: border-box;
+}
+
+.filter {
+ margin: 0 10rpx;
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+}
+
+.filter picker {
+ flex: 1;
+ height: 100%;
+ display: flex;
+ align-items: center;
+}
+
+.item {
+ background-color: #ffffff;
+ margin: 32rpx 20rpx 20rpx 20rpx;
+ padding: 20rpx;
+ position: relative;
+ border-radius: 10rpx;
+ z-index: 2;
+}
+
+.item .header {
+ margin-top: 16rpx;
+}
+
+.item .header .single {
+ width: 8rpx;
+ height: 36rpx;
+ background: #4882EE;
+ border-radius: 4rpx;
+ margin-right: 10rpx;
+}
+
+.item .header .title {
+ font-size: 30rpx;
+ font-weight: bold;
+ color: #222222;
+}
+
+.item .put {
+ width: 100%;
+ background: #F5F7FC;
+ border-radius: 12rpx;
+ min-height: 72rpx;
+ padding: 15rpx;
+ margin-top: 16rpx;
+ color: #333333;
+ font-size: 28rpx;
+}
+
+.grid {
+ margin-top: 20rpx;
+ display: grid;
+ grid-gap: 20rpx 20rpx;
+ grid-template-columns: calc((100vw - 140rpx)/3) auto auto;
+}
+
+.grid .img {
+ width: calc((100vw - 140rpx)/3);
+ height: calc((100vw - 140rpx)/3);
+ background-color: #f5f5f5;
+ border-radius: 10rpx;
+}
+
+.grid .del {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ z-index: 1;
+ font-size: 40rpx;
+}
+
+.option {
+ position: fixed;
+ bottom: calc(constant(safe-area-inset-bottom) + 30rpx);
+ bottom: calc(env(safe-area-inset-bottom) + 30rpx);
+ left: 0;
+ right: 0;
+ margin-top: 30rpx;
+ padding: 16rpx 32rpx;
+ background: #FFFFFF;
+ box-shadow: 0rpx 0rpx 12rpx 2rpx #DDECF3;
+ z-index: 10;
+}
+
+.option .btn {
+ padding: 14rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #409CFF;
+ color: #FFFFFF;
+ border-radius: 12rpx;
+}
+
+.option .btn:active {
+ opacity: 0.8;
+}
+
+.space {
+ height: calc(constant(safe-area-inset-bottom) + 150rpx);
+ height: calc(env(safe-area-inset-bottom) + 150rpx);
+}
+.option_div{
+ display: flex;
+}
+.option_div view{
+ width: 100%;
+}
+.option_div view:nth-child(2){
+ margin-left: 20rpx;
+ background-color: red;
+}
\ No newline at end of file
diff --git a/pages/the-masses/escalation/index1.js b/pages/the-masses/escalation/index1.js
new file mode 100644
index 0000000..ee53230
--- /dev/null
+++ b/pages/the-masses/escalation/index1.js
@@ -0,0 +1,271 @@
+import Utils from "../../../utils/util"
+const app = getApp();
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ baseUrl: app.FILE_SERVER_URL,
+
+ dateFilter: Utils.formatTime(new Date(), '-'),
+ showTypePop: false,
+ showTaskPop: false,
+ TypeData: [],
+ postData: {}
+ },
+
+ /**
+ * 时间
+ */
+ bindDateChange: function (params) {
+ const name = params.currentTarget.dataset.name;
+ this.data.postData[name] = params.detail.value;
+ this.setData(this.data)
+ },
+
+ /**
+ * 显示/关闭任务弹窗
+ */
+ popTaskModal: function (params) {
+ const type = params.currentTarget.dataset.type;
+ this.data[type] = !this.data[type];
+ this.setData(this.data)
+ },
+
+ /**
+ * 显示/关闭弹窗
+ */
+ popModal: function (params) {
+ const type = params.currentTarget.dataset.type;
+ this.data[type] = !this.data[type];
+ this.setData(this.data)
+ },
+
+ /**
+ * 通知类型
+ */
+ typeChange: function (params) {
+ const index = params.currentTarget.dataset.index;
+ this.data.postData.type = index + 1;
+ this.data.postData.typeId = this.data.TypeData[index].typeId;
+ this.data.showTypePop = false;
+ this.setData(this.data)
+ },
+
+ /**
+ * 输入内容
+ */
+ inputContent: function (e) {
+ const name = e.currentTarget.dataset.name;
+ this.data.postData[name] = e.detail.value;
+ },
+
+ /**
+ * 选择文件
+ */
+ chooseFile: function () {
+ wx.chooseImage({
+ count: 1,
+ type: 'all',
+ success: (res) => {
+ const tempFilePaths = res.tempFiles;
+ const path = tempFilePaths[0].path;
+ this.postImg(path)
+ }
+ })
+ },
+
+ /**
+ * 获取工作类型
+ */
+ getType: function () {
+ app.axios("GET", "app", "/work/wkTypes", {
+ classify: 2
+ }).then(res => {
+ if (res.code == 1) {
+ this.data.TypeData = res.data;
+ this.setData(this.data)
+ }
+ })
+ },
+
+ /**
+ * 上传图片
+ */
+ postImg(filePath) {
+ wx.showLoading({
+ title: '文件上传中...',
+ })
+ app.uploadFile(this.data.uuid, app.FileType.resumptionAcs, filePath).then(res => {
+ wx.hideLoading();
+ this.getFiles();
+ })
+ },
+
+ /**
+ * 获取图片
+ */
+ getFiles: function () {
+ app.axios("GET", "common", "/upload/getFile", {
+ otcid: this.data.uuid,
+ otctype: app.FileType.resumptionAcs
+ }).then(res => {
+ if (res.code == 1) {
+ this.data.files = res.data;
+ this.setData(this.data)
+ }
+ })
+ },
+
+ /**
+ * 删除图片
+ * @param {*} params
+ */
+ deleteFile: function (e) {
+ var id = e.currentTarget.dataset.id;
+ wx.showModal({
+ title: '删除提示',
+ content: '是否要删除该附件?',
+ success: (res) => {
+ if (res.confirm) {
+ app.axios("GET", 'common', "/upload/delFile", {
+ documentId: id,
+ }).then(res => {
+ if (res.code == 1) {
+ this.getFiles();
+ }
+ })
+ }
+ }
+ })
+ },
+
+ /**
+ * 发布
+ */
+ push: function () {
+ this.data.postData.userId = app.globalData.userInfo.userId;
+ this.data.postData.dynamicsId = this.data.uuid;
+ if (!this.data.postData.title) {
+ wx.showToast({
+ title: '请输入工作标题',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.typeId) {
+ wx.showToast({
+ title: '请选择工作类型',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.content) {
+ wx.showToast({
+ title: '请输入内容',
+ icon: 'none'
+ })
+ return
+ }
+ if (!this.data.postData.startTime || !this.data.postData.endTime) {
+ wx.showToast({
+ title: '请设置时间',
+ icon: 'none'
+ })
+ return
+ }
+ app.axios("POST", "app", "/work/wkDynamicsAdd", this.data.postData).then(res => {
+ if (res.code == 1) {
+ wx.showToast({
+ title: '发布成功',
+ icon: 'none'
+ })
+ setTimeout(() => {
+ wx.navigateBack()
+ }, 1500);
+ } else {
+ wx.showToast({
+ title: res.message,
+ icon: 'none'
+ })
+ }
+ })
+ },
+
+ /**
+ * 预览文件
+ */
+ filePre: function (params) {
+ const url = params.currentTarget.dataset.url;
+ const imgs = [];
+ this.data.files.forEach(item => {
+ imgs.push(this.data.baseUrl + item.filepath)
+ })
+ wx.previewImage({
+ urls: imgs,
+ current: this.data.baseUrl + url
+ })
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad(options) {
+ this.data.isUserDetail = options.user;
+ this.data.uuid = Utils.uuid();
+ this.setData(this.data)
+ this.getType();
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide() {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload() {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh() {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom() {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage() {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/the-masses/escalation/index1.wxml b/pages/the-masses/escalation/index1.wxml
new file mode 100644
index 0000000..08329ab
--- /dev/null
+++ b/pages/the-masses/escalation/index1.wxml
@@ -0,0 +1,77 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 开始时间: {{postData.startTime||'-'}}
+
+
+
+
+ 结束时间: {{postData.endTime||'-'}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上报
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/the-masses/index/index.js b/pages/the-masses/index/index.js
index bf4ff07..8a8e5ab 100644
--- a/pages/the-masses/index/index.js
+++ b/pages/the-masses/index/index.js
@@ -3,157 +3,212 @@ const app = getApp()
Page({
data: {
baseImgUrl: app.FILE_SERVER_URL,
- nineType: 0,
- ec: {
- lazyLoad: true
- },
- filterIndex: 0,
- itemList: [{
- icon: "icon_tab1",
- name: "履职清单",
- href: "/pages/duty/index/index"
- },
- // {
- // icon: "icon_tab2",
- // name: "专项任务",
- // href: "/pages/task/index/index"
- // },
- {
- icon: "icon_tab3",
- name: "一企一档",
- href: "/pages/ent-obj/index/index"
- },
- {
- icon: "icon_tab4",
- name: "隐患核查",
- href: "/pages/danger/list/index"
- },
- // {
- // icon: "icon_tab5",
- // name: "群防群治",
- // href: "/pages/people/index/index",
- // },
- // {
- // icon: "icon-emergency",
- // name: "应急管理",
- // href: "/pages/emergency/index/index",
- // },
- // {
- // icon: "icon_tab6",
- // name: "发布通知",
- // href: "/pages/msg/push-index/index",
- // },
- ],
- filter: [{
- lab: '今日数据',
- val: 0
- }, {
- lab: '本月数据',
- val: 1
- }],
- dLegend: [{
- name: '已整改',
- num: 0,
- color: '#2678FF'
- }, {
- name: '整改中',
- num: 0,
- color: '#FF9C00'
- }, {
- name: '未整改',
- num: 0,
- color: '#FF4E00'
- }],
-
- // 数据统计
- tab1: [{
- icon: "icon_tab1",
- name: "工作日志",
- href: "/pages/statistic/g-z-r-z/index/index"
- }, {
- icon: "icon_tab2",
- name: "工作统计",
- href: "/pages/statistic/g-z-t-j/index/index"
- }, {
- icon: "icon_tab3",
- name: "应急统计",
- href: "/pages/statistic/y-j/index/index"
- }, {
- icon: "icon_tab4",
- name: "基本信息",
- href: "/pages/statistic/j-b-x-x/index/index"
- }],
- // 工作台
- tab2: [{
- icon: "icon_w_1",
- name: "上报动态",
- href: "/pages/work/s-b/index/index",
- },
- {
- icon: "icon_w_2",
- name: "待办事项",
- href: "/pages/work/d-b-s-x/index/index?id=0"
- },
- {
- icon: "icon_w_3",
- name: "已办事项",
- href: "/pages/work/d-b-s-x/index/index?id=1"
- },
- ],
- // 应急指挥
- tab3: [{
- icon: "icon_yj_1",
- name: "应急预案",
- href: "/pages/emergency/y-a/index/index",
- },
- {
- icon: "icon_yj_2",
- name: "指挥体系",
- href: "/pages/emergency/s-b/index/index"
- },
- {
- icon: "icon_yj_3",
- name: "应急通讯录",
- href: "/pages/emergency/t-x/index/index"
- },
- ],
-
+ topBarH: app.globalData.CustomBar,
+ typeId:app.publicService,
// 公告
notice: [],
-
- showPop: false,
- msgData: null,
- checkInfo: {},
-
- userInfo: {}
+ list:[],
+ page: 1,
+ pageSize: 10,
+ tabs: [{
+ lab: '云学习',
+ val: 0
+ }, {
+ lab: '云公开',
+ val: 1
+ }, {
+ lab: '云诉求',
+ val: 2
+ }, ],
+ curTab:0,
+ userInfo:{},
+ startTime: '',
+ endTime: '',
},
/**
- * 跳转
+ * 切换筛选
*/
- toSkip: function (params) {
- const item = params.currentTarget.dataset.item;
- const url = params.currentTarget.dataset.url;
- if (url || item?.href) {
- wx.navigateTo({
- url: url || item.href,
- })
- }
+ tabSelect: function (params) {
+ this.data.page = 1;
+ const index = params.currentTarget.dataset.index;
+ this.data.curTab = index;
+ this.data.freshIng = true;
+ this.data.startTime = '';
+ this.data.endTime = '';
+ this.setData(this.data)
+ },
+ refresh: function (params) {
+ this.data.page = 1;
+ this.data.list = [];
+ this.getList();
+ },
+ /**
+ * 开始时间
+ */
+ startTimeChange: function (e) {
+ this.data.startTime = e.detail.value;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList();
+ },
+ /**
+ * 结束时间
+ */
+ endTimeChange: function (e) {
+ this.data.endTime = e.detail.value;
+ this.data.page = 1;
+ this.data.list = [];
+ this.setData(this.data);
+ this.getList();
+ },
+ //下拉刷新
+ dropDown: function (params) {
+ this.data.page = this.data.page+1;
+ this.setData(this.data);
+ this.getList();
+ },
+
+ getList: function (id) {
+
+
+ if (this.data.curTab == 0) {
+ this.getBanner();
+ }
+ if (this.data.curTab == 1) {
+ this.getPublicContentPage();
+}
+if (this.data.curTab == 2) {
+ this.getDifficultyList();
+}
+
+ },
+ /**
+ * 获取工困难诉求列表
+ */
+ getDifficultyList: function (id) {
+ let params = {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ endTime:this.data.endTime,
+ startTime:this.data.startTime,
+ userId:this.data.userInfo.userId,
+ };
+ console.log(params,'params===>');
+ app.axios("GET", "app", `/difficultyAppeal/difficultyList`, params).then(res => {
+ if (res.code == 1) {
+ this.data.freshIng = false;
+ this.data.list = [...this.data.list,...res.data.list];
+ console.log( this.data.list ,' this.data.list ===>');
+ this.setData(this.data);
+ }
+ })
+ },
+ /**
+ * 困难诉求查看
+ */
+ toescalationDetail: function (params) {
+ console.log(params,'params===>');
+ wx.navigateTo({
+ url: `/pages/the-masses/escalation/index?difficultyId=${params.currentTarget.dataset.item.difficultyId}`,
+ })
+ },
+ /**
+ * 上报困难诉求
+ */
+ escalationDifficulty: function (params) {
+ wx.navigateTo({
+ url: `/pages/the-masses/escalation/index`,
+ })
+ },
+ /**
+ * 查看服务详情
+ */
+ toserveDetail: function (params) {
+ wx.navigateTo({
+ url: `/pages/party-member/serve/index?dynamicsId=${params.currentTarget.dataset.item.dynamicsId}`,
+ })
+ },
+ /**
+ * 上报服务
+ */
+ escalationAppeal: function (params) {
+ wx.navigateTo({
+ url: `/pages/party-member/serve/index`,
+ })
+ },
+ // 工作动态列表/云服务
+ getWkDynamicsPage :function() {
+ let params = {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ endTime:this.data.endTime,
+ startTime:this.data.startTime,
+ typeId:this.data.typeId,
+ userId:this.data.userInfo.userId,
+ };
+ app.axios("GET", "app", `/work/wkDynamicsPage`, params).then(res => {
+ if (res.code == 1) {
+ this.data.freshIng = false;
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
+ }
+ })
+ },
+ /**
+ * 上报服务
+ */
+ escalationServe: function (params) {
+ wx.navigateTo({
+ url: `/pages/party-member/serve/index`,
+ })
},
+
+
+
/**
- * 获取banner
+ * 获取云学习
*/
getBanner: function () {
- app.axios("GET", "app", "/notice/lastFourNotice", {
- page: 1,
- limit: 4,
- userId: app.globalData.userInfo.userId
+ app.axios("GET", "app", "/partyLearnContent/partyLearnPage", {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ // userId: app.globalData.userInfo.userId
}, false).then(res => {
wx.stopPullDownRefresh();
if (res.code == 1) {
- this.data.notice = res.data;
- this.setData(this.data)
+ console.log(res,'res====>');
+ this.data.freshIng = false;
+
+ if (this.data.page == 1) {
+ this.data.notice = [res.data.list[0]];
+ }
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
+ }
+ })
+ },
+ /**
+ * 获取云公开
+ */
+ getPublicContentPage: function () {
+ app.axios("GET", "app", "/publicContent/publicContentPage", {
+ limit:this.data.pageSize,
+ page:this.data.page,
+ // userId: app.globalData.userInfo.userId
+ }, false).then(res => {
+ wx.stopPullDownRefresh();
+ if (res.code == 1) {
+ console.log(res,'res====>');
+ this.data.freshIng = false;
+
+ if (this.data.page == 1) {
+ this.data.notice = [res.data.list[0]];
+ }
+ this.data.list = [...this.data.list,...res.data.list];
+ this.setData(this.data);
}
})
},
@@ -164,20 +219,44 @@ Page({
toMsgDetail: function (params) {
const item = params.currentTarget.dataset.item;
wx.navigateTo({
- url: `/pages/web/index?id=${item.govNoticeId}`,
+ url: `/pages/the-masses/web/index?id=${item.publicContentId}`,
+ })
+ },
+
+ /**
+ * 跳转账户信息
+ */
+ toSkip: function (params) {
+ const item = params.currentTarget.dataset.item;
+ const url = params.currentTarget.dataset.url;
+ if (url || item?.href) {
+ wx.navigateTo({
+ url: url || item.href,
+ })
+ }
+ },
+ //跳转为民服务
+ toAppeal: function () {
+ wx.navigateTo({
+ url: `/pages/party-member/problem/index`,
})
},
onLoad(option) {
+ // this.data.userInfo = app.globalData.userInfo;
+ // this.getBanner();
+ // this.data.curTab = 0;
this.data.userInfo = app.globalData.userInfo;
- this.getBanner();
+ this.data.freshIng = true;
+ this.setData(this.data)
+
},
onReady() {
},
- onPullDownRefresh() {
- this.getBanner();
- }
+ // onPullDownRefresh() {
+ // this.getBanner();
+ // }
})
\ No newline at end of file
diff --git a/pages/the-masses/index/index.wxml b/pages/the-masses/index/index.wxml
index a2c4739..30d2f32 100644
--- a/pages/the-masses/index/index.wxml
+++ b/pages/the-masses/index/index.wxml
@@ -1,24 +1,84 @@
-
-
-
-
- {{userInfo.chinaName}}
- 党员
+
+
+
+
+
+ {{item.lab}}
+
+
+
+
+
+ 开始时间: {{startTime}}
+
+
+
+
+
+ 结束时间: {{endTime}}
+
+
-
-
-
- 为民服务
- 点击直接上报群众问题!
-
+
+
+
+
+
+
+ {{item.content}}
+ 时间:{{item.createTime}}
+ 处置状态:{{item.difficultyState==1?"待处置":item.difficultyState==2?"已处置":"已取消"}}
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
+
+
+
+
+ {{item.title}}
+
+
+
+
+
-
-
-
-
- {{item.title}}
-
-
\ No newline at end of file
+
+
+
+
+ 上报诉求
+
\ No newline at end of file
diff --git a/pages/the-masses/index/index.wxss b/pages/the-masses/index/index.wxss
index 796a545..75324e5 100644
--- a/pages/the-masses/index/index.wxss
+++ b/pages/the-masses/index/index.wxss
@@ -1,4 +1,12 @@
/**index.wxss**/
+/**index.wxss**/
+page {
+background: linear-gradient( 180deg, #4281FF 0%, #E7EDFA 45%, #F9F9F9 100%);
+}
+.top{
+ width: 100vw;
+ height: 160rpx;
+}
.wx-swiper-dots .wx-swiper-dot {
width: 40rpx;
height: 10rpx;
@@ -11,55 +19,6 @@
text-align: left;
}
-.top {
- width: 100vw;
- height: 380rpx;
- position: relative;
-}
-
-.top .img {
- width: 100vw;
- height: 450rpx;
- position: absolute;
- z-index: -1;
-}
-
-.top .avatar {
- width: 100rpx;
- height: 100rpx;
- border-radius: 50%;
- background-color: #ffffff;
- margin: 0 32rpx;
- margin-top: 80rpx;
-}
-
-.top .name {
- color: white;
- font-size: 38rpx;
- margin-right: 20rpx;
- margin-top: 80rpx;
-}
-
-.top .duty {
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 80rpx;
- padding: 0 20rpx;
- font-size: 30rpx;
- color: #FFC054;
- border-radius: 40rpx;
- border: 2rpx solid #FFAF54;
-}
-
-.top .point {
- color: white;
- font-size: 32rpx;
- margin-right: 20rpx;
- margin-top: 10rpx;
- opacity: 0.9;
-}
-
/* 背景 */
.item-bg {
padding: 0 32rpx;
@@ -104,11 +63,11 @@
.swiper-msg .img {
width: 100%;
- height: 100%;
+ height: 100% !important;
}
.swiper-msg .item .title {
- background-color: rgba(0, 0, 0, 0.5);
+ background-color: #000000BF;
position: absolute;
bottom: 0;
z-index: 1;
@@ -162,16 +121,390 @@
font-weight: bold;
color: #222222;
}
-/* 为民服务 */
-.service{
-
-}
-.serviceImg{
-
-}
-.service .title{
+/* 为民服务 */
+.service {
+ width: 95vw;
+ height: 100rpx;
+ margin: 32rpx auto;
+ background: #FFFFFF;
+ border-radius: 12rpx 12rpx 12rpx 12rpx;
+ display: flex;
+ align-items: center;
}
-.service .con{
-
+
+.service .serviceFuwuImg {
+ width: 60rpx;
+ height: 68rpx;
+ margin-left: 22rpx;
+ margin-right: 5rpx;
+}
+.service .service_con{
+ display: flex;
+ background-color: #F4F8FFFF;
+ height: 60rpx;
+ flex: 1;
+ margin-right: 40rpx;
+ align-items: center;
+}
+.service .service_con .serviceTitleImg {
+ width: 132rpx;
+ height: 46rpx;
+ margin-right: 22rpx;
+ margin-left: 22rpx;
+}
+
+.service .service_con .con {
+ width: 264rpx;
+ height: 34rpx;
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #A3A9C4;
+}
+
+.study {
+ width: 95vw;
+ /* height: 100%; */
+ border-radius: 12rpx;
+ background-color: #FFFFFFFF;
+ margin: auto;
+}
+
+.studyOption {
+ width: 88vw;
+ height: 200rpx;
+ margin: auto;
+ display: flex;
+ padding: 20rpx 0rpx;
+}
+
+.study_left {
+ display: flex;
+ position: relative;
+}
+
+.study_left image {
+ width: 262rpx;
+ height: 154rpx;
+ border-radius: 8rpx;
+}
+
+.study_left view {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 110rpx;
+ height: 40rpx;
+ border-radius: 8rpx 0rpx 8rpx 0rpx;
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #FFFFFF;
+ text-align: center;
+ background-color: #01010166;
+}
+
+.study_right {
+ width: 100%;
+ margin-left: 20rpx;
+ display: flex;
+ flex-direction:column;
+ justify-content: space-between;
+}
+
+.study_right .study_right_title {
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 600;
+ font-size: 28rpx;
+ color: #333333;
+ line-height: 40rpx;
+ text-align: left;
+
+ overflow : hidden;
+text-overflow: ellipsis;
+display: -webkit-box;
+-webkit-line-clamp: 3;
+-webkit-box-orient: vertical;
+}
+.study_right .study_right_con{
+ display: flex;
+ justify-content: space-between;
+font-family: PingFang SC, PingFang SC;
+font-size: 22rpx;
+color: #545454;
+}
+.cu-item {
+ font-size: 30rpx;
+ font-weight: bold;
+}
+
+.filter {
+ margin: -1rpx;
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+ align-items: center;
+}
+
+ .filter picker {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+}
+/* components/notice/index.wxss */
+
+.swiper-msg {
+ /* margin-top: -80rpx; */
+ height: 400rpx;
+ padding: 0;
+}
+
+.swiper-msg .item {
+ width: 100%;
+ height: 100%;
+ border-radius: 12rpx;
+ position: relative;
+}
+
+.swiper-msg .img {
+ width: 100%;
+ height: 100% !important;
+}
+
+.swiper-msg .item .title {
+ background-color: #000000BF;
+ position: absolute;
+ bottom: 0;
+ z-index: 1;
+ left: 0;
+ right: 0;
+ color: white;
+ padding: 15rpx 20rpx;
+ font-size: 28rpx;
+}
+
+.study {
+ width: 95vw;
+ /* height: 100%; */
+ border-radius: 12rpx;
+ background-color: #FFFFFFFF;
+ margin: 40rpx auto;
+}
+
+.studyOption {
+ width: 88vw;
+ height: 200rpx;
+ margin: auto;
+ display: flex;
+ padding: 20rpx 0rpx;
+}
+
+.study_left {
+ display: flex;
+ position: relative;
+}
+
+.study_left image {
+ width: 262rpx;
+ height: 154rpx;
+ border-radius: 8rpx;
+}
+
+.study_left view {
+ position: absolute;
+ top: 0;
+ left: 0;
+ width: 110rpx;
+ height: 40rpx;
+ border-radius: 8rpx 0rpx 8rpx 0rpx;
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #FFFFFF;
+ text-align: center;
+ background-color: #01010166;
+}
+
+.study_right {
+ margin-left: 20rpx;
+ display: flex;
+ flex-direction:column;
+ justify-content: space-between;
+}
+
+.study_right .study_right_title {
+ font-family: PingFang SC, PingFang SC;
+ font-weight: 600;
+ font-size: 28rpx;
+ color: #333333;
+ line-height: 40rpx;
+ text-align: left;
+
+ overflow : hidden;
+text-overflow: ellipsis;
+display: -webkit-box;
+-webkit-line-clamp: 3;
+-webkit-box-orient: vertical;
+}
+.study_right .study_right_con{
+ display: flex;
+ justify-content: space-between;
+font-family: PingFang SC, PingFang SC;
+font-size: 22rpx;
+color: #545454;
+}
+.suqiucontent{
+ width: 100%;
+}
+.suqiucontent view:nth-child(1){
+ display: flex;
+ justify-content: space-between;
+}
+
+.content {
+ display: flex;
+ flex-direction: column;
+}
+
+.content .filter {
+ margin: 0 10rpx;
+ width: calc(100vw - 20rpx);
+ height: 80rpx;
+ display: flex;
+ flex-direction: row;
+ background-color: white;
+ border-radius: 10rpx;
+ align-items: center;
+}
+
+.content .filter picker {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+}
+
+.content .item {
+ background-color: #ffffff;
+ padding: 32rpx 20rpx 20rpx 20rpx;
+ box-shadow: 0px 0px 6px 1px #DDECF3;
+ margin: 16rpx 16rpx 0 16rpx;
+ border-radius: 10rpx;
+}
+
+.content .item .val::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.content .item .val {
+ font-size: 30rpx;
+ color: #222222;
+ margin-left: 16rpx;
+ padding: 10rpx 0;
+}
+
+
+.item .content {
+ font-size: 32rpx;
+ margin-right: 30rpx;
+}
+
+.item .content .time::before {
+ display: inline-block;
+ content: '';
+ width: 20rpx;
+ height: 20rpx;
+ margin-right: 10rpx;
+ border-radius: 50%;
+ background-color: var(--blue);
+}
+
+.item .content .title {
+ display: flex;
+ align-items: center;
+}
+
+.item .content .des {
+ margin: 10rpx 0;
+}
+
+.item .content .time {
+ font-size: 26rpx;
+}
+
+.item .content .title::before {
+ display: inline-block;
+ content: '';
+ width: 10rpx;
+ height: 30rpx;
+ margin-right: 10rpx;
+ border-radius: 5rpx;
+ background-color: var(--blue);
+}
+
+.item .content .des {
+ font-size: 30rpx;
+ display: -webkit-box;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+
+.item .val {
+ font-size: 26rpx;
+ color: #222222;
+ margin-left: 16rpx;
+}
+
+.item .add {
+ color: var(--blue);
+ margin-left: 15rpx;
+ font-size: 30rpx;
+ margin-left: 20rpx;
+}
+
+.item .add .add-tv {
+ margin-left: 10rpx;
+}
+
+.item .line {
+ margin: 10rpx 0;
+ border-bottom: 1rpx dashed #f5f5f5;
+}
+
+.item .record {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 30rpx;
+ color: var(--blue);
+}
+
+.item .more {
+ position: absolute;
+ right: 10rpx;
+}
+
+.line {
+ width: 1rpx;
+ height: 80%;
+ background-color: #f5f5f5;
+}
+.serve{
+ background-color: #ffffff;
+ padding: 10rpx;
+ margin: 10rpx;
}
\ No newline at end of file
diff --git a/pages/the-masses/web/index.js b/pages/the-masses/web/index.js
new file mode 100644
index 0000000..edf7317
--- /dev/null
+++ b/pages/the-masses/web/index.js
@@ -0,0 +1,113 @@
+// pages/web/index.js
+const app = getApp();
+
+Page({
+
+ /**
+ * 页面的初始数据
+ */
+ data: {
+ topBarH: app.globalData.CustomBar,
+ url: '',
+ title: ''
+ },
+
+ /**
+ * 查看公开内容详情
+ */
+ getDetail: function (id,type) {
+ console.log(id,type,'id,type==>');
+ if (type == "partyMember") {
+ app.axios("GET", "app", `/partyLearnContent/partyLearnDetail/${id}`, {}, false).then(res => {
+ if (res.code == 1) {
+ console.log(res,'res===>');
+ this.data.content = res.data.content;
+ this.setData(this.data)
+ wx.setNavigationBarTitle({
+ title: res.data.title,
+ })
+ }
+ })
+ }else if (type == "open") {
+ app.axios("GET", "app", `/publicContent/publicContentDetail/${id}`, {}, false).then(res => {
+ if (res.code == 1) {
+ console.log(res,'res===>');
+ this.data.content = res.data.content;
+ this.setData(this.data)
+ wx.setNavigationBarTitle({
+ title: res.data.title,
+ })
+ }
+ })
+ }
+
+ },
+
+ /**
+ * 生命周期函数--监听页面加载
+ */
+ onLoad: function (options) {
+ const title = options.title || '';
+ this.data.title = title;
+ this.setData(this.data)
+ wx.setNavigationBarTitle({
+ title,
+ })
+ const eventChannel = this.getOpenerEventChannel()
+ eventChannel.on('getUrl', (url) => {
+ this.data.url = url;
+ this.setData(this.data);
+ })
+ console.log(options,'options=================>');
+ this.getDetail(options.id,options.type)
+ },
+
+ /**
+ * 生命周期函数--监听页面初次渲染完成
+ */
+ onReady: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面显示
+ */
+ onShow: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面隐藏
+ */
+ onHide: function () {
+
+ },
+
+ /**
+ * 生命周期函数--监听页面卸载
+ */
+ onUnload: function () {
+
+ },
+
+ /**
+ * 页面相关事件处理函数--监听用户下拉动作
+ */
+ onPullDownRefresh: function () {
+
+ },
+
+ /**
+ * 页面上拉触底事件的处理函数
+ */
+ onReachBottom: function () {
+
+ },
+
+ /**
+ * 用户点击右上角分享
+ */
+ onShareAppMessage: function () {
+
+ }
+})
\ No newline at end of file
diff --git a/pages/the-masses/web/index.json b/pages/the-masses/web/index.json
new file mode 100644
index 0000000..9378744
--- /dev/null
+++ b/pages/the-masses/web/index.json
@@ -0,0 +1,5 @@
+{
+ "usingComponents": {},
+ "navigationBarTextStyle": "white",
+ "navigationBarBackgroundColor": "#366CCF"
+}
\ No newline at end of file
diff --git a/pages/the-masses/web/index.wxml b/pages/the-masses/web/index.wxml
new file mode 100644
index 0000000..c2951f3
--- /dev/null
+++ b/pages/the-masses/web/index.wxml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/the-masses/web/index.wxss b/pages/the-masses/web/index.wxss
new file mode 100644
index 0000000..999ea2d
--- /dev/null
+++ b/pages/the-masses/web/index.wxss
@@ -0,0 +1,10 @@
+/* pages/web/index.wxss */
+.web {
+ width: 100vw;
+}
+
+.sc {
+ background-color: white;
+ height: 100vh;
+ padding: 30rpx 20rpx;
+}
\ No newline at end of file
diff --git a/pages/web/index.js b/pages/web/index.js
index dc328a7..c6b0157 100644
--- a/pages/web/index.js
+++ b/pages/web/index.js
@@ -94,4 +94,54 @@ Page({
onShareAppMessage: function () {
}
-})
\ No newline at end of file
+})
+
+
+
+
+
+
+// data: {
+// topBarH: app.globalData.CustomBar,
+// url: '',
+// title: '',
+// currentIndex: 0,
+// tabs: [{
+// lab: '今日工作'
+// }, {
+// lab: '历史工作'
+// }],
+// dealContent:'',
+// },
+// /**
+// * 选择菜单
+// */
+// tabSelect: function (params) {
+// this.data.currentIndex = params.currentTarget.dataset.index;
+// console.log(this.data.currentIndex,'this.data.currentIndex==>');
+// this.setData(this.data);
+// this.getDetail();
+// },
+
+// /**
+// * 获取消息详情
+// */
+// getDetail: function () {
+// let dealKeyWord = '';
+// if (this.data.currentIndex == 1) {
+// dealKeyWord = 'privacy_deal';
+// }else{
+// dealKeyWord = 'user_deal';
+// }
+// app.axios("GET", "app", `/sysKey/dealSetting/${dealKeyWord}`, {}, false).then(res => {
+// console.log(res,'res===>');
+// if (res.code == 1) {
+
+// this.data.dealContent = res.data.dealContent;
+// this.setData(this.data)
+// // wx.setNavigationBarTitle({
+// // title: res.data.title,
+// // })
+// }
+// })
+// },
\ No newline at end of file
diff --git a/pages/web/index.wxml b/pages/web/index.wxml
index c2951f3..6c595ca 100644
--- a/pages/web/index.wxml
+++ b/pages/web/index.wxml
@@ -1,5 +1,10 @@
+
\ No newline at end of file
diff --git a/pages/web/index.wxss b/pages/web/index.wxss
index 999ea2d..6343e9c 100644
--- a/pages/web/index.wxss
+++ b/pages/web/index.wxss
@@ -7,4 +7,8 @@
background-color: white;
height: 100vh;
padding: 30rpx 20rpx;
+}
+.cu-item {
+ font-size: 30rpx;
+ font-weight: bold;
}
\ No newline at end of file
diff --git a/pages/work/d-b-s-x/index/index.js b/pages/work/d-b-s-x/index/index.js
index 3ce61e2..6d6f035 100644
--- a/pages/work/d-b-s-x/index/index.js
+++ b/pages/work/d-b-s-x/index/index.js
@@ -63,6 +63,7 @@ Page({
* 获取列表
*/
getList: function () {
+ console.log(this.data.curTab,parseInt(this.data.curTab) + 1,'=====>');
app.axios("GET", "app", "/work/receiveWork", {
page: this.data.page,
limit: this.data.pageSize,
diff --git a/pages/work/s-b/index/index.js b/pages/work/s-b/index/index.js
index 39c21e1..3d5c044 100644
--- a/pages/work/s-b/index/index.js
+++ b/pages/work/s-b/index/index.js
@@ -164,7 +164,7 @@ Page({
})
return
}
- if (!this.data.postData.content) {
+ if (!this.data.postData.detail) {
wx.showToast({
title: '请输入内容',
icon: 'none'