| @@ -1,43 +1,45 @@ | |||
| <form bindsubmit="formSubmit"> | |||
| <view class='section'> | |||
| <text>姓名</text> | |||
| <input wx:if="{{username}}" name="username" type="text" placeholder='{{username}}' /> | |||
| <input wx:if="{{!username}}" name="username" type="text" placeholder='请填写名字' /> | |||
| </view> | |||
| <view class="section sec"> | |||
| <text>生日</text> | |||
| <picker mode="date" value="{{date}}" start="1930-09-01" end="2017-09-01" bindchange="bindDateChange"> | |||
| <input wx:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/> | |||
| <view wx:if="{{flag==2}}" class="picker"> {{date}}</view> | |||
| </picker> | |||
| </view> | |||
| <view class="section section_gap"> | |||
| <text>性别</text> | |||
| <radio-group class="radio-group" bindchange="radioChange"> | |||
| <radio class="radio" wx:for-items="{{items}}" wx:key="name" value="{{item.name}}" checked="{{item.checked}}"> | |||
| <text>{{item.value}}</text> | |||
| </radio> | |||
| </radio-group> | |||
| </view> | |||
| <view class='address' bindtap='address'> | |||
| <text>住址</text> | |||
| <view class='names' wx:if="{{address}}">{{address}}</view> | |||
| <view class='names' wx:if="{{!address}}">请选择地址</view> | |||
| </view> | |||
| <view class='ques' wx:if="{{question&&question.length>0}}"> | |||
| <text class='questionTitle'>调查问卷</text> | |||
| <view class='answer' wx:for="{{question}}" wx:key="index"> | |||
| <text>{{item.ques}}</text> | |||
| <textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea> | |||
| <view style='padding-bottom:100rpx;'> | |||
| <view class='section'> | |||
| <text>姓名</text> | |||
| <input wx:if="{{username}}" name="username" type="text" placeholder='{{username}}' /> | |||
| <input wx:if="{{!username}}" name="username" type="text" placeholder='请填写名字' /> | |||
| </view> | |||
| </view> | |||
| <view wx:if="{{useImg==1}}"> | |||
| <view class='quesTitle'>{{imgDetail}}</view> | |||
| <view class='up-img' wx:if="{{showReceiptUrl}}"> | |||
| <image src='{{receiptUrl}}' mode="widthFix"></image> | |||
| <view class="section sec"> | |||
| <text>生日</text> | |||
| <picker mode="date" value="{{date}}" start="1930-09-01" end="2017-09-01" bindchange="bindDateChange"> | |||
| <input wx:if="{{flag==1}}" class='input' placeholder='请输入生日' disabled/> | |||
| <view wx:if="{{flag==2}}" class="picker"> {{date}}</view> | |||
| </picker> | |||
| </view> | |||
| <view class="section section_gap"> | |||
| <text>性别</text> | |||
| <radio-group class="radio-group" bindchange="radioChange"> | |||
| <radio class="radio" wx:for-items="{{items}}" wx:key="name" value="{{item.name}}" checked="{{item.checked}}"> | |||
| <text>{{item.value}}</text> | |||
| </radio> | |||
| </radio-group> | |||
| </view> | |||
| <view class='address' bindtap='address'> | |||
| <text>住址</text> | |||
| <view class='names' wx:if="{{address}}">{{address}}</view> | |||
| <view class='names' wx:if="{{!address}}">请选择地址</view> | |||
| </view> | |||
| <view class='ques' wx:if="{{question&&question.length>0}}"> | |||
| <text class='questionTitle'>调查问卷</text> | |||
| <view class='answer' wx:for="{{question}}" wx:key="index"> | |||
| <text>{{item.ques}}</text> | |||
| <textarea name="answer{{index}}" bindinput='change' type="textarea" placeholder='请填写您的回答?'></textarea> | |||
| </view> | |||
| </view> | |||
| <view class='camera' bindtap='uploadImg'> | |||
| <text>+</text> | |||
| <view wx:if="{{useImg==1}}"> | |||
| <view class='quesTitle'>{{imgDetail}}</view> | |||
| <view class='up-img' wx:if="{{showReceiptUrl}}"> | |||
| <image src='{{receiptUrl}}' mode="widthFix"></image> | |||
| </view> | |||
| <view class='camera' bindtap='uploadImg'> | |||
| <text>+</text> | |||
| </view> | |||
| </view> | |||
| </view> | |||
| <button class='btn' formType="submit" disabled='{{disabled}}' hover-class='active'>提交</button> | |||