index.wxml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 label-sj">
  10. <view class="input-detail">
  11. <view class='input-title'>私局</view>
  12. <view class="input-section text-overflow">(开启后只显示在个人页,关闭后首页可见)</view>
  13. </view>
  14. <view>
  15. <switch checked="{{switch1Checked}}" color="#8F6EE5" bindchange="switch1Change"/>
  16. </view>
  17. </view>
  18. <!-- 活动名称 -->
  19. <view class="label" catchtap="showInput" data-key='key1'>
  20. <!-- <view class='icon'></view> -->
  21. <view class="input" wx:if='{{!isShowForm.key1}}'>
  22. <view class="input-des"></view>
  23. <input disabled="{{!!actid}}" placeholder="*输入活动名称" focus="{{inputFocus.key1}}" placeholder-class="text-888" value='{{form.key1}}' bindinput="inputVal" data-key='key1' bindblur="inputBlur"></input>
  24. </view>
  25. <view class="input-detail" wx:else>
  26. <view class='input-title'>活动名称</view>
  27. <view class="input-section text-overflow">{{form.key1}}</view>
  28. </view>
  29. </view>
  30. <!-- 活动地点 -->
  31. <view class="label" catchtap="showInput" data-key='key2'>
  32. <view class='icon'>
  33. <image src="../../img/location.png"></image>
  34. </view>
  35. <view class="input" wx:if='{{!isShowForm.key2}}'>
  36. <view class="input-des"></view>
  37. <input placeholder="*输入活动地点" focus="{{inputFocus.key2}}" placeholder-class="text-888" value='{{form.key2}}' bindinput="inputVal" data-key='key2' bindblur="inputBlur"></input>
  38. </view>
  39. <view class="input-detail" wx:else>
  40. <view class='input-title'>活动地点</view>
  41. <view class="input-section text-overflow">{{form.key2}}</view>
  42. </view>
  43. </view>
  44. <!-- 选择活动时间 -->
  45. <view class="label">
  46. <view class='icon'>
  47. <image src="../../img/time.png"></image>
  48. </view>
  49. <view class="input" wx:if='{{!form.key3}}'>
  50. <view class="input-des"></view>
  51. <input disabled placeholder="*活动开始时间"></input>
  52. </view>
  53. <view class="input-detail" wx:else>
  54. <view class='input-title'>活动开始时间</view>
  55. <view class="input-section text-overflow">{{form.key3}}</view>
  56. </view>
  57. <picker class="picker-box" mode="multiSelector" value="{{dateTime1}}" bindchange="changeDateTime1" data-key='key3' bindcolumnchange="changeDateTimeColumn1" range="{{dateTimeArray1}}">
  58. <view class="tui-picker-detail">
  59. <!-- 选择活动时间 -->
  60. <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
  61. </view>
  62. </picker>
  63. </view>
  64. <view class="label">
  65. <view class='icon'>
  66. <image src="../../img/time.png"></image>
  67. </view>
  68. <view class="input" wx:if='{{!form.key7}}'>
  69. <view class="input-des"></view>
  70. <input disabled placeholder="活动结束时间"></input>
  71. </view>
  72. <view class="input-detail" wx:else>
  73. <view class='input-title'>活动结束时间</view>
  74. <view class="input-section text-overflow">{{form.key7}}</view>
  75. </view>
  76. <picker class="picker-box" mode="multiSelector" value="{{dateTime7}}" bindchange="changeDateTime7" data-key='key7' bindcolumnchange="changeDateTimeColumn7" range="{{dateTimeArray7}}">
  77. <view class="tui-picker-detail">
  78. <!-- 选择活动时间 -->
  79. <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
  80. </view>
  81. </picker>
  82. </view>
  83. <!-- 选择报名截止时间 -->
  84. <view class="label">
  85. <view class='icon'>
  86. <image src="../../img/over_time.png"></image>
  87. </view>
  88. <view class="input" wx:if='{{!form.key4}}'>
  89. <view class="input-des"></view>
  90. <input disabled placeholder="选择报名截止时间"></input>
  91. </view>
  92. <view class="input-detail" wx:else>
  93. <view class='input-title'>报名截止时间</view>
  94. <view class="input-section text-overflow">{{form.key4}}</view>
  95. </view>
  96. <picker class="picker-box" mode="multiSelector" value="{{dateTime2}}" bindchange="changeDateTime2" data-key='key4' bindcolumnchange="changeDateTimeColumn2" range="{{dateTimeArray2}}">
  97. <view class="tui-picker-detail">
  98. <!-- 选择活动时间 -->
  99. <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
  100. </view>
  101. </picker>
  102. </view>
  103. <!-- 输入活动描述 -->
  104. <view class="label label-textarea" catchtap="showInput" data-key='key5'>
  105. <!-- <view class='icon'></view> -->
  106. <view class="input" wx:if='{{!isShowForm.key5}}'>
  107. <view class="input-des"></view>
  108. <textarea auto-height placeholder="*活动描述" focus="{{inputFocus.key5}}" placeholder-class="text-888" maxlength='-1' value='{{form.key5}}' bindinput="inputVal" data-key='key5' bindblur="inputBlur"></textarea>
  109. </view>
  110. <view class="input-detail textarea-detail" wx:else>
  111. <view class='input-title'>活动描述</view>
  112. <view class="input-section text-overflow-line">{{form.key5}}</view>
  113. <!-- <image class="textarea-dowm-img" src="../../img/down.png"></image> -->
  114. </view>
  115. </view>
  116. <!-- 人数 -->
  117. <view class="label label-num">
  118. <view class="num-l">
  119. <input value="{{form.money}}" type="number" bindinput="inputVal" data-key='money'></input>
  120. <text>元/人</text>
  121. </view>
  122. <view class="num-line"></view>
  123. <view class="num-r">
  124. <text>限</text>
  125. <input value="{{form.num}}" type="number" bindinput="inputVal" data-key='num'></input>
  126. <text>人报名</text>
  127. </view>
  128. </view>
  129. <!-- 添加图片 -->
  130. <view class="pic-list">
  131. <view class="pic-item" wx:for="{{imgList}}" wx:key='index'>
  132. <image class="pic" bindtap='clickImg' src="{{BASEIMGURL + item}}"></image>
  133. <view class="pic-close" bindtap="removeImg" data-index='{{index}}' data-item='{{item}}'>
  134. <image src="../../img/close.png" mode="aspectFit"></image>
  135. </view>
  136. </view>
  137. <view class="pic-add" bindtap="updateImg" hidden='{{imgList.length > 0}}'>
  138. <image src="../../img/plus.png" mode="aspectFill"></image>
  139. <text>添加图片</text>
  140. </view>
  141. </view>
  142. <!-- 提交 -->
  143. <view class="btn">
  144. <button wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
  145. <button wx:else bindtap='createBtn'></button>
  146. {{actid?'修改':'发起活动'}}
  147. </view>
  148. <view class="black-100"></view>
  149. </scroll-view>
  150. </view>
  151. </view>