12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <!--index.wxml-->
- <view class="container">
- <!-- <navBar
- title-text="CoffeeTalk"
- back-icon="/img/nav/back@3x.png"
- background="none"
- bindback="back"/> -->
- <!-- <navBar title-text="CoffeeTalk" background="none" /> -->
- <view class="title-img"></view>
- <view class="list">
- <scroll-view style="height: 100%;" scroll-y>
- <view class="black-112"></view>
- <view class="no-msg" wx:if='{{!list.length}}'>暂无数据~</view>
- <block wx:else>
- <view wx:for='{{list}}' wx:key='index'>
- <view class="item" catchtap="goDetail" data-id='{{item.id}}'>
- <view class="me-active" wx:if='{{item.organizer == userInfo.phone}}'>
- <image src="../../img/me.png"></image>
- </view>
- <view class="item-img">
- <image src="{{item.imgList[0]}}" mode='aspectFill'></image>
- </view>
- <view class="item-content">
- <view class="content-title">{{item.title}}</view>
- <view class="content-addr">
- <view class='addr-icon'>
- <image src="../../img/location.png"></image>
- </view>
- <view>
- <text class="addr">{{item.location}}</text>
- <text class="addr-m" wx:if='{{item.distance}}'>距您{{item.distance}} m</text>
- </view>
- </view>
- <view class="content-time">
- <view class="time-icon">
- <image src="../../img/time.png"></image>
- </view>
- <view>
- <text class="time">{{item.starttime}}</text>
- <text class="number">(最多{{item.capacity}} 人)</text>
- </view>
- </view>
- </view>
- <view class="line"></view>
- <view class="item-fn">
- <view class="fn-l">
- <view class="fn-t" wx:if='{{item.attendfee == 0}}'>免费</view>
- <view class="fn-d" wx:else>{{item.attendfee}}/人</view>
- </view>
- <view class="fn-r" catchtap="touchHandler">
- <view class="go-detail" wx:if='{{item.organizer == userInfo.phone}}' catchtap='goEdit' data-id='{{item.id}}'>
- 编 辑
- </view>
- <view class="go-detail" wx:elif='{{item.shareMember == 1}}' catchtap='goDetail' data-id='{{item.id}}'>
-
- 已参加
- </view>
- <block wx:else>
- <button data-actid='{{item.id}}' wx:if='{{!userInfo.phone}}' open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
- <button wx:else catchtap='add' data-actid='{{item.id}}'></button>
- 立即参加
- </block>
- </view>
- </view>
- </view>
- <view class="black-38"></view>
- </view>
- </block>
- </scroll-view>
- </view>
- <view class="add" bindtap="goAdd">
- <text>+</text>
- </view>
- <!-- <view class="userinfo">
- <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
- <block wx:else>
- <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
- <text class="userinfo-nickname">{{userInfo.nickName}}</text>
- </block>
- </view> -->
- </view>
|