42 lines
1.7 KiB
Plaintext
42 lines
1.7 KiB
Plaintext
<view class="container">
|
|
<header-nav inner-text="Some text">{{ title }}</header-nav>
|
|
<!--填写长内容 -->
|
|
<view wx:if="{{name!='questions'}}" class="text-box-container">
|
|
<view class='text-box'>
|
|
<textarea maxlength='{{ maxlength }}' cursor-spacing="100" value='{{ content }}' bindinput='input' placeholder='{{ placeholder || ("请" + title) }}' placeholder-class='placeholder' show-confirm-bar="{{ false }}"></textarea>
|
|
<view class='restletter' wx:if="{{ maxlength > 0}}">{{ content.length }}/80</view>
|
|
</view>
|
|
<view class='button-box'>
|
|
<view class='cle' bindtap="cle">取消</view>
|
|
<view class='submit' bindtap='submit'>完成</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 设置问题 -->
|
|
<view wx:if="{{name=='questions'}}" class='questions-box'>
|
|
<view class='question-list'>
|
|
<view class='li' wx:for="{{ content }}">
|
|
<view class='header'>
|
|
<view class='title'>提问{{ index + 1 }}</view>
|
|
<view class='btn' data-i="{{ index }}" bindtap='del_item'>
|
|
<image src='../../img/del.png' class='del'></image>
|
|
</view>
|
|
</view>
|
|
<view class='content-box'>
|
|
<textarea maxlength='-1' cursor-spacing="30" value='{{ item }}' bindinput='input' data-i="{{ index }}" show-confirm-bar="{{ false }}"></textarea>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class='add-question' bindtap='add_item'>
|
|
<image src='../../img/plus-o.png' class='plus'></image>添加提问
|
|
</view>
|
|
|
|
<view class='button-box'>
|
|
<view class='cle' bindtap="cle questions-cle">取消</view>
|
|
<view class='submit' bindtap='submit'>完成</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
</view>
|