|
@@ -1,25 +1,30 @@
|
|
<template>
|
|
<template>
|
|
<view class="app-container">
|
|
<view class="app-container">
|
|
- <h3>问题类型</h3>
|
|
|
|
- <view class="radio-list">
|
|
|
|
- <radio-group @change="radioChange">
|
|
|
|
- <label v-for="item in typeOptions" :key="item.id">
|
|
|
|
- <radio :value="item.id.toString()" color="#A4D099" :checked="item.id == active" />
|
|
|
|
- <span>{{ item.name }}</span>
|
|
|
|
- </label>
|
|
|
|
- </radio-group>
|
|
|
|
- </view>
|
|
|
|
- <view class="textarea">
|
|
|
|
- <textarea v-model="form.content" maxlength="200" placeholder="请描述您遇到的问题或意见" />
|
|
|
|
- </view>
|
|
|
|
- <view class="upload">
|
|
|
|
- <view class="img-list" v-for="(item, index) in imageFiles" :key="index">
|
|
|
|
- <uni-icons class="close" type="closeempty" color="#FFF" size="12" @click="getDelete(index)" />
|
|
|
|
- <img :src="item" />
|
|
|
|
|
|
+ <view class="list">
|
|
|
|
+ <view class="item margin-bottom">
|
|
|
|
+ <h3>问题类型</h3>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="item margin-bottom">
|
|
|
|
+ <radio-group @change="radioChange">
|
|
|
|
+ <label v-for="item in typeOptions" :key="item.id">
|
|
|
|
+ <radio :value="item.id.toString()" color="#A4D099" :checked="item.id == active"
|
|
|
|
+ style="transform: scale(0.7); margin: -7rpx;" />
|
|
|
|
+ <span>{{ item.name }}</span>
|
|
|
|
+ </label>
|
|
|
|
+ </radio-group>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="item margin-bottom">
|
|
|
|
+ <textarea v-model="form.content" maxlength="200" placeholder="请描述您遇到的问题或意见" />
|
|
|
|
+ </view>
|
|
|
|
+ <view class="item upload margin-bottom">
|
|
|
|
+ <view class="img-list" v-for="(item, index) in imageFiles" :key="index">
|
|
|
|
+ <uni-icons class="close" type="closeempty" color="#FFF" size="12" @click="getDelete(index)" />
|
|
|
|
+ <img :src="item" />
|
|
|
|
+ </view>
|
|
|
|
+ <button v-if="imageFiles.length < 9" @click="upload">
|
|
|
|
+ <uni-icons type="plusempty" color="#A4D099" size="36" />
|
|
|
|
+ </button>
|
|
</view>
|
|
</view>
|
|
- <button v-if="imageFiles.length < 9" @click="upload">
|
|
|
|
- <uni-icons type="plusempty" color="#A4D099" size="36" />
|
|
|
|
- </button>
|
|
|
|
</view>
|
|
</view>
|
|
<view class="submit">
|
|
<view class="submit">
|
|
<button type="submit" circle @click="getSubmit">提交</button>
|
|
<button type="submit" circle @click="getSubmit">提交</button>
|
|
@@ -53,9 +58,7 @@ export default {
|
|
// 单选
|
|
// 单选
|
|
active: 0,
|
|
active: 0,
|
|
// 反馈类型
|
|
// 反馈类型
|
|
- typeOptions: [],
|
|
|
|
- // 高度
|
|
|
|
- height: 0
|
|
|
|
|
|
+ typeOptions: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
@@ -130,100 +133,100 @@ export default {
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
.app-container {
|
|
.app-container {
|
|
- background-color: #FFFFFF;
|
|
|
|
- height: 100%;
|
|
|
|
|
|
+ background-color: #FFF;
|
|
color: #353535;
|
|
color: #353535;
|
|
-}
|
|
|
|
-
|
|
|
|
-.radio-list {
|
|
|
|
- ::v-deep uni-radio .uni-radio-input {
|
|
|
|
- width: 24rpx;
|
|
|
|
- height: 24rpx;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- label {
|
|
|
|
- display: inline-block;
|
|
|
|
- width: 25%;
|
|
|
|
- font-size: 24rpx;
|
|
|
|
- margin-top: 40rpx;
|
|
|
|
- }
|
|
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-flow: column nowrap;
|
|
|
|
+ min-height: 100vh;
|
|
|
|
+
|
|
|
|
+ .list {
|
|
|
|
+ flex: 1;
|
|
|
|
+
|
|
|
|
+ .item {
|
|
|
|
+ uni-radio-group {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ gap: 1rem;
|
|
|
|
+
|
|
|
|
+ label {
|
|
|
|
+ width: 144rpx;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: flex-start;
|
|
|
|
+ }
|
|
|
|
|
|
- span {
|
|
|
|
- vertical-align: middle;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ span {
|
|
|
|
+ word-break: break-all;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
-.textarea {
|
|
|
|
- margin-top: 48rpx;
|
|
|
|
|
|
+ textarea {
|
|
|
|
+ border-radius: 8px;
|
|
|
|
+ height: 240rpx;
|
|
|
|
+ background-color: #FAFAFA;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- textarea {
|
|
|
|
- border-radius: 8px;
|
|
|
|
- height: 240rpx;
|
|
|
|
- background-color: #FAFAFA;
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ .upload {
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-wrap: wrap;
|
|
|
|
+ gap: 12px;
|
|
|
|
+
|
|
|
|
+ .img-list {
|
|
|
|
+ display: flex;
|
|
|
|
+ position: relative;
|
|
|
|
+
|
|
|
|
+ .close {
|
|
|
|
+ width: 40rpx;
|
|
|
|
+ height: 40rpx;
|
|
|
|
+ line-height: 40rpx;
|
|
|
|
+ border-radius: 50%;
|
|
|
|
+ position: absolute;
|
|
|
|
+ right: 0rpx;
|
|
|
|
+ top: 0rpx;
|
|
|
|
+ background-color: #888;
|
|
|
|
+ }
|
|
|
|
|
|
-.upload {
|
|
|
|
- margin-top: 48rpx;
|
|
|
|
- display: flex;
|
|
|
|
- flex-wrap: wrap;
|
|
|
|
- align-content: flex-start;
|
|
|
|
- height: calc(160rpx * 3 + 24rpx * 3);
|
|
|
|
|
|
+ img {
|
|
|
|
+ width: 160rpx;
|
|
|
|
+ height: 160rpx;
|
|
|
|
+ border-radius: 16rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- .img-list {
|
|
|
|
- position: relative;
|
|
|
|
|
|
+ button {
|
|
|
|
+ width: 160rpx;
|
|
|
|
+ height: 160rpx;
|
|
|
|
+ line-height: 160rpx;
|
|
|
|
+ margin: 0;
|
|
|
|
+ background-color: #F0F7EE;
|
|
|
|
+ border-radius: 16rpx;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- img {
|
|
|
|
- width: 160rpx;
|
|
|
|
- height: 160rpx;
|
|
|
|
- margin: 0 24rpx 24rpx 0;
|
|
|
|
- border-radius: 16rpx;
|
|
|
|
- }
|
|
|
|
|
|
+ .submit {
|
|
|
|
+ width: 100%;
|
|
|
|
+ margin-top: 100px;
|
|
|
|
|
|
- .close {
|
|
|
|
- width: 40rpx;
|
|
|
|
- height: 40rpx;
|
|
|
|
- line-height: 40rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- border-radius: 50%;
|
|
|
|
- position: absolute;
|
|
|
|
- right: 28rpx;
|
|
|
|
- top: 4rpx;
|
|
|
|
- background-color: #888;
|
|
|
|
- z-index: 99;
|
|
|
|
- }
|
|
|
|
|
|
+ button {
|
|
|
|
+ width: 400rpx;
|
|
|
|
+ height: 80rpx;
|
|
|
|
+ line-height: 80rpx;
|
|
|
|
+ }
|
|
|
|
|
|
- button {
|
|
|
|
- width: 160rpx;
|
|
|
|
- height: 160rpx;
|
|
|
|
- line-height: 160rpx;
|
|
|
|
- margin: 0;
|
|
|
|
- background-color: #F0F7EE;
|
|
|
|
- border-radius: 16rpx;
|
|
|
|
|
|
+ .contact {
|
|
|
|
+ width: 100%;
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
+ color: #999;
|
|
|
|
+ display: flex;
|
|
|
|
+ justify-content: space-around;
|
|
|
|
+ margin-top: 95rpx;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-.submit {
|
|
|
|
- position: absolute;
|
|
|
|
- bottom: 32rpx;
|
|
|
|
- left: 50%;
|
|
|
|
- transform: translate(-50%);
|
|
|
|
- width: 100%;
|
|
|
|
-
|
|
|
|
- button {
|
|
|
|
- width: 400rpx;
|
|
|
|
- height: 80rpx;
|
|
|
|
- line-height: 80rpx;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- .contact {
|
|
|
|
- width: 100%;
|
|
|
|
- font-size: 24rpx;
|
|
|
|
- color: #999;
|
|
|
|
- display: flex;
|
|
|
|
- justify-content: space-around;
|
|
|
|
- margin-top: 30rpx;
|
|
|
|
- }
|
|
|
|
|
|
+.margin-bottom {
|
|
|
|
+ margin-bottom: 20px;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|