123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <view style="background: #f5f5f5; padding: 20rpx 0;">
- <view class="container">
- <!-- 问题描述 -->
- <view class="section">
- <view class="section-title">其他</view>
- <view class="field-title">
- <text>问题描述</text>
- <text class="word-limit">还可以输入100字</text>
- </view>
- <textarea
- class="textarea"
- placeholder="请输入问题描述"
- maxlength="100"
- bindinput="onDescriptionInput"
- value="{{description}}"
- ></textarea>
- </view>
- <!-- 上传图片 -->
- <view class="section">
- <view class="section-title">
- <text>上传图片</text>
- </view>
- <view class="img-container">
- <!-- 已上传的图片 -->
- <block wx:for="{{imgList}}" wx:key="*this" wx:for-index="index">
- <view class="img-wrapper">
- <image
- src="{{item}}"
- class="img-thumb"
- mode="aspectFill"
- data-url="{{item}}"
- bindtap="previewImage"
- />
- <view class="delete-btn" data-index="{{index}}" bindtap="deleteImage">×</view>
- </view>
- </block>
- <!-- 上传按钮 -->
- <view wx:if="{{imgList.length < 6}}" class="upload-btn" bindtap="chooseImage">
- <text>+</text>
- </view>
- </view>
- <text class="upload-tip">* 有助于我们更快解决问题</text>
- </view>
- <!-- 提交按钮 -->
- <button class="submit-btn" bindtap="submitForm">提交</button>
- </view>
- </view>
|