You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
27 KiB
1 lines
27 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-order_list-index"],{"0204":function(t,e,i){"use strict";i.r(e);var n=i("c9b5"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"03ff":function(t,e,i){"use strict";i.r(e);var n=i("344e"),r=i("1565");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("15bc");var o=i("f0c5"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"5c721f6d",null,!1,n["a"],void 0);e["default"]=s.exports},"07f1":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a434");var r=i("451d"),a=(i("f984"),n(i("03ff"))),o=i("666f"),s=i("26cb"),c=n(i("2baa")),u=n(i("66ca")),d={components:{home:a.default,emptyPage:c.default},mixins:[u.default],data:function(){return{loading:!1,loadend:!1,loadTitle:this.$t("加载更多"),orderList:[],orderData:{},orderStatus:9,page:1,limit:20,pay_close:!1,pay_order_id:"",totalPrice:"0",initIn:!1,isAuto:!1,isShowAuth:!1}},computed:(0,s.mapGetters)(["isLogin"]),onLoad:function(t){t.status&&(this.orderStatus=t.status);var e=wx.getEnterOptionsSync();if("1038"==e.scene&&"wxef277996acc166c3"==e.referrerInfo.appId&&this.initIn){var i=e.referrerInfo.extraData;this.initIn=!1,i?"success"==i.code?this.getOrderList():i.code:this.getOrderList()}},onShow:function(){this.isLogin?(this.page=1,this.orderList=[],this.loadend=!1,this.pay_close=!1,this.onLoadFun(),this.getOrderList()):(0,o.toLogin)()},methods:{onLoadFun:function(){this.getOrderData()},authColse:function(t){this.isShowAuth=t},onChangeFun:function(t){var e=t,i=e.action||null,n=void 0!=e.value?e.value:null;i&&this[i]&&this[i](n)},payClose:function(){this.pay_close=!1},getOrderData:function(){var t=this;(0,r.orderData)().then((function(e){t.$set(t,"orderData",e.data)}))},cancelOrder:function(t,e){var i=this;if(!e)return i.$util.Tips({title:i.$t("缺少订单号无法取消订单")});uni.showModal({title:this.$t("提示"),content:this.$t("确认取消该订单"),success:function(n){n.confirm?(0,r.orderCancel)(e).then((function(e){return i.$util.Tips({title:e.msg,icon:"success"},(function(){i.orderList.splice(t,1),i.$set(i,"orderList",i.orderList),i.$set(i.orderData,"unpaid_count",i.orderData.unpaid_count-1),i.getOrderData()}))})).catch((function(t){return i.$util.Tips({title:t})})):n.cancel}})},goPay:function(t,e){uni.navigateTo({url:"/pages/goods/cashier/index?order_id=".concat(e,"&from_type=order")})},goOrderDetails:function(t){if(!t)return this.$util.Tips({title:this.$t("缺少订单号无法查看订单详情")});uni.navigateTo({url:"/pages/goods/order_details/index?order_id="+t})},statusClick:function(t){t!=this.orderStatus&&(this.orderStatus=t,this.loadend=!1,this.page=1,this.$set(this,"orderList",[]),this.getOrderList())},getOrderList:function(){var t=this;t.loadend||t.loading||(t.loading=!0,t.loadTitle=t.$t("加载更多"),(0,r.getOrderList)({type:t.orderStatus,page:t.page,limit:t.limit}).then((function(e){var i=e.data||[],n=i.length<t.limit;t.orderList=t.$util.SplitArray(i,t.orderList),t.$set(t,"orderList",t.orderList),t.loadend=n,t.loading=!1,t.loadTitle=n?t.$t("没有更多内容啦~"):t.$t("加载更多"),t.page=t.page+1})).catch((function(e){t.loading=!1,t.loadTitle=t.$t("加载更多")})))},delOrder:function(t,e){var i=this;uni.showModal({title:i.$t("删除订单"),content:i.$t("确定删除该订单"),success:function(n){if(n.confirm)(0,r.orderDel)(t).then((function(t){return i.orderList.splice(e,1),i.$set(i,"orderList",i.orderList),i.$set(i.orderData,"unpaid_count",i.orderData.unpaid_count-1),i.getOrderData(),i.$util.Tips({title:i.$t("删除成功"),icon:"success"})})).catch((function(t){return i.$util.Tips({title:t})}));else if(n.cancel)return i.$util.Tips({title:i.$t("已取消")})}})}},onReachBottom:function(){this.getOrderList()},onPageScroll:function(t){uni.$emit("scroll")}};e.default=d},"0db4":function(t,e,i){"use strict";i.r(e);var n=i("d4f63"),r=i("c931");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("7ef2");var o=i("f0c5"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"5447c6fd",null,!1,n["a"],void 0);e["default"]=s.exports},1565:function(t,e,i){"use strict";i.r(e);var n=i("539e"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"15bc":function(t,e,i){"use strict";var n=i("c257"),r=i.n(n);r.a},"2baa":function(t,e,i){"use strict";i.r(e);var n=i("4624"),r=i("0204");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("7e1c");var o=i("f0c5"),s=Object(o["a"])(r["default"],n["b"],n["c"],!1,null,"40a2f1ee",null,!1,n["a"],void 0);e["default"]=s.exports},"344e":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{style:t.colorStyle},[i("v-uni-view",{staticStyle:{"touch-action":"none"}},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px"},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon bg-color",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/index/index"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/order_addcart/order_addcart"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none","open-type":"switchTab",url:"/pages/user/index"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image",attrs:{src:!0===t.homeActive?t.imgHost+"/statics/images/close.gif":t.imgHost+"/statics/images/open.gif"}})],1)],1)],1)],1)],1)},r=[]},"451d":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.adminExpress=function(t,e){return a.default.get("admin/order/express/"+t+"".concat(e?"/refund":""))},e.aliPay=function(t,e){return a.default.get("ali_pay",{key:t,quitUrl:e},{noAuth:!0})},e.cancelRefundOrder=function(t){return a.default.post("order/refund/cancel/"+t)},e.cartDel=function(t){"object"===(0,r.default)(t)&&(t=t.join(","));return a.default.post("cart/del",{ids:t})},e.changeCartNum=function(t,e){return a.default.post("cart/num",{id:t,number:e})},e.checkShipping=function(t,e){return a.default.post("order/check_shipping",{cartId:t,new:e})},e.express=function(t,e){return a.default.get("order/express/"+t+"".concat(e?"/refund":""))},e.getCartCounts=function(t){return a.default.get("cart/count",{numType:void 0===t?0:t})},e.getCartList=function(t){return a.default.get("cart/list",t)},e.getCashierOrder=function(t,e){return a.default.get("order/cashier/".concat(t,"/").concat(e))},e.getCouponsOrderPrice=function(t,e){return a.default.get("coupons/order/"+t,e)},e.getNewOrderList=function(t){return a.default.get("order/refund/list",t)},e.getOrderDetail=function(t,e){return a.default.get("order/detail/"+t+"".concat(e?"/".concat(e):""))},e.getOrderList=function(t){return a.default.get("order/list",t)},e.getRefundOrderDetail=function(t,e){return a.default.get("order/refund_detail/"+t+"".concat(e?"/".concat(e):""))},e.getResetCart=function(t){return a.default.post("v2/reset_cart",t)},e.offlineCheckPrice=function(t){return a.default.post("order/offline/check/price",t)},e.offlineCreate=function(t){return a.default.post("order/offline/create",t)},e.ordeRefundReason=function(){return a.default.get("order/refund/reason")},e.orderAgain=function(t){return a.default.post("order/again",{uni:t})},e.orderCancel=function(t){return a.default.post("order/cancel",{id:t})},e.orderComment=function(t){return a.default.post("order/comment",t)},e.orderConfirm=function(t,e,i,n){return a.default.post("order/confirm",{cartId:t,new:e,addressId:i,shipping_type:n})},e.orderCoupon=function(t){return a.default.post("v2/order/product_coupon/"+t)},e.orderCreate=function(t,e){return a.default.post("order/create/"+t,e)},e.orderData=function(){return a.default.get("order/data")},e.orderDel=function(t){return a.default.post("order/del",{uni:t})},e.orderInvoiceDetail=function(t){return a.default.get("v2/order/invoice_detail/".concat(t))},e.orderInvoiceList=function(t){return a.default.get("v2/order/invoice_list",t)},e.orderOfflinePayType=function(){return a.default.get("order/offline/pay/type")},e.orderPay=function(t){return a.default.post("order/pay",t)},e.orderProduct=function(t){return a.default.post("order/product",{unique:t})},e.orderRefundVerify=function(t){return a.default.post("order/refund/verify",t)},e.orderTake=function(t){return a.default.post("order/take",{uni:t})},e.postOrderComputed=function(t,e){return a.default.post("order/computed/"+t,e)},e.postRefundGoods=function(t){return a.default.post("order/refund/cart_info",t)},e.refundExpress=function(t){return a.default.post("order/refund/express",t)},e.refundGoodsList=function(t){return a.default.get("order/refund/cart_info/".concat(t))},e.refundOrderDel=function(t){return a.default.get("order/refund/del/"+t,{})},e.refundOrderDetail=function(t){return a.default.get("order/refund/detail/"+t)},e.returnGoodsSubmit=function(t,e){return a.default.post("order/refund/apply/".concat(t),e)},e.vcartList=function(){return a.default.get("v2/cart_list")},i("99af");var r=n(i("53ca")),a=n(i("3160"))},4624:function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"empty-box"},[e("v-uni-image",{attrs:{src:this.imgHost+"/statics/images/empty-box.png"}}),e("v-uni-view",{staticClass:"txt"},[this._v(this._s(this.title||this.$t("暂无记录")))])],1)},r=[]},"4a9e":function(t,e,i){var n=i("800f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("85975418",n,!0,{sourceMap:!1,shadowMode:!1})},"539e":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i("26cb"),a=n(i("66ca")),o=i("989b"),s={name:"Home",props:{},mixins:[a.default],data:function(){return{top:"545",imgHost:o.HTTP_REQUEST_URL}},computed:(0,r.mapGetters)(["homeActive"]),methods:{setTouchMove:function(t){t.touches[0].clientY<545&&t.touches[0].clientY>66&&(this.top=t.touches[0].clientY)},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){},beforeDestroy:function(){this.$store.commit("CLOSE_HOME")}};e.default=s},"7e1c":function(t,e,i){"use strict";var n=i("4a9e"),r=i.n(n);r.a},"7ef2":function(t,e,i){"use strict";var n=i("af508"),r=i.n(n);r.a},"800f":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty-box[data-v-40a2f1ee]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-40a2f1ee]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-40a2f1ee]{font-size:%?26?%;color:#999}',""]),t.exports=e},a2cb:function(t,e,i){t.exports=i.p+"static/img/orderTime.144c69b9.png"},a798:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".pictrueBox[data-v-5c721f6d]{width:%?130?%;height:%?120?%}\n\n/*返回主页按钮*/.home[data-v-5c721f6d]{position:fixed;color:#fff;text-align:center;z-index:999;right:%?15?%;display:flex}.home .homeCon[data-v-5c721f6d]{border-radius:%?50?%;opacity:0;height:0;color:var(--view-theme);width:0}.home .homeCon.on[data-v-5c721f6d]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)!important;opacity:.8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.home .homeCon .iconfont[data-v-5c721f6d]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-5c721f6d]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme)}.home .pictrue .image[data-v-5c721f6d]{width:100%;height:100%;border-radius:50%;-webkit-transform:rotate(90deg);transform:rotate(90deg);ms-transform:rotate(90deg);moz-transform:rotate(90deg);webkit-transform:rotate(90deg);o-transform:rotate(90deg)}",""]),t.exports=e},af508:function(t,e,i){var n=i("ccc2");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("7a801982",n,!0,{sourceMap:!1,shadowMode:!1})},c257:function(t,e,i){var n=i("a798");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=i("4f06").default;r("f61d2c94",n,!0,{sourceMap:!1,shadowMode:!1})},c931:function(t,e,i){"use strict";i.r(e);var n=i("07f1"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},c9b5:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("989b"),r={props:{title:{type:String,default:""}},data:function(){return{imgHost:n.HTTP_REQUEST_URL}}};e.default=r},ccc2:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.my-order .header[data-v-5447c6fd]{height:%?260?%;padding:0 %?30?%}.my-order .header .picTxt[data-v-5447c6fd]{height:%?190?%}.my-order .header .picTxt .text[data-v-5447c6fd]{color:hsla(0,0%,100%,.8);font-size:%?26?%;font-family:Guildford Pro}.my-order .header .picTxt .text .name[data-v-5447c6fd]{font-size:%?34?%;font-weight:700;color:#fff;margin-bottom:%?20?%}.my-order .header .picTxt .pictrue[data-v-5447c6fd]{width:%?122?%;height:%?109?%}.my-order .header .picTxt .pictrue uni-image[data-v-5447c6fd]{width:100%;height:100%}.my-order .nav[data-v-5447c6fd]{background-color:#fff;width:%?690?%;height:%?140?%;border-radius:%?6?%;margin:%?-73?% auto 0 auto}.my-order .nav .item[data-v-5447c6fd]{text-align:center;font-size:%?26?%;color:#282828;width:3rem;padding:%?27?% 0;border-bottom:%?5?% solid transparent}.my-order .nav .item.on[data-v-5447c6fd]{font-weight:700;border-color:var(--view-theme)}.my-order .nav .item .num[data-v-5447c6fd]{margin-top:%?18?%}.my-order .list[data-v-5447c6fd]{width:%?690?%;margin:%?14?% auto 0 auto}.my-order .list .item[data-v-5447c6fd]{background-color:#fff;border-radius:%?6?%;margin-bottom:%?14?%}.my-order .list .item .title[data-v-5447c6fd]{height:%?84?%;padding:0 %?30?%;border-bottom:%?1?% solid #eee;font-size:%?28?%;color:#282828}.my-order .list .item .title .sign[data-v-5447c6fd]{font-size:%?24?%;padding:0 %?7?%;height:%?36?%;margin-right:%?15?%}.my-order .list .item .item-info[data-v-5447c6fd]{padding:0 %?30?%;margin-top:%?22?%}.my-order .list .item .item-info .pictrue[data-v-5447c6fd]{width:%?120?%;height:%?120?%}.my-order .list .item .item-info .pictrue[data-v-5447c6fd] ,\n.my-order .list .item .item-info .pictrue[data-v-5447c6fd] uni-image,\n.my-order .list .item .item-info .pictrue[data-v-5447c6fd] .easy-loadimage,\n.my-order .list .item .item-info .pictrue[data-v-5447c6fd] uni-image{width:%?120?%;height:%?120?%;border-radius:%?6?%}.my-order .list .item .item-info .pictrue uni-image[data-v-5447c6fd]{width:100%;height:100%;border-radius:%?6?%}.my-order .list .item .item-info .text[data-v-5447c6fd]{width:%?486?%;font-size:%?28?%;color:#999;margin-top:%?6?%;display:flex;line-height:%?39?%}.my-order .list .item .item-info .text .name[data-v-5447c6fd]{width:%?306?%;color:#282828;height:%?78?%}.my-order .list .item .item-info .text .money[data-v-5447c6fd]{text-align:right;flex:1}.my-order .list .item .totalPrice[data-v-5447c6fd]{font-size:%?26?%;color:#282828;text-align:right;margin:%?27?% 0 0 %?30?%;padding:0 %?30?% %?30?% 0;border-bottom:%?1?% solid #eee}.my-order .list .item .totalPrice .money[data-v-5447c6fd]{font-size:%?28?%;font-weight:700;color:var(--view-priceColor)}.my-order .list .item .bottom[data-v-5447c6fd]{height:%?107?%;padding:0 %?30?%}.my-order .list .item .bottom .bnt[data-v-5447c6fd]{width:%?176?%;height:%?60?%;text-align:center;line-height:%?60?%;color:#fff;border-radius:%?50?%;font-size:%?27?%}.my-order .list .item .bottom .bnt.cancelBnt[data-v-5447c6fd]{border:%?1?% solid #ddd;color:#aaa}.my-order .list .item .bottom .bnt ~ .bnt[data-v-5447c6fd]{margin-left:%?17?%}.noCart[data-v-5447c6fd]{margin-top:%?171?%;padding-top:%?0.1?%}.noCart .pictrue[data-v-5447c6fd]{width:%?414?%;height:%?336?%;margin:%?78?% auto %?56?% auto}.noCart .pictrue uni-image[data-v-5447c6fd]{width:100%;height:100%}.my-order .list .item .item-info .text .money .return[data-v-5447c6fd]{margin-top:%?10?%;font-size:%?24?%}',""]),t.exports=e},d4f63:function(t,e,i){"use strict";i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={easyLoadimage:i("9362").default},r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.colorStyle},[n("v-uni-view",{staticClass:"my-order"},[n("v-uni-view",{staticClass:"header bg-color"},[n("v-uni-view",{staticClass:"picTxt acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"text"},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(t.$t("订单信息")))]),n("v-uni-view",[t._v(t._s(t.$t("消费订单"))+":"+t._s(t.orderData.order_count||0)+"\n\t\t\t\t\t\t"+t._s(t.$t("总消费"))+":"+t._s(t.$t("¥"))+t._s(t.orderData.sum_price||0))])],1),n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:i("a2cb")}})],1)],1)],1),n("v-uni-view",{staticClass:"nav acea-row row-around"},[n("v-uni-view",{staticClass:"item",class:9==t.orderStatus?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.statusClick(9)}}},[n("v-uni-view",[t._v(t._s(t.$t("全部")))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.orderData.order_count||0))])],1),n("v-uni-view",{staticClass:"item",class:0==t.orderStatus?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.statusClick(0)}}},[n("v-uni-view",[t._v(t._s(t.$t("待付款")))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.orderData.unpaid_count||0))])],1),n("v-uni-view",{staticClass:"item",class:1==t.orderStatus?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.statusClick(1)}}},[n("v-uni-view",[t._v(t._s(t.$t("待发货")))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.orderData.unshipped_count||0))])],1),n("v-uni-view",{staticClass:"item",class:2==t.orderStatus?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.statusClick(2)}}},[n("v-uni-view",[t._v(t._s(t.$t("待收货")))]),n("v-uni-view",{staticClass:"num "},[t._v(t._s(t.orderData.received_count||0))])],1),n("v-uni-view",{staticClass:"item",class:3==t.orderStatus?"on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.statusClick(3)}}},[n("v-uni-view",[t._v(t._s(t.$t("待评价")))]),n("v-uni-view",{staticClass:"num"},[t._v(t._s(t.orderData.evaluated_count||0))])],1)],1),n("v-uni-view",{staticClass:"list"},t._l(t.orderList,(function(e,i){return n("v-uni-view",{key:i,staticClass:"item"},[n("v-uni-view",{on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goOrderDetails(e.order_id)}}},[n("v-uni-view",{staticClass:"title acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"acea-row row-middle"},[2==e.type?n("v-uni-text",{staticClass:"sign cart-color acea-row row-center-wrapper"},[t._v(t._s(t.$t("砍价")))]):3==e.type?n("v-uni-text",{staticClass:"sign cart-color acea-row row-center-wrapper"},[t._v(t._s(t.$t("拼团")))]):1==e.type?n("v-uni-text",{staticClass:"sign cart-color acea-row row-center-wrapper"},[t._v(t._s(t.$t("秒杀")))]):4==e.type?n("v-uni-text",{staticClass:"sign cart-color acea-row row-center-wrapper"},[t._v(t._s(t.$t("预售")))]):t._e(),n("v-uni-view",[t._v(t._s(e._add_time))])],1),9==e._status._type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("线下付款,未支付")))]):0==e._status._type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("待付款")))]):1==e._status._type&&1==e.shipping_type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("待发货"))),e.refund.length?n("v-uni-text",[t._v(","+t._s(e.is_all_refund?t.$t("退款中"):t.$t("部分退款中")))]):t._e()],1):1==e._status._type&&2==e.shipping_type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("待核销"))),e.refund.length?n("v-uni-text",[t._v(","+t._s(e.is_all_refund?t.$t("退款中"):t.$t("部分退款中")))]):t._e()],1):2==e._status._type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("待收货"))),e.refund.length?n("v-uni-text",[t._v(","+t._s(e.is_all_refund?t.$t("退款中"):t.$t("部分退款中")))]):t._e()],1):3==e._status._type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("待评价"))),e.refund.length?n("v-uni-text",[t._v(","+t._s(e.is_all_refund?t.$t("退款中"):t.$t("部分退款中")))]):t._e()],1):4==e._status._type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("已完成"))),e.refund.length?n("v-uni-text",[t._v(","+t._s(e.is_all_refund?t.$t("退款中"):t.$t("部分退款中")))]):t._e()],1):5==e._status._type&&0==e.status?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("未核销"))),e.refund.length?n("v-uni-text",[t._v(","+t._s(e.is_all_refund?t.$t("退款中"):t.$t("部分退款中")))]):t._e()],1):-2==e._status._type?n("v-uni-view",{staticClass:"font-color"},[t._v(t._s(t.$t("已退款")))]):t._e()],1),t._l(e.cartInfo,(function(i,r){return n("v-uni-view",{key:r,staticClass:"item-info acea-row row-between row-top"},[n("v-uni-view",{staticClass:"pictrue"},[n("easy-loadimage",{attrs:{mode:"widthFix","image-src":i.productInfo.image}})],1),n("v-uni-view",{staticClass:"text row-between"},[n("v-uni-text",{staticClass:"name line2"},[t._v(t._s(i.productInfo.store_name))]),n("v-uni-view",{staticClass:"money"},[i.productInfo.attrInfo?n("v-uni-view",[t._v(t._s(t.$t("¥"))+t._s(i.productInfo.attrInfo.price))]):n("v-uni-view",[t._v(t._s(t.$t("¥"))+t._s(i.productInfo.price))]),n("v-uni-view",[t._v("x"+t._s(i.cart_num))]),i.refund_num&&-2!=e._status._type?n("v-uni-view",{staticClass:"return"},[t._v(t._s(i.refund_num)+t._s(t.$t("件退款中")))]):t._e()],1)],1)],1)})),n("v-uni-view",{staticClass:"totalPrice"},[t._v(t._s(t.$t("共"))+t._s(e.total_num||0)+t._s(t.$t("件商品,总金额"))),n("v-uni-text",{staticClass:"money"},[t._v(t._s(t.$t("¥"))+t._s(e.pay_price))])],1)],2),n("v-uni-view",{staticClass:"bottom acea-row row-right row-middle"},[0==e._status._type||9==e._status._type?n("v-uni-view",{staticClass:"bnt cancelBnt",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.cancelOrder(i,e.order_id)}}},[t._v(t._s(t.$t("取消订单")))]):t._e(),0==e._status._type?n("v-uni-view",{staticClass:"bnt bg-color",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goPay(e.pay_price,e.order_id)}}},[t._v(t._s(t.$t("立即付款")))]):t._e(),4==e._status._type?n("v-uni-view",{staticClass:"bnt cancelBnt",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.delOrder(e.order_id,i)}}},[t._v(t._s(t.$t("删除订单")))]):t._e(),n("v-uni-view",{staticClass:"bnt bg-color",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goOrderDetails(e.order_id)}}},[t._v(t._s(t.$t("查看详情")))])],1)],1)})),1),t.orderList.length>0?n("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[n("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}}),t._v(t._s(t.loadTitle))],1):t._e(),0==t.orderList.length?n("v-uni-view",[t.loading?t._e():n("emptyPage",{attrs:{title:t.$t("暂无订单")}}),n("v-uni-view",{staticClass:"loadingicon acea-row row-center-wrapper"},[n("v-uni-text",{staticClass:"loading iconfont icon-jiazai",attrs:{hidden:0==t.loading}})],1)],1):t._e()],1),n("home")],1)},a=[]},f984:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.auth=r,e.openBargainSubscribe=function(){var t=r();return a([t.bargain_success])},e.openExtrctSubscribe=function(){var t=r();return a([t.user_extract])},e.openOrderRefundSubscribe=function(){var t=r();return a([t.order_refund])},e.openOrderSubscribe=function(){var t=r();return a([t.order_take,t.integral_accout])},e.openPaySubscribe=function(){var t=r();return a([t.order_pay_success,t.order_deliver_success,t.order_postage_success])},e.openPinkSubscribe=function(){var t=r();return a([t.order_user_groups_success])},e.openRechargeSubscribe=function(){var t=r();return a([t.recharge_success])},e.subscribe=a,i("d3b7");var n=i("2038");function r(){var t,e=uni.getStorageSync(n.SUBSCRIBE_MESSAGE);return t=e?JSON.parse(e):{},t}function a(t){var e=wx;return new Promise((function(i,n){e.requestSubscribeMessage({tmplIds:t,success:function(t){return i(t)},fail:function(t){return i(t)}})}))}}}]); |