Browse Source

Merge branch 'bug_fix' into feature

feature
mk 1 year ago
parent
commit
b866f60001
  1. 2
      src/api/event.js
  2. 7
      src/api/home.js
  3. 18
      src/components/registerDialog/index.vue
  4. 19
      src/views/appealDetail/index.vue
  5. 18
      src/views/communityPublicity/detail.vue
  6. 2
      src/views/communityPublicity/index.vue
  7. 6
      src/views/event/index.vue
  8. 23
      src/views/home/index.vue
  9. 18
      src/views/mine/mySatisfaction/index.vue
  10. 15
      src/views/register/index.vue
  11. 4
      src/views/selectAgency/index.vue

2
src/api/event.js

@ -41,7 +41,7 @@ export function collects(data) {
// 事件评价 // 事件评价
export function updateEvent(data) { export function updateEvent(data) {
return request({ return request({
url: `/governance/officialAccountEventList/updateEvent`, url: `/governance/icEventOld/comment`,
method: 'post', method: 'post',
message: '事件评价中...', message: '事件评价中...',
data data

7
src/api/home.js

@ -34,6 +34,13 @@ export function icEventOldDiscuss(data) {
data data
}) })
} }
// 【社区讯息】详情
export function communityPublicityDetail(id) {
return request({
url: `/actual/base/communityPublicity/${id}`,
method: 'get',
})
}
//议事赞成/反对 //议事赞成/反对
export function handelClicsupport(data) { export function handelClicsupport(data) {
return request({ return request({

18
src/components/registerDialog/index.vue

@ -1,8 +1,8 @@
<template> <template>
<van-dialog v-model="show" show-cancel-button confirm-button-text="确定" @confirm="$router.push('/register')" @cancel="$emit('close')"> <van-dialog v-model="show" show-cancel-button confirm-button-text="确定" @confirm="$router.push({path:`${path}`,query:{flag:registerFlag}})" @cancel="$emit('close')">
<div class="tip"> <div class="tip">
<h3>温馨提示</h3> <h3>温馨提示</h3>
<p>请您先进行手号注册</p> <p>{{content}}</p>
</div> </div>
</van-dialog> </van-dialog>
</template> </template>
@ -18,6 +18,20 @@ export default {
mounted() { mounted() {
},
props:{
content:{
type:String,
default:'请您先进行手机号注册。'
},
path:{
type:String,
default:'/register'
},
registerFlag:{
type:String,
default:'register'
}
} }
} }
</script> </script>

19
src/views/appealDetail/index.vue

@ -16,7 +16,7 @@
<div class="address">详细地址{{ detail.address }}</div> <div class="address">详细地址{{ detail.address }}</div>
</div> </div>
<div class="block container"> <div class="block container" v-if="detail.status === 'closed_case'">
<div class="title">满意度评价</div> <div class="title">满意度评价</div>
<div class="btns flex flex-mean"> <div class="btns flex flex-mean">
<!-- <van-button <!-- <van-button
@ -215,23 +215,30 @@ export default {
detail: {}, detail: {},
process: [], process: [],
btns:['perfect','good','bad'], btns:['perfect','good','bad'],
btnFlag:'perfect' btnFlag:null
} }
}, },
mounted() { mounted() {
this.detail = this.$route.query this.detail = this.$route.query;
if(this.detail.satisfaction){
this.btnFlag = this.detail.satisfaction
}
this.getProcess() this.getProcess()
console.log(this.detail) console.log(this.detail)
}, },
methods: { methods: {
setEvaluate(val) { setEvaluate(val) {
if(this.btnFlag){
this.$toast('请勿重复评价!')
return false
}
if (this.detail.pageType === 'event') { if (this.detail.pageType === 'event') {
this.btnFlag = val; this.btnFlag = val;
updateEvent({ updateEvent({
id: this.detail.id, icEventId: this.detail.icEventId,
satisfaction: val satisfaction: val,
}).then(() => { }).then(() => {
this.evaluate = val this.evaluate = val;
this.$toast.success('评价成功') this.$toast.success('评价成功')
}) })
} }

18
src/views/communityPublicity/detail.vue

@ -38,19 +38,21 @@
import { setConfig } from '@/utils/jweixin' import { setConfig } from '@/utils/jweixin'
import {communityPublicityGiveLike } from '@/api/home'; import {communityPublicityGiveLike,communityPublicityDetail } from '@/api/home';
import Share from "@/components/Share" import Share from "@/components/Share"
export default { export default {
data() { data() {
return { return {
info: {}, info: {},
showShare:false, showShare:false,
phone:"" phone:"",
detailId:null
}; };
}, },
created() { created() {
if (this.$route.query) { if (this.$route.query) {
this.info = JSON.parse(this.$route.query.item); this.detailId = this.$route.query.id;
this.communityPublicityDetail();
} }
}, },
mounted() { mounted() {
@ -58,6 +60,12 @@ export default {
this.share() this.share()
}, },
methods: { methods: {
async communityPublicityDetail(){
let res = await communityPublicityDetail(this.detailId)
if(res.code === 0){
this.info = res.data
}
},
handleNumber(value){ handleNumber(value){
console.log(value,"wl kgnsl, "); console.log(value,"wl kgnsl, ");
this.phone=value this.phone=value
@ -81,14 +89,14 @@ export default {
wx.updateAppMessageShareData({ wx.updateAppMessageShareData({
title: than.info.title || '讯息详情', title: than.info.title || '讯息详情',
desc: '', desc: '',
link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/communityPublicityDetail?item=${encodeURIComponent(JSON.stringify(than.info))}&appId=${than.$store.state.app.appId}`, link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/communityPublicityDetail?id=${than.detailId}&appId=${than.$store.state.app.appId}`,
imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png',
success: function () {} success: function () {}
}) })
wx.updateTimelineShareData({ wx.updateTimelineShareData({
title: than.info.title, title: than.info.title,
desc: '', desc: '',
link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/communityPublicityDetail?item=${encodeURIComponent(JSON.stringify(than.info))}&appId=${than.$store.state.app.appId}`, link: `https://epmet-preview.elinkservice.cn/epmet-wx-pa/#/communityPublicityDetail?item=${than.detailId}&appId=${than.$store.state.app.appId}`,
imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png', imgUrl: than.info.coverPic || 'https://elink-esua-epdc.oss-cn-qingdao.aliyuncs.com/epmet/test/20240710/617f7fb327064d89892823b81b11cd70.png',
success: function () {} success: function () {}
}) })

2
src/views/communityPublicity/index.vue

@ -70,7 +70,7 @@ export default {
}, },
methods: { methods: {
toDetail(item){ toDetail(item){
this.$router.push({name:'communityPublicityDetail',query:{item:JSON.stringify(item)}}) this.$router.push({name:'communityPublicityDetail',query:{id:item.id}})
}, },
handleSearch(){ handleSearch(){
this.PublicityList = []; this.PublicityList = [];

6
src/views/event/index.vue

@ -114,14 +114,12 @@ export default {
this.geolocation = new qq.maps.Geolocation(mapKey, 'myapp') this.geolocation = new qq.maps.Geolocation(mapKey, 'myapp')
// //
this.getMyLocation() this.getMyLocation()
this.phone = this.$store.state.app.userInfo.phone this.phone = this.$store.state.app.userInfo.mobile;
this.agencyId = this.$store.state.app.agencyId; this.agencyId = this.$store.state.app.agencyId;
}, },
methods: { methods: {
handleNumber(value){ handleNumber(value){
console.log(value,"wl kgnsl, "); this.phone = value;
this.phone=value
}, },
// //
getMyLocation() { getMyLocation() {

23
src/views/home/index.vue

@ -3,7 +3,7 @@
<div class="blueBg"></div> <div class="blueBg"></div>
<div class="content"> <div class="content">
<div class="flex flex-end"> <div class="flex flex-end">
<div class="flex flex-center2 white" @click="$router.push('/selectAgency')"> <div class="flex flex-center2 white" >
<img src="@/assets/images/icons/home.png" class="img_17 m-right10" alt=""> <img src="@/assets/images/icons/home.png" class="img_17 m-right10" alt="">
<span>{{ this.$store.state.app.userInfo.agencyName || '--' }}</span> <span>{{ this.$store.state.app.userInfo.agencyName || '--' }}</span>
</div> </div>
@ -104,7 +104,7 @@
<van-tabs v-model="tagActive" style="width: 100%;" @change="handelChangeTags"> <van-tabs v-model="tagActive" style="width: 100%;" @change="handelChangeTags">
<van-tab v-for="item in tagList" :key="item.id" :title="item.tagName"> <van-tab v-for="item in tagList" :key="item.id" :title="item.tagName">
<div class="flex flex-y flex1 flex-end" v-if="PublicityList.length !== 0" > <div class="flex flex-y flex1 flex-end" v-if="PublicityList.length !== 0" >
<div class="activity_content flex flex-y" v-for="(item, index) in PublicityList" :key="index" @click="$router.push({name:'communityPublicityDetail',query:{item:JSON.stringify(item)}})"> <div class="activity_content flex flex-y" v-for="(item, index) in PublicityList" :key="index" @click="$router.push({name:'communityPublicityDetail',query:{id:item.id}})">
<div class="flex flex1 "> <div class="flex flex1 ">
<span class="van-multi-ellipsis--l2 flex1" style="line-height: 28px;" > <span class="van-multi-ellipsis--l2 flex1" style="line-height: 28px;" >
{{ item.title }} {{ item.title }}
@ -130,7 +130,7 @@
</div> </div>
</div> </div>
</div> </div>
<register-dialog v-if="showRegister" @close="showRegister = false"></register-dialog> <register-dialog v-if="showRegister" @close="showRegister = false" :registerFlag="registerFlag" :content="tipContent"></register-dialog>
</div> </div>
</template> </template>
@ -179,7 +179,9 @@ export default {
PublicityList:[], PublicityList:[],
PublicityListImg:[], PublicityListImg:[],
messageText:'没有新的消息!', messageText:'没有新的消息!',
day:null day:null,
tipContent:null,
registerFlag:null
}; };
}, },
created() { created() {
@ -328,12 +330,23 @@ export default {
} }
}, },
handelClickJump(path,item) { handelClickJump(path,item) {
if (path === 'event') { if (path === 'event' || path === 'Enjoyableservices') {
if(path === 'event'){
if (this.$store.state.app.userInfo.mobile) { if (this.$store.state.app.userInfo.mobile) {
this.$router.push({ path: `/${path}` }); this.$router.push({ path: `/${path}` });
} else { } else {
this.showRegister = true; this.showRegister = true;
} }
}
if(path === 'Enjoyableservices'){
if (this.$store.state.app.userInfo.idNum) {
this.$router.push({ path: `/${path}` });
} else {
this.tipContent = '请您先进行实名认证。'
this.registerFlag = 'real';
this.showRegister = true;
}
}
} else { } else {
this.$router.push({ path: `/${path}`,query:{id:item.id} }) this.$router.push({ path: `/${path}`,query:{id:item.id} })
} }

18
src/views/mine/mySatisfaction/index.vue

@ -2,6 +2,15 @@
<div class='container'> <div class='container'>
<van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="inspRecord" class="card" <van-list v-model="loading" :finished="finished" finished-text="没有更多了" @load="inspRecord" class="card"
:offset="50" style="padding: 0;"> :offset="50" style="padding: 0;">
<div class="flex1 flex flex-y activity_content flex-center" v-if="currentMonth">
<div class="title" style="color: #333333;">
暂未创建{{month}}月自评问卷
</div>
<div class="font-size14 m-top13 gray m-top12">
</div>
</div>
<div class="activity_content flex flex-center2" v-for="(item, index) in list" :key="index" @click="handelClickJump(item.questionnaireUrl)"> <div class="activity_content flex flex-center2" v-for="(item, index) in list" :key="index" @click="handelClickJump(item.questionnaireUrl)">
<div class="flex1 flex flex-y"> <div class="flex1 flex flex-y">
<div class="title" style="color: #333333;"> <div class="title" style="color: #333333;">
@ -34,11 +43,14 @@ export default {
finished: false, finished: false,
loading: true, loading: true,
showRegister: false, showRegister: false,
currentMonth:false,
month:null
}; };
}, },
created() { created() {
this.agencyId = this.$store.state.app.agencyId; this.agencyId = this.$store.state.app.agencyId;
this.inspRecord(); this.inspRecord();
}, },
methods: { methods: {
async inspRecord() { async inspRecord() {
@ -49,12 +61,18 @@ export default {
let res = await inspRecord(parm) let res = await inspRecord(parm)
if (res.code === 0) { if (res.code === 0) {
this.loading = false; this.loading = false;
const now = new Date();
this.month = now.getMonth() + 1;
if(res.data.list.findIndex(item=>item.monthName == month) == -1){
this.currentMonth = true;
}
if (!res.data || res.data.list.length < this.pageSize) { if (!res.data || res.data.list.length < this.pageSize) {
this.finished = true; this.finished = true;
} }
this.list = this.list.concat(res.data.list); this.list = this.list.concat(res.data.list);
} }
}, },
handelClickJump(path) { handelClickJump(path) {
window.open(path) window.open(path)
} }

15
src/views/register/index.vue

@ -16,7 +16,7 @@
<van-tab title="实名认证"> <van-tab title="实名认证">
<div class="block container"> <div class="block container">
<van-field v-model="realName" label="真实姓名" placeholder="请输入" required /> <van-field v-model="realName" label="真实姓名" placeholder="请输入" required />
<van-field v-model="idCard" label="身份证号" placeholder="请输入" required/> <van-field v-model="idNum" label="身份证号" placeholder="请输入" required/>
<van-field v-model="phone" label="手机号" placeholder="请输入" required /> <van-field v-model="phone" label="手机号" placeholder="请输入" required />
<van-field v-model="smsCode" label="验证码" placeholder="请输入" required> <van-field v-model="smsCode" label="验证码" placeholder="请输入" required>
<template #button> <template #button>
@ -48,7 +48,7 @@ export default {
gender: '', gender: '',
userId: '', userId: '',
active:0, active:0,
idCard:null, idNum:null,
realName:null, realName:null,
} }
}, },
@ -64,9 +64,12 @@ export default {
}, },
init() { init() {
this.type = this.$route.params.type ? this.$route.params.type : '' console.log(this.$route.query);
this.userInfo = this.$store.state.app.userInfo this.active = this.$route.query.flag === "real"?1 : 0
this.gender = this.userInfo.gender this.userInfo = this.$store.state.app.userInfo;
this.phone = this.$store.state.app.userInfo.mobile;
this.idNum = this.$store.state.app.userInfo.idNum;
this.gender = this.userInfo.gender;
this.realName = this.userInfo.realName || this.userInfo.nickname this.realName = this.userInfo.realName || this.userInfo.nickname
}, },
submit() { submit() {
@ -77,7 +80,7 @@ export default {
realName: this.realName, realName: this.realName,
appId: this.$store.state.app.appId, appId: this.$store.state.app.appId,
gender: this.gender, gender: this.gender,
idNum:this.idCard idNum:this.idNum
} }
if (!params.mobile) { if (!params.mobile) {
this.$toast.fail('请输入手机号') this.$toast.fail('请输入手机号')

4
src/views/selectAgency/index.vue

@ -48,7 +48,7 @@ export default {
this.district = null; this.district = null;
this.autoFlag = false; this.autoFlag = false;
this.selfCity = []; this.selfCity = [];
this.getAgency(); this.getAgency(true);
}, },
signWX() { signWX() {
let _this = this let _this = this
@ -99,7 +99,7 @@ export default {
let parm ={ let parm ={
organizationName: this.district organizationName: this.district
} }
if(!this.autoFlag){ if(!this.autoFlag && type){
parm.pid = 0 parm.pid = 0
} }
let res = await getAllOrgTreeList(parm) let res = await getAllOrgTreeList(parm)

Loading…
Cancel
Save