正在显示
4 个修改的文件
包含
7 行增加
和
4 行删除
@@ -31,7 +31,7 @@ Page({ | @@ -31,7 +31,7 @@ Page({ | ||
31 | slide: [], | 31 | slide: [], |
32 | cate: [], | 32 | cate: [], |
33 | meal_banner: [], | 33 | meal_banner: [], |
34 | - currentBannerIndex: 1, | 34 | + currentBannerIndex: 0, |
35 | tabcurrent: {tab: 0, bubble: ''}, | 35 | tabcurrent: {tab: 0, bubble: ''}, |
36 | noticeList: [], | 36 | noticeList: [], |
37 | is_showAnswer: false, | 37 | is_showAnswer: false, |
@@ -447,6 +447,7 @@ Page({ | @@ -447,6 +447,7 @@ Page({ | ||
447 | items: res.data.active, | 447 | items: res.data.active, |
448 | is_canSend: res.data.is_canSend, | 448 | is_canSend: res.data.is_canSend, |
449 | }); | 449 | }); |
450 | + console.log('meal',res.data.meal); | ||
450 | wx.setStorageSync('is_canSend', res.data.is_canSend);//1:可以发布2:不可以发布 | 451 | wx.setStorageSync('is_canSend', res.data.is_canSend);//1:可以发布2:不可以发布 |
451 | wx.setStorageSync('is_answer', res.data.is_answer);//1:已答题2:未答题 | 452 | wx.setStorageSync('is_answer', res.data.is_answer);//1:已答题2:未答题 |
452 | // is_answer | 453 | // is_answer |
@@ -50,7 +50,7 @@ Page({ | @@ -50,7 +50,7 @@ Page({ | ||
50 | */ | 50 | */ |
51 | onLoad: function (options) { | 51 | onLoad: function (options) { |
52 | console.log('options', options); | 52 | console.log('options', options); |
53 | - this.setData({id:+options.id?+options.id:'',user_pic:app.globalData.userInfo.avatarUrl}) | 53 | + this.setData({id:+options.id?+options.id:'',user_pic:app.globalData.userInfo.avatarUrl,user_name:app.globalData.userInfo.nickName}) |
54 | }, | 54 | }, |
55 | 55 | ||
56 | /** | 56 | /** |
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <view class="head"> | 6 | <view class="head"> |
7 | <!--<image src="../../../../images/avatar@2x.png"></image>--> | 7 | <!--<image src="../../../../images/avatar@2x.png"></image>--> |
8 | <image src="{{user_pic}}"></image> | 8 | <image src="{{user_pic}}"></image> |
9 | - <text class="name">{{detail.userName}}</text> | 9 | + <text class="name">{{user_name}}</text> |
10 | <!--<text class="phone">手机号: 13026256485</text>--> | 10 | <!--<text class="phone">手机号: 13026256485</text>--> |
11 | <text class="num">{{detail.number}}人</text> | 11 | <text class="num">{{detail.number}}人</text> |
12 | </view> | 12 | </view> |
@@ -5,9 +5,11 @@ | @@ -5,9 +5,11 @@ | ||
5 | <view class="no-data" wx:if="{{list.length===0}}">钱包是空的~</view> | 5 | <view class="no-data" wx:if="{{list.length===0}}">钱包是空的~</view> |
6 | <view class="list-item {{item.type === 1?'change-bg':''}} {{item.status === 6?'change-bg-end':''}} {{item.status === 10?'change-bg-cancel':''}}" | 6 | <view class="list-item {{item.type === 1?'change-bg':''}} {{item.status === 6?'change-bg-end':''}} {{item.status === 10?'change-bg-cancel':''}}" |
7 | wx:for="{{list}}" wx:key="index" data-id="{{item.id}}" bindtap="goDetail"> | 7 | wx:for="{{list}}" wx:key="index" data-id="{{item.id}}" bindtap="goDetail"> |
8 | + <!--已完成icon--> | ||
8 | <image src="../../../images/end-flag@2x.png" wx:if="{{item.status === 6}}" class="flag-img"></image> | 9 | <image src="../../../images/end-flag@2x.png" wx:if="{{item.status === 6}}" class="flag-img"></image> |
10 | + <!--已取消icon--> | ||
9 | <image src="../../../images/quxiao@2x.png" wx:if="{{item.status === 10}}" class="flag-img"></image> | 11 | <image src="../../../images/quxiao@2x.png" wx:if="{{item.status === 10}}" class="flag-img"></image> |
10 | - <view class="detail {{item.status === 6?'change-color':''}}"> | 12 | + <view class="detail {{item.status === 6 || item.status === 10?'change-color':''}}"> |
11 | <view class="area"> | 13 | <view class="area"> |
12 | <text class="addr">{{item.title}}</text> | 14 | <text class="addr">{{item.title}}</text> |
13 | <text>{{nickName}}</text> | 15 | <text>{{nickName}}</text> |
-
请 注册 或 登录 后发表评论