Files
app-govern/pages/home/feedback.vue

110 lines
3.0 KiB
Vue
Raw Normal View History

2023-02-09 16:37:53 +08:00
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index'>
2023-03-08 13:45:57 +08:00
<view class="content" :key="index">
2023-02-09 16:37:53 +08:00
<uni-forms>
<!-- <uni-forms-item label="类型">
<uni-data-select v-model="item.type" :localdata="range"></uni-data-select>
</uni-forms-item> -->
<uni-forms-item label="标题">
2023-03-08 13:45:57 +08:00
<uni-easyinput type="text" v-model="formData.title" placeholder="请输入问题简要" />
2023-02-09 16:37:53 +08:00
</uni-forms-item>
<uni-forms-item label="描述">
2023-03-08 13:45:57 +08:00
<uni-easyinput type="textarea" v-model="formData.des" placeholder="请输入详细描述" />
</uni-forms-item>
<uni-forms-item label="图片">
<uni-file-picker :auto-upload="false" :fileList="formData.fileList" @change="fileChange" />
2023-02-09 16:37:53 +08:00
</uni-forms-item>
</uni-forms>
</view>
<view class="btn-wrap">
<view class="btn-wrap-item " @click="submit"> 提交 </view>
</view>
2023-03-09 13:50:45 +08:00
<navigator url="/pages/home/service" hover-class="none" class="fixed-btn">
<image src="/static/service.png" style="height:66rpx;width:66rpx" />
</navigator>
2023-02-09 16:37:53 +08:00
</view>
</view>
</Cn-page>
</template>
<script>
export default {
data () {
return {
loading: false,
2023-03-08 13:45:57 +08:00
formData: {
title: '',
des: '',
fileList: []
},
2023-02-09 16:37:53 +08:00
range: [
{ value: 0, text: "DVR" },
{ value: 1, text: "APF" },
],
}
},
methods: {
add () {
this.formData.push({
type: '',
address: '',
})
},
submit () {
console.log(this.formData)
uni.navigateBack({ delta: 1 })
},
}
}
</script>
<style lang='scss'>
.index {
2023-02-20 14:19:28 +08:00
padding: 20rpx;
2023-02-09 16:37:53 +08:00
.content {
margin-bottom: 20rpx;
2023-03-08 13:45:57 +08:00
padding: 34rpx;
2023-02-09 16:37:53 +08:00
background: $uni-theme-white;
border-radius: 12rpx;
}
.btn-wrap {
margin-top: 40rpx;
display: flex;
align-items: center;
justify-content: space-between;
.btn-wrap-item {
display: flex;
align-items: center;
justify-content: center;
flex: 1;
background: $uni-theme-blue;
color: #fff;
height: 80rpx;
border-radius: 12rpx;
}
}
}
2023-03-09 13:50:45 +08:00
.fixed-btn {
position: fixed;
right: 80rpx;
bottom: 200rpx;
width: 126rpx;
height: 126rpx;
background: #fff;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.2);
image {
height: 66rpx;
width: 66rpx;
}
}
2023-02-09 16:37:53 +08:00
</style>