作者 Lijianheng

ljh

@@ -34,79 +34,113 @@ App({ @@ -34,79 +34,113 @@ App({
34 }) 34 })
35 }, 35 },
36 36
37 - post: function(url,data,headerParams){  
38 - // 页面初次加载 转圈与提示 37 +
  38 +
  39 +
  40 + post: function (url, data, headerParams) {
  41 + /**
  42 + * 自定义post函数,返回Promise
  43 + * +-------------------
  44 + * @param {String} url 接口网址
  45 + * @param {arrayObject} data 要传的数组对象 like: {name: 'name', age: 32}
  46 + * +-------------------
  47 + * @return {Promise} promise 返回promise供后续操作
  48 + */
  49 + // wx.showLoading({
  50 + // title: '加载中',
  51 + // })
39 wx.showNavigationBarLoading() 52 wx.showNavigationBarLoading()
40 wx.showLoading({ 53 wx.showLoading({
41 - title: '加载', 54 + title: '加载',
42 }) 55 })
43 - var promise = new Promise((resolve,reject) => { 56 + var promise = new Promise((resolve, reject) => {
  57 + //init
44 let that = this; 58 let that = this;
45 let postData = data; 59 let postData = data;
46 let baseUrl = 'http://grouppay.w.bronet.cn/api/'; 60 let baseUrl = 'http://grouppay.w.bronet.cn/api/';
  61 + // let baseUrl = 'http://192.168.1.15/public';
  62 + // postData.signature = that.makeSign(postData);
47 //网络请求 63 //网络请求
48 let header = { 64 let header = {
49 'content-type': 'application/x-www-form-urlencoded' 65 'content-type': 'application/x-www-form-urlencoded'
50 } 66 }
51 - header = Object.assign(header,headerParams) 67 + header = Object.assign(header, headerParams)
52 wx.request({ 68 wx.request({
53 url: baseUrl + url, 69 url: baseUrl + url,
54 data: postData, 70 data: postData,
55 method: 'POST', 71 method: 'POST',
56 header: header, 72 header: header,
57 - success: function(res){  
58 - //返回取得的数据  
59 - if(res.data.code == '20000'){  
60 - resolve(res.data);  
61 - }else if(res.data.code == '10001'){  
62 -  
63 - }else if(res.data.code == '40000'){  
64 - wx.showModal({  
65 - title: '提示',  
66 - content: res.data.msg,  
67 - showCancel: false,  
68 - success: function(res){  
69 -  
70 - } 73 + success: function (res) {//返回取得的数据
  74 + if (res.data.code == '20000') {
  75 + resolve(res.data.data);
  76 + } else if (res.data.code == '40000') {//返回错误提示信息
  77 + wx.showToast({
  78 + title: res.data.msg,
  79 + icon: 'none'
71 }) 80 })
72 - }else if (res.data.code == '40005'){ 81 + } else if (res.data.code == '40001') {//返回错误提示信息
73 wx.showModal({ 82 wx.showModal({
74 title: '提示', 83 title: '提示',
75 - content: res.data.msg,  
76 - showCancel:false,  
77 - success: function (res){  
78 -  
79 - }  
80 - })  
81 - }else if(res.data.code== '40006'){  
82 -  
83 - }else {  
84 - wx.showModal({  
85 - title: '提示',  
86 - content: res.data.msg, 84 + content: '登录已过期请重新登录!',
87 showCancel: false, 85 showCancel: false,
  86 + success: function (res) {
  87 + if (res.confirm) {
  88 + wx.removeStorageSync('token');
  89 + wx.navigateTo({
  90 + // url: '/pages/startRecord/startRecord',
  91 + })
  92 + }
  93 + }
88 }) 94 })
  95 + } else if (res.data.code == '40002') {
  96 + console.log(res)
  97 + // wx.showModal({
  98 + // title: '提示',
  99 + // // content: res.data.msg,
  100 + // showCancel: false,
  101 + // success: function (res) { }
  102 + // })
  103 + } else if (res.data.code == '40003') {
  104 + // 初始化用户信息判断
  105 + let usetrInfoType = {
  106 + hasUserInfo: false
  107 + }
  108 + resolve(usetrInfoType);
  109 + // wx.showModal({
  110 + // title: '提示',
  111 + // content: res.data.msg,
  112 + // showCancel: false
  113 + // })
  114 + } else {
  115 + console.log(res)
  116 + // wx.showModal({
  117 + // title: '提示',
  118 + // // content: res.data.msg,
  119 + // showCancel: false
  120 + // })
89 reject(res.data) 121 reject(res.data)
90 } 122 }
91 - // 隐藏等待框 隐藏转圈框  
92 - wx.hideLoading()  
93 - wx.hideNavigationBarLoading() 123 + setTimeout(function () {
  124 + wx.hideLoading()
  125 + wx.hideNavigationBarLoading()
  126 + }, 600)
94 }, 127 },
95 - // 连接失败  
96 - fail: function(e){  
97 - console.log(e) 128 + fail: function (e) {
98 reject('网络出错'); 129 reject('网络出错');
  130 + // wx.hideLoading()
99 wx.hideNavigationBarLoading() 131 wx.hideNavigationBarLoading()
100 } 132 }
101 }) 133 })
102 - }) 134 + });
  135 + return promise;
103 }, 136 },
104 137
105 138
106 139
107 globalData: { 140 globalData: {
108 userInfo: null, 141 userInfo: null,
109 - baseUrl: '../../img/' 142 + baseUrl: '../../img/',
  143 + artid: null
110 } 144 }
111 }) 145 })
112   146  
@@ -8,6 +8,7 @@ Page({ @@ -8,6 +8,7 @@ Page({
8 data: { 8 data: {
9 orderlist: [], 9 orderlist: [],
10 address_id: '', 10 address_id: '',
  11 + status: 0,
11 }, 12 },
12 /** 13 /**
13 * 生命周期函数--监听页面加载 14 * 生命周期函数--监听页面加载
@@ -101,8 +102,10 @@ Page({ @@ -101,8 +102,10 @@ Page({
101 102
102 // 进入修改页面 103 // 进入修改页面
103 toModify(e) { 104 toModify(e) {
104 - console.log(e) 105 + // 传唯一id 唯一id内包含该用户所有信息
105 let id = e.currentTarget.dataset.id 106 let id = e.currentTarget.dataset.id
  107 + // let status = e.currentTarget.dataset.status
  108 + // console.log('状态位'+status).
106 console.log('修改id为'+id) 109 console.log('修改id为'+id)
107 wx.navigateTo({ 110 wx.navigateTo({
108 url: '/pages/mine/addr_2/addr_2?id=' + id, 111 url: '/pages/mine/addr_2/addr_2?id=' + id,
@@ -84,7 +84,16 @@ Page({ @@ -84,7 +84,16 @@ Page({
84 // 列表值 84 // 列表值
85 that.setData({ 85 that.setData({
86 addressEdit: res, 86 addressEdit: res,
87 - region: [res.province, res.city, res.county] 87 + region: [res.province, res.city, res.county],
  88 + province: res.province,
  89 + name: res.name,
  90 + mobile: res.mobile,
  91 + status: res.status,
  92 + province: res.province,
  93 + city: res.city,
  94 + county: res.city,
  95 + address: res.address,
  96 +
88 }) 97 })
89 98
90 99
@@ -140,8 +149,7 @@ Page({ @@ -140,8 +149,7 @@ Page({
140 149
141 // 设置默认 150 // 设置默认
142 btn_set(e) { 151 btn_set(e) {
143 - // console.log(e)  
144 - // var state=e.currentTarget.dataset.status 152 + let that = this
145 this.setData({ 153 this.setData({
146 status: !this.data.status 154 status: !this.data.status
147 }) 155 })
@@ -155,6 +163,8 @@ Page({ @@ -155,6 +163,8 @@ Page({
155 type: 0 163 type: 0
156 }) 164 })
157 } 165 }
  166 +
  167 +
158 }, 168 },
159 // 选择器 169 // 选择器
160 bindRegionChange: function(e) { 170 bindRegionChange: function(e) {
@@ -173,8 +183,7 @@ Page({ @@ -173,8 +183,7 @@ Page({
173 }, 183 },
174 184
175 // getaddressEdit() { 185 // getaddressEdit() {
176 -  
177 - 186 +
178 // let that = this; 187 // let that = this;
179 // let url = 'user/index/addressEdit'; 188 // let url = 'user/index/addressEdit';
180 // let params = { 189 // let params = {
@@ -16,6 +16,7 @@ Page({ @@ -16,6 +16,7 @@ Page({
16 onLoad: function (options) { 16 onLoad: function (options) {
17 this.getPersonal() 17 this.getPersonal()
18 }, 18 },
  19 +
19 20
20 getPersonal() { 21 getPersonal() {
21 22
@@ -68,6 +69,12 @@ Page({ @@ -68,6 +69,12 @@ Page({
68 * 生命周期函数--监听页面初次渲染完成 69 * 生命周期函数--监听页面初次渲染完成
69 */ 70 */
70 pay_1(e){ 71 pay_1(e){
  72 + let that=this;
  73 + let id = e.currentTarget.dataset.artid;
  74 + console.log(id)
  75 + wx.navigateTo({
  76 + url: '/pages/mine/myOrder/myOrder?id='+id,
  77 + })
71 78
72 }, 79 },
73 onReady: function () { 80 onReady: function () {
@@ -48,7 +48,7 @@ @@ -48,7 +48,7 @@
48 </view> 48 </view>
49 </view> 49 </view>
50 <!-- 待拼团 --> 50 <!-- 待拼团 -->
51 - <view class='mid_bottom_item' data-artid='2' bindtap='pay_2'> 51 + <view class='mid_bottom_item' data-artid='2' bindtap='pay_1'>
52 <!-- 图片 --> 52 <!-- 图片 -->
53 <view class='pic_box'> 53 <view class='pic_box'>
54 <view class='mid_bottom_item_pic2'> 54 <view class='mid_bottom_item_pic2'>
@@ -61,7 +61,7 @@ @@ -61,7 +61,7 @@
61 </view> 61 </view>
62 </view> 62 </view>
63 <!-- 待发货 --> 63 <!-- 待发货 -->
64 - <view class='mid_bottom_item' data-artid='3' bindtap='pay_3'> 64 + <view class='mid_bottom_item' data-artid='3' bindtap='pay_1'>
65 <!-- 图片 --> 65 <!-- 图片 -->
66 <view class='pic_box'> 66 <view class='pic_box'>
67 <view class='mid_bottom_item_pic3'> 67 <view class='mid_bottom_item_pic3'>
@@ -74,7 +74,7 @@ @@ -74,7 +74,7 @@
74 </view> 74 </view>
75 </view> 75 </view>
76 <!-- 待完成 --> 76 <!-- 待完成 -->
77 - <view class='mid_bottom_item' data-artid='4' bindtap='pay_4'> 77 + <view class='mid_bottom_item' data-artid='4' bindtap='pay_1'>
78 <!-- 图片 --> 78 <!-- 图片 -->
79 <view class='pic_box'> 79 <view class='pic_box'>
80 <view class='mid_bottom_item_pic4'> 80 <view class='mid_bottom_item_pic4'>
@@ -87,7 +87,7 @@ @@ -87,7 +87,7 @@
87 </view> 87 </view>
88 </view> 88 </view>
89 <!-- 待评价 --> 89 <!-- 待评价 -->
90 - <view class='mid_bottom_item' data-artid='5' bindtap='pay_5'> 90 + <view class='mid_bottom_item' data-artid='5' bindtap='pay_1'>
91 <!-- 图片 --> 91 <!-- 图片 -->
92 <view class='pic_box'> 92 <view class='pic_box'>
93 <view class='mid_bottom_item_pic5'> 93 <view class='mid_bottom_item_pic5'>
1 const app = getApp(); 1 const app = getApp();
2 -  
3 Page({ 2 Page({
4 -  
5 /** 3 /**
6 * 页面的初始数据 4 * 页面的初始数据
7 */ 5 */
@@ -34,14 +32,36 @@ Page({ @@ -34,14 +32,36 @@ Page({
34 currentTab: 0, 32 currentTab: 0,
35 orderList:'', 33 orderList:'',
36 page:1, 34 page:1,
37 - status:0 35 + status:0,
  36 + toCancel: false
38 }, 37 },
39 -  
40 /** 38 /**
41 * 生命周期函数--监听页面加载 39 * 生命周期函数--监听页面加载
42 */ 40 */
43 onLoad: function (options) { 41 onLoad: function (options) {
44 this.myOrder() 42 this.myOrder()
  43 + console.log(options)
  44 + if (options.id==1){
  45 + this.setData({
  46 + currentTab:1
  47 + })
  48 + }if(options.id==2){
  49 + this.setData({
  50 + currentTab:2
  51 + })
  52 + }if(options.id==3){
  53 + this.setData({
  54 + currentTab:3
  55 + })
  56 + }if(options.id==4){
  57 + this.setData({
  58 + currentTab:4
  59 + })
  60 + }if(options.id==5){
  61 + this.setData({
  62 + currentTab:5
  63 + })
  64 + }
45 }, 65 },
46 // 我的订单 66 // 我的订单
47 myOrder() { 67 myOrder() {
@@ -62,7 +82,7 @@ Page({ @@ -62,7 +82,7 @@ Page({
62 that.setData({ 82 that.setData({
63 orderList: res.list 83 orderList: res.list
64 }) 84 })
65 - 85 +
66 86
67 87
68 88
@@ -72,6 +92,7 @@ Page({ @@ -72,6 +92,7 @@ Page({
72 }) 92 })
73 }, 93 },
74 94
  95 +
75 96
76 navbarTap: function (e) { 97 navbarTap: function (e) {
77 console.log(88) 98 console.log(88)
@@ -79,15 +100,90 @@ Page({ @@ -79,15 +100,90 @@ Page({
79 that.setData({ 100 that.setData({
80 currentTab: e.currentTarget.dataset.idx, 101 currentTab: e.currentTarget.dataset.idx,
81 }) 102 })
  103 + // 全部 0
82 if(that.data.currentTab==0){ 104 if(that.data.currentTab==0){
83 that.setData({ 105 that.setData({
84 status:0, 106 status:0,
85 page: 1, 107 page: 1,
86 orderList:[] 108 orderList:[]
87 }) 109 })
  110 + console.log('全部')
  111 +
  112 + that.myOrder()
  113 + }
  114 + // 未支付(待付款) 2
  115 + else if (that.data.currentTab == 1){
  116 + that.setData({
  117 + status: 2,
  118 + page: 1,
  119 + orderList: []
  120 + })
  121 + console.log('待付款')
88 122
89 that.myOrder() 123 that.myOrder()
90 } 124 }
  125 + // 未成团(待拼团) 99
  126 + else if (that.data.currentTab == 2){
  127 + that.setData({
  128 + status:99,
  129 + page: 1,
  130 + orderList: []
  131 + })
  132 + console.log('待拼团')
  133 +
  134 + that.myOrder()
  135 + }
  136 + // 已支付(待发货) 3
  137 + else if (that.data.currentTab == 3) {
  138 + that.setData({
  139 + status: 3,
  140 + page: 1,
  141 + orderList: []
  142 + })
  143 + console.log('待发货')
  144 + that.myOrder()
  145 + }
  146 + // 已配送(待完成)4
  147 + else if (that.data.currentTab == 4) {
  148 + that.setData({
  149 + status: 4,
  150 + page: 1,
  151 + orderList: []
  152 + })
  153 + console.log('待完成')
  154 + that.myOrder()
  155 + }
  156 + // 待评价
  157 + else if (that.data.currentTab == 5) {
  158 + that.setData({
  159 + status: 111,
  160 + page: 1,
  161 + orderList: []
  162 + })
  163 + console.log('待评价')
  164 + that.myOrder()
  165 + }
  166 + // 已完成 1
  167 + else if (that.data.currentTab == 6) {
  168 + that.setData({
  169 + status: 1,
  170 + page: 1,
  171 + orderList: []
  172 + })
  173 + console.log('已完成')
  174 +
  175 + that.myOrder()
  176 + }
  177 + // 已取消 5
  178 + else if (that.data.currentTab == 7) {
  179 + that.setData({
  180 + status: 5,
  181 + page: 1,
  182 + orderList: []
  183 + })
  184 + console.log('已取消')
  185 + that.myOrder()
  186 + }
91 }, 187 },
92 //评价按钮 188 //评价按钮
93 btn_eOrder(){ 189 btn_eOrder(){
@@ -95,6 +191,72 @@ Page({ @@ -95,6 +191,72 @@ Page({
95 url: '/pages/mine/eOrder/eOrder', 191 url: '/pages/mine/eOrder/eOrder',
96 }) 192 })
97 }, 193 },
  194 +
  195 +
  196 + // 倒计时功能
  197 + timeFunc(num){
  198 + //let number = res.compare.surplus_time;
  199 + // 时间戳处理
  200 + var totalSecond = num;
  201 + var interval = setInterval(function () {
  202 + // 秒数
  203 + var second = totalSecond;
  204 + // 天数位
  205 + var day = Math.floor(second / 3600 / 24);
  206 + var dayStr = day.toString();
  207 + if (dayStr.length == 1) dayStr = '0' + dayStr;
  208 + // 小时位
  209 + var hr = Math.floor((second - day * 3600 * 24) / 3600);
  210 + var hrStr = hr.toString();
  211 + if (hrStr.length == 1) hrStr = '0' + hrStr;
  212 + // 分钟位
  213 + var min = Math.floor((second - day * 3600 * 24 - hr * 3600) / 60);
  214 + var minStr = min.toString();
  215 + if (minStr.length == 1) minStr = '0' + minStr;
  216 + // 秒位
  217 + var sec = second - day * 3600 * 24 - hr * 3600 - min * 60;
  218 + var secStr = sec.toString();
  219 + if (secStr.length == 1) secStr = '0' + secStr;
  220 +
  221 + that.setData({
  222 + days: dayStr,
  223 + hours: hrStr,
  224 + minutes: minStr,
  225 + seconds: secStr,
  226 + });
  227 + totalSecond--;
  228 + if (totalSecond <= 0) {
  229 + clearInterval(interval);
  230 + wx.showToast({
  231 + title: '活动已结束',
  232 + });
  233 + // 倒计时结束
  234 + that.countDown();
  235 + that.setData({
  236 + days: '00',
  237 + hours: '00',
  238 + minutes: '00',
  239 + seconds: '00',
  240 + });
  241 + }
  242 + }.bind(this), 1000);
  243 + },
  244 +
  245 +
  246 +
  247 + // 取消订单
  248 + cancelOrder(){
  249 + this.setData({
  250 + toCancel:true
  251 + })
  252 + },
  253 + toClose(){
  254 + this.setData({
  255 + toCancel:false
  256 + })
  257 + },
  258 +
  259 +
98 /** 260 /**
99 * 生命周期函数--监听页面初次渲染完成 261 * 生命周期函数--监听页面初次渲染完成
100 */ 262 */
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 <!-- 中部 --> 11 <!-- 中部 -->
12 <view class='mid'> 12 <view class='mid'>
13 <!-- 全部 --> 13 <!-- 全部 -->
14 - <view class='mid_item' wx:if='{{currentTab == 0}}' wx:for='{{orderList}}'> 14 + <view class='mid_item' wx:if='{{currentTab == 0}}' wx:for='{{orderList}}' wx:key=''>
15 <!-- 上 --> 15 <!-- 上 -->
16 <view class='mid_item_top'> 16 <view class='mid_item_top'>
17 <!-- 订单号 --> 17 <!-- 订单号 -->
@@ -49,14 +49,14 @@ @@ -49,14 +49,14 @@
49 <view class='right_top_lef'>{{item.shop_name}}</view> 49 <view class='right_top_lef'>{{item.shop_name}}</view>
50 <view class='right_top_rig'> 50 <view class='right_top_rig'>
51 <span class='price_small'>¥</span> 51 <span class='price_small'>¥</span>
52 - <span class='font_big'>50</span>  
53 - <span class='font_small'>.00</span> 52 + <span class='font_big'>{{item.money_sale}}</span>
  53 + <!-- <span class='font_small'>.00</span> -->
54 </view> 54 </view>
55 </view> 55 </view>
56 <!-- 百分比 --> 56 <!-- 百分比 -->
57 <view class='mid_right_m'> 57 <view class='mid_right_m'>
58 <view class='right_m_left'> 58 <view class='right_m_left'>
59 - <view class='right_m_left_content'></view> 59 + <view class='right_m_left_content' ></view>
60 </view> 60 </view>
61 61
62 <view class='right_m_right'> 62 <view class='right_m_right'>
@@ -82,13 +82,13 @@ @@ -82,13 +82,13 @@
82 <span class='color_red'>¥52</span> 82 <span class='color_red'>¥52</span>
83 </view> 83 </view>
84 <view class='mid_item_bottom_rig'> 84 <view class='mid_item_bottom_rig'>
85 - <view class='bottom_btn_left'>取消订单</view> 85 + <view class='bottom_btn_left' bindtap='cancelOrder'>取消订单</view>
86 <view class='bottom_btn_right'>立即付款</view> 86 <view class='bottom_btn_right'>立即付款</view>
87 </view> 87 </view>
88 </view> 88 </view>
89 </view> 89 </view>
90 <!-- 待付款 --> 90 <!-- 待付款 -->
91 - <view class='mid_item' wx:if='{{currentTab == 1}}' > 91 + <view class='mid_item' wx:if='{{currentTab == 1}}' wx:for='{{orderList}}' wx:key=''>
92 <!-- 上 --> 92 <!-- 上 -->
93 <view class='mid_item_top'> 93 <view class='mid_item_top'>
94 <!-- 订单号 --> 94 <!-- 订单号 -->
@@ -99,12 +99,12 @@ @@ -99,12 +99,12 @@
99 </view> 99 </view>
100 <!-- 订单号 --> 100 <!-- 订单号 -->
101 <view class='top_left_text'> 101 <view class='top_left_text'>
102 - 订单号:1003828041 102 + 订单号:{{item.goods}}
103 </view> 103 </view>
104 </view> 104 </view>
105 <!-- 待付款 --> 105 <!-- 待付款 -->
106 <view class='mid_item_top_right'> 106 <view class='mid_item_top_right'>
107 - 待付款 107 + {{item.goods_status}}
108 </view> 108 </view>
109 </view> 109 </view>
110 <!-- 中 --> 110 <!-- 中 -->
@@ -112,6 +112,7 @@ @@ -112,6 +112,7 @@
112 <view class='mid_item_mid_left'> 112 <view class='mid_item_mid_left'>
113 <!-- 图片 --> 113 <!-- 图片 -->
114 <view class='mid_left_pic'> 114 <view class='mid_left_pic'>
  115 + <!-- <image src='../../../img/goods_1.png'></image>-->
115 <image src='../../../img/goods_1.png'></image> 116 <image src='../../../img/goods_1.png'></image>
116 </view> 117 </view>
117 <!-- 文字 --> 118 <!-- 文字 -->
@@ -122,10 +123,10 @@ @@ -122,10 +123,10 @@
122 <!-- 中——右边 --> 123 <!-- 中——右边 -->
123 <view class='mid_item_mid_right'> 124 <view class='mid_item_mid_right'>
124 <view class='mid_right_top'> 125 <view class='mid_right_top'>
125 - <view class='right_top_lef'>纯进口有机菜花</view> 126 + <view class='right_top_lef'>{{item.shop_name}}</view>
126 <view class='right_top_rig'> 127 <view class='right_top_rig'>
127 <span class='price_small'>¥</span> 128 <span class='price_small'>¥</span>
128 - <span class='font_big'>52</span> 129 + <span class='font_big'>50</span>
129 <span class='font_small'>.00</span> 130 <span class='font_small'>.00</span>
130 </view> 131 </view>
131 </view> 132 </view>
@@ -142,7 +143,7 @@ @@ -142,7 +143,7 @@
142 <!-- 拼团份数 --> 143 <!-- 拼团份数 -->
143 <view class='mid_right_bottom'> 144 <view class='mid_right_bottom'>
144 <view class='mid_right_bottom_lef'> 145 <view class='mid_right_bottom_lef'>
145 - 已拼300份,目标500 146 + 已拼{{item.numb}}份,目标{{item.group}}
146 </view> 147 </view>
147 <view class='mid_right_bottom_rig'> 148 <view class='mid_right_bottom_rig'>
148 x4 149 x4
@@ -158,13 +159,13 @@ @@ -158,13 +159,13 @@
158 <span class='color_red'>¥52</span> 159 <span class='color_red'>¥52</span>
159 </view> 160 </view>
160 <view class='mid_item_bottom_rig'> 161 <view class='mid_item_bottom_rig'>
161 - <view class='bottom_btn_left'>取消订单</view> 162 + <view class='bottom_btn_left' bindtap='cancelOrder'>取消订单</view>
162 <view class='bottom_btn_right'>立即付款</view> 163 <view class='bottom_btn_right'>立即付款</view>
163 </view> 164 </view>
164 </view> 165 </view>
165 </view> 166 </view>
166 <!-- 待拼团 --> 167 <!-- 待拼团 -->
167 - <view class='mid_item' wx:if='{{currentTab == 2}}'> 168 + <view class='mid_item' wx:if='{{currentTab == 2}}' wx:for='{{orderList}}' wx:key=''>
168 <!-- 上 --> 169 <!-- 上 -->
169 <view class='mid_item_top'> 170 <view class='mid_item_top'>
170 <!-- 订单号 --> 171 <!-- 订单号 -->
@@ -175,12 +176,12 @@ @@ -175,12 +176,12 @@
175 </view> 176 </view>
176 <!-- 订单号 --> 177 <!-- 订单号 -->
177 <view class='top_left_text'> 178 <view class='top_left_text'>
178 - 订单号:1003828041 179 + 订单号:{{item.goods}}
179 </view> 180 </view>
180 </view> 181 </view>
181 <!-- 待拼团 --> 182 <!-- 待拼团 -->
182 <view class='mid_item_top_right'> 183 <view class='mid_item_top_right'>
183 - 待拼团 184 + {{item.goods_status}}
184 </view> 185 </view>
185 </view> 186 </view>
186 <!-- 中 --> 187 <!-- 中 -->
@@ -198,11 +199,11 @@ @@ -198,11 +199,11 @@
198 <!-- 中——右边 --> 199 <!-- 中——右边 -->
199 <view class='mid_item_mid_right'> 200 <view class='mid_item_mid_right'>
200 <view class='mid_right_top'> 201 <view class='mid_right_top'>
201 - <view class='right_top_lef'>纯进口有机菜花</view> 202 + <view class='right_top_lef'>{{item.shop_name}}</view>
202 <view class='right_top_rig'> 203 <view class='right_top_rig'>
203 <span class='price_small'>¥</span> 204 <span class='price_small'>¥</span>
204 - <span class='font_big'>52</span>  
205 - <span class='font_small'>.00</span> 205 + <span class='font_big'>{{item.money_pay}}</span>
  206 + <!-- <span class='font_small'>.00</span> -->
206 </view> 207 </view>
207 </view> 208 </view>
208 <!-- 百分比 --> 209 <!-- 百分比 -->
@@ -553,4 +554,15 @@ @@ -553,4 +554,15 @@
553 554
554 </view> 555 </view>
555 556
  557 +</view>
  558 +
  559 +<!-- 取消订单弹层 -->
  560 +<view class='mask' wx:if='{{toCancel}}'>
  561 + <view class='mask_mid'>
  562 + <view class='mask_mid_top'>您确定要取消吗?</view>
  563 + <view class='mask_mid_bottom'>
  564 + <view class='mask_mid_bottom_left'>确定</view>
  565 + <view class='mask_mid_bottom_right' bindtap='toClose'>取消</view>
  566 + </view>
  567 + </view>
556 </view> 568 </view>
@@ -9,9 +9,8 @@ page{ @@ -9,9 +9,8 @@ page{
9 } 9 }
10 .top{ 10 .top{
11 width: 750rpx; 11 width: 750rpx;
12 - height: 80rpx; 12 + height: 72rpx;
13 background: #6EAC3D; 13 background: #6EAC3D;
14 -  
15 display: flex; 14 display: flex;
16 align-items: center; 15 align-items: center;
17 font-size:28rpx; 16 font-size:28rpx;
@@ -52,7 +51,7 @@ page{ @@ -52,7 +51,7 @@ page{
52 opacity:1; 51 opacity:1;
53 border-radius:8rpx; 52 border-radius:8rpx;
54 position: absolute; 53 position: absolute;
55 - top: 77rpx; 54 + top: 72rpx;
56 display: flex; 55 display: flex;
57 align-items: center; 56 align-items: center;
58 flex-flow: column; 57 flex-flow: column;
@@ -188,7 +187,7 @@ page{ @@ -188,7 +187,7 @@ page{
188 border-radius:8rpx; 187 border-radius:8rpx;
189 } 188 }
190 .right_m_left_content{ 189 .right_m_left_content{
191 - width:284rpx; 190 + width:42%;
192 height:16rpx; 191 height:16rpx;
193 background:rgba(181,222,150,1); 192 background:rgba(181,222,150,1);
194 opacity:1; 193 opacity:1;
@@ -307,4 +306,51 @@ page{ @@ -307,4 +306,51 @@ page{
307 color:rgba(102,102,102,1); 306 color:rgba(102,102,102,1);
308 opacity:1; 307 opacity:1;
309 308
310 -}  
  309 +}
  310 +
  311 +.mask{
  312 + position: fixed;
  313 + top: 0;
  314 + right: 0;
  315 + bottom: 0;
  316 + left: 0;
  317 + background: rgba(0, 0, 0, 0.4);
  318 + display: flex;
  319 + justify-content: center;
  320 +}
  321 +.mask_mid{
  322 + margin-top: 400rpx;
  323 + width: 500rpx;
  324 + height: 400rpx;
  325 + background: #fff;
  326 + border-radius: 8rpx;
  327 + display: flex;
  328 +
  329 + flex-flow: column;
  330 + position: relative;
  331 +}
  332 +.mask_mid_top{
  333 + margin-top: 150rpx;
  334 + text-align: center;
  335 + font-size: 30rpx;
  336 +}
  337 +.mask_mid_bottom{
  338 + display: flex;
  339 + position: absolute;
  340 + bottom: 0;
  341 +}
  342 +.mask_mid_bottom_left{
  343 + width: 250rpx;
  344 + height: 80rpx;
  345 + line-height: 80rpx;
  346 + text-align: center;
  347 + color: #fff;
  348 + background: #6EAC3D;
  349 +}
  350 +.mask_mid_bottom_right{
  351 + width: 250rpx;
  352 + height: 80rpx;
  353 + line-height: 80rpx;
  354 + text-align: center;
  355 + background: #EBEBEB;
  356 +}
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 "ignore": [] 4 "ignore": []
5 }, 5 },
6 "setting": { 6 "setting": {
7 - "urlCheck": true, 7 + "urlCheck": false,
8 "es6": true, 8 "es6": true,
9 "postcss": true, 9 "postcss": true,
10 "minified": true, 10 "minified": true,
@@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
13 }, 13 },
14 "compileType": "miniprogram", 14 "compileType": "miniprogram",
15 "libVersion": "2.6.1", 15 "libVersion": "2.6.1",
16 - "appid": "wx472976e7929a1630", 16 + "appid": "wx532ecca400eb93a8",
17 "projectname": "teamprogram", 17 "projectname": "teamprogram",
18 "debugOptions": { 18 "debugOptions": {
19 "hidedInDevtools": [] 19 "hidedInDevtools": []
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 "list": [] 37 "list": []
38 }, 38 },
39 "miniprogram": { 39 "miniprogram": {
40 - "current": 6, 40 + "current": 8,
41 "list": [ 41 "list": [
42 { 42 {
43 "id": -1, 43 "id": -1,
@@ -85,6 +85,21 @@ @@ -85,6 +85,21 @@
85 "id": -1, 85 "id": -1,
86 "name": "搜索", 86 "name": "搜索",
87 "pathName": "pages/homeindex/search/search", 87 "pathName": "pages/homeindex/search/search",
  88 + "query": "",
  89 + "scene": null
  90 + },
  91 + {
  92 + "id": -1,
  93 + "name": "联系我们",
  94 + "pathName": "pages/mine/contactUs/contactUs",
  95 + "query": "",
  96 + "scene": null
  97 + },
  98 + {
  99 + "id": -1,
  100 + "name": "评价订单",
  101 + "pathName": "pages/mine/eOrder/eOrder",
  102 + "query": "",
88 "scene": null 103 "scene": null
89 } 104 }
90 ] 105 ]