index.wxml 4.9 KB

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