chunk-69012098.614cad7b.js 5.4 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-69012098"],{"4a4c":function(e,n,t){},5496:function(e,n,t){"use strict";t.r(n);var r=function(){var e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"OrderCancellation"},[r("div",{staticClass:"header"}),r("div",{staticClass:"whiteBg"},[r("div",{staticClass:"input"},[r("input",{directives:[{name:"model",rawName:"v-model",value:e.verify_code,expression:"verify_code"}],attrs:{type:"number",placeholder:"0"},domProps:{value:e.verify_code},on:{input:function(n){n.target.composing||(e.verify_code=n.target.value)}}})]),r("div",{staticClass:"bnt",on:{click:e.storeCancellation}},[e._v("立即核销")])]),e.iswechat?r("div",{staticClass:"scan"},[r("img",{attrs:{src:t("ed45")},on:{click:e.openQRCode}})]):e._e(),r("WriteOff",{attrs:{iShidden:e.iShidden,orderInfo:e.orderInfo},on:{cancel:e.cancel,confirm:e.confirm}})],1)},o=[],i=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{directives:[{name:"show",rawName:"v-show",value:!1===e.iShidden,expression:"iShidden === false"}]},[t("div",{staticClass:"WriteOff"},[t("div",{staticClass:"pictrue"},[t("img",{attrs:{src:e.orderInfo.image}})]),t("div",{staticClass:"num acea-row row-center-wrapper"},[e._v("\n "+e._s(e.orderInfo.order_id)+"\n "),t("div",{staticClass:"views",on:{click:function(n){return e.toDetail(e.orderInfo)}}},[e._v("\n 查看"),t("span",{staticClass:"iconfont icon-jiantou views-jian"})])]),t("div",{staticClass:"tip"},[e._v("确定要核销此订单吗?")]),t("div",{staticClass:"sure",on:{click:e.confirm}},[e._v("确定核销")]),t("div",{staticClass:"sure cancel",on:{click:e.cancel}},[e._v("取消")])]),t("div",{staticClass:"mask",on:{touchmove:function(e){e.preventDefault()}}})])},c=[],a={name:"WriteOff",props:{iShidden:{type:Boolean,default:!0},orderInfo:{type:Object}},data:function(){return{}},mounted:function(){},methods:{toDetail:function(e){this.$router.push({path:"/customer/orderdetail/"+e.order_id+"/looks"})},cancel:function(){this.$emit("cancel",!0)},confirm:function(){this.$emit("confirm",!0)}}},s=a,d=(t("d590"),t("623f")),u=Object(d["a"])(s,i,c,!1,null,"1f088ec9",null),f=u.exports,l=t("ed08"),v=t("74f9"),p=t("f8b7"),h="OrderCancellation",m={name:h,components:{WriteOff:f},props:{},data:function(){return{iShidden:!0,iswechat:Object(l["d"])(),orderInfo:{},verify_code:""}},mounted:function(){},methods:{cancel:function(e){this.iShidden=e},confirm:function(){var e=this;Object(p["k"])(this.verify_code,1).then((function(n){e.iShidden=!0,e.verify_code="",e.$dialog.success(n.msg)})).catch((function(n){e.$dialog.error(n.msg)}))},storeCancellation:function(){var e=this,n=/[0-9]{12}/;return this.verify_code?n.test(this.verify_code)?(this.$dialog.loading.open("查询中"),void Object(p["k"])(this.verify_code,0).then((function(n){e.$dialog.loading.close(),e.orderInfo=n.data,e.iShidden=!1})).catch((function(n){return e.$dialog.loading.close(),e.verify_code="",e.$dialog.error(n.msg)}))):this.$dialog.error("请输入正确的核销码"):this.$dialog.error("请输入核销码")},openQRCode:function(){var e=this;Object(v["wechatEvevt"])("scanQRCode",{needResult:1,scanType:["qrCode","barCode"]}).then((function(n){n.resultStr?(e.verify_code=n.resultStr,e.storeCancellation()):e.$dialog.error("没有扫描到什么!")})).catch((function(n){console.log(n),n.is_ready&&n.wx.scanQRCode({needResult:1,scanType:["qrCode","barCode"],success:function(n){e.verify_code=n.resultStr,e.storeCancellation()},fail:function(n){console.log(n),"scanQRCode:permission denied"==n.errMsg&&e.$dialog.error("没有权限")}})}))}}},g=m,_=(t("e3be"),Object(d["a"])(g,r,o,!1,null,"3985d502",null));n["default"]=_.exports},d590:function(e,n,t){"use strict";var r=t("df53"),o=t.n(r);o.a},df53:function(e,n,t){},e3be:function(e,n,t){"use strict";var r=t("4a4c"),o=t.n(r);o.a},ed45:function(e,n,t){e.exports=t.p+"h5/img/scan.2ca2147e.gif"},f8b7:function(e,n,t){"use strict";t.d(n,"n",(function(){return o})),t.d(n,"m",(function(){return i})),t.d(n,"e",(function(){return c})),t.d(n,"b",(function(){return a})),t.d(n,"f",(function(){return s})),t.d(n,"g",(function(){return d})),t.d(n,"a",(function(){return u})),t.d(n,"j",(function(){return f})),t.d(n,"h",(function(){return l})),t.d(n,"o",(function(){return v})),t.d(n,"p",(function(){return p})),t.d(n,"c",(function(){return h})),t.d(n,"d",(function(){return m})),t.d(n,"l",(function(){return g})),t.d(n,"k",(function(){return _})),t.d(n,"i",(function(){return C}));var r=t("b775");function o(e){return r["a"].post("/order/confirm",{cartId:e})}function i(e,n){return r["a"].post("/order/computed/"+e,n)}function c(e,n){return r["a"].get("/coupons/order/"+(parseFloat(e)||0),n)}function a(e,n){return r["a"].post("/order/create/"+e,n||{})}function s(){return r["a"].get("/order/data")}function d(e){return r["a"].get("/order/list",e)}function u(e){return r["a"].post("/order/cancel",{id:e})}function f(e){return r["a"].get("/order/detail/"+e)}function l(){return r["a"].get("/order/refund/reason")}function v(e){return r["a"].post("/order/refund/verify",e)}function p(e){return r["a"].post("/order/take",{uni:e})}function h(e){return r["a"].post("/order/del",{uni:e})}function m(e){return r["a"].get("order/express/"+e)}function g(e,n,t){return r["a"].post("order/pay",{uni:e,paytype:n,from:t})}function _(e,n){return r["a"].post("order/order_verific",{verify_code:e,is_confirm:n})}function C(e){return r["a"].post("order/again",{uni:e})}}}]);
  2. //# sourceMappingURL=chunk-69012098.614cad7b.js.map