1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["other-page-supplier-order-supplier-order-list-supplier-order-list"],{"05a1":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={data:function(){return{}},filters:{orderStatusValue:function(e,t,r){switch(e){case 1:return 1!==t?"待付款":2===r?"待确认":"待接单";case 2:return"已确认";case 3:return"待配送";case 4:return"配送中";case 5:return"已完成";case 6:return"已取消";default:return""}},orderStatusValueTow:function(e,t,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return 3==r&&a?6!=e?"商家备货中":"已取消":1==e?1!==t?"待付款":2===r?"待确认":"待接单":2==e?2===r||3===r?"商家备货中":"商家备货中,等待骑手接单":3==e?"待配送":4==e?7==i?"待取货":"配送中":5==e?"已完成":6==e?"已取消":void 0},orderTypeValue:function(e,t){switch(e){case 1:return"外卖";case 2:return 1===t?"自提":"店内";case 3:return"店内";default:return""}}},computed:{orderStatusColorClass:function(){return function(e,t){var r="gray";switch(e){case 1:r=1===t?"orangeyellow":"red";break;case 2:r="orangered";break;case 3:r="blue";break;case 4:r="bluepurple";break;case 5:r="green--dark";break}return"tn-color-".concat(r)}},creditshopOrderStatus:function(){return function(e,t){var r="gray";if(0===t)r="red";else switch(e){case 0:r="blue";break;case 1:r=1===t?"orangeyellow":"red";break;case 2:r="green--dark";break;case 3:r="red";break}return"tn-color-".concat(r)}},mallOrderStatusColorClass:function(){return function(e){var t="gray";switch(e){case"nopay":t="orangeyellow";break;case"noget":t="orangered";break;case"nosend":t="blue";break;case"refund_finish":t="bluepurple";break;case"refund_ing":t="green--dark";break;case"cancel":t="red";break}return"tn-color-".concat(t)}}}};t.default=i},"081c":function(e,t,r){"use strict";r.r(t);var i=r("9f06"),a=r.n(i);for(var n in i)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return i[e]}))}(n);t["default"]=a.a},"47da":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.showToast=t.showModal=t.showLoading=t.closeLoading=void 0;t.showToast=function(e){var t=e.title,r=e.icon,i=e.mask,a=e.callback;uni.showToast({icon:r||"none",title:t,mask:i||!0}),setTimeout((function(){a&&a()}),1500)};t.showModal=function(e){var t=e.title,r=e.content,i=e.showCancel,a=e.cancelText,n=e.confirmText,o=e.callback;uni.showModal({title:t||"操作提示",content:r,showCancel:i||!1,cancelText:a||"取消",confirmText:n||"确认",success:function(e){e.confirm&&o&&o(!0),e.cancel&&o&&o(!1)}})};t.showLoading=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,r=void 0===t?"":t,i=e.mask,a=void 0!==i&&i;uni.showLoading({title:r,mask:a})};t.closeLoading=function(){uni.hideLoading()}},"4f43":function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.navPage=t.navMiniProgram=t.navBack=void 0,r("4626"),r("5ac7"),r("5ef2"),r("f7a5");t.navBack=function(e,t){var r=e||"/pages/index/index",i=getCurrentPages();if((null===i||void 0===i?void 0:i.length)>0){var a=i[0];1!==i.length||a.route&&a.route==r?uni.navigateBack({delta:t||1}):uni.reLaunch({url:r})}else uni.reLaunch({url:r})};t.navPage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nav";if(e)if("nav"===t)if(e.includes("miniProgram"))i(e);else if(e.includes("webview")){var r=e.split("webview:"),a=r[1];uni.navigateTo({url:"/system-page/webview/webview?url="+encodeURIComponent(a),fail:function(e){console.error("[navigateTo]跳转页面失败",e)}})}else uni.navigateTo({url:e,fail:function(e){console.error("[navigateTo]跳转页面失败",e)}});else"redirect"===t?uni.redirectTo({url:e,fail:function(e){console.error("[redirectTo]跳转页面失败",e)}}):"reLaunch"===t?uni.reLaunch({url:e,fail:function(e){console.error("[reLaunch]跳转页面失败",e)}}):"phone"===t&&uni.makePhoneCall({phoneNumber:e,fail:function(e){console.error("[phone]拨打电话失败",e)}})};var i=function(e){if(e&&-1!=e.indexOf(":")){for(var t=e.split(":"),r=t[1].split(","),i={},a=0;a<r.length;a++){var n=r[a].split("_");console.log(n);var o=n[0],d=n.slice(1).join("_");i[o]=d}console.log(i)}else{i={appId:obj.appid||obj.appId};obj.path&&(i["path"]=path)}i["fail"]=function(e){-1!=e.errMsg.indexOf("is not in navigateToMiniProgramAppIdList")&&uni.showModal({content:"跳转小程序出错了",showCancel:!1})},console.log(i),e&&e.includes("half_")?uni.openEmbeddedMiniProgram(i):uni.navigateToMiniProgram(i)};t.navMiniProgram=i},6136:function(e,t,r){"use strict";var i=r("d169"),a=r.n(i);a.a},"672c":function(e,t,r){var i=r("c86c");t=i(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */uni-page-body[data-v-5bed76ec]{background-color:#f5f5f5}body.?%PAGE?%[data-v-5bed76ec]{background-color:#f5f5f5}\n/* 订单列表item start */.order-item[data-v-5bed76ec]{position:relative;width:95%;margin:auto;padding:%?20?%;background-color:#fff;border-radius:%?20?%;margin-top:%?30?%\n /* 顶部信息 start */\n /* 顶部信息 end */\n /* 商品列表 start */\n /* 商品列表 end */\n /* 操作按钮 start */\n /* 操作按钮 end */}.order-item[data-v-5bed76ec]:first-child{margin-top:%?0?%}.order-item .top-info[data-v-5bed76ec]{width:100%;display:flex}.order-item .top-info .store-avatar[data-v-5bed76ec]{position:relative;width:%?100?%;height:%?100?%;border-radius:%?15?%;border:%?1?% solid #e6e6e6;overflow:hidden}.order-item .top-info .store-avatar .image[data-v-5bed76ec]{width:%?100?%;height:%?100?%}.order-item .top-info .store-avatar .business-tag[data-v-5bed76ec]{position:absolute;top:%?-4?%;right:%?-2?%;border-radius:%?4?%;font-size:%?22?%;line-height:1;padding:%?4?% %?8?%;border-radius:%?0?% %?15?% %?0?% %?0?%;background-color:#fad8d6;color:#e83a30}.order-item .top-info .top-right[data-v-5bed76ec]{flex:1;margin-left:%?20?%}.order-item .top-info .top-right .top-right-line[data-v-5bed76ec]{display:flex;align-items:center;justify-content:space-between}.order-item .top-info .top-right .top-right-line + .top-right-line[data-v-5bed76ec]{margin-top:%?8?%}.order-item .top-info .top-right .store-title[data-v-5bed76ec]{flex:1;font-size:%?32?%;font-weight:500}.order-item .top-info .top-right .order-status[data-v-5bed76ec]{font-size:%?34?%;padding-left:%?40?%}.order-item .top-info .top-right .order-type[data-v-5bed76ec]{border-radius:%?4?%;line-height:1;padding:%?4?% %?12?%;background-color:#fad8d6;color:#e83a30}.order-item .product-list[data-v-5bed76ec]{position:relative;margin-top:%?20?%;width:100%;padding:%?20?% %?0?%\n /* 单个商品 start */\n /* 单个商品 end */\n /* 单个商品 start */\n /* 单个商品 end */\n /* 商品数量、价格 start */\n /* 商品数量、价格 end */}.order-item .product-list .single-product[data-v-5bed76ec]{position:relative;width:100%;padding-right:%?140?%}.order-item .product-list .single-product .product-image[data-v-5bed76ec]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%;border:%?1?% solid #e6e6e6}.order-item .product-list .single-product .product-info[data-v-5bed76ec]{width:calc(100% - %?140?%);padding-left:%?20?%;font-size:%?30?%}.order-item .product-list .single-product .product-info .num[data-v-5bed76ec]{margin-top:%?8?%}.order-item .product-list .scroll-view[data-v-5bed76ec]{padding-right:%?140?%}.order-item .product-list .product-item[data-v-5bed76ec]{flex-shrink:0;width:%?160?%}.order-item .product-list .product-item .item-image[data-v-5bed76ec]{position:relative;width:%?140?%;height:%?140?%;border-radius:%?10?%;border:%?1?% solid #e6e6e6}.order-item .product-list .product-item .item-image .item-num[data-v-5bed76ec]{position:absolute;right:0;bottom:0;line-height:1;padding:%?4?% %?10?%;background-color:rgba(0,0,0,.5);color:#fff;font-size:%?20?%;border-radius:%?10?% %?0?% %?10?% %?0?%}.order-item .product-list .product-item .item-title[data-v-5bed76ec]{width:100%;font-size:%?20?%;color:#aaa;margin-top:%?6?%}.order-item .product-list .order-price-count-info[data-v-5bed76ec]{position:absolute;top:0;right:0;height:100%;background-color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:%?0?% %?20?%}.order-item .product-list .order-price-count-info .order-count[data-v-5bed76ec]{font-size:%?24?%}.order-item .product-list .order-price-count-info .order-price[data-v-5bed76ec]{display:flex;align-items:flex-end;font-size:%?32?%;line-height:1;margin-bottom:%?10?%}.order-item .product-list .order-price-count-info .order-price .unit[data-v-5bed76ec]{font-size:%?24?%;margin-right:%?4?%}.order-item .create-time[data-v-5bed76ec]{font-size:%?24?%;color:#aaa}.order-item .operation-btn[data-v-5bed76ec]{margin-top:%?26?%}.order-item .operation-btn .btn[data-v-5bed76ec]{padding:%?14?% %?20?%;line-height:1;border-radius:%?12?%;background:linear-gradient(133deg,#57befd,#4980fe);color:#fff}.order-item .operation-btn .btn + .btn[data-v-5bed76ec]{margin-left:%?16?%}\n/* 订单列表item end */\n/* 膨胀红包 */.expansion[data-v-5bed76ec]{display:flex;position:fixed;top:0;left:0;height:100%;width:100%;justify-content:center;align-items:center;background-color:rgba(0,0,0,.5);flex-direction:column;z-index:999999}.expansion .expansion_box[data-v-5bed76ec]{width:%?591?%;background-color:#fff4f8;border-radius:10px;display:flex;flex-direction:column;padding:%?36?% %?45?%}.expansion .expansion_box .expansion_box_title[data-v-5bed76ec]{width:100%;text-align:center;font-size:22px;color:#0d0c0c;font-weight:700;margin-bottom:%?15?%}.expansion .expansion_box .expansion_box_img[data-v-5bed76ec]{width:100%;text-align:center;font-size:14px;color:#666}.expansion .expansion_box .expansion_box_img img[data-v-5bed76ec]{width:100%}.expansion .expansion_box .line4[data-v-5bed76ec]{height:40px;width:100%;text-align:center;line-height:40px;font-size:15px;color:#fff;border-radius:10px;background:linear-gradient(90deg,#fc8c09,#fc29b4)}.expansion .expansion_close[data-v-5bed76ec]{width:100%;display:flex;justify-content:center;align-items:center;margin-top:%?78?%}.expansion .expansion_close img[data-v-5bed76ec]{width:%?60?%;height:%?60?%}\n/* 刷新按钮 start */.refresh-btn[data-v-5bed76ec]{position:fixed;right:%?20?%;bottom:%?260?%;width:%?80?%;height:%?80?%;border-radius:50%;font-size:%?50?%;z-index:1099;background:linear-gradient(133deg,#57befd,#4980fe);color:#fff}\n/* 刷新按钮 end */',""]),e.exports=t},8678:function(e,t,r){"use strict";r.r(t);var i=r("db7b"),a=r("081c");for(var n in a)["default"].indexOf(n)<0&&function(e){r.d(t,e,(function(){return a[e]}))}(n);r("6136");var o=r("828b"),d=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"5bed76ec",null,!1,i["a"],void 0);t["default"]=d.exports},"9e5e":function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.orderNoticeApi=t.getTakeoutOrderListApi=t.getTakeoutOrderDetailApi=t.getRefundReasonApi=t.getPaybillOrderListApi=t.getPaybillOrderDetailApi=t.getOrderwuliuApi=t.getOrderMapPathApi=t.getErranderOrderListApi=t.getErranderOrderDetailApi=t.getChannelApi=t.getAllOrderListApi=t.cancelOrderApi=t.applyRefundApi=void 0;var a=i(r("b4f6"));t.getTakeoutOrderListApi=function(e){var t=e.page,r=e.psize,i=e.status_index,n=e.status,o=e.is_purchase_goods;return a.default.get("api/user.order.order/list",{page:t,psize:r,status_index:i,status:n,is_purchase_goods:o})};t.getAllOrderListApi=function(){return a.default.get("api/user.order.order/allOrderList")};t.getTakeoutOrderDetailApi=function(e){var t=e.id,r=e.type;return a.default.get("api/user.order.order/detail",{id:t,type:r})};t.getErranderOrderListApi=function(e){var t=e.page,r=e.psize;return a.default.get("api/user.order.errander.errander/viList",{page:t,psize:r})};t.getErranderOrderDetailApi=function(e){var t=e.id;return a.default.get("api/user.order.errander.errander/detail",{id:t})};t.getPaybillOrderListApi=function(e){var t=e.page,r=e.psize;return a.default.get("api/user.order.paybill/list",{page:t,psize:r})};t.getPaybillOrderDetailApi=function(e){var t=e.id;return a.default.get("api/user.order.paybill/detail",{id:t})};t.getOrderMapPathApi=function(e){return a.default.post("api/user.order.order/mapPath",e)};t.getOrderwuliuApi=function(e){return a.default.post("api/user.order.order/wuliu",e)};t.getChannelApi=function(e){return a.default.get("api/user.order.order/getChannel?id="+e)};t.getRefundReasonApi=function(){return a.default.get("api/user.order.order/getRefundReason")};t.applyRefundApi=function(e){return a.default.post("api/user.order.order/applyRefund",e)};t.cancelOrderApi=function(e){return a.default.post("api/user.order.order/cancel",e)};t.orderNoticeApi=function(e){return a.default.post("api/user.order.order/orderNotice",e)}},"9f06":function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("fd3c"),r("bf0f"),r("c223"),r("2797"),r("8f71"),r("dc8a"),r("aa9c");var a=i(r("05a1")),n=i(r("ba4c")),o=r("9e5e"),d=r("4f43"),s={mixins:[a.default,n.default],data:function(){return{currentPage:1,pageSize:10,isLoadAll:!1,isLogin:!0,loadingShow:!1,this_filter_field:[],orderData:[],orderTypes:[{id:1,name:"外卖"},{id:2,name:"跑腿"},{id:7,name:"积分商城"},{id:3,name:"当面付"},{id:4,name:"电商/接龙"},{id:5,name:"电影票"}],status:0}},onLoad:function(e){this.status=e.status,console.log("this.status",this.status),this.getTakeoutOrderData()},onReachBottom:function(){this.currentPage++,this.getTakeoutOrderData()},methods:{handleRefund:function(e){console.log(e);var t=e.goodsInfo.map((function(e){return e.goods_id}));console.log("goodsIds",t),this.navAnotherOrder1(e.sid,e.id,"refund")},beforeBack:function(){uni.navigateBack({delta:1})},getTakeoutOrderData:function(){var e=this;console.log("this.status1",this.status),this.loadingShow=!0,(0,o.getTakeoutOrderListApi)({page:this.currentPage,psize:this.pageSize,status:this.status,is_purchase_goods:1}).then((function(t){e.isLogin=!0;var r=(null===t||void 0===t?void 0:t.orders)||[];e.orderData=e.orderData.concat(r.map((function(e){var t,r,i=[],a=0,n=e.goods.length;e.goods.filter((function(e){return 88888!=e.goods_id})).forEach((function(e){var t=e.options[Object.keys(e.options)[0]];t.num&&(a+=t.num,i.push({title:t.title,image:t.thumb,num:t.num,goods_id:t.goods_id}))}));var o=(null===(t=e.store)||void 0===t?void 0:t.is_rest)||0,d=(null===(r=e.store)||void 0===r?void 0:r.is_in_business)||0;return{id:e.id||e.aid,sid:e.sid,storeInfo:{title:e.title||"",image:e.logo||"",business:0==o||1==d?1:0},isPay:(null===e||void 0===e?void 0:e.is_pay)||0,isComment:(null===e||void 0===e?void 0:e.is_comment)||0,orderType:e.order_type,zitiType:(null===e||void 0===e?void 0:e.ziti_type)||0,orderStatus:e.status,createTime:e.addtime||"",orderPrice:e.total_fee,goodsInfo:i,productCount:n,goodsCount:a,lock_status:e.lock_status,lock_result:e.lock_result,qrcode:e.qrcode||"",consumer_is_can_applyrefund:e.consumer_is_can_applyrefund,custom_status_text:e.custom_status_text||""}}))),r.length<e.pageSize&&(e.isLoadAll=!0),console.log("this.orderData",e.orderData)})).catch((function(t){console.error("[order-list]获取订单列表数据失败",t),"请重新登录"===t.msg&&(e.isLogin=!1),e.orderData=[],e.isLoadAll=!0})).finally((function(){e.loadingShow=!1}))},navStore:function(e){(0,d.navPage)("/other-page/template-1/template-1?sid=".concat(e))},navOrderDetail:function(e){(0,d.navPage)("/other-page/supplier-order/supplier-order-detail/supplier-order-detail?id=".concat(e,"&from=list"))},handleRefreshDataEvent:function(){this.currentPage=1,this.isLoadAll=!1,this.orderData=[],this.getTakeoutOrderData()}}};t.default=s},b578:function(e,t,r){"use strict";r("6a54");var i=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getOrderCommentPageInfoApi=t.getCutTImeData=t.cutOffSwit=t.confirmOrderApi=t.confirmErranderOrderApi=t.cancelTcOrderApi=t.cancelOrderApi=t.cancelErranderOrderApi=t.addOrderCommentApi=void 0;var a=i(r("b4f6"));t.getOrderCommentPageInfoApi=function(e){var t=e.id;return a.default.get("api/user.order.comment/getPageParams",{id:t})};t.addOrderCommentApi=function(e){var t=e.id,r=e.deliverScore,i=e.goodsQuality,n=e.note,o=e.thumbs;return a.default.post("api/user.order.comment/create",{id:t,deliverScore:r||0,goods_quality:i||0,note:n||"",thumbs:o||[]})};t.cancelTcOrderApi=function(e){return a.default.post("/api/user.mealRedpacket.meal_redpacket_order/cancelOrder",{order_id:e})};t.cancelOrderApi=function(e){return a.default.post("api/user.order.order/cancel",{id:e})};t.confirmOrderApi=function(e){return a.default.post("api/user.order.order/end",{id:e})};t.cancelErranderOrderApi=function(e){return a.default.post("api/user.order.errander.errander/cancel",{id:e})};t.confirmErranderOrderApi=function(e){return a.default.post("api/user.order.errander.errander/confirm",{id:e})};t.cutOffSwit=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return a.default.get("api/user.order.cut_time/getOpen?sid="+e,{})};t.getCutTImeData=function(){return a.default.get("api/user.order.cut_time/list",{})}},ba4c:function(e,t,r){"use strict";r("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("c223");var i=r("4f43"),a=r("47da"),n=r("b578"),o={methods:{navAnotherOrder:function(e,t){(0,i.navPage)("/other-page/template-1/template-1?sid=".concat(e,"&order_id=").concat(t))},navAnotherOrder1:function(e,t,r){(0,i.navPage)("/other-page/refund/index?order_id=".concat(t))},cancelOrder:function(e,t){(0,a.showModal)({title:"提示",content:"确认需要取消订单吗?",showCancel:!0,callback:function(r){r&&(0,n.cancelOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-cancel]取消订单失败",e),(0,a.showToast)({title:"取消订单失败, 请重试"})}))}})},confitmOrder:function(e,t){(0,a.showModal)({title:"提示",content:"确认需要完成订单吗?",showCancel:!0,callback:function(r){r&&(0,n.confirmOrderApi)(e).then((function(e){t&&t()})).catch((function(e){console.error("[order-confirm]确认订单失败",e),(0,a.showToast)({title:"确认订单失败, 请重试"})}))}})}}};t.default=o},d169:function(e,t,r){var i=r("672c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=r("967d").default;a("601a8ae6",i,!0,{sourceMap:!1,shadowMode:!1})},db7b:function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return i}));var i={tnNavBar:r("3703").default},a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("tn-nav-bar",{attrs:{fixed:!0,id:"tn-nav-bar",beforeBack:e.beforeBack,backTitle:"",bottomShadow:!1}},[e._v("订单管理")]),e._l(e.orderData,(function(t,i){return r("v-uni-view",{key:i,staticClass:"order-item",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navOrderDetail(t.id)}}},[r("v-uni-view",{staticClass:"top-info",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navStore(t.sid)}}},[r("v-uni-view",{staticClass:"store-avatar"},[r("v-uni-view",{staticClass:"image"},[r("img",{staticStyle:{height:"100rpx",width:"100rpx"},attrs:{src:t.storeInfo.image,alt:""}})]),t.storeInfo.business?r("v-uni-view",{staticClass:"business-tag"},[e._v("营业")]):e._e()],1),r("v-uni-view",{staticClass:"top-right"},[r("v-uni-view",{staticClass:"top-right-line"},[r("v-uni-view",{staticClass:"store-title tn-text-ellipsis-1"},[e._v(e._s(t.storeInfo.title))]),t.custom_status_text?r("v-uni-view",{staticClass:"order-status",class:[e.orderStatusColorClass(t.orderStatus,t.isPay)]},[e._v(e._s(t.custom_status_text))]):r("v-uni-view",{staticClass:"order-status",class:[e.orderStatusColorClass(t.orderStatus,t.isPay)]},[e._v(e._s(e._f("orderStatusValue")(t.orderStatus,t.isPay,t.orderType)))])],1),r("v-uni-view",{staticClass:"top-right-line"},[e.orderTypes.find((function(e){return e.id===t.orderType}))?r("v-uni-view",{staticClass:"order-type"},[e._v(e._s(e.orderTypes.find((function(e){return e.id===t.orderType})).name))]):e._e()],1)],1)],1),r("v-uni-view",{staticClass:"product-list"},[1===t.goodsInfo.length?r("v-uni-view",{staticClass:"single-product tn-flex-row-center"},[r("v-uni-view",{staticClass:"product-image"},[r("v-uni-image",{staticClass:"image",staticStyle:{height:"140rpx",width:"140rpx","border-radius":"inherit"},attrs:{src:t.goodsInfo[0].image,mode:"aspectFill"}})],1),r("v-uni-view",{staticClass:"product-info"},[r("v-uni-view",{staticClass:"title tn-text-ellipsis-2"},[e._v(e._s(t.goodsInfo[0].title))]),r("v-uni-view",{staticClass:"num"},[e._v("数量: "+e._s(t.goodsInfo[0].num))])],1)],1):r("v-uni-scroll-view",{staticClass:"scroll-view",attrs:{"scroll-x":!0}},[r("v-uni-view",{staticStyle:{display:"flex","align-items":"center"}},e._l(t.goodsInfo,(function(t,i){return r("v-uni-view",{key:i,staticClass:"product-item"},[r("v-uni-view",{staticClass:"item-image"},[r("v-uni-image",{staticClass:"image",staticStyle:{height:"140rpx",width:"140rpx","border-radius":"inherit"},attrs:{src:t.image,mode:"aspectFill"}}),r("v-uni-view",{staticClass:"item-num"},[e._v("x "+e._s(t.num))])],1),r("v-uni-view",{staticClass:"item-title tn-text-ellipsis-1"},[e._v(e._s(t.title))])],1)})),1)],1),r("v-uni-view",{staticClass:"order-price-count-info"},[r("v-uni-view",{staticClass:"order-price"},[r("v-uni-view",{staticClass:"unit tn-color-gray--dark"},[e._v("RM")]),r("v-uni-view",{staticClass:"value"},[e._v(e._s(t.orderPrice))])],1),r("v-uni-view",{staticClass:"order-count tn-color-gray--dark"},[e._v("共"+e._s(t.goodsCount)+"件")])],1)],1),r("v-uni-view",{staticClass:"tn-no-margin-top tn-full-width tn-flex-center-between"},[r("v-uni-view",{staticClass:"create-time"},[e._v("下单时间: "+e._s(t.createTime))])],1),r("v-uni-view",{staticClass:"operation-btn tn-flex-center-end"},[1===t.isPay&&6!=t.orderStatus?r("v-uni-view",{staticClass:"btn again-order",staticStyle:{background:"#ff4f4f",color:"#080808"},on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.handleRefund(t)}}},[e._v("退货")]):e._e(),[5,6].includes(t.orderStatus)?r("v-uni-view",{staticClass:"btn again-order",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.navAnotherOrder(t.sid,t.id)}}},[e._v("再来一单")]):e._e(),0===t.isPay&&t.orderStatus<5?r("v-uni-view",{staticClass:"btn to-pay",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.payOrder(t.id)}}},[e._v("立即支付")]):e._e(),1===t.orderStatus?r("v-uni-view",{staticClass:"btn tn-bg-gray",on:{click:function(r){r.stopPropagation(),arguments[0]=r=e.$handleEvent(r),e.cancelOrder(t.id,t.ontouch_order_id,t.consumer_is_can_applyrefund,t.isPay,t.refund_status)}}},[0==t.isPay?r("v-uni-text",[e._v("取消支付")]):e._e(),1==t.isPay&&1==t.refund_status?r("v-uni-text",[e._v("退款申请中")]):e._e(),1==t.isPay&&0==t.refund_status?r("v-uni-text",[e._v("取消订单")]):e._e()],1):e._e()],1)],1)})),0==e.orderData.length?r("v-uni-view",{staticStyle:{color:"#616161",width:"100%","text-align":"center","margin-top":"50px"}},[e._v("暂无订单")]):e._e(),r("v-uni-view",{staticClass:"refresh-btn tn-shadow tn-flex-center",attrs:{"hover-class":"tn-btn-hover-class","hover-stay-time":150},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.handleRefreshDataEvent.apply(void 0,arguments)}}},[r("v-uni-text",{staticClass:"tn-icon-circle-arrow"})],1)],2)},n=[]}}]);
|