|
|
|
|
@ -72,39 +72,31 @@
@@ -72,39 +72,31 @@
|
|
|
|
|
</view> |
|
|
|
|
</picker> |
|
|
|
|
|
|
|
|
|
<!-- 文本 QuestionType=4 --> |
|
|
|
|
<textarea |
|
|
|
|
wx:if="{{item.QuestionType === 4}}" |
|
|
|
|
class="textarea" |
|
|
|
|
placeholder-class="place-input" |
|
|
|
|
placeholder="请输入" |
|
|
|
|
value="{{item.TextValue}}" |
|
|
|
|
bindinput="handleTextInput" |
|
|
|
|
data-index="{{qIndex}}" |
|
|
|
|
maxlength="500" |
|
|
|
|
auto-height |
|
|
|
|
></textarea> |
|
|
|
|
<!-- 数字 QuestionType=4 --> |
|
|
|
|
<view class="num-wrap" wx:if="{{item.QuestionType === 4}}"> |
|
|
|
|
<input |
|
|
|
|
class="input" |
|
|
|
|
type="digit" |
|
|
|
|
placeholder-class="place-input" |
|
|
|
|
placeholder="请输入数字" |
|
|
|
|
value="{{item.TextValue}}" |
|
|
|
|
bindinput="handleTextInput" |
|
|
|
|
data-index="{{qIndex}}" |
|
|
|
|
maxlength="500" |
|
|
|
|
auto-height |
|
|
|
|
/> |
|
|
|
|
<view class="dight">mg/天</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<!-- 图片 QuestionType=5 --> |
|
|
|
|
<view wx:if="{{item.QuestionType === 5}}" class="image-group"> |
|
|
|
|
<view |
|
|
|
|
wx:for="{{item.Images}}" |
|
|
|
|
wx:for-item="img" |
|
|
|
|
wx:for-index="imgIndex" |
|
|
|
|
wx:key="imgIndex" |
|
|
|
|
class="image-item" |
|
|
|
|
> |
|
|
|
|
<view wx:for="{{item.Images}}" wx:for-item="img" wx:for-index="imgIndex" wx:key="imgIndex" class="image-item"> |
|
|
|
|
<image class="img" mode="aspectFill" src="{{img.url}}"></image> |
|
|
|
|
<view class="del" catch:tap="handleImageDelete" data-index="{{qIndex}}" data-imgindex="{{imgIndex}}"> |
|
|
|
|
<van-icon name="cross" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view |
|
|
|
|
wx:if="{{item.Images.length < 9}}" |
|
|
|
|
class="image-add" |
|
|
|
|
bind:tap="handleImageUpload" |
|
|
|
|
data-index="{{qIndex}}" |
|
|
|
|
> |
|
|
|
|
<view wx:if="{{item.Images.length < 9}}" class="image-add" bind:tap="handleImageUpload" data-index="{{qIndex}}"> |
|
|
|
|
<van-icon name="plus" class="add-icon" /> |
|
|
|
|
<view class="add-text">添加图片</view> |
|
|
|
|
</view> |
|
|
|
|
|