1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/myOrder/index"],{"35c4":function(e,t,o){"use strict";var r=o("eafc"),i=o.n(r);i.a},"38c6":function(e,t,o){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o("2f62");function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function n(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){a(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function a(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var s=function(){o.e("component/Dialog").then(function(){return resolve(o("37f5"))}.bind(null,o)).catch(o.oe)},l=function(){o.e("component/Gobacktop").then(function(){return resolve(o("e3cf"))}.bind(null,o)).catch(o.oe)},c={components:{Dialog:s,Gobacktop:l},data:function(){return{isTop:!1,ispull:!0,showdialog:!1,orderCancel:!1,titles:"",pictureUrl:this.pictureUrl,menu:[{name:"全部"},{name:"待支付"},{name:"处理中"},{name:"已收货"},{name:"已取消"}],deleteorder:0,active:0,scrollTop:0,old:{scrollTop:0},order_id:"",page:1,page_size:10,state:"all",order_list:[]}},computed:n({},(0,r.mapState)(["hasLogin","userInfo","successlogion"])),onLoad:function(t){var o=this;e.$on("refehlist",(function(){o.order_list=[],o.getlist()})),e.$on(" finshlist",(function(){o.page=1,o.order_list=[],o.getlist()})),e.$on("finshesitmate",(function(){o.page=1,o.order_list=[],o.getlist()})),this.successlogion&&this.hasLogin?this.getlist():e.navigateTo({url:"/pages/myCenter/logion"})},watch:{successlogion:function(t){t?(this.active=0,this.getlist()):e.navigateTo({url:"/pages/myCenter/logion"})},hasLogin:function(t){t?(this.active=0,this.getlist()):e.navigateTo({url:"/pages/myCenter/logion"})}},methods:{getop:function(){this.scrollTop=this.old.scrollTop,this.$nextTick((function(){this.scrollTop=0})),this.isTop=!1},gotologion:function(){e.navigateTo({url:"/pages/myCenter/logion"})},changeselect:function(t){this.successlogion&&this.hasLogin?(console.log(t),this.active=t.target.name,this.page=1,this.ispull=!0,this.order_list=[],0==t.target.name?(this.state="all",this.getlist()):1==t.target.name?(this.state="waiting",this.getlist()):2==t.target.name?(this.state="payed",this.getlist()):3==t.target.name?(this.state="complete",this.getlist()):4==t.target.name&&(this.state="cancel",this.getlist()),5==t.target.name&&(this.state="refund")):e.navigateTo({url:"/pages/myCenter/logion"})},refund:function(){var e=this;this.request({url:"/v3/order/refund_list",method:"POST",data:{state:this.state,page:this.page,page_size:10},success:function(t){console.log(t.data.data.refund_list),t.data.data.refund_list.length<10&&(e.ispull=!1),t.data.data.refund_list.forEach((function(e,t){var o=e.goods_name.split(" ");e.desarray=o[0],e.descire=e.goods_name.replace(o[0],"")})),e.order_list=e.order_list.concat(t.data.data.refund_list)}})},getlist:function(){var e=this;this.request({url:"/v2/order/orders",method:"POST",data:{state:this.state,page:this.page,page_size:10},success:function(t){t.data.data.order_list.length<10&&(e.ispull=!1),t.data.data.order_list.forEach((function(e,t){e.goods.forEach((function(e){var t=e.goods_name.split(" ");e.desarray=t[0],e.descire=e.goods_name.replace(t[0],"")}))})),e.order_list=e.order_list.concat(t.data.data.order_list)}})},gopay:function(t){console.log(t);var o=t.order_amount;this.order_id=t.order_id;var r=t.order_id;if("去付款"==t.operate)e.navigateTo({url:"/pages/myOrder/paymoment?order_id=".concat(r,"&prices=").concat(o)});else if("删除"==t.operate)this.titles="确认删除订单?",this.deleteorder=1,this.orderCancel=!0;else if("催单"==t.operate){var i=1;e.navigateTo({url:"/pages/myOrder/reminder?order_id=".concat(r,"&a=").concat(i)})}else if("确认收货"==t.operate)this.deleteorder=2,this.titles="确认收货?",this.orderCancel=!0;else if("去评价"==t.operate)e.navigateTo({url:"/pages/myOrder/estimate?order_id=".concat(r)});else if("联系酒店"==t.operate){var n=2;e.navigateTo({url:"/pages/myOrder/reminder?order_id=".concat(r,"&a=").concat(n)})}},cancelDialog:function(){this.orderCancel=!1},confirmOrder:function(){var e=this;this.orderCancel=!1;var t=1==this.deleteorder?"/v2/order/drop":"/v2/order/confirm";this.request({url:t,method:"POST",data:{order_id:this.order_id},success:function(t){e.order_list=[],e.page=1,e.ispull=!0,e.getlist()}})},goDetail:function(t){var o=t;e.navigateTo({url:"/pages/myOrder/order?id=".concat(o)})},goStore:function(t){var o=t;e.navigateTo({url:"/pages/index/hotel?id=".concat(o)})},upper:function(e){console.log(e),console.log("顶部")},lower:function(e){this.ispull&&(console.log("l;ll"),this.page+=1,this.getlist())},scroll:function(e){e.detail.scrollTop>400?this.isTop=!0:this.isTop=!1,this.old.scrollTop=e.detail.scrollTop}}};t.default=c}).call(this,o("543d")["default"])},"672f":function(e,t,o){"use strict";(function(e){o("0bef"),o("921b");r(o("66fd"));var t=r(o("6ab9"));function r(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,o("543d")["createPage"])},"6ab9":function(e,t,o){"use strict";o.r(t);var r=o("9bf8"),i=o("db2f");for(var n in i)"default"!==n&&function(e){o.d(t,e,(function(){return i[e]}))}(n);o("35c4");var a,s=o("f0c5"),l=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=l.exports},"9bf8":function(e,t,o){"use strict";var r,i=function(){var e=this,t=e.$createElement,o=(e._self._c,e.__map(e.order_list,(function(t,o){var r=e.__map(t.goods,(function(t,o){var r=t.goods_image.substr(0,t.goods_image.indexOf("_"));return{$orig:e.__get_orig(t),g0:r}}));return{$orig:e.__get_orig(t),l0:r}})));e.$mp.data=Object.assign({},{$root:{l1:o}})},n=[];o.d(t,"b",(function(){return i})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return r}))},db2f:function(e,t,o){"use strict";o.r(t);var r=o("38c6"),i=o.n(r);for(var n in r)"default"!==n&&function(e){o.d(t,e,(function(){return r[e]}))}(n);t["default"]=i.a},eafc:function(e,t,o){}},[["672f","common/runtime","common/vendor"]]]);
|