Browse Source

人民建议征集

feature
是小王呀\24601 8 months ago
parent
commit
395d6028bc
  1. BIN
      src/assets/images/peoSuggestion/15.png
  2. 4
      src/views/home/index.vue
  3. 10
      src/views/peoSuggestion/SpecialsolicitationFill.vue
  4. 31
      src/views/peoSuggestion/goldenIdeaDetail.vue
  5. 2
      src/views/peoSuggestion/index.vue
  6. 12
      src/views/peoSuggestion/solicitationDaily.vue
  7. 8
      src/views/peoSuggestion/topicListDetail.vue

BIN
src/assets/images/peoSuggestion/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

4
src/views/home/index.vue

@ -52,7 +52,7 @@
</div>
</div>
</div>
<div class="flex flex-center1 flex-center2 " style="width: 100%;margin-top: 10px;">
<div class="flex flex-center1 flex-center2 " style="width: 100%;margin-top: 10px;" v-if="agencyId=='3be8c116c6536aed33fa83cbcd97ce4f'">
<img style="width: 100%;height: 75px;" src="../../assets/images/home/jianyi.png" @click="topeoSuggestion"></img>
</div >
<div class="card m-top10">
@ -148,6 +148,7 @@ import { inspRecord } from '@/api/satisfaction';
export default {
data() {
return {
agencyId:"",
searchKey: null,//
tabList: [
{
@ -200,6 +201,7 @@ export default {
};
},
created() {
console.log(this.$store.state.app.agencyId,"sdjflsjklfds");
this.agencyId = this.$store.state.app.agencyId;
this.userId = this.$store.state.app.userInfo.id;
this.customerId = this.$store.state.app.userInfo.customerId;

10
src/views/peoSuggestion/SpecialsolicitationFill.vue

@ -100,6 +100,7 @@ export default {
showPopup:false,
ideaIdentityList:[],
formData:{
attachmentList:[],
openId:"",
fileList:[],
identityTypeCode:[],
@ -211,13 +212,14 @@ export default {
file.message = '上传成功'
file.url = res.data.url
let fileInfo = {
type: type,
format: format,
// type: type,
// format: format,
name: name,
url: url
};
this.formData.imageList.push(res.data.url)
console.log(fileInfo,"sdlkjdslgfjdgls");
// this.formData.imageList.push(res.data.url)
// console.log(fileInfo,"sdlkjdslgfjdgls");
this.formData.attachmentList.push(fileInfo)
// this.attrs.push(fileInfo)
})
.catch(() => {

31
src/views/peoSuggestion/goldenIdeaDetail.vue

@ -1,16 +1,17 @@
<template>
<div>
<div class='container' style="height: 85vh; overflow: auto;">
<div class="card flex flex-y ">
<h2>{{ ProblemDescription.subjectTitle }}</h2>
<div class="m-bottom5">{{ ProblemDescription.eventContent }}</div>
<div class="font-size13 gray">{{ ProblemDescription.createdTime }}</div>
<div class="image-grid" v-for="item in ProblemDescription.imageList" >
<div class="grid-item ">
<img :src="item" style="width: 105px; height: 75px;">
<div class='container' style="height: 85vh; overflow: auto;">
<div class="card flex flex-y ">
<h2>{{ ProblemDescription.subjectTitle }}</h2>
<div class="m-bottom5">{{ ProblemDescription.eventContent }}</div>
<div class="font-size13 gray">{{ ProblemDescription.createdTime }}</div>
<div class="" v-for="item in ProblemDescription.imageList">
<div class=" flex flex-center1 flex-center2">
<img :src="item" style="width: 100%; height: 100%;">
</div>
</div>
</div>
<!-- <div class="flex flex-y flex-center1 flex-center2 gray back_color m-top15">
<!-- <div class="flex flex-y flex-center1 flex-center2 gray back_color m-top15">
<div class="flex m-top16 flex-center1 flex-center2 vote white">
<div :style="{ width:support1Width}">
<span class="van-ellipsis" style="width: 100px;">支持 {{ ProblemDescription.supportNum }}</span>
@ -23,8 +24,8 @@
<div class="gray font-size13 p-12">{{dataValue}}人参与</div>
</div> -->
</div>
<!-- <div class="bot_btn flex flex-x flex-mean m-bot50 back_color back_color">
</div>
<!-- <div class="bot_btn flex flex-x flex-mean m-bot50 back_color back_color">
<van-button :disabled="disableAllButtons" round class="support"
:icon="require('@/assets/images/icons/support.png')" type="info" @click="handelClicsupport">
支持
@ -35,10 +36,10 @@
反对
</van-button>
</div> -->
</div>
<Android />
</div>
<Android/>
</div>
</template>
<script>

2
src/views/peoSuggestion/index.vue

@ -72,7 +72,7 @@
</div>
<span class="van-multi-ellipsis--l2" style="flex: 1; line-height: 1.5;">
<van-tag size="medium" style="margin-right: 5px; width: 40px;"
<van-tag size="medium" style="margin-right: 5px; "
:color="item.status == '1' ? '#07c160' : '#b6b6b6'">
{{ item.status == '1' ? "征集中" : "已结束" }}
</van-tag>

12
src/views/peoSuggestion/solicitationDaily.vue

@ -2,7 +2,7 @@
<div class="container">
<div class="block">
<div class="">
<van-cell required is-link title="建议主题" @click="onShowPicker()" label="描述信息" :value="ideaTitleName">
<van-cell required is-link title="建议主题" @click="onShowPicker()" :value="ideaTitleName">
<!-- <div>{{ cascaderValue }}</div> -->
</van-cell>
@ -22,7 +22,7 @@
<van-uploader max-size="10 * 1024 * 1024" v-model="fileList1" show-upload
:after-read="afterReadFile" accept=".doc,.docx,.pdf" />
<span
style="color:#C1C1C1; font-size: 15px;line-height: 18px">您也可以将建议内容整理成文档上传支持wordpdf格式文件大小不超过5Mb.</span>
style="color:#C1C1C1; font-size: 15px;line-height: 18px">您也可以将建议内容整理成文档上传支持wordpdf格式文件大小不超过5Mb</span>
</div>
</template>
</van-field>
@ -117,6 +117,7 @@ export default {
ideaTitleTypeList:[],
adviceType:false,
formData:{
attachmentList:[],
age:"",
ideaTitleType:"",
operationType:"4",
@ -208,13 +209,14 @@ export default {
file.message = '上传成功'
file.url = res.data.url
let fileInfo = {
type: type,
format: format,
// type: type,
// format: format,
name: name,
url: url
};
this.formData.imageList.push(res.data.url)
this.formData.attachmentList.push(fileInfo)
})
.catch(() => {
file.status = 'failed'

8
src/views/peoSuggestion/topicListDetail.vue

@ -7,12 +7,12 @@
<div class="font-size15 gray">{{ ProblemDescription.agencyName }}</div>
<div class="font-size15 gray">{{ ProblemDescription.updatedTime }}</div>
</div>
<div class="m-bottom5 font-size18">{{ ProblemDescription.subjectContent }}</div>
<div class="image-grid" v-for="item in ProblemDescription.attachmentList" >
<div class="m-bottom5 font-size18" ><div v-html="ProblemDescription.subjectContent"></div></div>
<!-- <div class="image-grid" v-for="item in ProblemDescription.attachmentList" >
<div class="grid-item ">
<img :src="item" style="width: 105px; height: 75px;">
</div>
</div>
</div> -->
</div>
<div class="flex flex-center1 " style="position: fixed; bottom:60px; left: 0px; right:0px;">
@ -117,7 +117,7 @@ export default {
}
await getDetailSpecial(parm).then(res => {
this.ProblemDescription = res.data;
this.ProblemDescription.subjectContent= this.ProblemDescription.subjectContent.replace(/<[^>]*>/g, '')
this.ProblemDescription.subjectContent= this.ProblemDescription.subjectContent.replace(/<img/gi,'<img style="max-width:100%;height:auto;margin:0 auto;display:block"')
this.dataValue = res.data.opposeNum + res.data.supportNum
})
},

Loading…
Cancel
Save