正在显示
13 个修改的文件
包含
55 行增加
和
20 行删除
@@ -56,8 +56,8 @@ Page({ | @@ -56,8 +56,8 @@ Page({ | ||
56 | }, | 56 | }, |
57 | //输入最高人数失去焦点时 | 57 | //输入最高人数失去焦点时 |
58 | maxNumBlur() { | 58 | maxNumBlur() { |
59 | - if(+this.data.min_num>+this.data.max_num) { | ||
60 | - wx.showToast({title:'最低人数不能高于最高人数',icon:'none'}); | 59 | + if(+this.data.min_num >= +this.data.max_num) { |
60 | + wx.showToast({title:'最高人数要大于最低人数',icon:'none'}); | ||
61 | this.setData({max_num:''}); | 61 | this.setData({max_num:''}); |
62 | } | 62 | } |
63 | }, | 63 | }, |
@@ -99,7 +99,7 @@ Page({ | @@ -99,7 +99,7 @@ Page({ | ||
99 | let newTime = new Date().getTime();//当前时间戳 | 99 | let newTime = new Date().getTime();//当前时间戳 |
100 | let end_time = app.preTime(this.data.date + ' ' +this.data.time, this.data.over_time);//截止时间 | 100 | let end_time = app.preTime(this.data.date + ' ' +this.data.time, this.data.over_time);//截止时间 |
101 | let endTime = new Date(end_time).getTime(); //截止时间戳 | 101 | let endTime = new Date(end_time).getTime(); //截止时间戳 |
102 | - console.log('newTime', 'endTime', 'end_time', endTime - newTime >=0,newTime, endTime, end_time,this.data.date + ' ' +this.data.time); | 102 | + // console.log('newTime', 'endTime', 'end_time', endTime - newTime >=0,newTime, endTime, end_time,this.data.date + ' ' +this.data.time); |
103 | if (endTime - newTime <= 0) { //不可发布目前时间到截止小时內的订单 | 103 | if (endTime - newTime <= 0) { //不可发布目前时间到截止小时內的订单 |
104 | wx.showToast({title:'截止时间无效',icon:'none'}); | 104 | wx.showToast({title:'截止时间无效',icon:'none'}); |
105 | this.setData({over_time:''}) | 105 | this.setData({over_time:''}) |
@@ -23,15 +23,17 @@ | @@ -23,15 +23,17 @@ | ||
23 | </view> | 23 | </view> |
24 | 24 | ||
25 | <view class="set-box"> | 25 | <view class="set-box"> |
26 | - <view class="min-num"> | 26 | + <view class="min-num num-box"> |
27 | <text class="title">最低人数</text> | 27 | <text class="title">最低人数</text> |
28 | <input type="number" bindinput="inputMinNum" class="input"/> | 28 | <input type="number" bindinput="inputMinNum" class="input"/> |
29 | - <text class="iconfont icon-xiangxia min-icon"></text> | 29 | + <text class="iconfont icon-xiangxia min-icon icon-min"></text> |
30 | + <text class="tips">* 不包括自己</text> | ||
30 | </view> | 31 | </view> |
31 | - <view class="min-num"> | 32 | + <view class="min-num num-box"> |
32 | <text class="title">最高人数</text> | 33 | <text class="title">最高人数</text> |
33 | <input type="number" bindinput="inputMaxNum" class="input" bindblur="maxNumBlur" value="{{max_num}}"/> | 34 | <input type="number" bindinput="inputMaxNum" class="input" bindblur="maxNumBlur" value="{{max_num}}"/> |
34 | - <text class="iconfont icon-xiangxia min-icon"></text> | 35 | + <text class="iconfont icon-xiangxia min-icon icon-min"></text> |
36 | + <text class="tips">* 不包括自己</text> | ||
35 | </view> | 37 | </view> |
36 | <view class="min-num"> | 38 | <view class="min-num"> |
37 | <text class="title type-title">类别</text> | 39 | <text class="title type-title">类别</text> |
@@ -114,6 +114,19 @@ | @@ -114,6 +114,19 @@ | ||
114 | top:50%; | 114 | top:50%; |
115 | transform: translate(0,-50%); | 115 | transform: translate(0,-50%); |
116 | } | 116 | } |
117 | +.num-box { | ||
118 | + width:100%; | ||
119 | +} | ||
120 | +.icon-min { | ||
121 | + position: absolute; | ||
122 | + left:248rpx; | ||
123 | + right:0; | ||
124 | +} | ||
125 | +.num-box .tips { | ||
126 | + font-size: 18rpx; | ||
127 | + color: #999999; | ||
128 | + margin-left: 10rpx; | ||
129 | +} | ||
117 | .time-box, .address-box { | 130 | .time-box, .address-box { |
118 | display: flex; | 131 | display: flex; |
119 | align-items: center; | 132 | align-items: center; |
@@ -53,8 +53,8 @@ Page({ | @@ -53,8 +53,8 @@ Page({ | ||
53 | //输入最高人数失去焦点时 | 53 | //输入最高人数失去焦点时 |
54 | maxNumBlur() { | 54 | maxNumBlur() { |
55 | console.log('最低人数-最高人数',+this.data.min_num, +this.data.max_num,this.data.min_num>this.data.max_num,+this.data.min_num>+this.data.max_num); | 55 | console.log('最低人数-最高人数',+this.data.min_num, +this.data.max_num,this.data.min_num>this.data.max_num,+this.data.min_num>+this.data.max_num); |
56 | - if(+this.data.min_num>+this.data.max_num) { | ||
57 | - wx.showToast({title:'最低人数不能高于最高人数',icon:'none'}); | 56 | + if(+this.data.min_num >= +this.data.max_num) { |
57 | + wx.showToast({title:'最高人数要大于最低人数',icon:'none'}); | ||
58 | this.setData({max_num:''}); | 58 | this.setData({max_num:''}); |
59 | } | 59 | } |
60 | }, | 60 | }, |
@@ -29,15 +29,17 @@ | @@ -29,15 +29,17 @@ | ||
29 | <!--<text class="iconfont icon-xiangxia min-icon icon-min"></text>--> | 29 | <!--<text class="iconfont icon-xiangxia min-icon icon-min"></text>--> |
30 | <!--<text class="tips">注:最低拼单人数</text>--> | 30 | <!--<text class="tips">注:最低拼单人数</text>--> |
31 | <!--</view>--> | 31 | <!--</view>--> |
32 | - <view class="min-num"> | 32 | + <view class="min-num num-box"> |
33 | <text class="title">最低人数</text> | 33 | <text class="title">最低人数</text> |
34 | <input type="number" bindinput="inputMinNum" class="input"/> | 34 | <input type="number" bindinput="inputMinNum" class="input"/> |
35 | - <text class="iconfont icon-xiangxia min-icon"></text> | 35 | + <text class="iconfont icon-xiangxia min-icon icon-min"></text> |
36 | + <text class="tips">* 不包括自己</text> | ||
36 | </view> | 37 | </view> |
37 | - <view class="min-num"> | 38 | + <view class="min-num num-box"> |
38 | <text class="title">最高人数</text> | 39 | <text class="title">最高人数</text> |
39 | <input type="number" bindinput="inputMaxNum" class="input" bindblur="maxNumBlur" value="{{max_num}}"/> | 40 | <input type="number" bindinput="inputMaxNum" class="input" bindblur="maxNumBlur" value="{{max_num}}"/> |
40 | - <text class="iconfont icon-xiangxia min-icon"></text> | 41 | + <text class="iconfont icon-xiangxia min-icon icon-min"></text> |
42 | + <text class="tips">* 不包括自己</text> | ||
41 | </view> | 43 | </view> |
42 | <!--<view class="min-num">--> | 44 | <!--<view class="min-num">--> |
43 | <!--<text class="title">最高人数</text>--> | 45 | <!--<text class="title">最高人数</text>--> |
@@ -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:''}) | 53 | + this.setData({id:+options.id?+options.id:'',user_pic:app.globalData.userInfo.avatarUrl}) |
54 | }, | 54 | }, |
55 | 55 | ||
56 | /** | 56 | /** |
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | <view class="bg"> | 5 | <view class="bg"> |
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="{{detail.userPic}}"></image> | 8 | + <image src="{{user_pic}}"></image> |
9 | <text class="name">{{detail.userName}}</text> | 9 | <text class="name">{{detail.userName}}</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> |
@@ -370,6 +370,7 @@ Page({ | @@ -370,6 +370,7 @@ Page({ | ||
370 | this.setData({ | 370 | this.setData({ |
371 | user:res.data.member | 371 | user:res.data.member |
372 | }); | 372 | }); |
373 | + wx.setStorageSync('is_vip',+this.data.user.type);//1:不是2:是vip | ||
373 | console.log('score',wx.getStorageSync('score')); | 374 | console.log('score',wx.getStorageSync('score')); |
374 | if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) { | 375 | if(wx.getStorageSync('score') !== '' && wx.getStorageSync('score')>=80) { |
375 | self.setData({show_gold_modal:true}) | 376 | self.setData({show_gold_modal:true}) |
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | </view> | 8 | </view> |
9 | <!--<view class="margin">--> | 9 | <!--<view class="margin">--> |
10 | <image src="{{user.pic}}" class="user-img"></image> | 10 | <image src="{{user.pic}}" class="user-img"></image> |
11 | - <!--type :1注册用户,2后台用户--> | 11 | + <!--type :1注册用户,2后台用户金v--> |
12 | <text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text> | 12 | <text class="iconfont icon-vip" wx:if="{{user.type === 2}}"></text> |
13 | <!--<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}" class="sex-icon"></image>--> | 13 | <!--<image src="{{user.sex === 1?'../../images/man.png':'../../images/women.png'}}" class="sex-icon"></image>--> |
14 | <view class="left"> | 14 | <view class="left"> |
@@ -12,13 +12,15 @@ | @@ -12,13 +12,15 @@ | ||
12 | <!--{{detail.status === 4 ||detail.status === 5 || detail.status === 6||detail.status === 8?'change':''}}--> | 12 | <!--{{detail.status === 4 ||detail.status === 5 || detail.status === 6||detail.status === 8?'change':''}}--> |
13 | <view class="circle change"></view> | 13 | <view class="circle change"></view> |
14 | <text wx:if="{{order_detail.status === 5 || order_detail.status === 10}}">已取消</text> | 14 | <text wx:if="{{order_detail.status === 5 || order_detail.status === 10}}">已取消</text> |
15 | + <text wx:if="{{order_detail.status === 11}}">已过期</text> | ||
15 | <text wx:if="{{order_detail.status === 4|| order_detail.status === 6 || order_detail.status === 7 || order_detail.status === 8}}">已拼成</text> | 16 | <text wx:if="{{order_detail.status === 4|| order_detail.status === 6 || order_detail.status === 7 || order_detail.status === 8}}">已拼成</text> |
16 | - <text wx:if="{{order_detail.status === 2 || order_detail.status === 3}}" class="{{order_detail.status === 2?'change-text':''}}">待拼成</text> | 17 | + <text wx:if="{{order_detail.status === 2}}" class="{{order_detail.status === 2?'change-text':''}}">待拼成</text> |
18 | + <text wx:if="{{order_detail.status === 3}}" class="{{order_detail.status === 3?'change-text':''}}">未拼成</text> | ||
17 | </view> | 19 | </view> |
18 | <view class="state3"> | 20 | <view class="state3"> |
19 | <view class="circle {{order_detail.status === 6?'change':''}}"></view> | 21 | <view class="circle {{order_detail.status === 6?'change':''}}"></view> |
20 | <text wx:if="{{order_detail.status === 6}}">已完成</text> | 22 | <text wx:if="{{order_detail.status === 6}}">已完成</text> |
21 | - <text wx:if="{{order_detail.status === 4 || order_detail.status === 2 ||order_detail.status === 5|| order_detail.status === 3 ||order_detail.status === 8 || order_detail.status === 10}}" class="{{order_detail.status === 4 || order_detail.status === 2 ||order_detail.status === 5?'change-text':''}}">待完成</text> | 23 | + <text wx:if="{{order_detail.status === 11 || order_detail.status === 4 || order_detail.status === 2 ||order_detail.status === 5|| order_detail.status === 3 ||order_detail.status === 8 || order_detail.status === 10}}" class="{{order_detail.status === 4 || order_detail.status === 2 ||order_detail.status === 5?'change-text':''}}">待完成</text> |
22 | </view> | 24 | </view> |
23 | </view> | 25 | </view> |
24 | 26 |
1 | /* pages/order/complain/complain.wxss */ | 1 | /* pages/order/complain/complain.wxss */ |
2 | @import '../order-detail/order-detail.wxss'; | 2 | @import '../order-detail/order-detail.wxss'; |
3 | +.order-info { | ||
4 | + display: flex; | ||
5 | + flex-direction: column; | ||
6 | + padding: 40rpx 20rpx 0 20rpx; | ||
7 | + -webkit-box-sizing: border-box; | ||
8 | + -moz-box-sizing: border-box; | ||
9 | + box-sizing: border-box; | ||
10 | +} | ||
11 | +.order-info .top { | ||
12 | + display: flex; | ||
13 | + align-items: center; | ||
14 | + position: relative; | ||
15 | +} | ||
3 | .order-info .text { | 16 | .order-info .text { |
4 | color: #666666; | 17 | color: #666666; |
5 | font-size: 24rpx; | 18 | font-size: 24rpx; |
@@ -12,6 +12,7 @@ | @@ -12,6 +12,7 @@ | ||
12 | <!--{{detail.status === 4 ||detail.status === 5 || detail.status === 6||detail.status === 8?'change':''}}--> | 12 | <!--{{detail.status === 4 ||detail.status === 5 || detail.status === 6||detail.status === 8?'change':''}}--> |
13 | <view class="circle change"></view> | 13 | <view class="circle change"></view> |
14 | <text wx:if="{{detail.status === 5 || detail.status === 10}}">已取消</text> | 14 | <text wx:if="{{detail.status === 5 || detail.status === 10}}">已取消</text> |
15 | + <text wx:if="{{detail.status === 11}}">已过期</text> | ||
15 | <text wx:if="{{detail.status === 4 || detail.status === 6 || detail.status === 7 || detail.status === 8}}">已拼成</text> | 16 | <text wx:if="{{detail.status === 4 || detail.status === 6 || detail.status === 7 || detail.status === 8}}">已拼成</text> |
16 | <text wx:if="{{detail.status === 2}}" class="{{detail.status === 2?'change-text':''}}">待拼成</text> | 17 | <text wx:if="{{detail.status === 2}}" class="{{detail.status === 2?'change-text':''}}">待拼成</text> |
17 | <text wx:if="{{detail.status === 3}}" class="{{detail.status === 3?'change-text':''}}">未拼成</text> | 18 | <text wx:if="{{detail.status === 3}}" class="{{detail.status === 3?'change-text':''}}">未拼成</text> |
@@ -19,7 +20,7 @@ | @@ -19,7 +20,7 @@ | ||
19 | <view class="state3"> | 20 | <view class="state3"> |
20 | <view class="circle {{detail.status === 6?'change':''}}"></view> | 21 | <view class="circle {{detail.status === 6?'change':''}}"></view> |
21 | <text wx:if="{{detail.status === 6}}">已完成</text> | 22 | <text wx:if="{{detail.status === 6}}">已完成</text> |
22 | - <text wx:if="{{detail.status === 4 || detail.status === 2 || detail.status === 3||detail.status === 5|| detail.status === 8 || detail.status === 10}}" class="{{detail.status === 4 || detail.status === 2 ||detail.status === 5?'change-text':''}}">待完成</text> | 23 | + <text wx:if="{{detail.status === 4 || detail.status === 2 || detail.status === 3||detail.status === 5|| detail.status === 8 || detail.status === 10|| detail.status === 11}}" class="{{detail.status === 4 || detail.status === 2 ||detail.status === 5?'change-text':''}}">待完成</text> |
23 | </view> | 24 | </view> |
24 | </view> | 25 | </view> |
25 | 26 |
@@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
26 | <text wx:if="{{item.status === 5 || item.status === 10}}" class="state">已取消</text> | 26 | <text wx:if="{{item.status === 5 || item.status === 10}}" class="state">已取消</text> |
27 | <text wx:if="{{item.status === 6}}" class="state">已完成</text> | 27 | <text wx:if="{{item.status === 6}}" class="state">已完成</text> |
28 | <text wx:if="{{item.status === 7}}" class="state">已评价</text> | 28 | <text wx:if="{{item.status === 7}}" class="state">已评价</text> |
29 | + <text wx:if="{{item.status === 11}}" class="state">已过期</text> | ||
29 | </view> | 30 | </view> |
30 | <view class="time">{{item.time}}</view> | 31 | <view class="time">{{item.time}}</view> |
31 | <view class="name-box"> | 32 | <view class="name-box"> |
@@ -44,7 +45,7 @@ | @@ -44,7 +45,7 @@ | ||
44 | <!--</block>--> | 45 | <!--</block>--> |
45 | <!--1发起人--> | 46 | <!--1发起人--> |
46 | <block wx:if="{{item.type === 1}}"> | 47 | <block wx:if="{{item.type === 1}}"> |
47 | - <text wx:if="{{item.status === 5 || item.status === 10 || item.status === 6 || item.status === 3 || item.status === 7}}" | 48 | + <text wx:if="{{item.status === 11 || item.status === 5 || item.status === 10 || item.status === 6 || item.status === 3 || item.status === 7}}" |
48 | catchtap="del" data-id="{{item.id}}">删除</text> | 49 | catchtap="del" data-id="{{item.id}}">删除</text> |
49 | </block> | 50 | </block> |
50 | <text wx:if="{{item.status === 4}}" catchtap="complete" data-id="{{item.id}}">完成</text> | 51 | <text wx:if="{{item.status === 4}}" catchtap="complete" data-id="{{item.id}}">完成</text> |
-
请 注册 或 登录 后发表评论