chunk-20c93ed9.2a6d6988.js 3.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20c93ed9"],{"14d9":function(t,e,r){"use strict";var n=r("23e7"),o=r("7b0b"),a=r("07fa"),i=r("3a34"),u=r("3511"),c=r("d039"),s=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},f=s||!d();n({target:"Array",proto:!0,arity:1,forced:f},{push:function(t){var e=o(this),r=a(e),n=arguments.length;u(r+n);for(var c=0;c<n;c++)e[r]=arguments[c],r++;return i(e,r),r}})},3511:function(t,e,r){"use strict";var n=TypeError,o=9007199254740991;t.exports=function(t){if(t>o)throw n("Maximum allowed index exceeded");return t}},"3a34":function(t,e,r){"use strict";var n=r("83ab"),o=r("e8b5"),a=TypeError,i=Object.getOwnPropertyDescriptor,u=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=u?function(t,e){if(o(t)&&!i(t,"length").writable)throw new a("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},7328:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("van-nav-bar",{staticClass:"shadow",attrs:{title:"撤销订单","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("van-form",{staticClass:"w-11/12 mx-auto mt-4",on:{submit:t.onSubmit}},[e("div",{staticClass:"bg-white shadow"},[e("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",maxlength:"300",placeholder:"请输入撤销原因","show-word-limit":""},model:{value:t.revokeForm.content,callback:function(e){t.$set(t.revokeForm,"content",e)},expression:"revokeForm.content"}})],1),e("div",{staticClass:"mt-8"},[e("van-button",{attrs:{loading:t.submitLoading,block:"",type:"info","loading-text":"加载中...","native-type":"submit"}},[t._v("确认提交")])],1)])],1)},o=[],a=(r("14d9"),r("f8b4")),i={data:function(){return{revokeForm:{},id:0,submitLoading:!1}},created:function(){this.$route.params&&this.$route.params.id&&(this.id=this.$route.params.id)},methods:{onSubmit:function(){var t=this;this.submitLoading=!0,Object(a["e"])(this.id,this.revokeForm).then((function(){t.$toast.success({message:"操作成功",duration:1e3,onClose:function(){t.$router.push({path:"/orders"})}})})).catch((function(){t.submitLoading=!1}))}}},u=i,c=r("2877"),s=Object(c["a"])(u,n,o,!1,null,null,null);e["default"]=s.exports},f8b4:function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"d",(function(){return i})),r.d(e,"c",(function(){return u})),r.d(e,"e",(function(){return c})),r.d(e,"b",(function(){return s}));var n=r("8035"),o=r("f9db");function a(t){return Object(n["a"])({url:o["a"].customer+"orders",method:"post",data:t})}function i(t){return Object(n["a"])({url:o["a"].customer+"orders",method:"get",params:t})}function u(t){return Object(n["a"])({url:o["a"].customer+"orders/".concat(t),method:"get"})}function c(t,e){return Object(n["a"])({url:o["a"].customer+"orders/".concat(t,"/revoke"),method:"post",data:e})}function s(t,e){return Object(n["a"])({url:o["a"].customer+"orders/".concat(t,"/comment"),method:"post",data:e})}}}]);