Commit 6539c9b3a458c53aa58e591e97cf88831ddd3e69

Authored by yvan.ni
1 parent 7f73d341

购物车批量删除的接口联通, 我的订单界面的完成

pages/cart/cart/cart.js
@@ -20,6 +20,7 @@ Page({ @@ -20,6 +20,7 @@ Page({
20 is_has_flash:0, //是否又秒杀活动 20 is_has_flash:0, //是否又秒杀活动
21 is_edit:0, //是否编辑 21 is_edit:0, //是否编辑
22 is_load:0, //是否已加载 22 is_load:0, //是否已加载
  23 + up_dating:0 //更新中
23 }, 24 },
24 onLoad: function() { 25 onLoad: function() {
25 wx.setNavigationBarTitle({title: "购物车", }) 26 wx.setNavigationBarTitle({title: "购物车", })
@@ -172,6 +173,10 @@ Page({ @@ -172,6 +173,10 @@ Page({
172 173
173 //-------------加数量--------------------- 174 //-------------加数量---------------------
174 addNum: function(t) { 175 addNum: function(t) {
  176 +
  177 + if(this.data.up_dating==1) return false;
  178 + this.data.up_dating=1;
  179 +
175 var a = t.currentTarget.dataset.item; 180 var a = t.currentTarget.dataset.item;
176 var b = t.currentTarget.dataset.pitems; 181 var b = t.currentTarget.dataset.pitems;
177 a = this.data.requestData[b].goods[a]; 182 a = this.data.requestData[b].goods[a];
@@ -185,6 +190,11 @@ Page({ @@ -185,6 +190,11 @@ Page({
185 }; 190 };
186 isShowLoading: 0; 191 isShowLoading: 0;
187 this.postCardList(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems); 192 this.postCardList(e, t.currentTarget.dataset.item, t.currentTarget.dataset.pitems);
  193 + }else{
  194 + wx.showModal({
  195 + title: '提示',
  196 + content: '购买的数量不能超出库存数量',
  197 + });
188 } 198 }
189 }, 199 },
190 //-------------减数量--------------------- 200 //-------------减数量---------------------
@@ -390,6 +400,7 @@ Page({ @@ -390,6 +400,7 @@ Page({
390 var goodsinfo = e.data.requestData[pitem].goods[item]; 400 var goodsinfo = e.data.requestData[pitem].goods[item];
391 var promgoodsbuynum = 0; 401 var promgoodsbuynum = 0;
392 var goodsbuynum = 0; 402 var goodsbuynum = 0;
  403 +
393 //--要获得商品,该用户买了多少件,同步应用-- 404 //--要获得商品,该用户买了多少件,同步应用--
394 await getApp().request.promiseGet("/api/weshop/ordergoods/getUserBuyGoodsNum", { 405 await getApp().request.promiseGet("/api/weshop/ordergoods/getUserBuyGoodsNum", {
395 data: { 406 data: {
@@ -492,8 +503,10 @@ Page({ @@ -492,8 +503,10 @@ Page({
492 var e = this; 503 var e = this;
493 getApp().request.put("/api/weshop/cart/update", { 504 getApp().request.put("/api/weshop/cart/update", {
494 data: t, 505 data: t,
  506 + isShowLoading:0,
495 success: function(ee) { 507 success: function(ee) {
496 var txt = "requestData[" + pitem + "].goods[" + item + "].goods_num"; 508 var txt = "requestData[" + pitem + "].goods[" + item + "].goods_num";
  509 + e.data.up_dating=0
497 e.setData({ 510 e.setData({
498 [txt]: t.goods_num, 511 [txt]: t.goods_num,
499 }); 512 });
@@ -725,25 +738,19 @@ Page({ @@ -725,25 +738,19 @@ Page({
725 var i_arr = this.data.requestData[i].goods; 738 var i_arr = this.data.requestData[i].goods;
726 for (var j = 0; j < i_arr.length; j++) { 739 for (var j = 0; j < i_arr.length; j++) {
727 if (i_arr[j].selected) { 740 if (i_arr[j].selected) {
728 - glist += i_arr[j].i_arr[j].id + ","; 741 + glist += i_arr[j].id + ",";
729 ab = 1; 742 ab = 1;
730 } 743 }
731 } 744 }
732 } 745 }
733 746
734 - if (ab == 0) {  
735 - t.my_warnning("未选择商品", 0, th);return false;  
736 - }  
737 - 747 + if (ab == 0) { t.my_warnning("未选择商品", 0, th);return false; }
738 glist = glist.substring(0, glist.length - 1); 748 glist = glist.substring(0, glist.length - 1);
739 //要删除购物车中的商品 749 //要删除购物车中的商品
740 - var url = '/api/weshop/cart/del/' + oo.stoid + '/' + glist; 750 + var url = '/api/weshop/cart/delIds/' + oo.stoid + '/' +user_id+"/"+ glist;
741 getApp().request.delete(url, { 751 getApp().request.delete(url, {
742 - success: function(t) {  
743 - th.getCardList();  
744 - } 752 + success: function(t) { th.getCardList();}
745 }); 753 });
746 -  
747 } 754 }
748 755
749 }); 756 });
750 \ No newline at end of file 757 \ No newline at end of file
pages/cart/cart/cart.wxml
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 checked="{{checkAllToggle||item.selected}}" data-pitems="{{pidx}}"></radio> 24 checked="{{checkAllToggle||item.selected}}" data-pitems="{{pidx}}"></radio>
25 <view class="flex-center"> 25 <view class="flex-center">
26 <image src="{{iurl}}miniapp/images/stores/store.png"></image> 26 <image src="{{iurl}}miniapp/images/stores/store.png"></image>
27 - <view class="shmd fs28" >{{item.pname}}</view> 27 + <view class="shmd fs30" >{{item.pname}}</view>
28 </view> 28 </view>
29 </view> 29 </view>
30 <view class="order-item padding" data-item="{{idx}}" wx:for="{{item.goods}}" wx:for-item="items" wx:for-index="idx" wx:key="{{index}}"> 30 <view class="order-item padding" data-item="{{idx}}" wx:for="{{item.goods}}" wx:for-item="items" wx:for-index="idx" wx:key="{{index}}">
@@ -39,11 +39,11 @@ @@ -39,11 +39,11 @@
39 </navigator> 39 </navigator>
40 <view class="goods-cont"> 40 <view class="goods-cont">
41 <view class="goods-name"> 41 <view class="goods-name">
42 - <navigator class="ellipsis-2 fs24" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}">{{items.goods_name}}</navigator> 42 + <navigator class="ellipsis-2 fs30" url="/pages/goods/goodsInfo/goodsInfo?goods_id={{items.goods_id}}">{{items.goods_name}}</navigator>
43 43
44 - <view class="Specifications flex-center" wx:if="{{items.goods_color || items.goods_spec}}"> 44 + <view class="Specifications flex-center ellipsis-1" wx:if="{{items.goods_color || items.goods_spec}}">
45 {{items.goods_color}}{{items.goods_color?"/":''}}{{items.goods_spec}}</view> 45 {{items.goods_color}}{{items.goods_color?"/":''}}{{items.goods_spec}}</view>
46 - <view class="Specifications flex-center" wx:else>规格1</view> 46 + <view class="Specifications flex-center ellipsis-1" wx:else>规格1</view>
47 </view> 47 </view>
48 48
49 <view class="flex alend jc_sb"> 49 <view class="flex alend jc_sb">
pages/cart/cart/cart.wxss
@@ -202,13 +202,9 @@ radio { @@ -202,13 +202,9 @@ radio {
202 margin-top: 26rpx; 202 margin-top: 26rpx;
203 } 203 }
204 204
205 -.shmd {  
206 - margin-left: 5rpx;  
207 -} 205 +.shmd { margin-left: 5rpx;}
208 206
209 -.store {  
210 - border-top: 7rpx solid rgb(245, 245, 245);  
211 -} 207 +.store{ border-top: 7rpx solid rgb(245, 245, 245);}
212 208
213 .login-in .Storenum { 209 .login-in .Storenum {
214 height: 80rpx; 210 height: 80rpx;
@@ -231,7 +227,7 @@ radio { @@ -231,7 +227,7 @@ radio {
231 .Specifications { 227 .Specifications {
232 padding: 3rpx 5rpx; 228 padding: 3rpx 5rpx;
233 margin-top: 8rpx; 229 margin-top: 8rpx;
234 - font-size: 20rpx; 230 + font-size: 22rpx;
235 max-width: 105rpx; 231 max-width: 105rpx;
236 height: 30rpx; 232 height: 30rpx;
237 line-height: 29rpx; 233 line-height: 29rpx;
pages/user/order_list/order_list.js
1 var t = function(t) { 1 var t = function(t) {
2 return t && t.__esModule ? t : { 2 return t && t.__esModule ? t : {
3 - default: t 3 + default: t
4 }; 4 };
5 -}(require("../../../utils/LoadMore.js")), e = getApp(),os=e.globalData.setting,oo=e.globalData,  
6 - r = e.request,rq=r, a = require("../../../utils/common.js"), s = new t.default(); 5 + }(require("../../../utils/LoadMore.js")),
  6 + e = getApp(),
  7 + os = e.globalData.setting,
  8 + oo = e.globalData,
  9 + r = e.request,
  10 + rq = r,
  11 + a = require("../../../utils/common.js"),
  12 + s = new t.default();
7 var regeneratorRuntime = require('../../../utils/runtime.js'); 13 var regeneratorRuntime = require('../../../utils/runtime.js');
8 14
9 Page({ 15 Page({
10 - data: {  
11 - url: e.globalData.setting.url,  
12 - resourceUrl: e.globalData.setting.imghost,  
13 - iurl: e.globalData.setting.imghost,  
14 - categories: [ {  
15 - name: "全部订单",id: 0  
16 - }, {  
17 - name: "待付款",id: 1  
18 - }, {  
19 - name: "待发货",id: 2  
20 - }, {  
21 - name: "待收货",id: 3  
22 - }, {  
23 - name: "待评价",id: 4  
24 - } ],  
25 - activeCategoryId: 0,  
26 - orderList: null,  
27 - currentPage: 1, 16 + data: {
  17 + url: e.globalData.setting.url,
  18 + resourceUrl: e.globalData.setting.imghost,
  19 + iurl: e.globalData.setting.imghost,
  20 + categories: [{
  21 + name: "全部订单",
  22 + id: 0
  23 + }, {
  24 + name: "待付款",
  25 + id: 1
  26 + }, {
  27 + name: "待发货",
  28 + id: 2
  29 + }, {
  30 + name: "待收货",
  31 + id: 3
  32 + }, {
  33 + name: "待评价",
  34 + id: 4
  35 + }],
  36 + activeCategoryId: 0,
  37 + orderList: null,
  38 + currentPage: 1,
28 39
29 - //已经读取过接口  
30 - is_get:0,  
31 - },  
32 - onLoad: function(t) {  
33 - //var e = void 0 === t.type ? this.data.activeCategoryId : t.type;  
34 - if(t.type!=undefined) this.setData({activeCategoryId:t.type})  
35 - s.init(this, "", "orderList");  
36 - //this.requestOrderList(e), wx.removeStorageSync("order:order_list:update");  
37 - },  
38 - onShow: function() {  
39 - //wx.getStorageSync("order:order_list:update") && (wx.setStorageSync("order:order_list:update", !1),  
40 - this.resetData(), this.requestOrderList(this.data.activeCategoryId);  
41 - },  
42 - changeTab: function(t) {  
43 - this.resetData(), this.requestOrderList(t.currentTarget.id);  
44 - },  
45 - resetData: function() {  
46 - s.resetConfig(), this.data.orderList = null, this.data.currentPage = 1;  
47 - },  
48 -  
49 - /*---------获取订单列表--------*/  
50 - requestOrderList: function(t) {  
51 - var rd=Math.random()*100;  
52 - var e = this,th=e, r = e.data.url + "/api/weshop/order/page?rd="+rd, a = "";  
53 - switch(t){  
54 - case "1":  
55 - r += "&wait_status=0"; break;  
56 - case "2":  
57 - r += "&wait_status=1"; break;  
58 - case "3":  
59 - r += "&wait_status=2";break;  
60 - case "4":  
61 - r +="&order_status=2"; break;  
62 - }  
63 - this.setData({ activeCategoryId: t }); r = r + "&page=" + e.data.currentPage;  
64 - s.request(r, function(t) { 40 + //已经读取过接口
  41 + is_get: 0,
  42 + conf: null,
  43 + iscodeall: null
  44 + },
  45 + onLoad: function(t) {
  46 + var th = this;
  47 + if (t.type != undefined) this.setData({
  48 + activeCategoryId: t.type
  49 + })
  50 + s.init(this, "", "orderList");
  51 + getApp().getConfig2(function(e) {
  52 + th.setData({
  53 + conf: e
  54 + });
  55 + })
  56 + },
  57 + onShow: function() {
  58 + this.resetData(), this.requestOrderList(this.data.activeCategoryId);
  59 + },
  60 + changeTab: function(t) {
  61 + if (this.data.activeCategoryId == t.currentTarget.id) return false;
  62 + this.resetData(), this.requestOrderList(t.currentTarget.id);
  63 + },
  64 + resetData: function() {
  65 + s.resetConfig(), this.data.orderList = null, this.data.currentPage = 1;
  66 + },
65 67
66 - th.setData({is_get:1});  
67 - var data=e.data.orderList;  
68 - data.forEach(async function (item,ind){  
69 - var tt =null;  
70 - await getApp().request.promiseGet('/api/weshop/ordergoods/list',{  
71 - data: {order_id: item.order_id, store_id:os.stoid,pageSize:600},  
72 - }).then(res=>{  
73 - tt=res;  
74 - }) 68 + /*---------获取订单列表--------*/
  69 + requestOrderList: function (t) {
  70 + var rd = Math.random() * 100;
  71 + var e = this, th = e, r = e.data.url + "/api/weshop/order/page?rd=" + rd, a = "";
  72 + switch (t) {
  73 + case "1":
  74 + r += "&wait_status=0"; break;
  75 + case "2":
  76 + r += "&wait_status=1"; break;
  77 + case "3":
  78 + r += "&wait_status=2"; break;
  79 + case "4":
  80 + r += "&order_status=2"; break;
  81 + }
75 82
76 - //------------对比一下有没有退款记录------------  
77 - await getApp().request.promiseGet("/api/weshop/order/returngoods/page",{  
78 - data: { order_id: item.order_id, store_id: os.stoid,  
79 - user_id:oo.user_id, pageSize: 20 }  
80 - }).then(rs=>{  
81 - var ttd=rs;  
82 - //--看一下订单的总数量--  
83 - var gtype_num = tt.data.data.total;  
84 - if(ttd.data.data.pageData == undefined) return false;  
85 - var goodslist = tt.data.data.pageData;  
86 - //----没有相关的退款记录----  
87 - if (ttd.data.data.total==0){  
88 - data[ind]['is_all_return'] = 0;  
89 - goodslist.forEach(function (ee, ii) {  
90 - if (data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1 && gtype_num>1)  
91 - goodslist[ii]['return_btn']=1;  
92 - });  
93 - }else{  
94 - //--------整单退--------  
95 - if (ttd.data.data.pageData[0]['goods_id_list'] != null  
96 - && ttd.data.data.pageData[0]['goods_id_list'] != ''){  
97 - var eea = ttd.data.data.pageData[0];  
98 - //1.退款正在进行中,  
99 - //2.退款被拒绝就要显示可以退款  
100 - //3.退款已经完成  
101 - data[ind]['is_all_return']=1;  
102 - data[ind]['is_all_return_status'] = ttd.data.data.pageData[0].status; 83 + this.setData({ activeCategoryId: t }); r = r + "&page=" + e.data.currentPage;
  84 + s.request(r, function (t) {
103 85
104 - if (data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1) {  
105 - switch (eea.status) {  
106 - case 0:  
107 - case 1:  
108 - data[ind]['return_btn'] = 2; break;  
109 - case 2:  
110 - data[ind]['return_btn'] = 4; break;  
111 - case 3:  
112 - data[ind]['return_btn'] = 3; break;  
113 - default:  
114 - data[ind]['return_btn'] = 0;  
115 - }  
116 - }  
117 - }else{  
118 - //1.退款正在进行中,  
119 - //2.退款被拒绝就要显示可以退款  
120 - //3.退款已经完成  
121 - data[ind]['is_all_return'] = 0;  
122 - var rt_ok_num=0; 86 + th.setData({ is_get: 1 });
  87 + var data = e.data.orderList;
  88 + data.forEach(async function (item, ind) {
  89 + var tt = null;
  90 + await getApp().request.promiseGet('/api/weshop/ordergoods/list', {
  91 + data: { order_id: item.order_id, store_id: os.stoid, pageSize: 600 },
  92 + }).then(res => {
  93 + tt = res;
  94 + })
123 95
124 - if(data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1) {  
125 - goodslist.forEach(function (eeb, iii) {  
126 - goodslist[iii]['return_btn'] = 1;  
127 - ttd.data.data.pageData.forEach(function (eea, ii) {  
128 - var st = eea.status;  
129 - if (eea.goods_id == eeb.goods_id){  
130 - data[ind]['has_rt'] = 1; //有部分退  
131 - switch (eea.status){  
132 - case 0:  
133 - case 1://退款处理中  
134 - goodslist[iii]['return_btn'] = 2; break;  
135 - case 2://退款完成  
136 - goodslist[iii]['return_btn'] = 4; rt_ok_num++; break;  
137 - case 3://已拒绝,重新退款  
138 - goodslist[iii]['return_btn'] = 3; break;  
139 - default:  
140 - goodslist[iii]['return_btn'] = 1; //申请退款  
141 - }  
142 - return;  
143 - }  
144 - });  
145 - });  
146 - }  
147 - }  
148 - } 96 + //------------对比一下有没有退款记录------------
  97 + await getApp().request.promiseGet("/api/weshop/order/returngoods/page", {
  98 + data: {
  99 + order_id: item.order_id, store_id: os.stoid,
  100 + user_id: oo.user_id, pageSize: 20
  101 + }
  102 + }).then(rs => {
  103 + var ttd = rs;
  104 + //--看一下订单的总数量--
  105 + var gtype_num = tt.data.data.total;
  106 + if (ttd.data.data.pageData == undefined) return false;
  107 + var goodslist = tt.data.data.pageData;
149 108
150 - //--如果是全部退款,也就可以删除--  
151 - if(rt_ok_num==goodslist.length){  
152 - data[ind]['is_all_return_status']=2;  
153 - }  
154 -  
155 - data[ind]['order_goods'] = goodslist;  
156 - var g_num = 0;  
157 - goodslist.forEach(function (ee, ii) {  
158 - if(ee.return_btn!=4)  
159 - g_num += ee.goods_num;  
160 - });  
161 - data[ind]['g_num'] = g_num;  
162 - })  
163 - th.setData({ orderList: data, }); 109 + //----没有相关的退款记录----
  110 + if (ttd.data.data.total == 0) {
  111 + data[ind]['is_all_return'] = 0;
  112 + goodslist.forEach(function (ee, ii) {
  113 + if (data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1 && gtype_num > 1) {
  114 + item.goodslist = goodslist;
  115 + if (th.check_for_return_btn(item)) {
  116 + goodslist[ii]['return_btn'] = 1;
  117 + }
  118 + }
164 119
165 }); 120 });
166 - e.data.currentPage++,  
167 - /*---  
168 - t.data.result.forEach(function(t, e, r) {  
169 - t.goods_sum = t.order_goods.reduce(function(t, e) {  
170 - return t + e.goods_num;  
171 - }, 0);  
172 - }),---*/  
173 - wx.stopPullDownRefresh();  
174 - },null,{store_id:os.stoid,user_id:oo.user_id});  
175 - },  
176 - onReachBottom: function() {  
177 - s.canloadMore() && this.requestOrderList(this.data.activeCategoryId);  
178 - },  
179 - onPullDownRefresh: function(t) {  
180 - this.resetData(), this.requestOrderList(this.data.activeCategoryId);  
181 - }, 121 + } else {
  122 + //--------整单退--------
  123 + if (ttd.data.data.pageData[0]['goods_id_list'] != null
  124 + && ttd.data.data.pageData[0]['goods_id_list'] != '') {
  125 + var eea = ttd.data.data.pageData[0];
  126 + //1.退款正在进行中,
  127 + //2.退款被拒绝就要显示可以退款
  128 + //3.退款已经完成
  129 + data[ind]['is_all_return'] = 1;
  130 + data[ind]['is_all_return_status'] = ttd.data.data.pageData[0].status;
182 131
183 - /*-----------取消订单-----------*/  
184 - cancelOrder: function(t) {  
185 - var e = this, a = t.currentTarget.dataset.id,th=this;  
186 - var is_zsorder= parseFloat(t.currentTarget.dataset.zsorder);  
187 - var index=t.currentTarget.dataset.orderindex;  
188 - var order=th.data.orderList[index];  
189 - var is_skill=0;  
190 - var order_goods=order.order_goods;  
191 - //--判断是不是秒杀--  
192 - order_goods.forEach(function (val,ind) {  
193 - if(val.prom_type==1){  
194 - is_skill=1; return false;  
195 - }  
196 - }) 132 + if (data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1) {
  133 + switch (eea.status) {
  134 + case 0:
  135 + case 1:
  136 + data[ind]['return_btn'] = 2; break;
  137 + case 2:
  138 + data[ind]['return_btn'] = 4; break;
  139 + case 3:
  140 + data[ind]['return_btn'] = 3; break;
  141 + default:
  142 + data[ind]['return_btn'] = 0;
  143 + }
  144 + }
  145 + } else {
  146 + //1.退款正在进行中,
  147 + //2.退款被拒绝就要显示可以退款
  148 + //3.退款已经完成
  149 + data[ind]['is_all_return'] = 0;
  150 + var rt_ok_num = 0;
197 151
198 - wx.showModal({  
199 - title: "是否取消订单?",  
200 - success: function(t) {  
201 - //如果是秒杀和拼单的商品,取消订单要返回redis,并取消订单  
202 - if(t.confirm){  
203 - //if(is_skill==1 || is_zsorder>=2){  
204 - getApp().request.delete("/api/weshop/order/cancelTeamOrder/"+os.stoid+"/"+a,{  
205 - data:{},  
206 - success: function(t) {  
207 - if(t.data.code==0)  
208 - {  
209 - 0 == e.data.activeCategoryId ?  
210 - (e.resetData(), e.requestOrderList(e.data.activeCategoryId)) : e.deleteOrderData(a);  
211 - }  
212 - else  
213 - {  
214 - getApp().confirmBox(e.data.msg);  
215 - }  
216 - },  
217 - })  
218 - } 152 + //if(data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1) {
  153 + goodslist.forEach(function (eeb, iii) {
  154 + if (data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1)
  155 + goodslist[iii]['return_btn'] = 1; //申请退款
  156 + ttd.data.data.pageData.forEach(function (eea, ii) {
  157 + var st = eea.status;
  158 + if (eea.goods_id == eeb.goods_id) {
  159 + switch (eea.status) {
  160 + case 0:
  161 + case 1://退款处理中
  162 + data[ind]['has_rt'] = 1; //有部分退
  163 + goodslist[iii]['return_btn'] = 2; break;
  164 + case 2://退款完成
  165 + goodslist[iii]['return_btn'] = 4; rt_ok_num++; break;
  166 + case 3://已拒绝,重新退款
  167 + goodslist[iii]['return_btn'] = 3; break;
  168 + default:
  169 + if (data[ind]['order_status'] == 1 && data[ind]['pay_status'] == 1)
  170 + goodslist[iii]['return_btn'] = 1; //申请退款
  171 + }
  172 + return;
  173 + }
  174 + });
  175 + });
  176 + //}
219 } 177 }
220 - });  
221 - },  
222 -  
223 - /*-----------确认收货-----------*/  
224 - confirmOrder: function(t) {  
225 - var e = this, a = t.currentTarget.dataset.id;  
226 - var is_zsorder=t.currentTarget.dataset.zsorder; 178 + }
227 179
228 - console.log("confirmOrder");  
229 - console.log(is_zsorder); 180 + //--如果是全部退款,也就可以删除--
  181 + if (rt_ok_num == goodslist.length) {
  182 + data[ind]['is_all_return_status'] = 2;
  183 + }
230 184
231 - wx.showModal({  
232 - title: "是否确认收货?", 185 + data[ind]['order_goods'] = goodslist;
  186 + var g_num = 0;
  187 + goodslist.forEach(function (ee, ii) {
  188 + if (ee.return_btn != 4)
  189 + g_num += ee.goods_num;
  190 + });
  191 + data[ind]['g_num'] = g_num;
  192 + })
  193 + th.setData({ orderList: data, });
  194 +
  195 + });
  196 + e.data.currentPage++ ,
  197 + wx.stopPullDownRefresh();
  198 + }, null, { store_id: os.stoid, user_id: oo.user_id });
  199 + },
  200 + //滑倒底部
  201 + onReachBottom: function() {
  202 + if (s.data.goodsLoadFinishFlag) {
  203 + this.setData({
  204 + iscodeall: 1
  205 + })
  206 + }
  207 + s.canloadMore() && this.requestOrderList(this.data.activeCategoryId);
  208 + },
  209 + onPullDownRefresh: function(t) {
  210 + this.resetData(), this.requestOrderList(this.data.activeCategoryId);
  211 + },
  212 +
  213 + /*-----------取消订单-----------*/
  214 + cancelOrder: function(t) {
  215 + var e = this,
  216 + a = t.currentTarget.dataset.id,
  217 + th = this;
  218 + var is_zsorder = parseFloat(t.currentTarget.dataset.zsorder);
  219 + var index = t.currentTarget.dataset.orderindex;
  220 + var order = th.data.orderList[index];
  221 + var is_skill = 0;
  222 + var order_goods = order.order_goods;
  223 + //--判断是不是秒杀--
  224 + order_goods.forEach(function(val, ind) {
  225 + if (val.prom_type == 1) {
  226 + is_skill = 1;
  227 + return false;
  228 + }
  229 + })
  230 +
  231 + wx.showModal({
  232 + title: "是否取消订单?",
  233 + success: function(t) {
  234 + //如果是秒杀和拼单的商品,取消订单要返回redis,并取消订单
  235 + if (t.confirm) {
  236 + //if(is_skill==1 || is_zsorder>=2){
  237 + getApp().request.delete("/api/weshop/order/cancelTeamOrder/" + os.stoid + "/" + a, {
  238 + data: {},
233 success: function(t) { 239 success: function(t) {
234 - t.confirm && rq.put("/api/weshop/order/updatebyId", {  
235 - data: {  
236 - order_id: a,order_status:2  
237 - },  
238 - success: function(t) {  
239 - e.deleteOrderData(a);  
240 - //如果是会员团订单  
241 - if(is_zsorder==3){  
242 - getApp().request.post("/api/weshop/order/vipTuanTebate/"+os.stoid+"/"+a,{  
243 - data:{}, success:function () { }})  
244 - }  
245 - }  
246 - });  
247 - }  
248 - });  
249 - }, 240 + if (t.data.code == 0) {
  241 + 0 == e.data.activeCategoryId ?
  242 + (e.resetData(), e.requestOrderList(e.data.activeCategoryId)) : e.deleteOrderData2(a);
  243 + } else {
  244 + getApp().confirmBox(e.data.msg);
  245 + }
  246 + },
  247 + })
  248 + }
  249 + }
  250 + });
  251 + },
250 252
251 - //-----删除订单-----  
252 - deleteOrderData: function(t) {  
253 - var th=this;  
254 - var order_id=t.currentTarget.dataset.order_id;  
255 - wx.showModal({  
256 - title: "是否删除订单?",  
257 - success: function(tt) {  
258 - tt.confirm && rq.put("/api/weshop/order/updatebyId", {  
259 - data: {  
260 - order_id: order_id, order_status: 5  
261 - },  
262 - success: function (t) {  
263 - for (var e = 0; e < th.data.orderList.length; e++) if (th.data.orderList[e].order_id == order_id) {  
264 - th.data.orderList.splice(e, 1), th.setData({  
265 - orderList: this.data.orderList  
266 - });  
267 - break;  
268 - }  
269 - }  
270 - }) 253 + /*-----------确认收货-----------*/
  254 + confirmOrder: function(t) {
  255 + var e = this,
  256 + a = t.currentTarget.dataset.id;
  257 + var is_zsorder = t.currentTarget.dataset.zsorder;
  258 + var th = this;
  259 +
  260 + wx.showModal({
  261 + title: "是否确认收货?",
  262 + success: function(t) {
  263 + t.confirm && rq.put("/api/weshop/order/updatebyId", {
  264 + data: {
  265 + order_id: a,
  266 + order_status: 2
  267 + },
  268 + success: function(t) {
  269 + e.deleteOrderData2(a);
  270 + //如果是会员团订单
  271 + if (is_zsorder == 3) {
  272 + getApp().request.post("/api/weshop/order/vipTuanTebate/" + os.stoid + "/" + a, {
  273 + data: {},
  274 + success: function() {}
  275 + })
271 } 276 }
  277 + }
272 }); 278 });
273 - }, 279 + }
  280 + });
  281 + },
274 282
275 - //---判断是不是有退款-----  
276 - checkReturnGoodsStatus: function(t) {  
277 - var e = t.currentTarget.dataset.recid;  
278 - var oid = t.currentTarget.dataset.oid;  
279 - r.get("/api/weshop/order/returngoods/page", {  
280 - data: {  
281 - goods_id: e,  
282 - order_id:oid,  
283 - store_id:os.stoid  
284 - },  
285 - success: function(t) {  
286 - if(t.data.code==0){  
287 - var r = t.data.data.total;  
288 - if (0 == r) return wx.navigateTo({  
289 - url: "/pages/user/return_goods/return_goods?rec_id=" + e + "&order_id=" + oid,  
290 - });  
291 - //--如果拒绝,就重新申请退款--  
292 - if (t.data.data.pageData[0].status==3){  
293 - return wx.navigateTo({  
294 - url: "/pages/user/return_goods/return_goods?rec_id=" + e + "&order_id=" + oid,  
295 - });  
296 - } 283 + //-----删除订单-----
  284 + deleteOrderData: function(t) {
  285 + var th = this;
  286 + var order_id = t.currentTarget.dataset.order_id;
  287 + wx.showModal({
  288 + title: "是否删除订单?",
  289 + success: function(tt) {
  290 + tt.confirm && rq.put("/api/weshop/order/updatebyId", {
  291 + data: {
  292 + order_id: order_id,
  293 + order_status: 5
  294 + },
  295 + success: function(t) {
  296 + for (var e = 0; e < th.data.orderList.length; e++)
  297 + if (th.data.orderList[e].order_id == order_id) {
  298 + th.data.orderList.splice(e, 1), th.setData({
  299 + orderList: th.data.orderList
  300 + });
  301 + break;
  302 + }
  303 + }
  304 + })
  305 + }
  306 + });
  307 + },
297 308
298 - wx.navigateTo({  
299 - url: "/pages/user/return_goods_info/return_goods_info?id=" + r  
300 - });  
301 - }  
302 - } 309 + deleteOrderData2: function(order_id) {
  310 + var th = this;
  311 + for (var e = 0; e < th.data.orderList.length; e++)
  312 + if (th.data.orderList[e].order_id == order_id) {
  313 + th.data.orderList.splice(e, 1), th.setData({
  314 + orderList: this.data.orderList
303 }); 315 });
304 - }, 316 + break;
  317 + }
  318 + },
305 319
306 - /*----------跳转支付-----------*/  
307 - jumpToCart4: function(t) {  
308 - var o_index=t.currentTarget.dataset.idx;  
309 - var e = this.data.orderList[t.currentTarget.dataset.idx];  
310 - var th=this; 320 + //---判断是不是有退款-----
  321 + checkReturnGoodsStatus: function(t) {
  322 + var e = t.currentTarget.dataset.recid;
  323 + var oid = t.currentTarget.dataset.oid;
  324 + r.get("/api/weshop/order/returngoods/page", {
  325 + data: {
  326 + goods_id: e,
  327 + order_id: oid,
  328 + store_id: os.stoid
  329 + },
  330 + success: function(t) {
  331 + if (t.data.code == 0) {
  332 + var r = t.data.data.total;
  333 + if (0 == r) return wx.navigateTo({
  334 + url: "/pages/user/return_goods/return_goods?rec_id=" + e + "&order_id=" + oid,
  335 + });
  336 + //--如果拒绝,就重新申请退款--
  337 + if (t.data.data.pageData[0].status == 3) {
  338 + return wx.navigateTo({
  339 + url: "/pages/user/return_goods/return_goods?rec_id=" + e + "&order_id=" + oid,
  340 + });
  341 + }
311 342
312 - console.log("jumpToCart4");  
313 - console.log(e); 343 + wx.navigateTo({
  344 + url: "/pages/user/return_goods_info/return_goods_info?id=" + r
  345 + });
  346 + }
  347 + }
  348 + });
  349 + },
314 350
315 - if(e.order_amount==0){  
316 - var dd = {  
317 - parent_sn: e.order_sn,  
318 - store_id: e.store_id,  
319 - type: 1,  
320 - };  
321 - getApp().request.post("/api/weshop/order/pay/createOrder", {  
322 - data: dd,  
323 - success: function (t) {  
324 - if(t.data.code==0){  
325 - th.onload();  
326 - }else{  
327 - getApp().confirmBox(t.data.msg+"请您取消该订单");  
328 - }  
329 - }  
330 - })  
331 - return false; 351 + /*----------跳转支付-----------*/
  352 + jumpToCart4: function(t) {
  353 + var o_index = t.currentTarget.dataset.idx;
  354 + var e = this.data.orderList[t.currentTarget.dataset.idx];
  355 + var th = this;
  356 +
  357 + console.log("jumpToCart4");
  358 + console.log(e);
  359 +
  360 + if (e.order_amount == 0) {
  361 + var dd = {
  362 + parent_sn: e.order_sn,
  363 + store_id: e.store_id,
  364 + type: 1,
  365 + };
  366 + getApp().request.post("/api/weshop/order/pay/createOrder", {
  367 + data: dd,
  368 + success: function(t) {
  369 + if (t.data.code == 0) {
  370 + th.onload();
  371 + } else {
  372 + getApp().confirmBox(t.data.msg + "请您取消该订单");
  373 + }
332 } 374 }
  375 + })
  376 + return false;
  377 + }
333 378
334 - a.jumpToCart4({  
335 - order_sn: e.order_sn,  
336 - order_amount: e.order_amount,  
337 - type:1//正常单  
338 - });  
339 - }, 379 + a.jumpToCart4({
  380 + order_sn: e.order_sn,
  381 + order_amount: e.order_amount,
  382 + type: 1 //正常单
  383 + });
  384 + },
340 385
341 - //------图片失败,默认图片---------  
342 - bind_bnerr: function (e) {  
343 - var _errImg = e.target.dataset.errorimg;  
344 - var _errObj = {};  
345 - _errObj[_errImg] = "public/images/default_goods_image_240.gif";  
346 - this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;  
347 - }, 386 + //------图片失败,默认图片---------
  387 + bind_bnerr: function(e) {
  388 + var _errImg = e.currentTarget.dataset.errorimg;
  389 + var _errObj = {};
  390 + _errObj[_errImg] = "public/images/default_goods_image_240.gif";
  391 + this.setData(_errObj) //注意这里的赋值方式,只是将数据列表中的此项图片路径值替换掉 ;
  392 + },
348 393
349 - //--------跳转到退款详情-----------  
350 - gotoreturn:function(t){  
351 - var e = t.currentTarget.dataset.recid;  
352 - var oid = t.currentTarget.dataset.oid;  
353 - var wh="";  
354 - if(e!=undefined && e!=null && e!=""){  
355 - wh="&goods_id="+e;  
356 - }  
357 - wx.navigateTo({  
358 - url: "/pages/user/return_goods_info/return_goods_info?order_id=" + oid+wh,  
359 - });  
360 - }, 394 + //--------跳转到退款详情-----------
  395 + gotoreturn: function(t) {
  396 + var e = t.currentTarget.dataset.recid;
  397 + var oid = t.currentTarget.dataset.oid;
  398 + var wh = "";
  399 + if (e != undefined && e != null && e != "") {
  400 + wh = "&goods_id=" + e;
  401 + }
  402 + wx.navigateTo({
  403 + url: "/pages/user/return_goods_info/return_goods_info?order_id=" + oid + wh,
  404 + });
  405 + },
361 406
362 - //-----支付尾款------  
363 - pay_wk:function (ee) {  
364 - console.log("pay_wk");  
365 - var order_id=ee.currentTarget.dataset.order_id;  
366 - wx.navigateTo({  
367 - url: "/pages/cart/cart_wk/cart_wk?order_id=" + order_id,  
368 - }); 407 + //-----支付尾款------
  408 + pay_wk: function(ee) {
  409 + console.log("pay_wk");
  410 + var order_id = ee.currentTarget.dataset.order_id;
  411 + wx.navigateTo({
  412 + url: "/pages/cart/cart_wk/cart_wk?order_id=" + order_id,
  413 + });
  414 +
  415 + },
369 416
370 - } 417 + //--判断是不是可以单个商品退--
  418 + check_for_return_btn: function(item) {
  419 + if (item.coupon_no) return false; //有用优惠券
  420 + if (item.order_prom_id) return false; //有订单优惠
  421 + if (item.order_status >= 2) return false; //订单状态>2
  422 + var istrue = true;
  423 + //----判断是不是有优惠活动和赠送商品----
  424 + for (var g in item.goodslist) {
  425 + var g_item = item.goodslist[g];
  426 + if ((g_item.prom_type == 3 && g_item.discount_amount > 0) ||
  427 + (g_item.prom_type == 3 && g_item.goods_price <= 0)
  428 + ) {
  429 + istrue = false;
  430 + break
  431 + }
  432 + if (g_item.prom_type == 5) {
  433 + istrue = false;
  434 + break
  435 + }
  436 + }
  437 + if (!istrue) return false;
  438 + var conf = this.data.conf;
  439 + //判断是不是原路退回
  440 + if (conf.refund_type == 1) return true;
  441 + else {
  442 + if (item.order_amount == 0 || item.user_money == 0) return true;
  443 + }
  444 + return false;
  445 + },
  446 + //跳到首页
  447 + goto: function(e) {
  448 + wx.switchTab({
  449 + url: '/pages/index/index/index',
  450 + })
  451 + },
  452 +
  453 + //显示核销码
  454 + code_show: function(e) {
  455 + var th = this;
  456 + //--获取成功的时候--
  457 + var no = e.currentTarget.dataset.order_sn;
  458 + var qc_com = th.selectComponent("#qc_com"); //组件的id
  459 + var obj = {
  460 + val: no,
  461 + content: "请将二维码展示给核销员,收货更快捷"
  462 + };
  463 + qc_com.open(obj)
  464 + }
371 }); 465 });
372 \ No newline at end of file 466 \ No newline at end of file
pages/user/order_list/order_list.json
1 { 1 {
2 - "navigationBarTitleText": "我的订单" 2 + "navigationBarTitleText": "我的订单",
  3 + "usingComponents": {
  4 + "qr_code": "/components/qr_code/qr_code"
  5 + }
3 } 6 }
4 \ No newline at end of file 7 \ No newline at end of file
pages/user/order_list/order_list.wxml
1 <wxs module="filters" src="../../../utils/filter.wxs"></wxs> 1 <wxs module="filters" src="../../../utils/filter.wxs"></wxs>
2 <view class="container"> 2 <view class="container">
3 - <view class="type-navbar">  
4 - <view class="type-box" wx:for="{{categories}}" wx:key="{{index}}">  
5 - <view bindtap="changeTab" class="type-navbar-item {{activeCategoryId==item.id?'type-item-on':''}}" id="{{item.id}}">  
6 - {{item.name}}  
7 - </view>  
8 - </view> 3 + <view class="type-navbar padding fs30">
  4 + <view class="type-box flex-center" wx:for="{{categories}}" wx:key="{{index}}">
  5 + <view id="{{item.id}}" bindtap="changeTab" class="type-navbar-item {{activeCategoryId==item.id?'type-item-on':''}}">
  6 + {{item.name}}
  7 + </view>
9 </view> 8 </view>
10 - <view class="goods-container">  
11 - <view class="goods-box" data-id="{{item.order_id}}" wx:for="{{orderList}}" wx:key="{{index}}">  
12 - <navigator url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}">  
13 - <view class="goods-title">  
14 - <view class="order-number">订单编号:{{item.order_sn}}</view>  
15 - <view class="pay-status">{{item.order_status_detail}}</view>  
16 - </view>  
17 - </navigator> 9 + </view>
  10 +</view>
  11 +<view class="stay_evaluate" data-id="{{item.order_id}}" wx:for="{{orderList}}" wx:key="{{index}}">
18 12
19 - <view class="goods-cont" wx:for="{{item.order_goods}}" wx:for-item="goods"  
20 - wx:if="{{goods.return_btn!=4}}"  
21 - wx:for-index="pinx"  
22 - wx:key="{{index}}">  
23 - <navigator class="img-box" url="/pages/user/order_detail/order_detail?order_id={{goods.order_id}}">  
24 - <image class="wh100" src="{{resourceUrl+goods.original_img}}" binderror="bind_bnerr" lazy-load="true"  
25 - data-errorimg="orderList[{{index}}].order_goods[{{pinx}}].original_img"></image>  
26 - </navigator>  
27 - <navigator class="goods-mes" url="/pages/user/order_detail/order_detail?order_id={{goods.order_id}}">  
28 - <view class="goods-name" >{{goods.goods_name}}</view>  
29 - <view class="goods-name" style="color:#999">{{goods.goods_color}} {{goods.goods_spec}}</view>  
30 - <view class="goods-price">¥ {{goods.member_goods_price}}</view>  
31 - <view class="goods-num">数量 {{goods.goods_num}}</view>  
32 - </navigator> 13 + <!-- 商品编号和状态 -->
  14 + <view class="Commodity_number flex-vertical-between fs30 padding border_bottom">
  15 + <!--商品编号 -->
  16 + <text selectable='true'>订单编号:{{item.order_sn}}</text>
  17 + <!-- 商品评价状态 -->
  18 + <view class="flex-center xc-wc">
  19 + <!-- 订单状态 -->
  20 + <view wx:if="{{item.pt_status==1}}">组团中</view>
  21 + <view wx:if="{{(item.order_status==0&&item.pay_status==0)}}">未支付</view>
  22 + <block wx:if="{{!(item.is_all_return_status==0 || item.is_all_return_status==1)}}">
  23 + <view wx:if="{{(item.order_status==1&&item.pay_status==1&&item.shipping_status==0)}}">待发货</view>
  24 + <view wx:if="{{(item.order_status==1&&item.pay_status==1&&item.shipping_status==1)}}">待收货</view>
  25 + <view wx:if="{{(item.order_status==2)}}">待评价</view>
  26 + <view wx:if="{{item.order_status==4}}">已评价</view>
  27 + <view wx:if="{{item.order_status==3}}">已取消</view>
  28 + <view wx:if="{{item.pt_status==2 && item.pt_tail_money>0}}">待支付尾款</view>
  29 + <view wx:if="{{item.order_status==6}}">退款成功</view>
  30 + <view wx:if="{{item.pt_status==6}}">支付尾款失败</view>
  31 + </block>
  32 + <block wx:else>退款中</block>
  33 + <view class="flex" wx:if="{{(item.order_status==0&&item.pay_status==0)}}">
  34 + <view class="lin"></view>
  35 + <image src="{{iurl}}miniapp/images/trash.png" bindtap="deleteOrderData" data-order_id="{{item.order_id}}"></image>
  36 + </view>
  37 + </view>
  38 + </view>
  39 +
  40 + <!-- 商品详情集合 -->
  41 + <view class="detail_commoditys">
  42 + <!-- 单个商品 -->
  43 + <view>
  44 + <navigator class="detail_commodity flex-vertical padding border_bottom" wx:for="{{item.order_goods}}" wx:for-item="goods" wx:if="{{goods.return_btn!=4}}" wx:for-index="pinx" url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}">
  45 + <!-- 商品图片 -->
  46 + <navigator class="rel">
  47 + <image src="{{resourceUrl+goods.original_img}}" binderror="bind_bnerr" lazy-load="{{true}}" data-errorimg="orderList[{{index}}].order_goods[{{pinx}}].original_img"></image>
  48 + <view class="abs flex-center fs26" wx:if="{{goods.prom_type==1}}">秒杀</view>
  49 + <view class="abs flex-center fs26" wx:if="{{goods.prom_type==6}}">团购</view>
  50 + </navigator>
  51 + <!-- 商品内容 -->
  52 + <view class="Commodity_content">
  53 + <view class="Commodity_goods">
  54 + <!-- 商品名称 -->
  55 + <view class="goods_name ellipsis-2 fs30">{{goods.goods_name}}</view>
  56 + <view class="flex-space-between">
  57 + <!-- 商品规格 -->
  58 + <view class="Commodity_spec fs28 flex-center">
33 59
  60 + <text class="ellipsis-1">{{goods.goods_color.length>1 && goods.goods_spec.length>1?goods.goods_color+"/"+goods.goods_spec:goods.goods_color.length>1 || goods.goods_spec.length>1?goods.goods_color+goods.goods_spec:'规格1'}}</text>
  61 + </view>
  62 + <view class="flex-level-right fs26 refund">
34 <!-- 不是整单退的时候 --> 63 <!-- 不是整单退的时候 -->
35 <block wx:if="{{item.is_all_return!=1}}"> 64 <block wx:if="{{item.is_all_return!=1}}">
36 - <view bindtap="checkReturnGoodsStatus" class="return-btn" data-oid="{{goods.order_id}}"  
37 - data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==1}}">申请退款</view>  
38 - <view bindtap="gotoreturn" class="return-btn" data-oid="{{goods.order_id}}"  
39 - data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==2}}">退款中</view>  
40 - <view bindtap="checkReturnGoodsStatus" class="return-btn" data-oid="{{goods.order_id}}"  
41 - data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==3}}">重新退款</view>  
42 - <view bindtap="gotoreturn" class="return-btn" data-oid="{{goods.order_id}}"  
43 - data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==4}}">退款完成</view>  
44 - </block>  
45 -  
46 - <block wx:if="{{item.pt_status==1}}">  
47 - <view class="return-btn co-red">组团中</view>  
48 - </block>  
49 - <block wx:if="{{item.pt_status==2 && item.pt_tail_money>0}}">  
50 - <view class="return-btn co-red">待支付尾款</view> 65 + <view catchtap="checkReturnGoodsStatus" class="return-btn" data-oid="{{goods.order_id}}" data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==1}}">申请退款</view>
  66 + <view catchtap="gotoreturn" class="return-btn" data-oid="{{goods.order_id}}" data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==2}}">退款中</view>
  67 + <view catchtap="checkReturnGoodsStatus" class="return-btn" data-oid="{{goods.order_id}}" data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==3}}">重新退款</view>
  68 + <view catchtap="gotoreturn" class="return-btn" data-oid="{{goods.order_id}}" data-recid="{{goods.goods_id}}" wx:if="{{goods.return_btn==4}}">退款完成</view>
51 </block> 69 </block>
  70 + </view>
  71 + </view>
  72 + </view>
  73 + <!-- 商品价格数量 -->
  74 + <view class="Commodity_money flex-vertical-between baseline">
  75 + <!-- 商品价格 -->
  76 + <view class="flex-vertical xc-wc baseline">
  77 + <view class="fs24">¥</view>
  78 + <view class="fs30">{{filters.toFix(goods.member_goods_price,2)}}</view>
  79 + </view>
  80 + <view class="fs30">x{{goods.goods_num}}</view>
  81 + </view>
  82 + </view>
  83 + </navigator>
  84 + <!-- 去评价 -->
  85 + <view class="commodity_evaluate jc_sb padding baseline fs26">
  86 + <!-- 商品数量 -->
  87 + <view class="commodity_smy flex fs30">
  88 + <view class="order-total">
  89 + <view>
  90 + 共{{item.g_num}}件商品
52 </view> 91 </view>
  92 + <view class="goods-total flex">
  93 + <block wx:if="{{item.pt_status==4 || item.pt_status==5}}">
  94 + <view class="commodity_money flex baseline">
  95 + <view>合计:</view>
  96 + <view class="fs24 xc-wc">¥</view>
  97 + <view class="xc-wc">{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}
  98 + </view>
53 99
54 - <view class="goods-tips">  
55 - <view class="order-total">  
56 - 共{{item.g_num}}件,<view class="goods-total">  
57 - <block wx:if="{{item.pt_status==4 || item.pt_status==5 }}">  
58 - <view>金额:¥{{filters.toFix(item.order_amount+item.user_money+item.pt_tail_money,2)}}</view>  
59 - </block>  
60 - <block wx:else>  
61 - <view wx:if="{{item.is_zsorder==4}}">定金:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>  
62 - <view wx:else>金额:¥{{filters.toFix(item.order_amount+item.user_money,2)}}</view>  
63 - <view wx:if="{{item.pt_tail_money>0}}">尾款:¥{{filters.toFix(item.pt_tail_money-item.shipping_price,2)}}</view>  
64 - </block>  
65 -  
66 - </view>  
67 </view> 100 </view>
68 - 101 + </block>
  102 + <block wx:else>
  103 + <view wx:if="{{item.is_zsorder==4}}" class="commodity_money flex baseline">
  104 + <view>定金:</view>
  105 + <view class="fs24 xc-wc">¥</view>
  106 + <view class="xc-wc">{{filters.toFix(item.order_amount+item.user_money,2)}}
  107 + </view>
  108 + </view>
  109 + <view class="commodity_money flex baseline" wx:else>
  110 + <view>合计:</view>
  111 + <view class="fs24 xc-wc">¥</view>
  112 + <view class="xc-wc">{{filters.toFix(item.order_amount+item.user_money,2)}}
  113 + </view>
  114 + </view>
  115 + <view wx:if="{{item.pt_tail_money>0}}" class="commodity_money flex baseline">
  116 + <view>待支付尾款:</view>
  117 + <view class="fs24 xc-wc">¥</view>
  118 + <view class="xc-wc">{{filters.toFix(item.pt_tail_money-item.shipping_price,2)}}
  119 + </view>
  120 + </view>
  121 + </block>
69 </view> 122 </view>
  123 + </view>
  124 + </view>
  125 + <view class="links flex-right-vertical fs30">
  126 + <image wx:if="{{(item.order_status==1&&item.pay_status==1 && item.shipping_status==0 && item.exp_type==1)}}" class="code" src="{{iurl}}miniapp/images/order/code.png" bindtap="code_show" data-order_sn="{{item.order_sn}}"></image>
70 127
71 - <view class="check-btn">  
72 - <navigator url="/pages/cart/cart_wk/cart_wk?order_id={{item.order_id}}"  
73 - class="order-btn order-btn-pay" data-idx="{{index}}" wx:if="{{item.pt_status==2 && item.pt_tail_money>0}}">支付尾款</navigator>  
74 - <navigator bindtap="jumpToCart4" class="order-btn order-btn-pay " data-idx="{{index}}" hidden="{{!(item.order_status==0&&item.pay_status==0)}}">立即付款</navigator>  
75 - <view class="order-btn" data-id="{{item.order_id}}" wx:if="{{item.order_status==3 && item.pt_status!=3 }}">已取消</view>  
76 - <view bindtap="cancelOrder" class="order-btn" data-id="{{item.order_id}}" data-zsorder="{{item.is_zsorder}}" data-orderindex="{{index}}"  
77 - hidden="{{!(item.order_status==0 &&item.pay_status==0)}}">取消订单</view>  
78 - <view class="order-btn" wx:if="{{item.pt_status==3}}">拼团失败</view> 128 + <view class="commodity_To_evaluate flex-level View_evaluation" data-id="{{item.order_id}}" wx:if="{{item.order_status==3 && item.pt_status!=3}}">已取消</view>
  129 + <view bindtap="cancelOrder" class="commodity_To_evaluate flex-level View_evaluation" data-id="{{item.order_id}}" data-zsorder="{{item.is_zsorder}}" data-orderindex="{{index}}" wx:if="{{(item.order_status==0 &&item.pay_status==0)}}">取消订单</view>
  130 + <view class="commodity_To_evaluate flex-level View_evaluation" wx:if="{{item.pt_status==3}}">拼团失败</view>
79 131
80 - <!---has_rt部分退---->  
81 - <block wx:if="{{item.return_btn==undefined && item.is_all_return!=1 && item.has_rt!=1}}">  
82 - <navigator class="order-btn" hidden="{{!(item.order_status==0&&item.pay_status==1)}}" url="/pages/order/refund_order/refund_order?order_id={{item.order_id}}">申请退款</navigator>  
83 - <navigator class="order-btn" hidden="{{!(item.order_status==1&&item.pay_status==1)}}" url="/pages/order/refund_order/refund_order?order_id={{item.order_id}}">申请退款</navigator>  
84 - </block>  
85 - <block wx:else>  
86 - <view class="order-btn" wx:if="{{item.is_all_return_status==2}}" bindtap="deleteOrderData" data-order_id="{{item.order_id}}" >删除订单</view>  
87 - <navigator class="order-btn" wx:if="{{item.is_all_return_status==3}}" url="/pages/order/refund_order/refund_order?order_id={{item.order_id}}">重新退款</navigator>  
88 - <navigator class="order-btn" wx:if="{{item.is_all_return_status==0 || item.is_all_return_status==1}}"  
89 - url="/pages/user/return_goods_info/return_goods_info?order_id={{item.order_id}}">退款详情</navigator>  
90 - </block>  
91 - 132 + <!---has_rt部分退---->
  133 + <block wx:if="{{item.return_btn==undefined && item.is_all_return!=1 && item.has_rt!=1}}">
  134 + <navigator class="commodity_To_evaluate flex-level View_evaluation" hidden="{{!(item.order_status==0&&item.pay_status==1)}}" url="/pages/order/refund_order/refund_order?order_id={{item.order_id}}">申请退款</navigator>
  135 + <navigator class="commodity_To_evaluate flex-level View_evaluation" hidden="{{!(item.order_status==1&&item.pay_status==1)}}" url="/pages/order/refund_order/refund_order?order_id={{item.order_id}}">申请退款</navigator>
  136 + </block>
  137 + <block wx:else>
  138 + <view class="commodity_To_evaluate flex-level View_evaluation" wx:if="{{item.is_all_return_status==2}}" bindtap="deleteOrderData" data-order_id="{{item.order_id}}">删除订单</view>
  139 + <navigator class="commodity_To_evaluate flex-level View_evaluation" wx:if="{{item.is_all_return_status==3}}" url="/pages/order/refund_order/refund_order?order_id={{item.order_id}}">重新退款</navigator>
  140 + <navigator class="commodity_To_evaluate flex-level View_evaluation" wx:if="{{item.is_all_return_status==0 || item.is_all_return_status==1}}" url="/pages/user/return_goods_info/return_goods_info?order_id={{item.order_id}}">退款详情</navigator>
  141 + </block>
  142 + <navigator class="commodity_To_evaluate flex-level View_evaluation" hidden="{{!(item.exp_type==0&&item.pay_status==1&&item.shipping_status==1)}}" url="/pages/user/express/express?order_id={{item.order_id}}">查看物流</navigator>
  143 + <navigator class="commodity_To_evaluate flex-level View_evaluation" hidden="{{!(item.exp_type==0&&item.pay_status==1&&item.shipping_status==2)}}" url="/pages/user/express/express?order_id={{item.order_id}}">查看物流</navigator>
  144 + <navigator class="commodity_To_evaluate flex-level View_evaluation" url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}">订单详情</navigator>
92 145
93 - <view bindtap="confirmOrder" data-zsorder="{{item.is_zsorder}}" class="order-btn white red-b" data-id="{{item.order_id}}" hidden="{{!(item.order_status==1&&item.pay_status==1&&item.shipping_status==1)}}">确认收货</view>  
94 - <view bindtap="confirmOrder" data-zsorder="{{item.is_zsorder}}" class="order-btn white red-b" data-id="{{item.order_id}}" hidden="{{!(item.order_status==1&&item.pay_status==1&&item.shipping_status==2)}}">确认收货</view>  
95 - <navigator redirect class="order-btn white red-b" hidden="{{!(item.order_status==2)}}" url="/pages/user/comment/comment?status=0">评价</navigator>  
96 - <navigator class="order-btn" hidden="{{!(item.exp_type==0&&item.pay_status==1&&item.shipping_status==1)}}" url="/pages/user/express/express?order_id={{item.order_id}}">查看物流</navigator>  
97 - <navigator class="order-btn" hidden="{{!(item.exp_type==0&&item.pay_status==1&&item.shipping_status==2)}}" url="/pages/user/express/express?order_id={{item.order_id}}">查看物流</navigator>  
98 - <navigator class="order-btn" url="/pages/user/order_detail/order_detail?order_id={{item.order_id}}">订单详情</navigator>  
99 - </view> 146 + <block wx:if="{{!(item.has_rt || item.return_btn==2 || item.return_btn==4)}}">
  147 + <view bindtap="confirmOrder" data-zsorder="{{item.is_zsorder}}" class="commodity_To_evaluate flex-level comment_go" data-id="{{item.order_id}}" hidden="{{!(item.order_status==1&&item.pay_status==1&&item.shipping_status==1)}}">确认收货</view>
  148 + <view bindtap="confirmOrder" data-zsorder="{{item.is_zsorder}}" class="commodity_To_evaluate flex-level comment_go" data-id="{{item.order_id}}" hidden="{{!(item.order_status==1&&item.pay_status==1&&item.shipping_status==2)}}">确认收货</view>
  149 + </block>
100 150
  151 +
  152 +
  153 + <navigator class="commodity_To_evaluate flex-level comment_go" hidden="{{!(item.order_status==2)}}" url="/pages/user/comment/comment?status=0">去评价</navigator>
  154 + <navigator class="commodity_To_evaluate flex-level comment_go" url="/pages/cart/cart_wk/cart_wk?order_id={{item.order_id}}" data-idx="{{index}}" wx:if="{{item.pt_status==2 && item.pt_tail_money>0}}">支付尾款</navigator>
  155 + <navigator class="commodity_To_evaluate flex-level comment_go" bindtap="jumpToCart4" data-idx="{{index}}" wx:if="{{(item.order_status==0&&item.pay_status==0)}}">立即支付</navigator>
101 </view> 156 </view>
102 - <view class="no-data" wx:if="{{ (!orderList||orderList.length==0) && is_get}}">  
103 - <image class="cart-image" src="{{iurl}}/miniapp/images/cart-null.png"></image>  
104 - <view class="no-data-title">暂无订单列表</view>  
105 - <navigator class="lookat" openType="switchTab" url="/pages/index/index/index"> 去逛逛 </navigator>  
106 - </view> 157 + </view>
107 </view> 158 </view>
  159 + </view>
  160 +</view>
  161 +
  162 +<!-- 没有数据 -->
  163 +<view class="After_all flex-center" wx:if="{{iscodeall==1 && orderList.length>1}}">
  164 + <view class="Line"></view>
  165 + <view class="end fs26 xc-black">到底了</view>
  166 + <view class="Line"></view>
  167 +</view>
  168 +
  169 +<!-- 无订单 -->
  170 +<view class="empty_order" wx:if="{{(!orderList||orderList.length==0) && is_get}}">
  171 + <view class="flex-level">
  172 + <image src="{{iurl}}miniapp/images/order/empty_order.png"></image>
  173 + </view>
  174 + <view class="flex-level fs30 xc-ash">当前暂无订单</view>
  175 + <view class="flex-level">
  176 + <navigator url="/pages/index/index/index" bindtap="goto">
  177 + <view class="flex-center fs28 white">去首页逛逛</view>
  178 + </navigator>
  179 + </view>
108 </view> 180 </view>
  181 +<!-- 弹出框扫描 -->
  182 +<qr_code id="qc_com"></qr_code>
109 \ No newline at end of file 183 \ No newline at end of file
pages/user/order_list/order_list.wxss
  1 +page {
  2 + font-family: microsoft yahei;
  3 +}
  4 +
1 .type-navbar { 5 .type-navbar {
2 - white-space: nowrap;  
3 - display: flex;  
4 - width: 100%;  
5 - height: 80rpx;  
6 - background-color: #fff; 6 + white-space: nowrap;
  7 + display: flex;
  8 + height: 88rpx;
  9 + background-color: #fff;
  10 + justify-content: space-between;
  11 + border-top: 1rpx solid rgb(211, 211, 211);
7 } 12 }
8 13
9 .type-box { 14 .type-box {
10 - width: 25%;  
11 - box-sizing: border-box;  
12 - font-size: 32rpx;  
13 - line-height: 76rpx;  
14 - padding: 0 20rpx;  
15 - text-align: center;  
16 - display: inline-block;  
17 - overflow: hidden; 15 + box-sizing: border-box;
  16 + line-height: 84rpx;
  17 + text-align: center;
  18 + display: inline-block;
  19 + overflow: hidden;
18 } 20 }
19 21
20 .type-navbar-item { 22 .type-navbar-item {
21 - border-bottom: 4rpx solid #fff; 23 + border-bottom: 4rpx solid #fff;
22 } 24 }
23 25
24 .type-item-on { 26 .type-item-on {
25 - border-bottom: 4rpx solid #e64340; 27 + border-bottom: 4rpx solid #e64340;
26 } 28 }
27 29
  30 +/* 原 */
  31 +
28 .goods-container { 32 .goods-container {
29 - display: flex;  
30 - justify-content: space-between;  
31 - flex-wrap: wrap;  
32 - box-sizing: content-box;  
33 - padding: 20rpx 0; 33 + display: flex;
  34 + justify-content: space-between;
  35 + flex-wrap: wrap;
  36 + box-sizing: content-box;
  37 + padding: 20rpx 0;
34 } 38 }
35 39
36 .goods-box { 40 .goods-box {
37 - width: 100%;  
38 - background-color: #fff;  
39 - padding: 0 25rpx;  
40 - margin-bottom: 20rpx;  
41 - font-size: 28rpx;  
42 - border-bottom: 1rpx solid #eee;  
43 - padding-bottom: 25rpx;  
44 - 41 + width: 100%;
  42 + background-color: #fff;
  43 + padding: 0 25rpx;
  44 + margin-bottom: 20rpx;
  45 + font-size: 28rpx;
  46 + border-bottom: 1rpx solid #eee;
  47 + padding-bottom: 25rpx;
45 } 48 }
46 49
47 .goods-title { 50 .goods-title {
48 - display: flex;  
49 - justify-content: space-between;  
50 - align-items: center;  
51 - height: 100rpx; 51 + display: flex;
  52 + justify-content: space-between;
  53 + align-items: center;
  54 + height: 100rpx;
52 } 55 }
53 56
54 .order-number { 57 .order-number {
55 - font-size: 32rpx;  
56 - color: #666; 58 + font-size: 32rpx;
  59 + color: #666;
57 } 60 }
58 61
59 .pay-status { 62 .pay-status {
60 - color: #f23030; 63 + color: #f23030;
61 } 64 }
62 65
63 .goods-cont { 66 .goods-cont {
64 - padding: 20rpx 0;  
65 - display: flex;  
66 - justify-content: space-between;  
67 - position: relative; 67 + padding: 20rpx 0;
  68 + display: flex;
  69 + justify-content: space-between;
  70 + position: relative;
68 } 71 }
69 72
70 .img-box { 73 .img-box {
71 - width: 180rpx;  
72 - height: 180rpx; 74 + width: 180rpx;
  75 + height: 180rpx;
73 } 76 }
74 77
75 .goods-mes { 78 .goods-mes {
76 - width: 490rpx; 79 + width: 490rpx;
77 } 80 }
78 81
79 .goods-name { 82 .goods-name {
80 - height: 30rpx;  
81 - margin-bottom: 16rpx;  
82 - overflow: hidden;  
83 - line-height: 30rpx;  
84 - color: #333;  
85 - word-break: keep-all;  
86 - white-space: nowrap;  
87 - text-overflow: ellipsis;  
88 - font-size: 30rpx; 83 + height: 30rpx;
  84 + margin-bottom: 16rpx;
  85 + overflow: hidden;
  86 + line-height: 30rpx;
  87 + color: #333;
  88 + word-break: keep-all;
  89 + white-space: nowrap;
  90 + text-overflow: ellipsis;
  91 + font-size: 30rpx;
89 } 92 }
90 93
91 .goods-price { 94 .goods-price {
92 - color: #f23030;  
93 - padding-bottom: 20rpx;  
94 - font-size: 30rpx; 95 + color: #f23030;
  96 + padding-bottom: 20rpx;
  97 + font-size: 30rpx;
95 } 98 }
96 99
97 .goods-num { 100 .goods-num {
98 - color: #999999;  
99 - font-size: 30rpx;  
100 -}  
101 -  
102 -.return-btn {  
103 - color: #999999;  
104 - position: absolute;  
105 - right: 0;  
106 - bottom: 0rpx;  
107 - height: 80rpx;  
108 - line-height: 80rpx; 101 + color: #999;
  102 + font-size: 30rpx;
109 } 103 }
110 104
111 .goods-tips { 105 .goods-tips {
112 - height: 60rpx;  
113 - padding: 10rpx 0;  
114 - display: flex;  
115 - justify-content: space-between;  
116 - align-items: center; 106 + height: 60rpx;
  107 + padding: 10rpx 0;
  108 + display: flex;
  109 + justify-content: space-between;
  110 + align-items: center;
117 } 111 }
118 112
119 .order-total { 113 .order-total {
120 - display: flex;  
121 - justify-content: flex-start;  
122 - font-size: 31rpx;  
123 - color: #333; 114 + display: flex;
  115 + justify-content: flex-start;
124 } 116 }
125 117
126 .goods-total { 118 .goods-total {
127 - margin-right: 20rpx;  
128 - color: #f23030; 119 + margin-right: 20rpx;
129 } 120 }
130 121
131 .order-btn { 122 .order-btn {
132 - width: 150rpx;  
133 - height: 50rpx;  
134 - line-height: 50rpx;  
135 - text-align: center;  
136 - border: 1px solid #eee;  
137 - margin-left: 10rpx;  
138 - float: right;  
139 - border-radius: 15rpx; 123 + width: 150rpx;
  124 + height: 50rpx;
  125 + line-height: 50rpx;
  126 + text-align: center;
  127 + border: 1px solid #eee;
  128 + margin-left: 10rpx;
  129 + float: right;
  130 + border-radius: 15rpx;
140 } 131 }
141 132
142 .order-btn-pay { 133 .order-btn-pay {
143 - color: #fff;  
144 - background-color: #f23030;  
145 - border-color: #f23030; 134 + color: #fff;
  135 + background-color: #f23030;
  136 + border-color: #f23030;
  137 +}
  138 +
  139 +.return-btn.co-red {
  140 + color: #e02e24;
146 } 141 }
147 -.return-btn.co-red{color: #e02e24}  
148 -.check-btn{ 142 +
  143 +.check-btn {
149 margin-bottom: 20rpx; 144 margin-bottom: 20rpx;
  145 +}
  146 +
  147 +/* 新 */
  148 +
  149 +.Commodity_number {
  150 + height: 80rpx;
  151 + border-top: 13rpx solid rgb(245, 245, 245);
  152 +}
  153 +
  154 +.Commodity_number .lin {
  155 + border-left: 2rpx solid rgb(129, 65, 81);
  156 + margin: 0rpx 15rpx;
  157 + height: 31rpx;
  158 +}
  159 +
  160 +.Commodity_number image {
  161 + width: 30rpx;
  162 + height: 32rpx;
  163 +}
  164 +
  165 +.padding {
  166 + padding: 0rpx 27rpx;
  167 +}
  168 +
  169 +/* 文字基线对齐 */
  170 +
  171 +.baseline {
  172 + align-items: baseline;
  173 +}
  174 +
  175 +.border_bottom {
  176 + border-bottom: 4rpx solid rgb(245, 245, 245);
  177 +}
  178 +
  179 +/* 单个商品框架 */
  180 +
  181 +.detail_commodity {
  182 + height: 231rpx;
  183 +}
  184 +
  185 +.detail_commodity image {
  186 + width: 185rpx;
  187 + height: 185rpx;
  188 +}
  189 +
  190 +.detail_commodity .goods_name {
  191 + width: 485rpx;
  192 + /* height: 75rpx; */
  193 + line-height: 37rpx;
  194 +}
  195 +
  196 +.Commodity_content {
  197 + height: 185rpx;
  198 + margin-left: 21rpx;
  199 +}
  200 +
  201 +.Commodity_content .Commodity_goods {
  202 + height: 150rpx;
  203 +}
  204 +
  205 +.Commodity_content .Commodity_money {
  206 + font-size: 16rpx;
  207 + letter-spacing: 1rpx;
  208 +}
  209 +
  210 +/* 商品评价按钮框架 */
  211 +
  212 +.commodity_evaluate {
  213 + padding-top: 15rpx;
  214 + padding-bottom: 15rpx;
  215 + border-bottom: 4rpx solid rgb(245, 245, 245);
  216 +}
  217 +
  218 +.commodity_evaluate .commodity_smy .commodity_money {
  219 + margin-left: 29rpx;
  220 + letter-spacing: 1rpx;
  221 +}
  222 +
  223 +.commodity_evaluate .links {
  224 + height: 92rpx;
  225 +}
  226 +
  227 +.commodity_evaluate .commodity_To_evaluate {
  228 + width: 155rpx;
  229 + height: 48rpx;
  230 + border-radius: 10rpx;
  231 + line-height: 48rpx;
  232 +}
  233 +
  234 +.commodity_evaluate .commodity_To_evaluate view {
  235 + height: 39rpx;
  236 + line-height: 39rpx;
  237 +}
  238 +
  239 +.commodity_evaluate .comment_go {
  240 + background-color: rgb(211, 28, 52);
  241 + color: rgb(255, 255, 255);
  242 + margin-left: 18rpx;
  243 + width: 155rpx;
  244 + height: 48rpx;
  245 + line-height: 48rpx;
  246 +}
  247 +
  248 +.Commodity_spec {
  249 + height: 37rpx;
  250 + line-height: 37rpx;
  251 + max-width: 160rpx;
  252 + background-color: rgb(236, 236, 236);
  253 + border-radius: 6rpx;
  254 + font-size: 22rpx;
  255 + margin-top: 10rpx;
  256 + padding:0rpx 10rpx;
  257 +}
  258 +
  259 +.Commodity_evaluation .Comment_content {
  260 + color: rgb(153, 153, 153);
  261 + letter-spacing: 1rpx;
  262 +}
  263 +
  264 +.Commodity_evaluation .starss {
  265 + height: 58rpx;
  266 + /* // line-height: 58rpx; */
  267 + align-items: center;
  268 +}
  269 +
  270 +.Commodity_evaluation .commen {
  271 + height: 58rpx;
  272 + line-height: 58rpx;
  273 +}
  274 +
  275 +.Commodity_evaluation .starss .stars {
  276 + line-height: 58rpx;
  277 +}
  278 +
  279 +.Commodity_evaluation .starss .stars image {
  280 + width: 29rpx;
  281 + height: 26rpx;
  282 + margin-right: 5rpx;
  283 +}
  284 +
  285 +.Commodity_evaluation .Comment_images image {
  286 + width: 100rpx;
  287 + height: 100rpx;
  288 + margin-right: 8rpx;
  289 + margin-top: 18rpx;
  290 + border-radius: 6rpx;
  291 + border: 3rpx solid rgb(245, 245, 245);
  292 +}
  293 +
  294 +.commodity_evaluate .View_evaluation {
  295 + border: 1px solid #ddd;
  296 + color: rgb(0, 0, 0);
  297 + background-color: rgb(255, 255, 255);
  298 + margin-left: 18rpx;
  299 +}
  300 +
  301 +.comment_addtime {
  302 + height: 50rpx;
  303 +}
  304 +
  305 +.title_width {
  306 + width: 146rpx;
  307 + text-align: center;
  308 +}
  309 +
  310 +.After_all {
  311 + height: 80rpx;
  312 + background-color: rgb(245, 245, 245);
  313 +}
  314 +
  315 +.After_all .Line {
  316 + border-top: 1rpx solid rgb(0, 0, 0);
  317 + width: 130rpx;
  318 +}
  319 +
  320 +.After_all .end {
  321 + margin: 0rpx 15rpx;
  322 +}
  323 +
  324 +/* 无订单 */
  325 +
  326 +.empty_order image {
  327 + width: 329rpx;
  328 + height: 229rpx;
  329 + margin-top: 202rpx;
  330 +}
  331 +
  332 +.empty_order .xc-ash {
  333 + margin-top: 10rpx;
  334 + font-weight: 600px;
  335 +}
  336 +
  337 +.empty_order navigator {
  338 + margin-top: 60rpx;
  339 + border-radius: 40rpx;
  340 +}
  341 +
  342 +.empty_order navigator view {
  343 + width: 247rpx;
  344 + height: 56rpx;
  345 + background-color: rgb(255, 72, 72);
  346 + border-radius: 40rpx;
  347 +}
  348 +
  349 +.rel {
  350 + width: 185rpx;
  351 + height: 185rpx;
  352 + overflow: hidden;
  353 + border: 2rpx solid rgb(236, 236, 236);
  354 +}
  355 +
  356 +.abs {
  357 + top: 15rpx;
  358 + left: -39rpx;
  359 + width: 154rpx;
  360 + height: 40rpx;
  361 + background-color: rgb(214, 1, 33);
  362 + transform: rotate(320deg);
  363 + color: rgb(255, 255, 255);
  364 + line-height: 40rpx;
  365 +}
  366 +.code{
  367 + width: 55rpx;
  368 + height: 55rpx;
  369 +}
  370 +.refund{
  371 + margin-top: 20rpx;
150 } 372 }
151 \ No newline at end of file 373 \ No newline at end of file