123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!--index.wxml-->
- <view class="container">
- <!-- <navBar title-text="CoffeeTalk" back-icon="/img/nav/back@3x.png" background="none" bindback="back" /> -->
- <view class="title-img"></view>
- <view class="list">
- <scroll-view style="height: 100%;" scroll-y>
- <view class="black-112">
- </view>
- <!-- 活动名称 -->
- <view class="label" catchtap="showInput" data-key='key1'>
- <!-- <view class='icon'></view> -->
- <view class="input" wx:if='{{!isShowForm.key1}}'>
- <view class="input-des"></view>
- <input placeholder="输入活动名称" focus="{{inputFocus.key1}}" placeholder-class="text-888" value='{{form.key1}}' bindinput="inputVal" data-key='key1' bindblur="inputBlur"></input>
- </view>
- <view class="input-detail" wx:else>
- <view class='input-title'>活动名称</view>
- <view class="input-section text-overflow">{{form.key1}}</view>
- </view>
- </view>
- <!-- 活动地点 -->
- <view class="label" catchtap="showInput" data-key='key2'>
- <view class='icon'>
- <image src="../../img/location.png"></image>
- </view>
- <view class="input" wx:if='{{!isShowForm.key2}}'>
- <view class="input-des"></view>
- <input placeholder="输入活动地点" focus="{{inputFocus.key2}}" placeholder-class="text-888" value='{{form.key2}}' bindinput="inputVal" data-key='key2' bindblur="inputBlur"></input>
- </view>
- <view class="input-detail" wx:else>
- <view class='input-title'>活动地点</view>
- <view class="input-section text-overflow">{{form.key2}}</view>
- </view>
- </view>
- <!-- 选择活动时间 -->
- <view class="label">
- <view class='icon'>
- <image src="../../img/time.png"></image>
- </view>
- <view class="input" wx:if='{{!form.key3}}'>
- <view class="input-des"></view>
- <input disabled placeholder="输入活动时间"></input>
- </view>
- <view class="input-detail" wx:else>
- <view class='input-title'>活动时间</view>
- <view class="input-section text-overflow">{{form.key3}}</view>
- </view>
- <picker class="picker-box" mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" data-key='key3' bindcolumnchange="changeDateTimeColumn" range="{{dateTimeArray}}">
- <view class="tui-picker-detail">
- <!-- 选择活动时间 -->
- <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
- </view>
- </picker>
- </view>
- <!-- 选择报名截止时间 -->
- <view class="label">
- <view class='icon'>
- <image src="../../img/over_time.png"></image>
- </view>
- <view class="input" wx:if='{{!form.key4}}'>
- <view class="input-des"></view>
- <input disabled placeholder="选择报名截止时间"></input>
- </view>
- <view class="input-detail" wx:else>
- <view class='input-title'>报名截止时间</view>
- <view class="input-section text-overflow">{{form.key4}}</view>
- </view>
- <picker class="picker-box" mode="multiSelector" value="{{dateTime}}" bindchange="changeDateTime" data-key='key4' bindcolumnchange="changeDateTimeColumn" range="{{dateTimeArray}}">
- <view class="tui-picker-detail">
- <!-- 选择活动时间 -->
- <!-- {{dateTimeArray[0][dateTime[0]]}}-{{dateTimeArray[1][dateTime[1]]}}-{{dateTimeArray[2][dateTime[2]]}} {{dateTimeArray[3][dateTime[3]]}}:{{dateTimeArray[4][dateTime[4]]}}:{{dateTimeArray[5][dateTime[5]]}} -->
- </view>
- </picker>
- </view>
- <!-- 输入活动描述 -->
- <view class="label label-textarea" catchtap="showInput" data-key='key5'>
- <!-- <view class='icon'></view> -->
- <view class="input" wx:if='{{!isShowForm.key5}}'>
- <view class="input-des"></view>
- <textarea auto-height placeholder="输入活动描述" focus="{{inputFocus.key5}}" placeholder-class="text-888" maxlength='-1' value='{{form.key5}}' bindinput="inputVal" data-key='key5' bindblur="inputBlur"></textarea>
- </view>
- <view class="input-detail textarea-detail" wx:else>
- <view class='input-title'>活动描述</view>
- <view class="input-section text-overflow-line">{{form.key5}}</view>
- <!-- <image class="textarea-dowm-img" src="../../img/down.png"></image> -->
- </view>
- </view>
- <!-- 添加图片 -->
- <view class="pic-list">
- <view class="pic-item" wx:for="{{imgList}}" wx:key='index'>
- <image class="pic" src="{{item}}"></image>
- <view class="pic-close" bindtap="removeImg" data-item='{{item}}'>
- <image src="../../img/close.png"></image>
- </view>
- </view>
- <view class="pic-add" bindtap="updateImg">
- <image src="../../img/plus.png" mode="aspectFill"></image>
- <text>添加图片</text>
- </view>
- </view>
- <!-- 提交 -->
- <view class="btn">
- <button wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
- <button wx:else bindtap='createBtn'></button>
- 发起活动
- </view>
- <view class="black-100"></view>
- </scroll-view>
- </view>
- </view>
|