You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
204 lines
4.0 KiB
204 lines
4.0 KiB
<!--授课统计-详情-->
|
|
<template>
|
|
<view class="main_box">
|
|
|
|
<view class="main_section">
|
|
<view class="section">
|
|
<view class="text_input">
|
|
<fui-textarea placeholder="请输入反馈内容" v-model="formData.content"></fui-textarea>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="section">
|
|
<view class="upload_box">
|
|
<view>上传图片</view>
|
|
<AQUplodeImgMulti :inputName="`images_arr`" :inputValue="formData.images_arr || []"
|
|
@AQUploadSuccess="AQUploadSuccess" />
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<view class="section">
|
|
<view class="input_box">
|
|
<fui-input label="邮箱方式" borderTop placeholder="请输入邮箱" v-model="formData.mailbox"></fui-input>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="describe">
|
|
反馈的相关问题会第一时间通过邮箱解答。
|
|
</view>
|
|
|
|
<view class="btn" @click="submitForm()">提交</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import memberApi from '@/api/member.js';
|
|
import AQUplodeImgMulti from '@/components/AQ/AQUplodeImgMulti';
|
|
import AQTabber from "@/components/AQ/AQTabber"
|
|
|
|
|
|
export default {
|
|
components: {
|
|
AQTabber,
|
|
AQUplodeImgMulti,
|
|
},
|
|
data() {
|
|
return {
|
|
formData: {
|
|
images_arr: [],
|
|
images:'',
|
|
content:'',
|
|
mailbox:'',
|
|
},
|
|
}
|
|
},
|
|
onLoad() {},
|
|
methods: {
|
|
//######AQ上传文件组件相关######
|
|
// 上传文件回调
|
|
AQUploadSuccess(res) {
|
|
console.log('接收AQ上传回调xxx1', res)
|
|
// 使用 split 方法分割字符串
|
|
let _inputValue = []
|
|
if (res.filePathArr.length) {
|
|
_inputValue = res.filePathArr
|
|
}
|
|
this.formData[res.inputName] = _inputValue
|
|
// console.log('接收AQ上传回调xxx1',res)
|
|
// console.log('接收AQ上传回调xxx2',this.formData.member_store_certification_arr)
|
|
},
|
|
|
|
async submitForm() {
|
|
let data = {...this.formData}
|
|
data.images = data.images_arr.join(',')
|
|
if(!data.content){
|
|
//反馈内容为必填项
|
|
uni.showToast({
|
|
title:'反馈内容为必填项',
|
|
icon:'none'
|
|
})
|
|
return
|
|
}
|
|
let res = await memberApi.setFeedback(data)
|
|
if(res.code != 1){
|
|
uni.showToast({
|
|
title:res.msg,
|
|
icon:'none'
|
|
})
|
|
}else{
|
|
uni.showToast({
|
|
title:'提交成功',
|
|
icon:'none'
|
|
})
|
|
}
|
|
},
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.main_box {
|
|
background: #292929;
|
|
}
|
|
|
|
//自定义导航栏
|
|
.navbar_section {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background: #29d3b4;
|
|
|
|
.title {
|
|
padding: 20rpx 0;
|
|
font-size: 30rpx;
|
|
color: #315d55;
|
|
}
|
|
}
|
|
|
|
.main_section {
|
|
min-height: 100vh;
|
|
background: #292929 100%;
|
|
padding: 0 0rpx;
|
|
padding-top: 32rpx;
|
|
padding-bottom: 150rpx;
|
|
font-size: 28rpx;
|
|
color: #fff;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
|
|
.section {
|
|
background-color: #434544;
|
|
padding: 40rpx 40rpx;
|
|
|
|
.text_input {
|
|
border: 1px solid #434544;
|
|
background-color: #434544 !important;
|
|
|
|
::v-deep .fui-textarea__wrap {
|
|
border: 1px solid #797979;
|
|
background-color: #434544 !important;
|
|
}
|
|
|
|
::v-deep textarea {
|
|
color: #fff !important;
|
|
}
|
|
|
|
::v-deep .fui-textarea__background {
|
|
border: 0;
|
|
background-color: #434544 !important;
|
|
}
|
|
}
|
|
|
|
.upload_box {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
.input_box {
|
|
padding: 0;
|
|
color: #fff;
|
|
|
|
::v-deep .fui-input__wrap {
|
|
background: #434544 !important;
|
|
padding-left: 0 !important;
|
|
}
|
|
|
|
::v-deep .fui-input__label {
|
|
span {
|
|
color: #fff !important;
|
|
}
|
|
}
|
|
|
|
::v-deep .uni-input-input {
|
|
color: #fff;
|
|
}
|
|
|
|
::v-deep .fui-input__background {
|
|
background: #434544 !important;
|
|
}
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
margin: 0 auto;
|
|
margin-top: 40rpx;
|
|
border: 1px solid #25a18b;
|
|
color: #25a18b;
|
|
width: 80%;
|
|
height: 80rpx;
|
|
line-height: 80rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
}
|
|
|
|
.describe {
|
|
color: #999999;
|
|
padding-left: 30rpx;
|
|
}
|
|
</style>
|