Browse Source

摸排诉求

dev
mk 2 years ago
parent
commit
4aaa2c22b2
  1. 6
      app.json
  2. 18
      package-lock.json
  3. 7
      pages/mine/mine.js
  4. 2
      pages/mine/mine.wxml
  5. 2
      pages/work/work.wxml
  6. 14
      pages/work/work.wxss
  7. 334
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js
  8. 23
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxml
  9. 26
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxss
  10. 133
      subpages/myTroubleshootDemand/pages/index/index.js
  11. 7
      subpages/myTroubleshootDemand/pages/index/index.json
  12. 20
      subpages/myTroubleshootDemand/pages/index/index.wxml
  13. 85
      subpages/myTroubleshootDemand/pages/index/index.wxss
  14. 38
      utils/api.js

6
app.json

@ -96,6 +96,12 @@
"pages": [
"pages/index/index"
]
},{
"root": "subpages/myTroubleshootDemand",
"name": "myTroubleshootDemand",
"pages": [
"pages/index/index"
]
}
],
"window": {

18
package-lock.json

@ -1,8 +1,24 @@
{
"name": "epmet-work-mp",
"version": "1.0.0",
"lockfileVersion": 1,
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "epmet-work-mp",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
"@vant/weapp": "^1.11.2"
},
"devDependencies": {}
},
"node_modules/@vant/weapp": {
"version": "1.11.2",
"resolved": "https://registry.npmmirror.com/@vant/weapp/-/weapp-1.11.2.tgz",
"integrity": "sha512-NlZQEW4ijxD1GAmTY0dz2mEw0KWff9DSi5k5WGl1YS19qGp1l3BssID/uBnzrC82HjWH/Sb5V9+r7/YEcfnBPQ=="
}
},
"dependencies": {
"@vant/weapp": {
"version": "1.11.2",

7
pages/mine/mine.js

@ -91,5 +91,10 @@ Page({
wx.navigateTo({
url: '/subpages/settings/pages/index/index',
})
}
},
toMyTroubleshootDemand(){
wx.navigateTo({
url: '/subpages/myTroubleshootDemand/pages/index/index',
})
},
})

2
pages/mine/mine.wxml

@ -30,7 +30,7 @@
</view>
<view class="right"> <image src="../../images/right.png" mode=""/></view>
</view>
<view class="item" bind:tap="toFollowUpList">
<view class="item" bind:tap="toMyTroubleshootDemand">
<view class="left">
<image src="../../images/mine/sqmp.png" mode=""/>
<view>我摸排的诉求</view>

2
pages/work/work.wxml

@ -30,7 +30,7 @@
</view>
<view class="body {{ (SearchRecordsList.length == 0 && setlectVal != 'resi') ? 'top-90' : '' }}">
<view class="body {{ (SearchRecordsList.length == 0 && setlectVal != 'resi') ? 'top-120' : (setlectVal == 'house'&&SearchRecordsList.length > 0 )?'top-75':'top-10' }}">
<view class="top">
<view class="title">
<view style="font-size: 34rpx; font-weight: 500;">信息采集</view>

14
pages/work/work.wxss

