1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/myOrder/index"],{"35c4":function(e,t,o){"use strict";var r=o("eafc"),n=o.n(r);n.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 n(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 i(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?n(Object(o),!0).forEach((function(t){a(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(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)},c=function(){o.e("component/loginDialog").then(function(){return resolve(o("3478"))}.bind(null,o)).catch(o.oe)},l={components:{Dialog:s,logionDialog:c},data:function(){return{ispull:!0,showdialog:!1,orderCancel:!1,titles:"",pictureUrl:this.pictureUrl,menu:[{name:"全部"},{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:i({},(0,r.mapState)(["hasLogin","userInfo","successlogion"])),onLoad:function(t){var o=this;e.$on("refehlist",(function(){o.order_list=[],o.getlist()})),e.$on("getstate",(function(e){console.log(e),console.log("ss")})),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:{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.order_list=[],0==t.target.name?this.state="all":1==t.target.name?this.state="waiting":2==t.target.name?this.state="payed":3==t.target.name?this.state="complete":4==t.target.name?this.state="cancel":5==t.target.name&&(this.state="refund"),this.getlist()):e.navigateTo({url:"/pages/myCenter/logion"})},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 n=1;e.navigateTo({url:"/pages/myOrder/reminder?order_id=".concat(r,"&a=").concat(n)})}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 i=2;e.navigateTo({url:"/pages/myOrder/reminder?order_id=".concat(r,"&a=").concat(i)})}},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)})},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){this.old.scrollTop=e.detail.scrollTop}}};t.default=l}).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("d4af"),n=o("db2f");for(var i in n)"default"!==i&&function(e){o.d(t,e,(function(){return n[e]}))}(i);o("35c4");var a,s=o("f0c5"),c=Object(s["a"])(n["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);t["default"]=c.exports},d4af:function(e,t,o){"use strict";var r,n=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}})},i=[];o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return r}))},db2f:function(e,t,o){"use strict";o.r(t);var r=o("38c6"),n=o.n(r);for(var i in r)"default"!==i&&function(e){o.d(t,e,(function(){return r[e]}))}(i);t["default"]=n.a},eafc:function(e,t,o){}},[["672f","common/runtime","common/vendor"]]]);
|