diff --git a/pages.json b/pages.json index 235d206..5c10249 100644 --- a/pages.json +++ b/pages.json @@ -450,6 +450,14 @@ "navigationBarTitleText" : "管理员信息列表", "enablePullDownRefresh" : false } + }, + { + "path" : "pages/Feedback/userAppeal/userAppeal", + "style" : + { + "navigationBarTitleText" : "诉求信息", + "enablePullDownRefresh" : false + } } // { diff --git a/pages/Feedback/userAppeal/Feedback.scss b/pages/Feedback/userAppeal/Feedback.scss new file mode 100644 index 0000000..8c4297d --- /dev/null +++ b/pages/Feedback/userAppeal/Feedback.scss @@ -0,0 +1,187 @@ +.page{ + position: absolute; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: #f6f6f6; +} +.titleall-box { + display: flex; + justify-content: space-between; + padding: 40rpx 20rpx 20rpx 0; + .titleall-left { + font-size: 32rpx; + font-weight: bold; + display: flex; + align-items: center; + .titleall-left-line { + width: 14rpx; + height: 36rpx; + border-radius: 0 10rpx 10rpx 0; + background-color: #E60012; + box-shadow: 0 0 10rpx 5rpx #fbdadc; + margin-right: 20rpx; + } + text { + font-size: 28rpx; + color: #999999; + } + } +} +/* 反馈类型 */ +.feedback-type{ + position: relative; + display: flex; + align-items: center; + justify-content: space-between; + width: 94%; + height: 100rpx; + margin: 20rpx auto; + background-color: #FFFFFF; + border-radius: 20rpx; + padding: 0 4%; + .feedback-type-left { + color: #909090; + } + .title{ + display: flex; + align-items: center; + text{ + font-size: 26rpx; + } + } + .picker{ + position: absolute; + width: 100%; + height: 100%; + opacity: 0; + } + .more{ + display: flex; + align-items: center; + text{ + color: #000; + font-size: 34rpx; + } + image { + width: 20rpx; + height: 20rpx; + margin-left: 10rpx; + } + } + .feedback-type-right { + display: flex; + align-items: center; + } +} +.example-body { + padding: 10px; + padding-top: 0; + } + + .custom-image-box { + /* #ifndef APP-NVUE */ + display: flex; + /* #endif */ + flex-direction: row; + justify-content: space-between; + align-items: center; + } + + .text { + font-size: 14px; + color: #333; + } +.segmented-control { + margin-bottom: 15px; + } + + .button-group { + margin-top: 15px; + display: flex; + justify-content: space-around; + } + + .form-item { + display: flex; + align-items: center; + } + + .button { + display: flex; + align-items: center; + height: 35px; + margin-left: 10px; + } +/* 反馈内容 */ +.feedback-data{ + width: 94%; + // height: 600rpx; + margin: 20rpx auto; + background-color: #FFFFFF; + border-radius: 20rpx; + .content{ + padding: 20rpx; + textarea{ + width: 94%; + height: 320rpx; + background-color: #f6f6f6; + border-radius: 20rpx; + padding: 20rpx; + font-size: 26rpx; + color: #222222; + } + } + .voucher-img{ + display: flex; + align-items: center; + padding: 0 20rpx; + height: 240rpx; + margin-top: 20rpx; + .list{ + width: 33%; + height: 100%; + image{ + width: 160rpx; + height: 160rpx; + border-radius: 10rpx; + } + } + } +} + +/* 联系方式 */ +.contact-way{ + display: flex; + align-items: center; + justify-content: center; + width: 94%; + height: 100rpx; + margin: 20rpx auto; + background-color: #FFFFFF; + border-radius: 20rpx; + input{ + width: 100%; + height: 100%; + padding: 0 4%; + font-size: 26rpx; + color: #222222; + } +} + +/* 提交 */ +.submit-btn{ + display: flex; + align-items: center; + justify-content: center; + width: 94%; + height: 80rpx; + margin: 30rpx auto; + background: #E60012; + border-radius: 80rpx; + text{ + color: #FFFFFF; + font-size: 28rpx; + } +} \ No newline at end of file diff --git a/pages/Feedback/userAppeal/userAppeal.vue b/pages/Feedback/userAppeal/userAppeal.vue new file mode 100644 index 0000000..bfc989f --- /dev/null +++ b/pages/Feedback/userAppeal/userAppeal.vue @@ -0,0 +1,226 @@ + + + + + \ No newline at end of file diff --git a/pages/apply/dynamicModel/index.vue b/pages/apply/dynamicModel/index.vue index 439481a..98dbcad 100644 --- a/pages/apply/dynamicModel/index.vue +++ b/pages/apply/dynamicModel/index.vue @@ -50,7 +50,7 @@ method: 'get', data: {}, }).then(res => { - console.log(res) + console.log("表单",res) if (res.code !== 200 || !res.data) { uni.showToast({ title: '暂无此页面', diff --git a/pages/datain/datain.vue b/pages/datain/datain.vue index 73e0cc3..1bb23fb 100644 --- a/pages/datain/datain.vue +++ b/pages/datain/datain.vue @@ -84,18 +84,18 @@ - - + + {{it.fullName}} - - + + - + - + @@ -243,12 +243,28 @@ linearType: "custom" } } - } + }, + companysId:[], + tellInfo:[] } }, + onUnload() { + uni.$off('idInfo') + uni.$off('tellInfo') + }, onLoad() { this.getUser() this.getPostQing() + uni.$on('idInfo', res => { + console.log("选择公司页面返回的公司ID", res) + if(res.length > 0) + this.companysId = res + }) + uni.$on('tellInfo', res => { + console.log("tell信息", res) + if(res.length > 0) + this.tellInfo = res + }) }, created() { this.getFormList() @@ -261,6 +277,37 @@ console.log(this.startDate,this.endDate) this.getPostQing() }, + // 跳转到选择通知企业页面 + toTellInfo() { + uni.navigateTo({ + url: '/pages/tellInfo/tellInfo' + }) + }, + // 进行通知 + tellNotice(id){ + // 进行通知 + request({ + url:'/api/extend/demo/SendMessageByApp', + method:'post', + data:{ + title:this.tellInfo[0], + companys:this.companysId, + desc:this.tellInfo[1], + reid:id, + type:'表单填报通知', + link:'/pages/apply/dynamicModel/index', + fangshi:'通知' + } + }).then(res=>{ + console.log('通知结果',res) + if(res.code == 200){ + uni.showToast({ + icon:"success", + title:"通知成功" + }) + } + }) + }, // 获取用户信息 getUser() { // // 获取日期 @@ -430,7 +477,8 @@ // url: `/pages/apply/dynamicModel/index?data=${JSON.stringify(it)}` // }) uni.navigateTo({ - url: '/pages/apply/dynamicModel/index?id=' + item.id + '&fullName=' + item.fullName, + // url: '/pages/apply/dynamicModel/index?id=' + item.id + '&fullName=' + item.fullName, + url: '/pages/apply/dynamicModel/index?id=' + item.id, fail: (err) => { this.$u.toast("暂无此页面") } diff --git a/pages/my/adminMessageList/adminMessageList.vue b/pages/my/adminMessageList/adminMessageList.vue index 5895e1e..5ea4eb9 100644 --- a/pages/my/adminMessageList/adminMessageList.vue +++ b/pages/my/adminMessageList/adminMessageList.vue @@ -92,19 +92,22 @@ // }) // } // }) - request({ - url:`/api/extend/demo/UpdateIsReadEnd?MessageId=${id}`, - method:'put', - data:{} - }).then(res=>{ - console.log("修改已读",res) - if(res.code == 200){ - console.log('成功修改') - uni.navigateTo({ - url:link.link + `?data=${JSON.stringify(link.reid)}` - }) - } + uni.navigateTo({ + url:link.link + `?data=${JSON.stringify(link.reid)}` }) + // request({ + // url:`/api/extend/demo/UpdateIsReadEnd?MessageId=${id}`, + // method:'put', + // data:{} + // }).then(res=>{ + // console.log("修改已读",res) + // if(res.code == 200){ + // console.log('成功修改') + // uni.navigateTo({ + // url:link.link + `?data=${JSON.stringify(link.reid)}` + // }) + // } + // }) } } } @@ -113,7 +116,8 @@