broadcast.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <form bindsubmit="setNews">
  2. <view class='white-block'>
  3. <view class="form-item">
  4. <view class="label">播报类型:</view>
  5. <picker bindchange="bindTypeChange" value="{{typeIdx}}" range="{{typeList}}" range-key="name">
  6. <view class="picker">{{typeList[typeIdx].name}}</view>
  7. </picker>
  8. </view>
  9. <view class="form-item" style="height:140rpx" wx:if="{{typeIdx==1}}">
  10. <view class="label">播报周期:</view>
  11. <checkbox-group bindchange="checkboxChange">
  12. <label wx:for="{{weekList}}" class="checkBox">
  13. <checkbox value="{{item.id}}" />
  14. <text>{{item.name}}</text>
  15. </label>
  16. </checkbox-group>
  17. </view>
  18. <view class="form-item" wx:if="{{typeIdx==1}}">
  19. <view class="label">时间:</view>
  20. <picker mode="time" value="{{time}}" start="00:00" end="23:59" bindchange="bindTimeChange">
  21. <view class="picker">{{time}}</view>
  22. </picker>
  23. </view>
  24. <view class="form-item content">
  25. <view class="label">播报内容:</view>
  26. <textarea name="news" placeholder="100字以内" maxlength="100" class="input-normal "></textarea>
  27. </view>
  28. <button class="button-normal" form-type="submit">发送</button>
  29. </view>
  30. </form>