@ -11,6 +11,7 @@ page {
}
.yellow_T{
color: #DFA168;
margin-right: 10rpx;
}
.yellow{
color:#FF783C;
@ -22,8 +23,14 @@ page {
.blue{
color: #5F9BD4 ;
}
.top-90{
top:-90rpx !important;
.top-120{
top:-120rpx !important;
}
.top-75{
top:-75rpx !important;
}
.top-10{
top: -10rpx !important;
}
.font_size_44{
font-size: 44rpx;
@ -207,7 +214,6 @@ page {
.body{
padding: 0 20rpx 20rpx;
position: relative;
top: -10rpx;
box-sizing: border-box;
overflow: hidden;
}
@ -296,7 +302,7 @@ page {
width: 352rpx;
height: 352rpx;
left: 49%;
top: 50%;
top: 60%;
transform: translateX(-170rpx) translateY(-170rpx);
}
.big_box .right{

334
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js

@ -12,6 +12,8 @@ Page({
* 页面的初始数据
*/
data: {
optionsId:'',
defaultMeasureNames:{label:'categoryName',value:'categoryCode',children:'childCateList'},
fmData: {
gridId: '',
attachmentList:[],//图片
@ -79,13 +81,6 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.data.qqMapWX = new QQMapWX({
key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ'
})
// this.getLocation().then(() => {
// })
this.reverseLocation()
this.setData({
angencyId:app.globalData.user.agencyId,
reportUserName:app.globalData.user.realName,
@ -94,7 +89,298 @@ Page({
this.getAgencygridtree()
this.getDemandoption()
this.getDictList()
if(options.id){
if(options.type === '0'){
this.getIcEventOldDetail(options.id)
}else{
this.getDemandDetail(options.id)
}
this.setData({
tabVal:options.type || 0,
optionsId:options.id
})
return
}
this.data.qqMapWX = new QQMapWX({
key: 'CMJBZ-4DECI-JXGGN-5B4WU-QLV2H-B5BEJ'
})
// this.getLocation().then(() => {
// })
this.reverseLocation()
},
getDemandDetail(id){
let parm = {
demandRecId:id
}
api.getDemandDetail(parm).then(res=>{
console.log(res);
this.setData({
'fmData.content':res.data.content,
// 'fmData.voiceList':res.data.voiceList,
'fmData.gridId':res.data.gridId,
'fmData.demandUserId':res.data.reportUserId,
'fmData.categoryCode':res.data.categoryCode,
'fmData.reportType':res.data.reportType,
'fmData.happenTime':res.data.reportTime,
'fmData.wantServiceTime':res.data.wantServiceTime,
'fmData.resiId':res.data.icResiUserId,
categoryName:res.data.parentCategoryName + res.data.firstCategoryName ,
agencyName:res.data.gridName,
reportTypeName:res.data.reportTypeName,
resiName:res.data.demandUserName,
resiMobile:res.data.demandUserMobile,
showTime:res.data.reportTime,
showWantServiceTimeTime:res.data.wantServiceTime,
// uploadImageList:res.data.imageList.map(item=>({ossUrl:{url:item},uploaded:true})),
// uploadRecord:res.data.voiceList[0],
// totalTime:this.format(res.data.voiceList[0].duration)
})
this.downLoadAudio()
}).catch(err=>{
console.log(err);
})
},
getIcEventOldDetail(id){
let parm = {
icEventId:id
}
api.getIcEventOld(parm).then(res=>{
console.log(res);
this.setData({
'fmData.content':res.data.eventContent,
'fmData.voiceList':res.data.voiceList||[],
'fmData.gridId':res.data.gridId,
'fmData.happenTime':res.data.happenTime,
'fmData.address':res.data.address,
'fmData.resiId':res.data.reportUserId,
'fmData.longitude':res.data.longitude,
'fmData.latitude':res.data.latitude,
agencyName:res.data.gridName,
showTime:res.data.happenTime,
addressContent:res.data.address,
resiName:res.data.name,
resiMobile:res.data.mobile,
uploadImageList:res.data.imageList&&res.data.imageList.length>0?res.data.imageList.map(item=>({ossUrl:{url:item},uploaded:true})):[],
uploadRecord:res.data.voiceList&& res.data.voiceList.length>0?res.data.voiceList[0]:null,
totalTime:this.format(res.data.voiceList&&res.data.voiceList.length>0?res.data.voiceList[0].duration:0)
})
if(this.data.uploadRecord){
this.downLoadAudio()
}
}).catch(err=>{
console.log(err);
})
},
update(){
this.submitPersonalInfo()
},
updateMeasure(){
this.setData({
submitDisabled: true
})
let {categoryCode,content,happenTime,resiId,gridId,attachmentList,voiceList,wantServiceTime,parentCode,reportType} = this.data.fmData
const parm ={
categoryCode,
content,
reportUserName:this.data.reportUserName,
reportTime:happenTime,
reportUserMobile:this.data.reportUserMobile,
demandUserId:resiId,
gridId,
reportType,
// attachments:[...attachmentList,...voiceList],
wantServiceTime,
parentCode:parentCode,
demandRecId:this.data.optionsId
}
api.updateMeasure(parm).then(res=>{
if (res.code === 0) {
wx.showModal({
title: '提示',
content: `提交成功`,
confirmText: '确认',
showCancel: false,
success: res => {
this.setData({
submitDisabled: false,
uploadImageList: [],
uploadRecord: {
uploaded: true,
url: ""
},
agencyName:'',
showTime:'',
resiName:'',
resiMobile:'',
'fmData.gridId':'',
'fmData.attachmentList':[],//图片
'fmData.voiceList':[],
'fmData.latitude':"",
'fmData.longitude':"",
'fmData.resiId':"",
'fmData.happenTime':"",
'fmData.content':"",//内容
'fmData.wantServiceTime':"",
'fmData.reportType':''
})
wx.navigateBack({
delta:1
})
}
})
wx.removeStorageSync('resiDetail')
} else {
console.log('提交失败');
wx.showToast({
title: "提交失败,请重试~",
icon: "none",
duration: 1500
})
this.setData({
submitDisabled: false
})
}
}).catch(err=>{
wx.showToast({
title: "提交失败,请重试~",
icon: "none",
duration: 1500
})
this.setData({
submitDisabled: false
})
})
setTimeout(function(){
wx.hideLoading()
},1000)
},
updateEvent(){
wx.showLoading({
title: '提交中...',
mask: true
})
this.setData({
submitDisabled: true
})
const parm = this.data.fmData
parm.icEventId = this.data.optionsId
console.log(parm,'事件更新');
api.updateEvent(parm).then(res => {
console.log(res);
if (res.code === 0) {
wx.showModal({
title: '提示',
content: `修改成功`,
confirmText: '确认',
showCancel: false,
success: res => {
this.setData({
submitDisabled: false,
uploadImageList: [],
uploadRecord: {
uploaded: true,
url: ""
},
agencyName:'',
showTime:'',
resiName:'',
resiMobile:'',
'fmData.gridId':'',
'fmData.attachmentList':[],//图片
'fmData.voiceList':[],
'fmData.latitude':"",
'fmData.longitude':"",
'fmData.resiId':"",
'fmData.happenTime':"",
'fmData.content':"",//内容
'fmData.wantServiceTime':"",
'fmData.reportType':''
})
wx.navigateBack({
delta:1
})
}
})
wx.removeStorageSync('resiDetail')
} else {
console.log('提交失败');
wx.showToast({
title: "提交失败,请重试~",
icon: "none",
duration: 1500
})
this.setData({
submitDisabled: false
})
}
}).catch(err => {
console.log(err)
wx.showToast({
title: "提交失败,请重试~",
icon: "none",
duration: 1500
})
this.setData({
submitDisabled: false
})
})
setTimeout(function(){
wx.hideLoading()
},1000)
},
delete(){
let that = this
wx.showModal({
title: '提示',
content: '确定要删除这条数据吗,删除后将无法找回,请谨慎操作',
success (res) {
if (res.confirm) {
console.log(that.data.tabVal);
if(that.data.tabVal == 0){
that.icEventOldDelete()
}else{
that.userDemandCance()
}
} else if (res.cancel) {
}
}
})
},
icEventOldDelete(){
api.icEventOldDelete([this.data.optionsId]).then(res=>{
if(res.code === 0){
wx.showToast({
title: '删除成功',
icon:'none',
success(){
setTimeout(()=>{
wx.navigateBack({
delta: 1
})
},3000)
}
})
}
}).catch(err=>{
console.log(err);
})
},
userDemandCance(){
let parm ={
demandRecId:this.data.optionsId
}
api.userDemandCance(parm).then(res=>{
if(res.code === 0){
wx.showToast({
title: '删除成功',
icon:'none'
})
}
}).catch(err=>{
console.log(err);
})
},
// 组织树
getAgencygridtree() {
let parm ={
@ -167,7 +453,7 @@ Page({
}
})
},
// // 获取经纬度
// 获取经纬度
// getLocation() {
// return new Promise((resolve, reject) => {
// const _this = this
@ -204,9 +490,10 @@ Page({
return false
}
}
console.log(this.data.uploadImageList);
if (this.data.uploadImageList.length > 0) {
this.data.uploadImageList.forEach(item => {
imagesList.push({format:item.format,originFileName:item.originFileName,url:item.ossUrl.url,type:item.type})
imagesList.push({format:item.format ||'png',originFileName:item.originFileName ||'',url:item.ossUrl.url,type:item.type})
})
}
this.setData({
@ -272,11 +559,10 @@ Page({
return
}
}
if(this.data.tabVal ==='1'){
this.submitMeasure()
}else{
this.submitEven()
if (this.data.tabVal === '1') {
this.data.optionsId ? this.updateMeasure() : this.submitMeasure();
} else {
this.data.optionsId ? this.updateEvent() : this.submitEven();
}
},
@ -289,9 +575,9 @@ Page({
this.setData({
submitDisabled: true
})
const para = this.data.fmData
console.log(para,'事件');
api.addEvent(para).then(res => {
const parm = this.data.fmData
console.log(parm,'事件');
api.addEvent(parm).then(res => {
console.log(res);
if (res.code === 0) {
wx.showModal({
@ -360,12 +646,11 @@ Page({
title: '提交中...',
mask: true
})
this.setData({
submitDisabled: true
})
let {categoryCode,content,happenTime,resiId,gridId,attachmentList,voiceList,wantServiceTime,parentCode,reportType} = this.data.fmData
const para ={
const parm ={
categoryCode,
content,
reportUserName:this.data.reportUserName,
@ -374,12 +659,13 @@ Page({
demandUserId:resiId,
gridId,
reportType,
attachmentList:[...attachmentList,...voiceList],
// attachments:[...attachmentList],
voices:[...voiceList],
wantServiceTime,
parentCode:parentCode
}
console.log(para,'服务');
api.addMeasure(para).then(res => {
console.log(parm,'服务');
api.addMeasure(parm).then(res => {
console.log(res);
if (res.data) {
wx.showModal({
@ -488,7 +774,7 @@ Page({
if (res.tempFiles[0].size <= 5 * 1024 * 1024) {
uploadImageList.push({
uploaded: false,
ossUrl: '',
ossUrl: {url:res.tempFiles[0].tempFilePath},
imgUrl: res.tempFiles[0].tempFilePath,
imageId: ++_this.data.imageId,
type:res.tempFiles[0].tempFilePath.substr(res.tempFiles[0].tempFilePath.length -3,3),
@ -552,7 +838,7 @@ Page({
if (item.size <= 5 * 1024 * 1024) {
uploadImageList.push({
uploaded: false,
ossUrl: '',
ossUrl: {url:item.tempFilePath},
imgUrl: item.tempFilePath,
imageId: ++_this.data.imageId,
format:"image",

23
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxml

@ -19,12 +19,15 @@
<text class="must">*</text>
<view class="field-text">诉求类型</view>
</view>
<view class="value-mobile">
<view class="value-mobile" wx:if="{{!optionsId}}">
<radio-group class="radio-group" bind:change="handleChangeType">
<radio checked="{{tabVal === '0'}}" value="0" checked="true" color="#4193fe" class="radio">事件上报</radio>
<radio checked="{{tabVal === '1'}}" value="1" color="#4193fe" class="radio">居民需求</radio>
</radio-group>
</view>
<view wx:else>
{{tabVal ==0?'事件上报':'居民需求'}}
</view>
</view>
<view class="item" wx:if="{{tabVal === '1'}}">
<view class="field" >
@ -60,7 +63,7 @@
<textarea maxlength="500" value="{{fmData.content}}" bindblur="bindTextareaInput" bindinput="bindTextareaInput" bindfocus="bindTextareaFocus" placeholder="请输入事件描述(不超过500字)">
</textarea>
<!-- 语音播放 -->
<view class="audio-play" wx:if="{{fmData.voiceList.length>0}}">
<view class="audio-play" wx:if="{{fmData.voiceList.length>0&& tabVal==0}}">
<view class="audio-play-left">
<image src="../../../images/zt.png" mode="" bind:tap="handlePlay" wx:if="{{!hasPlay}}"/>
<image src="../../../images/bf.png" mode="" bind:tap="handlePlay" wx:else/>
@ -70,12 +73,12 @@
<image src="../../../images/sc.png" bind:tap="handleAudioDel" mode=""/>
</view>
<view class="mkf-img" bindtap="showRecordSheet">
<view class="mkf-img" bindtap="showRecordSheet" wx:if="{{fmData.voiceList.length<=0 && tabVal==0}}">
<image src="../../../images/mkf.png" mode=""/> 您也可以语音输入描述
</view>
</view>
<!-- 上传图片 -->
<view class="image-box">
<view class="image-box" wx:if="{{tabVal == 0}}">
<view class="{{ uploadImageList.length < 4 ? 'image-list' : uploadImageList.length > 3 && uploadImageList.length < 7 ? 'image-list image-list-2' : uploadImageList.length > 6 && uploadImageList.length < 10 ? 'image-list image-list-3' : 'image-list image-list-4' }}">
<view class=" image-list-label">
<view class="field-text">上传图片</view>
@ -86,7 +89,7 @@
wx:for-index="index"
wx:for-item="item"
wx:key="imageId">
<image class="issue-image" src="{{item.imgUrl}}" />
<image class="issue-image" src="{{item.ossUrl.url}}" />
<image wx:if="{{!item.uploaded}}" class="loading" src="../../../images/loading.gif" />
<image bindtap="deleteImage" data-imageid="{{item.imageId}}" class="close" wx:else src="../../../images/icon_close.png" />
</view>
@ -152,9 +155,13 @@
</view>
</view>
</view>
<view class="submit-button">
<button disabled="{{ submitDisabled }}" bindtap="submitPersonalInfo" hover-class="hover-submit">提交</button>
<view class="submit-button" wx:if="{{!optionsId}}">
<button disabled="{{ submitDisabled }}" bindtap="submitPersonalInfo" hover-class="hover-submit" >提交</button>
</view>
<view class="bto_btn" wx:else>
<button hover-class="btn-hover" bind:tap="update" class="btn_blue" >修改</button>
<button bind:tap="delete" class="btn_yellow">删除</button>
</view>
</view>
</block>
</view>
@ -217,6 +224,7 @@
bind:confirm="onConfirmWantServiceTime"
bind:cancel="onCancel"
/>
<wux-picker
options="{{ angencyList }}"
value="{{ fmData.gridId }}"
@ -241,6 +249,7 @@
options="{{ measureList }}"
value="{{ measureValue }}"
visible="{{measureVisible}}"
defaultFieldNames="{{defaultMeasureNames}}"
cols="2"
controlled
cascade

26
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.wxss

@ -968,4 +968,28 @@ background: rgb(175, 1, 1);
.audio-play .audio-play-left .audio-slider {
width: 386rpx;
margin: 0 auto;
}
}
.bto_btn{
display: flex;
margin-top: 20rpx;
padding: 0 20rpx 30rpx;
}
.btn_blue ,
.btn_yellow{
border-radius: 55rpx;
box-sizing: border-box;
color: #fff;
width: fit-content;
padding: 0rpx 100rpx;
font-size: 32rpx;
font-family: PingFang SC;
font-weight: bold;
}
.btn_blue{
background: linear-gradient(87deg, #81B5FB 0%, #3E92FF 100%);
}
.btn_yellow{
margin-left: 20rpx !important;
background: linear-gradient(87deg, #ff793c 0%, #fb9d5b 100%);
}

133
subpages/myTroubleshootDemand/pages/index/index.js

@ -0,0 +1,133 @@
import {getMyTroubleshootDemand} from "../../../../utils/api"
var global = require('../../../../utils/config')
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
tableData:[],
pageNo:1,
pageSize:7,
lowerThreshold:'10',
loadMoreVisible:false,
loadMoreType: "none",
nodata:false
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData({
satisfactionCategory:options.category,
inspRecordId:options.inspRecordId,
createdBy:app.globalData.user.id
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
this.setData({
pageNo:1,
tableData:[]
})
this.getMyTroubleshootDemand()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
onScrollToLower(e){
if (this.data.loadMoreType === 'more') {
this.setData({
loadMoreVisible: true,
})
this.data.pageNo += 1
this.getMyTroubleshootDemand()
}
},
getMyTroubleshootDemand(){
this.setData({
loadMoreVisible: true,
nodata: false,
loadMoreType: "more",
})
let parm = {
pageNo:this.data.pageNo,
pageSize:this.data.pageSize
}
if(!parm.type) delete parm.type
getMyTroubleshootDemand(parm).then(res=>{
this.setData({
loadMoreType: res.data.list.length === this.data.pageSize ? 'more' : 'none',
tableData: this.data.tableData.concat(res.data.list),
})
if (this.data.tableData.length == 0) {
this.setData({
loadMoreVisible: false,
nodata: true
})
}
}).catch(err=>{
console.log(err);
this.setData({
loadMoreVisible: false,
nodata: true,
})
})
},
handleClickPhone(e){
wx.makePhoneCall({
phoneNumber: e.currentTarget.dataset.mobile,
})
},
toDetail(e){
console.log(e);
wx.navigateTo({
url: `/subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck?id=${e.currentTarget.dataset.item.id}&type=${e.currentTarget.dataset.item.type==="event"?0:1}`,
})
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})

7
subpages/myTroubleshootDemand/pages/index/index.json

@ -0,0 +1,7 @@
{
"usingComponents": {
"load-more": "../../../../components/loadMore/loadMore",
"no-data": "../../../../components/noData/nodata"
},
"navigationBarTitleText": "我摸排的诉求"
}

20
subpages/myTroubleshootDemand/pages/index/index.wxml

@ -0,0 +1,20 @@
<view class="content">
<scroll-view class="scroll" scroll-y="{{true}}" lower-threshold="{{ lowerThreshold }}" bindscrolltolower="onScrollToLower">
<view class="card" wx:for="{{tableData}}" wx:key="index" data-item="{{item}}" bind:tap="toDetail">
<view class="title" >
<view>
<text class="{{item.type == 'event'?'blue_small':'red_small'}}">{{item.type == 'event'?'事件':'需求'}}</text>
{{item.name}} {{item.mobile}}
</view>
</view>
<view style="margin-top: 10rpx;">
<text class="card_content" maxLines="{{2}}" overflow="ellipsis">{{item.content}}</text>
</view>
<view class="bottom">
<view style="color: #C1C1C1;font-size: 26rpx;">{{item.time}}</view>
</view>
</view>
<load-more loadVisible="{{loadMoreVisible}}" loadType="{{loadMoreType}}" ></load-more>
<no-data isShow="{{nodata}}" wx:if="{{nodata}}"></no-data>
</scroll-view>
</view>

85
subpages/myTroubleshootDemand/pages/index/index.wxss

@ -0,0 +1,85 @@
/* subpages/myTroubleshootDemand/pages/index/index.wxss */
page {
width: 100%;
min-height: 100vh;
overflow-y: scroll;
background-color: #f7f7f7;
}
.red,
.blue{
font-size: 28rpx;
color: #fff;
padding: 8rpx 20rpx ;
border-radius: 40rpx;
box-sizing: border-box;
margin-right: 16rpx;
}
.red{
background-color: #ff783c;
}
.blue{
background-color: #4f94ff;
}
.blue_small,
.red_small{
font-size: 26rpx;
width: fit-content;
padding: 8rpx 16rpx;
border-radius: 40rpx;
box-sizing: border-box;
height: 40rpx;
line-height: 20rpx;
margin: 24rpx 0 ;
}
.blue_small{
background-color: #eef4fd;
color: #5693EE;
}
.red_small{
background-color: #fff1eb;
color: #FF783C;
}
.content{
width: 100%;
padding:0 20rpx ;
margin-top: 20rpx;
box-sizing: border-box;
}
.content .scroll {
height: calc(100vh - 50rpx);
overflow-y: scroll;
}
.content .card{
width: 100%;
background-color: #fff;
display: flex;
height: 180rpx;
flex-direction: column;
border-radius: 20rpx;
padding: 30rpx 30rpx;
box-sizing: border-box;
overflow: hidden;
box-sizing: border-box;
color: #333;
}
.content .card .title{
display: flex;
justify-content: space-between;
}
.card_content{
overflow:hidden;
text-overflow: ellipsis;
display:-webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.content .card .bottom{
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 22rpx;
border-bottom: 2rpx #EAEAEA solid;
padding-bottom: 20rpx;
}

38
utils/api.js

@ -54,7 +54,14 @@ module.exports = {
communitySatisfactionPageList,
eventPageList,
recorHistory,
serviceNumber
serviceNumber,
getMyTroubleshootDemand,
getIcEventOld,
getDemandDetail,
updateMeasure,
userDemandCance,
icEventOldDelete,
updateEvent
}
// 获取公钥
@ -286,4 +293,31 @@ function recorHistory(parm) {
function serviceNumber(parm) {
return fly.get(`actual/base/peopleRoomOverview/serviceNumber`, parm)
}
//获取我的诉求摸排
function getMyTroubleshootDemand(parm) {
return fly.get(`governance/demandCollect/my/collects`,parm)
}
// 过去事件详情
function getIcEventOld(parm) {
return fly.post(`governance/icEventOld/detail`,parm)
}
//获取需求详情
function getDemandDetail(parm) {
return fly.post(`governance/userdemand/demandDetail`,parm)
}
// 更新需求
function updateMeasure(parm) {
return fly.post(`governance/userdemand/update`,parm)
}
// 取消需求
function userDemandCance(parm) {
return fly.post(`governance/userdemand/cancel`,parm)
}
// 删除事件
function icEventOldDelete(parm) {
return fly.post(`governance/icEventOld/delete`,parm)
}
// 更新事件
function updateEvent(parm) {
return fly.post(`governance/icEventOld/update`,parm)
}

Loading…
Cancel
Save