|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-list"],{"27f6":function(t,e,n){var r=n("24fb");e=r(!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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */.empty[data-v-de7c0c24]{box-sizing:border-box;padding:%?50?%;text-align:center;background:#fff;margin:%?20?% %?30?%;border-radius:%?16?%}.empty--tips[data-v-de7c0c24]{font-size:%?26?%;color:#999;margin:%?30?% 0 %?50?%}.empty--icon[data-v-de7c0c24]{width:%?280?%}',""]),t.exports=e},"280f":function(t,e,n){"use strict";var r=n("c1fb"),a=n.n(r);a.a},"2ab7":function(t,e,n){var r=n("24fb");e=r(!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/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 透明度 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 间距 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */uni-page-body[data-v-08a3ef98]{background:#f8f8f8;overflow:hidden}.tabs[data-v-08a3ef98]{height:%?100?%;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 %?40?%;font-size:%?28?%;color:#666}.tabs__active[data-v-08a3ef98]{color:#ff875b;position:relative}.tabs__active[data-v-08a3ef98]::after{display:block;content:"";height:%?4?%;background:#ff875b;border-radius:%?4?%;position:absolute;bottom:%?-20?%;left:45%;width:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.orders[data-v-08a3ef98]{background:#fff;padding:%?30?%;margin:%?20?% 0}.orders--title[data-v-08a3ef98]{display:flex;justify-content:space-between;align-items:center}.orders--name[data-v-08a3ef98]{font-size:%?32?%;color:#333}.orders--status[data-v-08a3ef98]{font-size:%?24?%;color:#999}.orders--status__warn[data-v-08a3ef98]{color:#ff875b}.orders--item[data-v-08a3ef98]{display:flex;justify-content:space-between;padding:%?30?% 0 0}.orders--item-image[data-v-08a3ef98]{width:%?180?%;height:%?180?%;margin-right:%?30?%}.orders--item-con[data-v-08a3ef98]{width:%?510?%;display:flex;justify-content:space-between;font-size:%?28?%;color:#333;line-height:%?39?%}.orders--item-title[data-v-08a3ef98]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.orders--item-pirce[data-v-08a3ef98]{font-size:%?22?%;margin-left:%?60?%}.orders--item-desc[data-v-08a3ef98]{width:%?510?%;font-size:%?24?%;color:#999;margin-top:%?20?%;line-height:%?39?%;display:flex;justify-content:space-between}.orders--item-num[data-v-08a3ef98]{font-size:%?28?%;margin-left:%?60?%}.orders--total[data-v-08a3ef98]{font-size:%?24?%;color:#999;display:flex;align-items:center;justify-content:end;margin-top:%?30?%}.orders--total__amount[data-v-08a3ef98]{font-size:%?28?%;margin-right:%?20?%}.orders--total__pay[data-v-08a3ef98]{color:#333}.orders--footer[data-v-08a3ef98]{display:flex;justify-content:end;align-items:center;margin-top:%?30?%}.orders--footer-btn[data-v-08a3ef98]{height:%?58?%;line-height:%?58?%;border-radius:%?30?%;margin:0 0 0 %?30?%;border:1px solid #333;color:#333;background:none;font-size:%?26?%}.orders--footer-btn__red[data-v-08a3ef98]{background:linear-gradient(270deg,#ff7f39,#ffa35b);color:#fff;border:0;height:%?60?%;line-height:%?60?%}body.?%PAGE?%[data-v-08a3ef98]{background:#f8f8f8}',""]),t.exports=e},"2ba7":function(t,e,n){"use strict";n.r(e);var r=n("bafb"),a=n("958e");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("280f");var i,s=n("f0c5"),u=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"08a3ef98",null,!1,r["a"],i);e["default"]=u.exports},"336e":function(t,e,n){"use strict";n.r(e);var r=n("e54d"),a=n("5bed");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);var i,s=n("f0c5"),u=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"e6aab716",null,!1,r["a"],i);e["default"]=u.exports},4136:function(t,e,n){"use strict";var r=n("4ea4");n("ac1f"),n("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=r(n("1da1")),o=r(n("1687")),i=n("c0d4"),s={components:{UiRadioPicker:o.default},props:{show:{type:Boolean,default:!1},order:{type:Object,default:function(){return{}}}},data:function(){return{options:[{label:"微信支付",value:"wxpay"},{label:"支付宝支付",value:"alipay"}]}},methods:{confirm:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function t(){var n,r,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.order.orderId,t.next=3,(0,i.ApiPostWxPay)({orderId:n,payTypeEnum:"WXPAY"});case 3:r=t.sent,a=r.error,r.result,a?e.$Router.replace("/payFail?ordId=".concat(n)):e.$Router.replace("/paySuccess?ordId=".concat(n));case 7:case"end":return t.stop()}}),t)})))()},close:function(){this.$emit("update:show",!1)}}};e.default=s},"47e4":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{}},props:{icon:{type:String,default:n("7a1a")},tips:{type:String,default:"亲,暂无相关数据"}},mounted:function(){},methods:{}};e.default=r},"4ac0":function(t,e,n){"use strict";var r=n("75b3"),a=n.n(r);a.a},5151:function(t,e,n){t.exports=n.p+"static/img/empty.c4b1f0ad.png"},"595c":function(t,e,n){"use strict";var r=n("4ea4");n("99af"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("96cf");var a=r(n("1da1")),o=r(n("8832")),i=r(n("359f")),s=n("c0d4"),u=r(n("336e")),c={components:{BsEmpty:o.default,UiButton:i.default,BsPay:u.default},data:function(){return{tabListData:[{key:"-1",name:"全部"},{key:"1",name:"待付款"},{key:"3",name:"待发货"},{key:"4",name:"待收货"},{key:"6",name:"待评价"}],currentTabKey:this.$Route.query.tab||"-1",orderListData:[],loadingStatus:"loading",pageIndex:1,pageSize:10,payShow:!1,payOrder:null}},onLoad:function(){this.getOrderList()},onReachBottom:function(){this.next()},methods:{changeTab:function(t){this.currentTabKey=t,this.pageIndex=1,this.orderListData=[],this.getOrderList()},getOrderList:function(){var t=this;return(0,a.default)(regeneratorRuntime.mark((function e(){var n,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.loadingStatus="loading",e.next=3,(0,s.ApiGetOrderList)({length:t.pageSize,pageIndex:t.pageIndex,orderStatus:t.currentTabKey>-1?t.currentTabKey:null});case 3:if(n=e.sent,r=n.error,a=n.result,!r){e.next=9;break}return uni.$u.toast(r.message),e.abrupt("return",!1);case 9:a.records.length||(t.loadingStatus="nomore"),t.orderListData=t.orderListData.concat(a.records);case 11:case"end":return e.stop()}}),e)})))()},next:function(){if("nomore"===this.loadingStatus)return!1;this.pageIndex++,this.getOrderList()},pay:function(t){this.payShow=!0,this.payOrder=t},receive:function(t){var e=this;return(0,a.default)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$msb.confirm({content:"确认已经收到货了吗?",confirm:function(){var n=(0,a.default)(regeneratorRuntime.mark((function n(){var r,a;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,s.ApiPutOrderReceive)({orderId:t.orderId});case 2:if(r=n.sent,a=r.error,!a){n.next=7;break}return uni.$toast(a.message),n.abrupt("return",!1);case 7:e.$Router.push("/orderSuccess");case 8:case"end":return n.stop()}}),n)})));function r(){return n.apply(this,arguments)}return r}()});case 1:case"end":return n.stop()}}),n)})))()}}};e.default=c},"5bed":function(t,e,n){"use strict";n.r(e);var r=n("4136"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},"645a":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"empty"},[t._t("icon",[n("v-uni-image",{staticClass:"empty--icon",attrs:{src:t.icon,mode:"widthFix"}})]),n("v-uni-view",{staticClass:"empty--tips"},[t._v(t._s(t.tips))]),t._t("btn")],2)},o=[]},"75b3":function(t,e,n){var r=n("27f6");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("102b55f5",r,!0,{sourceMap:!1,shadowMode:!1})},7985:function(t,e,n){"use strict";n.r(e);var r=n("47e4"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},"7a1a":function(t,e,n){t.exports=n.p+"static/img/empty.bdec362e.png"},8832:function(t,e,n){"use strict";n.r(e);var r=n("645a"),a=n("7985");for(var o in a)"default"!==o&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("4ac0");var i,s=n("f0c5"),u=Object(s["a"])(a["default"],r["b"],r["c"],!1,null,"de7c0c24",null,!1,r["a"],i);e["default"]=u.exports},"958e":function(t,e,n){"use strict";n.r(e);var r=n("595c"),a=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=a.a},bafb:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uLoadmore:n("c153").default},a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",[r("v-uni-view",{staticClass:"tabs"},t._l(t.tabListData,(function(e){return r("v-uni-text",{key:e.key,class:e.key===t.currentTabKey&&"tabs__active",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeTab(e.key)}}},[t._v(t._s(e.name))])})),1),t.orderListData.length||"nomore"!==t.loadingStatus?t._e():r("BsEmpty",{attrs:{tips:"暂无订单记录呢~",icon:n("5151")}},[r("ui-button",{attrs:{slot:"btn",type:"line"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router("/")}},slot:"btn"},[t._v("去逛逛")])],1),t._l(t.orderListData,(function(e){return r("v-uni-view",{key:e.orderId,staticClass:"orders"},[r("v-uni-view",{staticClass:"orders--title"},[r("v-uni-text",{staticClass:"orders--name"},[t._v("官方自营")]),r("v-uni-text",{staticClass:"orders--status",class:[1,3].includes(e.orderStatus)&&"orders--status__warn"},[t._v(t._s(e.orderStatusDesc))])],1),t._l(e.products,(function(n){return r("v-uni-view",{key:n.orderProductId,staticClass:"orders--item",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/orderDetail?id="+e.orderId)}}},[r("v-uni-image",{staticClass:"orders--item-image",attrs:{mode:"widthFix",src:n.productImageUrl}}),r("v-uni-view",[r("v-uni-view",{staticClass:"orders--item-con"},[r("v-uni-text",{staticClass:"orders--item-title"},[t._v(t._s(n.productName))]),r("v-uni-text",{staticClass:"orders--item-pirce"},[t._v("¥"+t._s(n.realAmount))])],1),r("v-uni-view",{staticClass:"orders--item-desc"},[r("v-uni-text",[t._v(t._s(n.skuDescribe))]),r("v-uni-text",{staticClass:"orders--item-num"},[t._v("x"+t._s(n.quantity))])],1)],1)],1)})),r("v-uni-view",{staticClass:"orders--total"},[r("v-uni-text",[t._v("合计")]),r("v-uni-text",{staticClass:"orders--total__amount"},[t._v("¥"+t._s(e.totalAmount))]),r("v-uni-text",{staticClass:"orders--total__pay"},[t._v("应付")]),r("v-uni-text",{staticClass:"orders--total__amount orders--total__pay"},[t._v("¥"+t._s(e.payAmount))])],1),r("v-uni-view",{staticClass:"orders--footer"},[1===e.orderStatus?r("v-uni-button",{staticClass:"orders--footer-btn orders--footer-btn__red",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.pay(e)}}},[t._v("去支付")]):t._e(),2===e.orderStatus?r("v-uni-button",{staticClass:"orders--footer-btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/orderDetail?id="+e.orderId)}}},[t._v("查看详情")]):t._e(),e.orderStatus>=4?r("v-uni-button",{staticClass:"orders--footer-btn",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.$Router.push("/logisitcsInfo?orderId="+e.orderId)}}},[t._v("查看物流")]):t._e(),4==e.orderStatus?r("v-uni-button",{staticClass:"orders--footer-btn orders--footer-btn__red",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.receive(e)}}},[t._v("确认收货")]):t._e()],1)],2)})),t.orderListData.length?r("u-loadmore",{attrs:{status:t.loadingStatus}}):t._e(),r("BsPay",{attrs:{show:t.payShow,order:t.payOrder},on:{"update:show":function(e){arguments[0]=e=t.$handleEvent(e),t.payShow=e}}})],2)},o=[]},c1fb:function(t,e,n){var r=n("2ab7");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var a=n("4f06").default;a("90c47a1a",r,!0,{sourceMap:!1,shadowMode:!1})},e54d:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("UiRadioPicker",{attrs:{title:"请选择支付方式",show:t.show,options:t.options},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}})},o=[]}}]); |