1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a38de3d0"],{"0481":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"weui-form-preview"},[a("div",{staticClass:"weui-form-preview__hd"},[a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("党费金额")]),a("em",{staticClass:"weui-form-preview__value"},[t._v("¥"+t._s(t.list.money))])])]),a("div",{staticClass:"weui-form-preview__bd"},[a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("党费订单编号")]),a("span",{staticClass:"weui-form-preview__value"},[t._v(t._s(t.list.managerOrderId))])]),a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("用户姓名")]),a("span",{staticClass:"weui-form-preview__value"},[t._v(t._s(t.list.userName))])]),a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("用户身份证号码")]),a("span",{staticClass:"weui-form-preview__value"},[t._v(t._s(t.list.identityCard))])]),a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("所属部门")]),a("span",{staticClass:"weui-form-preview__value"},[t._v(t._s(t.list.departmentName))])]),a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("党费备注信息")]),a("span",{staticClass:"weui-form-preview__value"},[t._v(t._s(t.list.managerDescript))])]),a("div",{staticClass:"weui-form-preview__item"},[a("label",{staticClass:"weui-form-preview__label"},[t._v("支付状态")]),0==t.list.payStatus?a("span",{staticClass:"weui-form-preview__value"},[t._v("未支付")]):t._e(),1==t.list.payStatus?a("span",{staticClass:"weui-form-preview__value"},[t._v("已支付")]):t._e()])]),a("div",{staticClass:"weui-form-preview__ft"},[0==t.list.payStatus?a("el-button",{staticClass:"weui-form-preview__btn weui-form-preview__btn_primary",attrs:{icon:"el-icon-edit"},on:{click:t.pay}},[t._v("点击支付")]):t._e()],1),a("div",{directives:[{name:"show",rawName:"v-show",value:t.isPay,expression:"isPay"}],staticClass:"js_dialog",staticStyle:{opacity:"1"},attrs:{id:"androidDialog1"}},[a("div",{staticClass:"weui-mask"}),a("div",{staticClass:"weui-dialog weui-skin_android"},[t._m(0),a("div",{staticClass:"weui-dialog__bd"},[t._v("请确认微信支付是否完成")]),a("div",{staticClass:"weui-dialog__ft"},[a("a",{staticClass:"weui-dialog__btn weui-dialog__btn_warn",attrs:{href:"javascript:;"}},[a("div",{on:{click:function(e){return t.handleSuccess()}}},[t._v("已支付")])]),a("a",{staticClass:"weui-dialog__btn weui-dialog__btn_default",attrs:{href:"javascript:;"}},[a("div",{on:{click:function(e){return t.handleFail()}}},[t._v("支付出现问题,请重新支付")])])])])])])},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"weui-dialog__hd"},[a("strong",{staticClass:"weui-dialog__title"},[t._v("支付确认")])])}],n=(a("9e76"),a("e285")),s=a("b775");function o(t){return Object(s["a"])({url:"/wxController/h5Pay",method:"post",data:t})}function l(t){return Object(s["a"])({url:"/wxController/h5PayCheckOrderId",method:"post",data:t})}var c={data:function(){return{managerId:0,list:{},checkOrder:{},payUrl:"",PayParam:{},wxImG:a("5fc1"),isPay:!1,status:status}},created:function(){if(this.is_weixin()){var t="#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}#weixin-tip img{width:100%;height:auto;}";this.loadHtml(),this.loadStyleText(t)}else this.managerId=this.$route.query.managerId,this.status=this.$route.query.status,console.log("支付状态"),console.log(this.status),this.getList(),"1"===this.status&&(this.isPay=!0)},methods:{getList:function(){var t=this;console.log("管理id"),console.log(this.managerId),Object(n["d"])({managerId:this.managerId}).then((function(e){console.log("党费管理结果"),console.log(e),t.list=e.data,t.list.userName=t.list.userIdEntity.userName,t.list.departmentName=t.list.departmentIdEntity.departmentName}))},pay:function(){this.goPay()},goPay:function(){var t=this;console.log("点击支付"),this.PayParam.orderNo=this.list.managerOrderId,this.PayParam.payMoney=this.list.money,this.PayParam.orgId=this.list.orgId,o(this.PayParam).then((function(e){console.log("点击支付后得结果"),t.payUrl=e.data,location.href=t.payUrl}))},is_weixin:function(){var t=window.navigator.userAgent.toLowerCase();return console.log(t),console.log(t.match(/MicroMessenger/i)),null!==t.match(/MicroMessenger/i)},loadHtml:function(){var t=document.createElement("div");t.id="weixin-tip",t.innerHTML='<p><img class="wxImgCss" src="'+this.wxImG+'" alt="微信打开"/></p>',document.body.appendChild(t)},loadStyleText:function(t){var e=document.createElement("style");e.rel="stylesheet",e.type="text/css";try{e.appendChild(document.createTextNode(t))}catch(i){e.styleSheet.cssText=t}var a=document.getElementsByTagName("head")[0];a.appendChild(e)},handleSuccess:function(){var t=this;l({orderNo:this.list.managerOrderId,orgId:this.list.orgId}).then((function(e){console.log("支付成功处理"),console.log(e),"SUCCESS"===e.data?Object(n["g"])({managerId:t.list.managerId,payStatus:1}).then((function(e){200===e.status&&(t.isPay=!1,t.getList())})):(t.isPay=!1,t.getList())}))},handleFail:function(){var t=this;this.isPay=!1,l({orderNo:this.list.managerOrderId,orgId:this.list.orgId}).then((function(e){if(console.log("支付成功处理"),console.log(e),"SUCCESS"===e.data)Object(n["g"])({managerId:t.list.managerId,payStatus:1}).then((function(e){200===e.status&&(t.isPay=!1,t.getList())}));else if(t.is_weixin()){var a="#weixin-tip{position: fixed; left:0; top:0; background: rgba(0,0,0,0.8); filter:alpha(opacity=80); width: 100%; height:100%; z-index: 100;} #weixin-tip p{text-align: center; margin-top: 10%; padding:0 5%;}#weixin-tip img{width:100%;height:auto;}";t.loadHtml(),t.loadStyleText(a)}else t.goPay()}))}}},u=c,d=a("4023"),p=Object(d["a"])(u,i,r,!1,null,"840a5bf6",null);e["default"]=p.exports},"0aed":function(t,e,a){"use strict";a("aaba");var i=a("bf16"),r=a("86d4"),n=a("238a"),s=a("f6b4"),o=a("cb3d"),l=a("8714"),c=o("species"),u=!n((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var a="ab".split(t);return 2===a.length&&"a"===a[0]&&"b"===a[1]}();t.exports=function(t,e,a){var p=o(t),f=!n((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=f?!n((function(){var e=!1,a=/a/;return a.exec=function(){return e=!0,null},"split"===t&&(a.constructor={},a.constructor[c]=function(){return a}),a[p](""),!e})):void 0;if(!f||!v||"replace"===t&&!u||"split"===t&&!d){var g=/./[p],m=a(s,p,""[t],(function(t,e,a,i,r){return e.exec===l?f&&!r?{done:!0,value:g.call(e,a,i)}:{done:!0,value:t.call(a,e,i)}:{done:!1}})),h=m[0],_=m[1];i(String.prototype,t,h),r(RegExp.prototype,p,2==e?function(t,e){return _.call(t,this,e)}:function(t){return _.call(t,this)})}}},"5fc1":function(t,e,a){t.exports=a.p+"static/img/live_weixin.2beff3c5.png"},7108:function(t,e,a){"use strict";var i=a("7e23"),r=RegExp.prototype.exec;t.exports=function(t,e){var a=t.exec;if("function"===typeof a){var n=a.call(t,e);if("object"!==typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},8714:function(t,e,a){"use strict";var i=a("f1fe"),r=RegExp.prototype.exec,n=String.prototype.replace,s=r,o="lastIndex",l=function(){var t=/a/,e=/b*/g;return r.call(t,"a"),r.call(e,"a"),0!==t[o]||0!==e[o]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(s=function(t){var e,a,s,u,d=this;return c&&(a=new RegExp("^"+d.source+"$(?!\\s)",i.call(d))),l&&(e=d[o]),s=r.call(d,t),l&&s&&(d[o]=d.global?s.index+s[0].length:e),c&&s&&s.length>1&&n.call(s[0],a,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(s[u]=void 0)})),s}),t.exports=s},"9e76":function(t,e,a){"use strict";var i=a("69b3"),r=a("eafa"),n=a("e754"),s=a("7108");a("0aed")("match",1,(function(t,e,a,o){return[function(a){var i=t(this),r=void 0==a?void 0:a[e];return void 0!==r?r.call(a,i):new RegExp(a)[e](String(i))},function(t){var e=o(a,t,this);if(e.done)return e.value;var l=i(t),c=String(this);if(!l.global)return s(l,c);var u=l.unicode;l.lastIndex=0;var d,p=[],f=0;while(null!==(d=s(l,c))){var v=String(d[0]);p[f]=v,""===v&&(l.lastIndex=n(c,r(l.lastIndex),u)),f++}return 0===f?null:p}]}))},aaba:function(t,e,a){"use strict";var i=a("8714");a("e46b")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},e285:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return n})),a.d(e,"g",(function(){return s})),a.d(e,"d",(function(){return o})),a.d(e,"e",(function(){return l})),a.d(e,"f",(function(){return c})),a.d(e,"c",(function(){return u}));var i=a("b775");function r(t){return Object(i["a"])({url:"/manager/addManager",method:"post",data:t})}function n(t){return Object(i["a"])({url:"/manager/deleteManager/"+t,method:"delete"})}function s(t){return Object(i["a"])({url:"/manager/updateManager",method:"post",data:t})}function o(t){return Object(i["a"])({url:"/manager/getManager/",method:"get",params:t})}function l(t){return Object(i["a"])({url:"/manager/getManagerList",method:"post",data:t})}function c(t){return Object(i["a"])({url:"/manager/getPayTotal",method:"post",data:t})}function u(t){return Object(i["a"])({url:"/manager/getBarStatistics",method:"post",data:t})}},e754:function(t,e,a){"use strict";var i=a("fc81")(!0);t.exports=function(t,e,a){return e+(a?i(t,e).length:1)}},fc81:function(t,e,a){var i=a("ee21"),r=a("f6b4");t.exports=function(t){return function(e,a){var n,s,o=String(r(e)),l=i(a),c=o.length;return l<0||l>=c?t?"":void 0:(n=o.charCodeAt(l),n<55296||n>56319||l+1===c||(s=o.charCodeAt(l+1))<56320||s>57343?t?o.charAt(l):n:t?o.slice(l,l+2):s-56320+(n-55296<<10)+65536)}}}}]);
|