正在显示
11 个修改的文件
包含
399 行增加
和
152 行删除
@@ -30,7 +30,7 @@ Page({ | @@ -30,7 +30,7 @@ Page({ | ||
30 | 30 | ||
31 | } | 31 | } |
32 | let header = { | 32 | let header = { |
33 | - "XX-Token": '123123', | 33 | + "XX-Token": wx.getStorageSync('token'), |
34 | "XX-Device-Type": 'wxapp' | 34 | "XX-Device-Type": 'wxapp' |
35 | } | 35 | } |
36 | app.post(url, params, header).then((res) => { | 36 | app.post(url, params, header).then((res) => { |
@@ -60,26 +60,25 @@ Page({ | @@ -60,26 +60,25 @@ Page({ | ||
60 | address_id: id | 60 | address_id: id |
61 | } | 61 | } |
62 | let header = { | 62 | let header = { |
63 | - "XX-Token": '123123', | 63 | + "XX-Token": wx.getStorageSync('token'), |
64 | "XX-Device-Type": 'wxapp' | 64 | "XX-Device-Type": 'wxapp' |
65 | } | 65 | } |
66 | app.post(url, params, header).then((res) => { | 66 | app.post(url, params, header).then((res) => { |
67 | console.log(res) | 67 | console.log(res) |
68 | - if (res == '') { | ||
69 | - wx.showToast({ | 68 | + // if (res == '') { |
69 | + // wx.showToast({ | ||
70 | + // title: '删除成功', | ||
71 | + // icon: 'none' | ||
72 | + // }) | ||
73 | + wx.showToast({ | ||
70 | title: '删除成功', | 74 | title: '删除成功', |
71 | icon: 'none' | 75 | icon: 'none' |
72 | }) | 76 | }) |
73 | - | ||
74 | setTimeout(function () { | 77 | setTimeout(function () { |
75 | that.getaddresslist() | 78 | that.getaddresslist() |
76 | }, 1000) | 79 | }, 1000) |
77 | - | ||
78 | - } | ||
79 | - // console.log('删除功能'+res); | ||
80 | - // that.setData({ | ||
81 | - // address_id: res.list | ||
82 | - // }) | 80 | + |
81 | + | ||
83 | 82 | ||
84 | 83 | ||
85 | }).catch((err) => { | 84 | }).catch((err) => { |
@@ -76,23 +76,23 @@ Page({ | @@ -76,23 +76,23 @@ Page({ | ||
76 | address_id: that.data.address_id | 76 | address_id: that.data.address_id |
77 | } | 77 | } |
78 | let header = { | 78 | let header = { |
79 | - "XX-Token": '123123', | 79 | + "XX-Token": wx.getStorageSync('token'), |
80 | "XX-Device-Type": 'wxapp' | 80 | "XX-Device-Type": 'wxapp' |
81 | } | 81 | } |
82 | app.post(url, params, header).then((res) => { | 82 | app.post(url, params, header).then((res) => { |
83 | console.log(res); | 83 | console.log(res); |
84 | // 列表值 | 84 | // 列表值 |
85 | that.setData({ | 85 | that.setData({ |
86 | - addressEdit: res, | ||
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, | 86 | + addressEdit: res.data, |
87 | + region: [res.data.province, res.data.city, res.data.county], | ||
88 | + province: res.data.province, | ||
89 | + name: res.data.name, | ||
90 | + mobile: res.data.mobile, | ||
91 | + status: res.data.status, | ||
92 | + province: res.data.province, | ||
93 | + city: res.data.city, | ||
94 | + county: res.data.city, | ||
95 | + address: res.data.address, | ||
96 | 96 | ||
97 | }) | 97 | }) |
98 | 98 | ||
@@ -123,7 +123,7 @@ Page({ | @@ -123,7 +123,7 @@ Page({ | ||
123 | address: that.data.address | 123 | address: that.data.address |
124 | } | 124 | } |
125 | let header = { | 125 | let header = { |
126 | - "XX-Token": '123123', | 126 | + "XX-Token": wx.getStorageSync('token'), |
127 | "XX-Device-Type": 'wxapp' | 127 | "XX-Device-Type": 'wxapp' |
128 | } | 128 | } |
129 | app.post(url, params, header).then((res) => { | 129 | app.post(url, params, header).then((res) => { |
@@ -48,14 +48,14 @@ Page({ | @@ -48,14 +48,14 @@ Page({ | ||
48 | 48 | ||
49 | } | 49 | } |
50 | let header = { | 50 | let header = { |
51 | - "XX-Token": '123123', | 51 | + "XX-Token": wx.getStorageSync('token'), |
52 | "XX-Device-Type": 'wxapp' | 52 | "XX-Device-Type": 'wxapp' |
53 | } | 53 | } |
54 | app.post(url, params, header).then((res) => { | 54 | app.post(url, params, header).then((res) => { |
55 | console.log(res); | 55 | console.log(res); |
56 | // 列表值 | 56 | // 列表值 |
57 | that.setData({ | 57 | that.setData({ |
58 | - collectList: res.list | 58 | + collectList: res.data.list |
59 | }) | 59 | }) |
60 | 60 | ||
61 | console.log(that.data.collectList) | 61 | console.log(that.data.collectList) |
@@ -58,7 +58,7 @@ | @@ -58,7 +58,7 @@ | ||
58 | {{item.text_content}} | 58 | {{item.text_content}} |
59 | </view> | 59 | </view> |
60 | </view> | 60 | </view> |
61 | - <!-- 右下右 --> | 61 | + <!-- 右下 --> |
62 | <view class='right_bottom_rig'> | 62 | <view class='right_bottom_rig'> |
63 | 立即参团 | 63 | 立即参团 |
64 | </view> | 64 | </view> |
@@ -80,7 +80,7 @@ | @@ -80,7 +80,7 @@ | ||
80 | </view> | 80 | </view> |
81 | </view> | 81 | </view> |
82 | 82 | ||
83 | - <view class='mid_item'> | 83 | + <!-- <view class='mid_item'> |
84 | <!-- 顶部 --> | 84 | <!-- 顶部 --> |
85 | <view class='mid_item_top'> | 85 | <view class='mid_item_top'> |
86 | <!-- 左边 --> | 86 | <!-- 左边 --> |
@@ -156,6 +156,6 @@ | @@ -156,6 +156,6 @@ | ||
156 | 智利进口,绿色健康,硕大饱满 | 156 | 智利进口,绿色健康,硕大饱满 |
157 | </view> | 157 | </view> |
158 | </view> | 158 | </view> |
159 | - </view> | 159 | + <!-- </view> --> |
160 | </view> | 160 | </view> |
161 | </view> | 161 | </view> |
1 | +const app = getApp(); | ||
2 | +var that; | ||
1 | Page({ | 3 | Page({ |
2 | 4 | ||
3 | /** | 5 | /** |
4 | * 页面的初始数据 | 6 | * 页面的初始数据 |
5 | */ | 7 | */ |
6 | data: { | 8 | data: { |
7 | - | 9 | + images: [], |
10 | + uploadedImages: [], | ||
11 | + goods_id: '', | ||
12 | + text: '', | ||
13 | + img: [], | ||
14 | + eOrder: '', | ||
8 | }, | 15 | }, |
9 | 16 | ||
10 | /** | 17 | /** |
11 | * 生命周期函数--监听页面加载 | 18 | * 生命周期函数--监听页面加载 |
12 | */ | 19 | */ |
13 | onLoad: function (options) { | 20 | onLoad: function (options) { |
14 | - | 21 | + that = this |
22 | + // this.evaluateOrder() | ||
23 | + }, | ||
24 | + | ||
25 | + submitComment() { | ||
26 | + | ||
27 | + let that = this; | ||
28 | + let url = 'user/index/message'; | ||
29 | + let params = { | ||
30 | + goods_id : that.data.goods_id, | ||
31 | + text : that.data.text, | ||
32 | + img : that.data.img.join(",") | ||
33 | + } | ||
34 | + let header = { | ||
35 | + "XX-Token": wx.getStorageSync('token'), | ||
36 | + "XX-Device-Type": 'wxapp' | ||
37 | + } | ||
38 | + app.post(url, params, header).then((res) => { | ||
39 | + console.log(res); | ||
40 | + // 获取值 | ||
41 | + that.setData({ | ||
42 | + eOrder: res.data | ||
43 | + }) | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | + }).catch((err) => { | ||
50 | + | ||
51 | + }) | ||
52 | + }, | ||
53 | + | ||
54 | + | ||
55 | + //----- 上传图片 ----- | ||
56 | + //选择图片 | ||
57 | + chooseImage: function () { | ||
58 | + // 选择图片 | ||
59 | + wx.chooseImage({ | ||
60 | + count: 3, // 默认9 | ||
61 | + sizeType: ['compressed'], | ||
62 | + sourceType: ['album', 'camera'], | ||
63 | + // 可以指定来源是相册还是相机,默认二者都有 | ||
64 | + success: function (res) { | ||
65 | + // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 | ||
66 | + var tempFilePaths = res.tempFilePaths; | ||
67 | + that.setData({ | ||
68 | + images: that.data.images.concat(tempFilePaths) | ||
69 | + }); | ||
70 | + } | ||
71 | + }) | ||
72 | + }, | ||
73 | + // 图片预览 | ||
74 | + previewImage: function (e) { | ||
75 | + console.log(this.data.images); | ||
76 | + var current = e.target.dataset.src | ||
77 | + wx.previewImage({ | ||
78 | + current: current, | ||
79 | + urls: this.data.images | ||
80 | + }) | ||
81 | + }, | ||
82 | + submit: function () { | ||
83 | + // // 提交图片,事先遍历图集数组 | ||
84 | + // that.data.images.forEach(function (tempFilePath) { | ||
85 | + // new AV.File('file-name', { | ||
86 | + // blob: { | ||
87 | + // uri: tempFilePath, | ||
88 | + // }, | ||
89 | + // }).save().then( | ||
90 | + // // file => console.log(file.url()) | ||
91 | + // function (file) { | ||
92 | + // // 先读取 | ||
93 | + // var uploadedImages = that.data.uploadedImages; | ||
94 | + // uploadedImages.push(file.url()); | ||
95 | + // // 再写入 | ||
96 | + // that.setData({ | ||
97 | + // uploadedImages: uploadedImages | ||
98 | + // }); console.log(uploadedImages); | ||
99 | + // } | ||
100 | + // ).catch(console.error); | ||
101 | + // }); | ||
102 | + // wx.showToast({ | ||
103 | + // title: '评价成功', success: function () { | ||
104 | + // wx.navigateBack(); | ||
105 | + // } | ||
106 | + // }); | ||
107 | + }, | ||
108 | + delete: function (e) { | ||
109 | + var index = e.currentTarget.dataset.index; | ||
110 | + var images = that.data.images; | ||
111 | + images.splice(index, 1); | ||
112 | + that.setData({ | ||
113 | + images: images | ||
114 | + }); | ||
15 | }, | 115 | }, |
16 | 116 | ||
17 | /** | 117 | /** |
18 | * 生命周期函数--监听页面初次渲染完成 | 118 | * 生命周期函数--监听页面初次渲染完成 |
19 | */ | 119 | */ |
20 | onReady: function () { | 120 | onReady: function () { |
21 | - | 121 | + |
22 | }, | 122 | }, |
23 | 123 | ||
24 | /** | 124 | /** |
25 | * 生命周期函数--监听页面显示 | 125 | * 生命周期函数--监听页面显示 |
26 | */ | 126 | */ |
27 | onShow: function () { | 127 | onShow: function () { |
28 | - | 128 | + |
29 | }, | 129 | }, |
30 | 130 | ||
31 | /** | 131 | /** |
32 | * 生命周期函数--监听页面隐藏 | 132 | * 生命周期函数--监听页面隐藏 |
33 | */ | 133 | */ |
34 | onHide: function () { | 134 | onHide: function () { |
35 | - | 135 | + |
36 | }, | 136 | }, |
37 | 137 | ||
38 | /** | 138 | /** |
39 | * 生命周期函数--监听页面卸载 | 139 | * 生命周期函数--监听页面卸载 |
40 | */ | 140 | */ |
41 | onUnload: function () { | 141 | onUnload: function () { |
42 | - | 142 | + |
43 | }, | 143 | }, |
44 | 144 | ||
45 | /** | 145 | /** |
46 | * 页面相关事件处理函数--监听用户下拉动作 | 146 | * 页面相关事件处理函数--监听用户下拉动作 |
47 | */ | 147 | */ |
48 | onPullDownRefresh: function () { | 148 | onPullDownRefresh: function () { |
49 | - | 149 | + |
50 | }, | 150 | }, |
51 | 151 | ||
52 | /** | 152 | /** |
53 | * 页面上拉触底事件的处理函数 | 153 | * 页面上拉触底事件的处理函数 |
54 | */ | 154 | */ |
55 | onReachBottom: function () { | 155 | onReachBottom: function () { |
56 | - | 156 | + |
57 | }, | 157 | }, |
58 | 158 | ||
59 | /** | 159 | /** |
60 | * 用户点击右上角分享 | 160 | * 用户点击右上角分享 |
61 | */ | 161 | */ |
62 | onShareAppMessage: function () { | 162 | onShareAppMessage: function () { |
63 | - | 163 | + |
64 | } | 164 | } |
65 | }) | 165 | }) |
@@ -11,16 +11,25 @@ | @@ -11,16 +11,25 @@ | ||
11 | </view> | 11 | </view> |
12 | <!-- 图片 --> | 12 | <!-- 图片 --> |
13 | <view class='top_item'> | 13 | <view class='top_item'> |
14 | - <view class='top_item_pic'> | 14 | + <!-- <view class='top_item_pic' bindtap='chooseImage'> |
15 | <image src='../../../img/tianjiatupian@2x.png'></image> | 15 | <image src='../../../img/tianjiatupian@2x.png'></image> |
16 | - </view> | 16 | + </view> --> |
17 | + <view class="top_item_pic" wx:for="{{images}}" wx:key=""> | ||
18 | + <image src="{{item}}" data-src="{{item}}" bindtap="previewImage" mode="aspectFill" /> | ||
19 | + | ||
20 | + <!-- 删除按钮 --> | ||
21 | + <view class="delete" bindtap="delete" data-index="{{index}}">X</view> | ||
22 | + </view> | ||
23 | + <view class="top_item_pic" bindtap="chooseImage"> | ||
24 | + <image src='../../../img/tianjiatupian@3x.png'></image> | ||
25 | + </view> | ||
17 | 26 | ||
18 | </view> | 27 | </view> |
19 | 28 | ||
20 | </view> | 29 | </view> |
21 | 30 | ||
22 | <view class='bottom'> | 31 | <view class='bottom'> |
23 | - <view class='bottom_btn'> | 32 | + <view class='bottom_btn' bindtap='submitComment'> |
24 | 发表评价 | 33 | 发表评价 |
25 | </view> | 34 | </view> |
26 | </view> | 35 | </view> |
@@ -40,6 +40,7 @@ page{ | @@ -40,6 +40,7 @@ page{ | ||
40 | display: flex; | 40 | display: flex; |
41 | margin-top: 30rpx; | 41 | margin-top: 30rpx; |
42 | margin-right: 40rpx; | 42 | margin-right: 40rpx; |
43 | + position: relative; | ||
43 | } | 44 | } |
44 | .top_item_pic image{ | 45 | .top_item_pic image{ |
45 | width: 100%; | 46 | width: 100%; |
@@ -72,4 +73,10 @@ page{ | @@ -72,4 +73,10 @@ page{ | ||
72 | font-family:PingFang SC; | 73 | font-family:PingFang SC; |
73 | font-weight:600; | 74 | font-weight:600; |
74 | color:rgba(255,255,255,1); | 75 | color:rgba(255,255,255,1); |
76 | +} | ||
77 | +.delete{ | ||
78 | + position: absolute; | ||
79 | + right: 10rpx; | ||
80 | + top: -3rpx; | ||
81 | + font-size: 30rpx; | ||
75 | } | 82 | } |
@@ -33,13 +33,29 @@ Page({ | @@ -33,13 +33,29 @@ Page({ | ||
33 | orderList: '', | 33 | orderList: '', |
34 | page: 1, | 34 | page: 1, |
35 | status: 0, | 35 | status: 0, |
36 | - toCancel: false | 36 | + toCancel: false, |
37 | + delect_order: false, | ||
38 | + | ||
39 | + | ||
40 | + //倒计时 | ||
41 | + countDownList: [], | ||
42 | + actEndTimeList: [] | ||
37 | }, | 43 | }, |
38 | - | 44 | + |
45 | + | ||
39 | /** | 46 | /** |
40 | * 生命周期函数--监听页面加载 | 47 | * 生命周期函数--监听页面加载 |
41 | */ | 48 | */ |
42 | onLoad: function (options) { | 49 | onLoad: function (options) { |
50 | + // let endTimeList = []; | ||
51 | + // // 将活动的结束时间参数提成一个单独的数组,方便操作 | ||
52 | + // goodsList.forEach(o => { endTimeList.push(o.actEndTime) }) | ||
53 | + // this.setData({ actEndTimeList: endTimeList }); | ||
54 | + // // 执行倒计时函数 | ||
55 | + // this.countDown(); | ||
56 | + | ||
57 | + | ||
58 | + | ||
43 | this.myOrder() | 59 | this.myOrder() |
44 | console.log(options) | 60 | console.log(options) |
45 | if (options.id == 1) { | 61 | if (options.id == 1) { |
@@ -64,6 +80,13 @@ Page({ | @@ -64,6 +80,13 @@ Page({ | ||
64 | }) | 80 | }) |
65 | } | 81 | } |
66 | }, | 82 | }, |
83 | + | ||
84 | + | ||
85 | + timeFormat(param) {//小于10的格式化函数 | ||
86 | + return param < 10 ? '0' + param : param; | ||
87 | + }, | ||
88 | + | ||
89 | + | ||
67 | // 我的订单 | 90 | // 我的订单 |
68 | myOrder() { | 91 | myOrder() { |
69 | let that = this; | 92 | let that = this; |
@@ -79,6 +102,7 @@ Page({ | @@ -79,6 +102,7 @@ Page({ | ||
79 | } | 102 | } |
80 | app.post(url, params, header).then((res) => { | 103 | app.post(url, params, header).then((res) => { |
81 | console.log(res); | 104 | console.log(res); |
105 | + | ||
82 | // 列表值 | 106 | // 列表值 |
83 | that.setData({ | 107 | that.setData({ |
84 | orderList: res.data.list | 108 | orderList: res.data.list |
@@ -93,6 +117,95 @@ Page({ | @@ -93,6 +117,95 @@ Page({ | ||
93 | }) | 117 | }) |
94 | }, | 118 | }, |
95 | 119 | ||
120 | + countDown() {//倒计时函数 | ||
121 | + // 获取当前时间,同时得到活动结束时间数组 | ||
122 | + let newTime = new Date().getTime(); | ||
123 | + let endTimeList = this.data.actEndTimeList; | ||
124 | + let countDownArr = []; | ||
125 | + | ||
126 | + // 对结束时间进行处理渲染到页面 | ||
127 | + endTimeList.forEach(o => { | ||
128 | + let endTime = new Date(o).getTime(); | ||
129 | + let obj = null; | ||
130 | + // 如果活动未结束,对时间进行处理 | ||
131 | + if (endTime - newTime > 0) { | ||
132 | + let time = (endTime - newTime) / 1000; | ||
133 | + // 获取天、时、分、秒 | ||
134 | + let day = parseInt(time / (60 * 60 * 24)); | ||
135 | + let hou = parseInt(time % (60 * 60 * 24) / 3600); | ||
136 | + let min = parseInt(time % (60 * 60 * 24) % 3600 / 60); | ||
137 | + let sec = parseInt(time % (60 * 60 * 24) % 3600 % 60); | ||
138 | + obj = { | ||
139 | + day: this.timeFormat(day), | ||
140 | + hou: this.timeFormat(hou), | ||
141 | + min: this.timeFormat(min), | ||
142 | + sec: this.timeFormat(sec) | ||
143 | + } | ||
144 | + } else {//活动已结束,全部设置为'00' | ||
145 | + obj = { | ||
146 | + day: '00', | ||
147 | + hou: '00', | ||
148 | + min: '00', | ||
149 | + sec: '00' | ||
150 | + } | ||
151 | + } | ||
152 | + countDownArr.push(obj); | ||
153 | + }) | ||
154 | + // // 渲染,然后每隔一秒执行一次倒计时函数 | ||
155 | + // this.setData({ countDownList: countDownArr }) | ||
156 | + // setTimeout(this.countDown, 1000); | ||
157 | + }, | ||
158 | + | ||
159 | + | ||
160 | + // 倒计时功能 | ||
161 | + // timeFunc(num) { | ||
162 | + // //let number = res.compare.surplus_time; | ||
163 | + // // 时间戳处理 | ||
164 | + // var totalSecond = num; | ||
165 | + // var interval = setInterval(function () { | ||
166 | + // // 秒数 | ||
167 | + // var second = totalSecond; | ||
168 | + // // 天数位 | ||
169 | + // var day = Math.floor(second / 3600 / 24); | ||
170 | + // var dayStr = day.toString(); | ||
171 | + // if (dayStr.length == 1) dayStr = '0' + dayStr; | ||
172 | + // // 小时位 | ||
173 | + // var hr = Math.floor((second - day * 3600 * 24) / 3600); | ||
174 | + // var hrStr = hr.toString(); | ||
175 | + // if (hrStr.length == 1) hrStr = '0' + hrStr; | ||
176 | + // // 分钟位 | ||
177 | + // var min = Math.floor((second - day * 3600 * 24 - hr * 3600) / 60); | ||
178 | + // var minStr = min.toString(); | ||
179 | + // if (minStr.length == 1) minStr = '0' + minStr; | ||
180 | + // // 秒位 | ||
181 | + // var sec = second - day * 3600 * 24 - hr * 3600 - min * 60; | ||
182 | + // var secStr = sec.toString(); | ||
183 | + // if (secStr.length == 1) secStr = '0' + secStr; | ||
184 | + | ||
185 | + // that.setData({ | ||
186 | + // days: dayStr, | ||
187 | + // hours: hrStr, | ||
188 | + // minutes: minStr, | ||
189 | + // seconds: secStr, | ||
190 | + // }); | ||
191 | + // totalSecond--; | ||
192 | + // if (totalSecond <= 0) { | ||
193 | + // clearInterval(interval); | ||
194 | + // wx.showToast({ | ||
195 | + // title: '活动已结束', | ||
196 | + // }); | ||
197 | + // // 倒计时结束 | ||
198 | + // that.countDown(); | ||
199 | + // that.setData({ | ||
200 | + // days: '00', | ||
201 | + // hours: '00', | ||
202 | + // minutes: '00', | ||
203 | + // seconds: '00', | ||
204 | + // }); | ||
205 | + // } | ||
206 | + // }.bind(this), 1000); | ||
207 | + // }, | ||
208 | + | ||
96 | 209 | ||
97 | 210 | ||
98 | navbarTap: function (e) { | 211 | navbarTap: function (e) { |
@@ -187,63 +300,36 @@ Page({ | @@ -187,63 +300,36 @@ Page({ | ||
187 | } | 300 | } |
188 | }, | 301 | }, |
189 | //评价按钮 | 302 | //评价按钮 |
190 | - btn_eOrder() { | 303 | + btn_eOrder(e) { |
304 | + console.log(e); | ||
305 | + let id=e.currentTab.dataset.id | ||
191 | wx.navigateTo({ | 306 | wx.navigateTo({ |
192 | - url: '/pages/mine/eOrder/eOrder', | 307 | + url: '/pages/mine/eOrder/eOrder?id='+id, |
193 | }) | 308 | }) |
194 | }, | 309 | }, |
195 | 310 | ||
196 | 311 | ||
197 | - // 倒计时功能 | ||
198 | - timeFunc(num) { | ||
199 | - //let number = res.compare.surplus_time; | ||
200 | - // 时间戳处理 | ||
201 | - var totalSecond = num; | ||
202 | - var interval = setInterval(function () { | ||
203 | - // 秒数 | ||
204 | - var second = totalSecond; | ||
205 | - // 天数位 | ||
206 | - var day = Math.floor(second / 3600 / 24); | ||
207 | - var dayStr = day.toString(); | ||
208 | - if (dayStr.length == 1) dayStr = '0' + dayStr; | ||
209 | - // 小时位 | ||
210 | - var hr = Math.floor((second - day * 3600 * 24) / 3600); | ||
211 | - var hrStr = hr.toString(); | ||
212 | - if (hrStr.length == 1) hrStr = '0' + hrStr; | ||
213 | - // 分钟位 | ||
214 | - var min = Math.floor((second - day * 3600 * 24 - hr * 3600) / 60); | ||
215 | - var minStr = min.toString(); | ||
216 | - if (minStr.length == 1) minStr = '0' + minStr; | ||
217 | - // 秒位 | ||
218 | - var sec = second - day * 3600 * 24 - hr * 3600 - min * 60; | ||
219 | - var secStr = sec.toString(); | ||
220 | - if (secStr.length == 1) secStr = '0' + secStr; | ||
221 | - | ||
222 | - that.setData({ | ||
223 | - days: dayStr, | ||
224 | - hours: hrStr, | ||
225 | - minutes: minStr, | ||
226 | - seconds: secStr, | ||
227 | - }); | ||
228 | - totalSecond--; | ||
229 | - if (totalSecond <= 0) { | ||
230 | - clearInterval(interval); | ||
231 | - wx.showToast({ | ||
232 | - title: '活动已结束', | ||
233 | - }); | ||
234 | - // 倒计时结束 | ||
235 | - that.countDown(); | ||
236 | - that.setData({ | ||
237 | - days: '00', | ||
238 | - hours: '00', | ||
239 | - minutes: '00', | ||
240 | - seconds: '00', | ||
241 | - }); | ||
242 | - } | ||
243 | - }.bind(this), 1000); | 312 | + // 删除订单 |
313 | + // delectOrder(){ | ||
314 | + // this.setData({ | ||
315 | + // delect_order:true | ||
316 | + // }) | ||
317 | + // }, | ||
318 | + // toDelect(){ | ||
319 | + // this.setData({ | ||
320 | + // delect_order:false | ||
321 | + // }) | ||
322 | + // }, | ||
323 | + toDelect(){ | ||
324 | + this.setData({ | ||
325 | + delect_order:true | ||
326 | + }) | ||
327 | + }, | ||
328 | + toDelect_close(){ | ||
329 | + this.setData({ | ||
330 | + delect_order:false | ||
331 | + }) | ||
244 | }, | 332 | }, |
245 | - | ||
246 | - | ||
247 | 333 | ||
248 | // 取消订单 | 334 | // 取消订单 |
249 | cancelOrder() { | 335 | cancelOrder() { |
@@ -10,7 +10,9 @@ | @@ -10,7 +10,9 @@ | ||
10 | 10 | ||
11 | <!-- 中部 --> | 11 | <!-- 中部 --> |
12 | <view class='mid'> | 12 | <view class='mid'> |
13 | + <view class="nodata" wx:if='{{orderList.length==0}}'>暂无数据</view> | ||
13 | <!-- 全部 --> | 14 | <!-- 全部 --> |
15 | + <block wx:else> | ||
14 | <view class='mid_item' wx:if='{{currentTab == 0}}' wx:for='{{orderList}}' wx:key=''> | 16 | <view class='mid_item' wx:if='{{currentTab == 0}}' wx:for='{{orderList}}' wx:key=''> |
15 | <!-- 上 --> | 17 | <!-- 上 --> |
16 | <view class='mid_item_top'> | 18 | <view class='mid_item_top'> |
@@ -36,7 +38,7 @@ | @@ -36,7 +38,7 @@ | ||
36 | <!-- 图片 --> | 38 | <!-- 图片 --> |
37 | <view class='mid_left_pic'> | 39 | <view class='mid_left_pic'> |
38 | <!-- <image src='../../../img/goods_1.png'></image>--> | 40 | <!-- <image src='../../../img/goods_1.png'></image>--> |
39 | - <image src='../../../img/goods_1.png'></image> | 41 | + <image src='{{item.thumb}}'></image> |
40 | </view> | 42 | </view> |
41 | <!-- 文字 --> | 43 | <!-- 文字 --> |
42 | <view class='mid_left_text'> | 44 | <view class='mid_left_text'> |
@@ -55,13 +57,15 @@ | @@ -55,13 +57,15 @@ | ||
55 | </view> | 57 | </view> |
56 | <!-- 百分比 --> | 58 | <!-- 百分比 --> |
57 | <view class='mid_right_m'> | 59 | <view class='mid_right_m'> |
58 | - <view class='right_m_left'> | ||
59 | - <view class='right_m_left_content' ></view> | ||
60 | - </view> | 60 | + <!-- <view class='right_m_left'> --> |
61 | + <!-- <view class='right_m_left_content' style="width:{{item.percent}}"></view> --> | ||
61 | 62 | ||
62 | - <view class='right_m_right'> | ||
63 | - 42% | ||
64 | - </view> | 63 | + <progress percent="{{item.percent}}" show-info color="#B5DE96" border-radius="8" font-size="24rpx" stroke-width="16rpx" /> |
64 | + <!-- </view> --> | ||
65 | + | ||
66 | + <!-- <view class='right_m_right'> | ||
67 | + {{item.percent}}% | ||
68 | + </view> --> | ||
65 | </view> | 69 | </view> |
66 | <!-- 拼团份数 --> | 70 | <!-- 拼团份数 --> |
67 | <view class='mid_right_bottom'> | 71 | <view class='mid_right_bottom'> |
@@ -69,7 +73,7 @@ | @@ -69,7 +73,7 @@ | ||
69 | 已拼{{item.numb}}份,目标{{item.group}}份 | 73 | 已拼{{item.numb}}份,目标{{item.group}}份 |
70 | </view> | 74 | </view> |
71 | <view class='mid_right_bottom_rig'> | 75 | <view class='mid_right_bottom_rig'> |
72 | - x4 | 76 | + {{item.goods_numb}} |
73 | </view> | 77 | </view> |
74 | </view> | 78 | </view> |
75 | 79 | ||
@@ -81,12 +85,26 @@ | @@ -81,12 +85,26 @@ | ||
81 | 共2件商品,实付 | 85 | 共2件商品,实付 |
82 | <span class='color_red'>¥52</span> | 86 | <span class='color_red'>¥52</span> |
83 | </view> | 87 | </view> |
84 | - <view class='mid_item_bottom_rig'> | 88 | + <view class='mid_item_bottom_rig' wx:if="{{item.goods_status==2}}"> |
85 | <view class='bottom_btn_left' bindtap='cancelOrder'>取消订单</view> | 89 | <view class='bottom_btn_left' bindtap='cancelOrder'>取消订单</view> |
86 | <view class='bottom_btn_right'>立即付款</view> | 90 | <view class='bottom_btn_right'>立即付款</view> |
87 | </view> | 91 | </view> |
92 | + | ||
93 | + <view wx:if="{{item.goods_status==1}}"> | ||
94 | + <view class='mid_item_bottom_rig' wx:if="{{item.message_id==0}}"> | ||
95 | + <view class='bottom_btn_left' bindtap='cancelOrder'>去评价</view> | ||
96 | + <view class='bottom_btn_right'>确认订单</view> | ||
97 | + </view> | ||
98 | + | ||
99 | + <view class='mid_item_bottom_rig' wx:else> | ||
100 | + <view class='bottom_btn_left' bindtap='cancelOrder'>删除</view> | ||
101 | + | ||
102 | + </view> | ||
103 | + </view> | ||
104 | + | ||
88 | </view> | 105 | </view> |
89 | </view> | 106 | </view> |
107 | + </block> | ||
90 | <!-- 待付款 --> | 108 | <!-- 待付款 --> |
91 | <view class='mid_item' wx:if='{{currentTab == 1}}' wx:for='{{orderList}}' wx:key=''> | 109 | <view class='mid_item' wx:if='{{currentTab == 1}}' wx:for='{{orderList}}' wx:key=''> |
92 | <!-- 上 --> | 110 | <!-- 上 --> |
@@ -113,7 +131,7 @@ | @@ -113,7 +131,7 @@ | ||
113 | <!-- 图片 --> | 131 | <!-- 图片 --> |
114 | <view class='mid_left_pic'> | 132 | <view class='mid_left_pic'> |
115 | <!-- <image src='../../../img/goods_1.png'></image>--> | 133 | <!-- <image src='../../../img/goods_1.png'></image>--> |
116 | - <image src='../../../img/goods_1.png'></image> | 134 | + <image src='{{item.thumb}}'></image> |
117 | </view> | 135 | </view> |
118 | <!-- 文字 --> | 136 | <!-- 文字 --> |
119 | <view class='mid_left_text'> | 137 | <view class='mid_left_text'> |
@@ -126,8 +144,8 @@ | @@ -126,8 +144,8 @@ | ||
126 | <view class='right_top_lef'>{{item.shop_name}}</view> | 144 | <view class='right_top_lef'>{{item.shop_name}}</view> |
127 | <view class='right_top_rig'> | 145 | <view class='right_top_rig'> |
128 | <span class='price_small'>¥</span> | 146 | <span class='price_small'>¥</span> |
129 | - <span class='font_big'>50</span> | ||
130 | - <span class='font_small'>.00</span> | 147 | + <span class='font_big'>{{item.money_sale}}</span> |
148 | + <!-- <span class='font_small'>.00</span> --> | ||
131 | </view> | 149 | </view> |
132 | </view> | 150 | </view> |
133 | <!-- 百分比 --> | 151 | <!-- 百分比 --> |
@@ -146,7 +164,7 @@ | @@ -146,7 +164,7 @@ | ||
146 | 已拼{{item.numb}}份,目标{{item.group}}份 | 164 | 已拼{{item.numb}}份,目标{{item.group}}份 |
147 | </view> | 165 | </view> |
148 | <view class='mid_right_bottom_rig'> | 166 | <view class='mid_right_bottom_rig'> |
149 | - x4 | 167 | + {{item.goods_numb}} |
150 | </view> | 168 | </view> |
151 | </view> | 169 | </view> |
152 | 170 | ||
@@ -159,7 +177,7 @@ | @@ -159,7 +177,7 @@ | ||
159 | <span class='color_red'>¥52</span> | 177 | <span class='color_red'>¥52</span> |
160 | </view> | 178 | </view> |
161 | <view class='mid_item_bottom_rig'> | 179 | <view class='mid_item_bottom_rig'> |
162 | - <view class='bottom_btn_left' bindtap='cancelOrder'>取消订单</view> | 180 | + <view class='bottom_btn_left' bindtap='cancelOrder' >取消订单</view> |
163 | <view class='bottom_btn_right'>立即付款</view> | 181 | <view class='bottom_btn_right'>立即付款</view> |
164 | </view> | 182 | </view> |
165 | </view> | 183 | </view> |
@@ -189,7 +207,7 @@ | @@ -189,7 +207,7 @@ | ||
189 | <view class='mid_item_mid_left'> | 207 | <view class='mid_item_mid_left'> |
190 | <!-- 图片 --> | 208 | <!-- 图片 --> |
191 | <view class='mid_left_pic'> | 209 | <view class='mid_left_pic'> |
192 | - <image src='../../../img/goods_1.png'></image> | 210 | + <image src='{{item.thumb}}'></image> |
193 | </view> | 211 | </view> |
194 | <!-- 文字 --> | 212 | <!-- 文字 --> |
195 | <view class='mid_left_text'> | 213 | <view class='mid_left_text'> |
@@ -222,7 +240,7 @@ | @@ -222,7 +240,7 @@ | ||
222 | 已拼300份,目标500份 | 240 | 已拼300份,目标500份 |
223 | </view> | 241 | </view> |
224 | <view class='mid_right_bottom_rig'> | 242 | <view class='mid_right_bottom_rig'> |
225 | - x4 | 243 | + {{item.goods_numb}} |
226 | </view> | 244 | </view> |
227 | </view> | 245 | </view> |
228 | 246 | ||
@@ -231,7 +249,7 @@ | @@ -231,7 +249,7 @@ | ||
231 | 249 | ||
232 | </view> | 250 | </view> |
233 | <!-- 待发货 --> | 251 | <!-- 待发货 --> |
234 | - <view class='mid_item' wx:if='{{currentTab == 3}}'> | 252 | + <view class='mid_item' wx:if='{{currentTab == 3}}' wx:for='{{orderList}}' wx:key=''> |
235 | <!-- 上 --> | 253 | <!-- 上 --> |
236 | <view class='mid_item_top'> | 254 | <view class='mid_item_top'> |
237 | <!-- 订单号 --> | 255 | <!-- 订单号 --> |
@@ -242,12 +260,12 @@ | @@ -242,12 +260,12 @@ | ||
242 | </view> | 260 | </view> |
243 | <!-- 订单号 --> | 261 | <!-- 订单号 --> |
244 | <view class='top_left_text'> | 262 | <view class='top_left_text'> |
245 | - 订单号:1003828041 | 263 | + 订单号:{{item.goods}} |
246 | </view> | 264 | </view> |
247 | </view> | 265 | </view> |
248 | <!-- 待发货 --> | 266 | <!-- 待发货 --> |
249 | <view class='mid_item_top_right'> | 267 | <view class='mid_item_top_right'> |
250 | - 待发货 | 268 | + {{item.goods_status}} |
251 | </view> | 269 | </view> |
252 | </view> | 270 | </view> |
253 | <!-- 中 --> | 271 | <!-- 中 --> |
@@ -255,7 +273,7 @@ | @@ -255,7 +273,7 @@ | ||
255 | <view class='mid_item_mid_left'> | 273 | <view class='mid_item_mid_left'> |
256 | <!-- 图片 --> | 274 | <!-- 图片 --> |
257 | <view class='mid_left_pic'> | 275 | <view class='mid_left_pic'> |
258 | - <image src='../../../img/goods_1.png'></image> | 276 | + <image src='{{item.thumb}}'></image> |
259 | </view> | 277 | </view> |
260 | <!-- 文字 --> | 278 | <!-- 文字 --> |
261 | <view class='mid_left_text text_b'> | 279 | <view class='mid_left_text text_b'> |
@@ -265,11 +283,11 @@ | @@ -265,11 +283,11 @@ | ||
265 | <!-- 中——右边 --> | 283 | <!-- 中——右边 --> |
266 | <view class='mid_item_mid_right'> | 284 | <view class='mid_item_mid_right'> |
267 | <view class='mid_right_top'> | 285 | <view class='mid_right_top'> |
268 | - <view class='right_top_lef'>纯进口有机菜花</view> | 286 | + <view class='right_top_lef'>{{item.shop_name}}</view> |
269 | <view class='right_top_rig'> | 287 | <view class='right_top_rig'> |
270 | <span class='price_small'>¥</span> | 288 | <span class='price_small'>¥</span> |
271 | - <span class='font_big'>52</span> | ||
272 | - <span class='font_small'>.00</span> | 289 | + <span class='font_big'>{{item.money_pay}}</span> |
290 | + <!-- <span class='font_small'>.00</span> --> | ||
273 | </view> | 291 | </view> |
274 | </view> | 292 | </view> |
275 | 293 | ||
@@ -279,7 +297,7 @@ | @@ -279,7 +297,7 @@ | ||
279 | 拼团成功 | 297 | 拼团成功 |
280 | </view> | 298 | </view> |
281 | <view class='mid_right_bottom_rig'> | 299 | <view class='mid_right_bottom_rig'> |
282 | - x4 | 300 | + {{item.goods_numb}} |
283 | </view> | 301 | </view> |
284 | </view> | 302 | </view> |
285 | 303 | ||
@@ -288,7 +306,10 @@ | @@ -288,7 +306,10 @@ | ||
288 | 306 | ||
289 | </view> | 307 | </view> |
290 | <!-- 待完成 --> | 308 | <!-- 待完成 --> |
291 | - <view class='mid_item' wx:if='{{currentTab == 4}}'> | 309 | + <view class='mid_item' wx:if='{{currentTab == 4}}' wx:for='{{orderList}}' wx:key=''> |
310 | + <view class="nodata" wx:if="{{orderList.length==0}}">暂无数据</view> | ||
311 | + <block wx:else > | ||
312 | + <view wx:for='{{orderList}}'> | ||
292 | <!-- 上 --> | 313 | <!-- 上 --> |
293 | <view class='mid_item_top'> | 314 | <view class='mid_item_top'> |
294 | <!-- 订单号 --> | 315 | <!-- 订单号 --> |
@@ -299,12 +320,12 @@ | @@ -299,12 +320,12 @@ | ||
299 | </view> | 320 | </view> |
300 | <!-- 订单号 --> | 321 | <!-- 订单号 --> |
301 | <view class='top_left_text'> | 322 | <view class='top_left_text'> |
302 | - 订单号:1003828041 | 323 | + 订单号:{{item.goods}} |
303 | </view> | 324 | </view> |
304 | </view> | 325 | </view> |
305 | <!-- 待完成 --> | 326 | <!-- 待完成 --> |
306 | <view class='mid_item_top_right'> | 327 | <view class='mid_item_top_right'> |
307 | - 待完成 | 328 | + {{item.goods_status}} |
308 | </view> | 329 | </view> |
309 | </view> | 330 | </view> |
310 | <!-- 中 --> | 331 | <!-- 中 --> |
@@ -312,7 +333,7 @@ | @@ -312,7 +333,7 @@ | ||
312 | <view class='mid_item_mid_left'> | 333 | <view class='mid_item_mid_left'> |
313 | <!-- 图片 --> | 334 | <!-- 图片 --> |
314 | <view class='mid_left_pic'> | 335 | <view class='mid_left_pic'> |
315 | - <image src='../../../img/goods_1.png'></image> | 336 | + <image src='{{item.thumb}}'></image> |
316 | </view> | 337 | </view> |
317 | <!-- 文字 --> | 338 | <!-- 文字 --> |
318 | <view class='mid_left_text text_b'> | 339 | <view class='mid_left_text text_b'> |
@@ -322,11 +343,11 @@ | @@ -322,11 +343,11 @@ | ||
322 | <!-- 中——右边 --> | 343 | <!-- 中——右边 --> |
323 | <view class='mid_item_mid_right'> | 344 | <view class='mid_item_mid_right'> |
324 | <view class='mid_right_top'> | 345 | <view class='mid_right_top'> |
325 | - <view class='right_top_lef'>纯进口有机菜花</view> | 346 | + <view class='right_top_lef'>{{item.shop_name}}</view> |
326 | <view class='right_top_rig'> | 347 | <view class='right_top_rig'> |
327 | <span class='price_small'>¥</span> | 348 | <span class='price_small'>¥</span> |
328 | - <span class='font_big'>52</span> | ||
329 | - <span class='font_small'>.00</span> | 349 | + <span class='font_big'>{{item.money_pay}}</span> |
350 | + <!-- <span class='font_small'>.00</span> --> | ||
330 | </view> | 351 | </view> |
331 | </view> | 352 | </view> |
332 | 353 | ||
@@ -336,7 +357,7 @@ | @@ -336,7 +357,7 @@ | ||
336 | 拼团成功 | 357 | 拼团成功 |
337 | </view> | 358 | </view> |
338 | <view class='mid_right_bottom_rig'> | 359 | <view class='mid_right_bottom_rig'> |
339 | - x4 | 360 | + {{item.goods_numb}} |
340 | </view> | 361 | </view> |
341 | </view> | 362 | </view> |
342 | 363 | ||
@@ -352,9 +373,13 @@ | @@ -352,9 +373,13 @@ | ||
352 | <view class='bottom_btn_right'>确认订单</view> | 373 | <view class='bottom_btn_right'>确认订单</view> |
353 | </view> | 374 | </view> |
354 | </view> | 375 | </view> |
376 | + </view> | ||
377 | + | ||
378 | + </block> | ||
379 | + | ||
355 | </view> | 380 | </view> |
356 | <!-- 待评价 --> | 381 | <!-- 待评价 --> |
357 | - <view class='mid_item' wx:if='{{currentTab == 5}}'> | 382 | + <view class='mid_item' wx:if='{{currentTab == 5}}' wx:for='{{orderList}}' wx:key=''> |
358 | <!-- 上 --> | 383 | <!-- 上 --> |
359 | <view class='mid_item_top' > | 384 | <view class='mid_item_top' > |
360 | <!-- 订单号 --> | 385 | <!-- 订单号 --> |
@@ -365,12 +390,12 @@ | @@ -365,12 +390,12 @@ | ||
365 | </view> | 390 | </view> |
366 | <!-- 订单号 --> | 391 | <!-- 订单号 --> |
367 | <view class='top_left_text'> | 392 | <view class='top_left_text'> |
368 | - 订单号:1003828041 | 393 | + 订单号:{{item.goods}} |
369 | </view> | 394 | </view> |
370 | </view> | 395 | </view> |
371 | <!-- 待评价 --> | 396 | <!-- 待评价 --> |
372 | <view class='mid_item_top_right'> | 397 | <view class='mid_item_top_right'> |
373 | - 待评价 | 398 | + {{item.goods_status}} |
374 | </view> | 399 | </view> |
375 | </view> | 400 | </view> |
376 | <!-- 中 --> | 401 | <!-- 中 --> |
@@ -378,7 +403,7 @@ | @@ -378,7 +403,7 @@ | ||
378 | <view class='mid_item_mid_left'> | 403 | <view class='mid_item_mid_left'> |
379 | <!-- 图片 --> | 404 | <!-- 图片 --> |
380 | <view class='mid_left_pic'> | 405 | <view class='mid_left_pic'> |
381 | - <image src='../../../img/goods_1.png'></image> | 406 | + <image src='{{item.thumb}}'></image> |
382 | </view> | 407 | </view> |
383 | <!-- 文字 --> | 408 | <!-- 文字 --> |
384 | <view class='mid_left_text text_b'> | 409 | <view class='mid_left_text text_b'> |
@@ -388,11 +413,11 @@ | @@ -388,11 +413,11 @@ | ||
388 | <!-- 中——右边 --> | 413 | <!-- 中——右边 --> |
389 | <view class='mid_item_mid_right'> | 414 | <view class='mid_item_mid_right'> |
390 | <view class='mid_right_top'> | 415 | <view class='mid_right_top'> |
391 | - <view class='right_top_lef'>纯进口有机菜花</view> | 416 | + <view class='right_top_lef'>{{item.shop_name}}</view> |
392 | <view class='right_top_rig'> | 417 | <view class='right_top_rig'> |
393 | <span class='price_small'>¥</span> | 418 | <span class='price_small'>¥</span> |
394 | - <span class='font_big'>52</span> | ||
395 | - <span class='font_small'>.00</span> | 419 | + <span class='font_big'>{{item.money_pay}}</span> |
420 | + <!-- <span class='font_small'>.00</span> --> | ||
396 | </view> | 421 | </view> |
397 | </view> | 422 | </view> |
398 | 423 | ||
@@ -402,7 +427,7 @@ | @@ -402,7 +427,7 @@ | ||
402 | 拼团成功 | 427 | 拼团成功 |
403 | </view> | 428 | </view> |
404 | <view class='mid_right_bottom_rig'> | 429 | <view class='mid_right_bottom_rig'> |
405 | - x4 | 430 | + {{item.goods_numb}} |
406 | </view> | 431 | </view> |
407 | </view> | 432 | </view> |
408 | 433 | ||
@@ -414,13 +439,13 @@ | @@ -414,13 +439,13 @@ | ||
414 | 439 | ||
415 | </view> | 440 | </view> |
416 | <view class='mid_item_bottom_rig'> | 441 | <view class='mid_item_bottom_rig'> |
417 | - <view class='bottom_btn_left' bindtap='btn_eOrder'>去评价</view> | 442 | + <view class='bottom_btn_left' bindtap='btn_eOrder' data-id="{{item.goods_id}}">去评价</view> |
418 | <view class='bottom_btn_right'>确认订单</view> | 443 | <view class='bottom_btn_right'>确认订单</view> |
419 | </view> | 444 | </view> |
420 | </view> | 445 | </view> |
421 | </view> | 446 | </view> |
422 | <!-- 已完成 --> | 447 | <!-- 已完成 --> |
423 | - <view class='mid_item' wx:if='{{currentTab == 6}}'> | 448 | + <view class='mid_item' wx:if='{{currentTab == 6}}' wx:for='{{orderList}}' wx:key=''> |
424 | <!-- 上 --> | 449 | <!-- 上 --> |
425 | <view class='mid_item_top'> | 450 | <view class='mid_item_top'> |
426 | <!-- 订单号 --> | 451 | <!-- 订单号 --> |
@@ -431,12 +456,12 @@ | @@ -431,12 +456,12 @@ | ||
431 | </view> | 456 | </view> |
432 | <!-- 订单号 --> | 457 | <!-- 订单号 --> |
433 | <view class='top_left_text'> | 458 | <view class='top_left_text'> |
434 | - 订单号:1003828041 | 459 | + 订单号:{{item.goods}} |
435 | </view> | 460 | </view> |
436 | </view> | 461 | </view> |
437 | <!-- 已完成 --> | 462 | <!-- 已完成 --> |
438 | <view class='mid_item_top_right color_text'> | 463 | <view class='mid_item_top_right color_text'> |
439 | - 已完成 | 464 | + {{item.goods_status}} |
440 | </view> | 465 | </view> |
441 | </view> | 466 | </view> |
442 | <!-- 中 --> | 467 | <!-- 中 --> |
@@ -444,7 +469,7 @@ | @@ -444,7 +469,7 @@ | ||
444 | <view class='mid_item_mid_left'> | 469 | <view class='mid_item_mid_left'> |
445 | <!-- 图片 --> | 470 | <!-- 图片 --> |
446 | <view class='mid_left_pic'> | 471 | <view class='mid_left_pic'> |
447 | - <image src='../../../img/goods_1.png'></image> | 472 | + <image src='{{item.thumb}}'></image> |
448 | </view> | 473 | </view> |
449 | <!-- 文字 --> | 474 | <!-- 文字 --> |
450 | <view class='mid_left_text text_b'> | 475 | <view class='mid_left_text text_b'> |
@@ -454,11 +479,11 @@ | @@ -454,11 +479,11 @@ | ||
454 | <!-- 中——右边 --> | 479 | <!-- 中——右边 --> |
455 | <view class='mid_item_mid_right'> | 480 | <view class='mid_item_mid_right'> |
456 | <view class='mid_right_top'> | 481 | <view class='mid_right_top'> |
457 | - <view class='right_top_lef'>纯进口有机菜花</view> | 482 | + <view class='right_top_lef'>{{item.shop_name}}</view> |
458 | <view class='right_top_rig'> | 483 | <view class='right_top_rig'> |
459 | <span class='price_small'>¥</span> | 484 | <span class='price_small'>¥</span> |
460 | - <span class='font_big'>52</span> | ||
461 | - <span class='font_small'>.00</span> | 485 | + <span class='font_big'>{{item.money_pay}}</span> |
486 | + <!-- <span class='font_small'>.00</span> --> | ||
462 | </view> | 487 | </view> |
463 | </view> | 488 | </view> |
464 | 489 | ||
@@ -468,7 +493,7 @@ | @@ -468,7 +493,7 @@ | ||
468 | 拼团成功 | 493 | 拼团成功 |
469 | </view> | 494 | </view> |
470 | <view class='mid_right_bottom_rig'> | 495 | <view class='mid_right_bottom_rig'> |
471 | - x4 | 496 | + {{item.goods_numb}} |
472 | </view> | 497 | </view> |
473 | </view> | 498 | </view> |
474 | 499 | ||
@@ -486,7 +511,7 @@ | @@ -486,7 +511,7 @@ | ||
486 | </view> | 511 | </view> |
487 | </view> | 512 | </view> |
488 | <!-- 已取消 --> | 513 | <!-- 已取消 --> |
489 | - <view class='mid_item' wx:if='{{currentTab == 7}}'> | 514 | + <view class='mid_item' wx:if='{{currentTab == 7}}' wx:for='{{orderList}}' wx:key=''> |
490 | <!-- 上 --> | 515 | <!-- 上 --> |
491 | <view class='mid_item_top'> | 516 | <view class='mid_item_top'> |
492 | <!-- 订单号 --> | 517 | <!-- 订单号 --> |
@@ -497,12 +522,12 @@ | @@ -497,12 +522,12 @@ | ||
497 | </view> | 522 | </view> |
498 | <!-- 订单号 --> | 523 | <!-- 订单号 --> |
499 | <view class='top_left_text'> | 524 | <view class='top_left_text'> |
500 | - 订单号:1003828041 | 525 | + 订单号:{{item.goods}} |
501 | </view> | 526 | </view> |
502 | </view> | 527 | </view> |
503 | <!-- 已取消 --> | 528 | <!-- 已取消 --> |
504 | <view class='mid_item_top_right color_red'> | 529 | <view class='mid_item_top_right color_red'> |
505 | - 已取消 | 530 | + {{item.goods_status}} |
506 | </view> | 531 | </view> |
507 | </view> | 532 | </view> |
508 | <!-- 中 --> | 533 | <!-- 中 --> |
@@ -510,7 +535,7 @@ | @@ -510,7 +535,7 @@ | ||
510 | <view class='mid_item_mid_left'> | 535 | <view class='mid_item_mid_left'> |
511 | <!-- 图片 --> | 536 | <!-- 图片 --> |
512 | <view class='mid_left_pic'> | 537 | <view class='mid_left_pic'> |
513 | - <image src='../../../img/goods_1.png'></image> | 538 | + <image src='{{item.thumb}}'></image> |
514 | </view> | 539 | </view> |
515 | <!-- 文字 --> | 540 | <!-- 文字 --> |
516 | <view class='mid_left_text text_b'> | 541 | <view class='mid_left_text text_b'> |
@@ -520,11 +545,11 @@ | @@ -520,11 +545,11 @@ | ||
520 | <!-- 中——右边 --> | 545 | <!-- 中——右边 --> |
521 | <view class='mid_item_mid_right'> | 546 | <view class='mid_item_mid_right'> |
522 | <view class='mid_right_top'> | 547 | <view class='mid_right_top'> |
523 | - <view class='right_top_lef'>纯进口有机菜花</view> | 548 | + <view class='right_top_lef'>{{item.shop_name}}</view> |
524 | <view class='right_top_rig'> | 549 | <view class='right_top_rig'> |
525 | <span class='price_small'>¥</span> | 550 | <span class='price_small'>¥</span> |
526 | - <span class='font_big'>52</span> | ||
527 | - <span class='font_small'>.00</span> | 551 | + <span class='font_big'>{{item.money_pay}}</span> |
552 | + <!-- <span class='font_small'>.00</span> --> | ||
528 | </view> | 553 | </view> |
529 | </view> | 554 | </view> |
530 | 555 | ||
@@ -534,7 +559,7 @@ | @@ -534,7 +559,7 @@ | ||
534 | 拼团成功 | 559 | 拼团成功 |
535 | </view> | 560 | </view> |
536 | <view class='mid_right_bottom_rig'> | 561 | <view class='mid_right_bottom_rig'> |
537 | - x4 | 562 | + {{item.goods_numb}} |
538 | </view> | 563 | </view> |
539 | </view> | 564 | </view> |
540 | 565 | ||
@@ -547,7 +572,7 @@ | @@ -547,7 +572,7 @@ | ||
547 | </view> | 572 | </view> |
548 | <view class='mid_item_bottom_rig'> | 573 | <view class='mid_item_bottom_rig'> |
549 | <view></view> | 574 | <view></view> |
550 | - <view class='bottom_btn_delete'>删除</view> | 575 | + <view class='bottom_btn_delete' bindtap='toDelect'>删除</view> |
551 | </view> | 576 | </view> |
552 | </view> | 577 | </view> |
553 | </view> | 578 | </view> |
@@ -565,4 +590,15 @@ | @@ -565,4 +590,15 @@ | ||
565 | <view class='mask_mid_bottom_right' bindtap='toClose'>取消</view> | 590 | <view class='mask_mid_bottom_right' bindtap='toClose'>取消</view> |
566 | </view> | 591 | </view> |
567 | </view> | 592 | </view> |
593 | +</view> | ||
594 | + | ||
595 | +<!-- 删除订单弹层 --> | ||
596 | +<view class='mask' wx:if='{{delect_order}}'> | ||
597 | + <view class='mask_mid'> | ||
598 | + <view class='mask_mid_top'>您确定要删除吗?</view> | ||
599 | + <view class='mask_mid_bottom'> | ||
600 | + <view class='mask_mid_bottom_left'>确定</view> | ||
601 | + <view class='mask_mid_bottom_right' bindtap='toDelect_close'>取消</view> | ||
602 | + </view> | ||
603 | + </view> | ||
568 | </view> | 604 | </view> |
@@ -307,6 +307,12 @@ page{ | @@ -307,6 +307,12 @@ page{ | ||
307 | opacity:1; | 307 | opacity:1; |
308 | 308 | ||
309 | } | 309 | } |
310 | +progress { | ||
311 | +width:370rpx; | ||
312 | +color:#b5de96; | ||
313 | +margin-top:24rpx; | ||
314 | + | ||
315 | +} | ||
310 | 316 | ||
311 | .mask{ | 317 | .mask{ |
312 | position: fixed; | 318 | position: fixed; |
@@ -354,3 +360,7 @@ page{ | @@ -354,3 +360,7 @@ page{ | ||
354 | text-align: center; | 360 | text-align: center; |
355 | background: #EBEBEB; | 361 | background: #EBEBEB; |
356 | } | 362 | } |
363 | +.nodata{ | ||
364 | + margin-top: 20rpx; | ||
365 | + font-size: 30rpx; | ||
366 | +} |
-
请 注册 或 登录 后发表评论