index.wxml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <!--index.wxml-->
  2. <view class="container">
  3. <navBar title-text="CoffeeTalk" back-icon="/img/nav/back@3x.png" background="none" bindback="back" />
  4. <view class="title-img"></view>
  5. <view class="list">
  6. <scroll-view style="height: 100%;" scroll-y>
  7. <view class="black-112"></view>
  8. <!-- 活动名称 -->
  9. <view class="label" catchtap="showInput" data-key='key1'>
  10. <!-- <view class='icon'></view> -->
  11. <view class="input" wx:if='{{!isShowForm.key1}}'>
  12. <view class="input-des"></view>
  13. <input placeholder="输入活动名称" focus="{{inputFocus.key1}}" placeholder-class="text-888" value='{{form.key1}}' bindinput="inputVal" data-key='key1' bindblur="inputBlur"></input>
  14. </view>
  15. <view class="input-detail" wx:else>
  16. <view class='input-title'>活动名称</view>
  17. <view class="input-section text-overflow">{{form.key1}}</view>
  18. </view>
  19. </view>
  20. <!-- 活动地点 -->
  21. <view class="label" catchtap="showInput" data-key='key2'>
  22. <view class='icon'></view>
  23. <view class="input" wx:if='{{!isShowForm.key2}}'>
  24. <view class="input-des"></view>
  25. <input placeholder="输入活动名称" focus="{{inputFocus.key2}}" placeholder-class="text-888" value='{{form.key2}}' bindinput="inputVal" data-key='key2' bindblur="inputBlur"></input>
  26. </view>
  27. <view class="input-detail" wx:else>
  28. <view class='input-title'>活动地点</view>
  29. <view class="input-section text-overflow">{{form.key2}}</view>
  30. </view>
  31. </view>
  32. <!-- 选择活动时间 -->
  33. <view class="label">
  34. <view class='icon'></view>
  35. <view class="input" wx:if='{{!form.key3}}'>
  36. <view class="input-des"></view>
  37. <input disabled placeholder="输入活动时间"></input>
  38. </view>
  39. <view class="input-detail" wx:else>
  40. <view class='input-title'>活动时间</view>
  41. <view class="input-section text-overflow">{{form.key3}}</view>
  42. </view>
  43. <picker class="picker-box" mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" data-key='key3' bindcolumnchange="changeDateTimeColumn" range="{{dateTimeArray}}">
  44. <view class="tui-picker-detail">
  45. <!-- 选择活动时间 -->
  46. <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
  47. </view>
  48. </picker>
  49. </view>
  50. <!-- 选择报名截止时间 -->
  51. <view class="label">
  52. <view class='icon'></view>
  53. <view class="input" wx:if='{{!form.key4}}'>
  54. <view class="input-des"></view>
  55. <input disabled placeholder="选择报名截止时间"></input>
  56. </view>
  57. <view class="input-detail" wx:else>
  58. <view class='input-title'>报名截止时间</view>
  59. <view class="input-section text-overflow">{{form.key4}}</view>
  60. </view>
  61. <picker class="picker-box" mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" data-key='key4' bindcolumnchange="changeDateTimeColumn" range="{{dateTimeArray}}">
  62. <view class="tui-picker-detail">
  63. <!-- 选择活动时间 -->
  64. <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
  65. </view>
  66. </picker>
  67. </view>
  68. <!-- 输入活动描述 -->
  69. <view class="label label-textarea" catchtap="showInput" data-key='key5'>
  70. <!-- <view class='icon'></view> -->
  71. <view class="input" wx:if='{{!isShowForm.key5}}'>
  72. <view class="input-des"></view>
  73. <textarea auto-height placeholder="输入活动描述" focus="{{inputFocus.key5}}" placeholder-class="text-888" maxlength='-1' value='{{form.key5}}' bindinput="inputVal" data-key='key5' bindblur="inputBlur"></textarea>
  74. </view>
  75. <view class="input-detail textarea-detail" wx:else>
  76. <view class='input-title'>活动描述</view>
  77. <view class="input-section text-overflow-line">{{form.key5}}</view>
  78. <!-- <image class="textarea-dowm-img" src="../../img/down.png"></image> -->
  79. </view>
  80. </view>
  81. <!-- 添加图片 -->
  82. <view class="pic-list">
  83. <view class="pic-item">
  84. <image class="pic" src="../../img/plus.png"></image>
  85. <view class="pic-close">
  86. <image src="../../img/close.png"></image>
  87. </view>
  88. </view>
  89. <view class="pic-item">
  90. <image class="pic" src="../../img/plus.png"></image>
  91. <view class="pic-close">
  92. <image src="../../img/close.png"></image>
  93. </view>
  94. </view>
  95. <view class="pic-item">
  96. <image class="pic" src="../../img/plus.png"></image>
  97. <view class="pic-close">
  98. <image src="../../img/close.png"></image>
  99. </view>
  100. </view>
  101. <view class="pic-add">
  102. <image src="../../img/plus.png"></image>
  103. <text>添加图片</text>
  104. </view>
  105. </view>
  106. <!-- 提交 -->
  107. <view class="btn">发起活动</view>
  108. <view class="black-100"></view>
  109. </scroll-view>
  110. </view>
  111. </view>