1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/myOrder/order"],{"0014":function(t,e,i){"use strict";var n=i("422e"),r=i.n(n);r.a},"071f":function(t,e,i){"use strict";i.r(e);var n=i("d94b"),r=i("7d7b");for(var a in r)"default"!==a&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("0014");var o,s=i("f0c5"),c=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],o);e["default"]=c.exports},"2cbb":function(t,e,i){"use strict";(function(t){i("0bef"),i("921b");n(i("66fd"));var e=n(i("071f"));function n(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,i("543d")["createPage"])},"422e":function(t,e,i){},"7d7b":function(t,e,i){"use strict";i.r(e);var n=i("ea49"),r=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},d94b:function(t,e,i){"use strict";var n,r=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__map(t.detail.goods,(function(e,i){var n=e.goods_image.substr(0,e.goods_image.indexOf("_"));return{$orig:t.__get_orig(e),g0:n}}))),n=t.happenTimeFun(t.detail.shipping_time);t.$mp.data=Object.assign({},{$root:{l0:i,m0:n}})},a=[];i.d(e,"b",(function(){return r})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}))},ea49:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){i.e("component/Dialog").then(function(){return resolve(i("37f5"))}.bind(null,i)).catch(i.oe)},r={components:{Dialog:n},data:function(){return{isCancel:!1,isDelete:!1,isGet:!1,titles:"",pictureUrl:this.pictureUrl,orderCancel:!1,detail:{},id:""}},onLoad:function(e){var i=this;this.id=e.id,this.getDetail(),t.$on("refshlist",(function(t){i.getDetail()}))},methods:{happenTimeFun:function(t){var e=new Date(1e3*t),i=e.getFullYear(),n=e.getMonth()+1;n=n<10?"0"+n:n;var r=e.getDate();r=r<10?"0"+r:r;var a=e.getHours();a=a<10?"0"+a:a;var o=e.getMinutes();o=o<10?"0"+o:o;var s=e.getSeconds();return s=s<10?"0"+s:s,i+"-"+n+"-"+r+" "+a+":"+o},goDetail:function(e){var i=e.goods_commonid,n=e.store_id;t.navigateTo({url:"/pages/index/shop?id=".concat(i,"&store_id=").concat(n)})},goreturngood:function(e){e.statusremak=this.detail.status,e.order_id=this.id,e.store_avatar=this.detail.store_avatar,e.store_name=this.detail.store_name,e.order_sn=this.detail.order_sn;var i=JSON.stringify(e);t.navigateTo({url:"/pages/myOrder/returngood?id=".concat(i)})},goreturndetail:function(e){var i=e;t.navigateTo({url:"/pages/myOrder/returndetail?id=".concat(i)})},getDetail:function(){var t=this;this.request({url:"/v2/order/info",method:"post",data:{order_id:this.id},success:function(e){var i=e.data.data;i.goods.forEach((function(t,e){var i=t.goods_name.split(" ");t.desarray=i[0],t.descire=t.goods_name.replace(i[0],"")})),t.detail=i}})},cancelOrder:function(t){1==t?(this.titles="确认取消订单?",this.isCancel=!0):3==t?(this.titles="确认收货?",this.isGet=!0):(this.titles="确认删除订单?",this.isDelete=!0),this.orderCancel=!0},cancelDialog:function(){this.isCancel=!1,this.isDelete=!1,this.isGet=!1,this.orderCancel=!1},confirmOrder:function(){var e=this,i="";this.orderCancel=!1,this.isCancel?i="/v2/order/cancel":this.isDelete?i="/v2/order/drop":this.isGet&&(i="/v2/order/confirm"),this.request({url:i,method:"post",data:{order_id:this.id},success:function(i){e.isDelete?e.$msg("删除成功"):e.isGet?e.$msg("收货成功"):e.isCancel&&e.$msg("取消成功"),setTimeout((function(){t.$emit("refehlist"),t.navigateBack()}),2e3)}})},goPay:function(){var e=this.detail.order_amount,i=this.id,n=1;t.navigateTo({url:"/pages/myOrder/paymoment?order_id=".concat(i,"\n\t\t\t\t&prices=").concat(e,"&isform=").concat(n)})},reminder:function(){var e=this.id;t.navigateTo({url:"/pages/myOrder/reminder?order_id=".concat(e)})},estimate:function(){var e=this.id;t.navigateTo({url:"/pages/myOrder/estimate?order_id=".concat(e)})}}};e.default=r}).call(this,i("543d")["default"])}},[["2cbb","common/runtime","common/vendor"]]]);
|