作者 wumengyu

拼单列表判断还可加入人数

... ... @@ -4,4 +4,7 @@
.banner {
width: 100%;
height: auto;
}
.content_box {
margin-top: 0;
}
\ No newline at end of file
... ...
... ... @@ -6,11 +6,7 @@ Page({
* 页面的初始数据
*/
data: {
peopleList:[
{name:'旦巴',num:'13456895785'},
{name:'旦巴',num:'13456895785'},
{name:'旦巴',num:'13456895785'},
]
peopleList:[]
},
//导航
getNavigate() {
... ...
... ... @@ -6,11 +6,7 @@ Page({
* 页面的初始数据
*/
data: {
list:[
{area:'意大利维多餐厅',user:'旦巴',date:'时间:2018.5.24',time:'08:24',address:'地址:北京朝阳望京',type:'饭票'},
{area:'意大利维多餐厅',user:'旦巴',date:'时间:2018.5.24',time:'08:24',address:'地址:北京朝阳望京',type:'饭票'},
{area:'意大利维多餐厅',user:'旦巴',date:'时间:2018.5.24',time:'08:24',address:'地址:北京朝阳望京',type:'饭票'},
]
list:[]
},
goDetail(e) {
const id = e.currentTarget.dataset.id;
... ...
... ... @@ -8,7 +8,7 @@ Page({
data: {
searchValue: '',
postList: [],
searchHistory:[{keyword:'法国巴黎'},{keyword:'埃菲尔铁塔'},{keyword:'北京'},{keyword:'西雅图'},{keyword:'美国洛杉矶'},{keyword:'北京'},{keyword:'北京'},{keyword:'北京'},],
searchHistory:[],
currentModal: 0,
currentPost: 0,
hidden_img: false,
... ...
... ... @@ -100,7 +100,9 @@
<image src="{{item.pic}}" mode="aspectFill"></image>
<view class="title">
<text class="area">{{item.address}} {{item.time}}</text>
<text class="num">还差{{item.people}}人</text>
<!--已加入人数小于最低人数-->
<view class="num" wx:if="{{item.join_number<item.number}}">还差{{item.people}}人</view>
<view class="num" wx:else>还可加入{{item.max_number - item.join_number}}人</view>
</view>
<view class="user">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
... ... @@ -118,7 +120,9 @@
<image src="{{item.pic}}" mode="aspectFill"></image>
<view class="title">
<text class="area">{{item.address}} {{item.time}}</text>
<text class="num">还差{{item.people}}人</text>
<!--已加入人数小于最低人数-->
<text class="num" wx:if="{{item.join_number<item.min}}">还差{{item.people}}人</text>
<text class="num" wx:else>还可加入{{item.max - item.join_number}}人</text>
</view>
<view class="user">
<!--<image src="../../images/avatar@2x.png" class="avatar"></image>-->
... ...