You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
4.5 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["user/pages/alipay-result"],{"050a":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n("7eb4")),i=r(n("ee10")),o=r(n("7ca3")),c=n("8f59"),u=r(n("cf61"));function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d={components:{},data:function(){return{options:{},isLoad:!1,isWechatAgent:!1,link:"",content:"正在支付中"}},onLoad:function(e){this.options=e,this.initIndex()},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},commonOptions:function(e){return e.user.commonOptions},userInfo:function(e){return e.user.userInfo},autograph:function(e){return e.user.autograph},alipayOrderParams:function(e){return e.order.alipayOrderParams}}),methods:f(f(f({},(0,c.mapActions)(["getConfigInfo","getMineInfo"])),(0,c.mapMutations)(["updateUserItem","updateOrderItem"])),{},{initIndex:function(){var e=this;return(0,i.default)(a.default.mark((function t(){var n,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$jweixin.isWechat();case 2:if(n=t.sent,!n){t.next=7;break}return t.next=6,e.$jweixin.initJssdk();case 6:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 7:if(e.isWechatAgent=n,r=e.options.autograph,!r){t.next=14;break}return e.updateUserItem({key:"autograph",val:r}),t.next=13,e.toRePay();case 13:return t.abrupt("return");case 14:return t.next=16,e.formatLink();case 16:e.isLoad=!0;case 17:case"end":return t.stop()}}),t)})))()},formatLink:function(){var e=this;return(0,i.default)(a.default.mark((function t(){var n,r,i,o,c,s,f,d,p,l,h;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=u.default.siteroot,r=n.split("/index.php")[0],i=e.autograph,o=e.alipayOrderParams,c=o.order_id,s=o.card_id,f=void 0===s?0:s,d=o.coach_id,p=void 0===d?0:d,l=f?"&cid=".concat(f,"&coach=").concat(p):"",h="".concat(r,"/h5/#/user/pages/alipay-result?autograph=").concat(i,"&id=").concat(c).concat(l),e.link=h;case 7:case"end":return t.stop()}}),t)})))()},toRePay:function(){var e=this;return(0,i.default)(a.default.mark((function t(){var n,r,i,o,c,u,s,f,d,p,l,h;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.options,r=n.id,i=n.cid,o=void 0===i?0:i,c=n.coach,u=void 0===c?0:c,s=o?{card_id:o,coach_id:u,pay_model:3}:{id:r},f=o?"mine":"order",d=o?"payBalanceOrder":"rePayOrder",t.next=6,e.$api[f][d](s);case 6:p=t.sent,l=p.pay_list,l&&(h=Object.assign({},{orderInfo:l,provider:"alipay"},e.options),e.updateOrderItem({key:"alipayOrderParams",val:h}),e.isLoad=!0,e.$nextTick((function(){document.getElementById("alipaysubmit").submit()})));case 9:case"end":return t.stop()}}),t)})))()},copyLink:function(){var e=this.link;this.$util.goUrl({url:e,openType:"copy"})},goDetail:function(){var e=this.alipayOrderParams.page_url;this.$util.goUrl({url:e,openType:"reLaunch"})}})};t.default=d},"38b5":function(e,t,n){},"4a83":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement;this._self._c},a=[]},"9c11":function(e,t,n){"use strict";var r=n("38b5"),a=n.n(r);a.a},a69c:function(e,t,n){"use strict";n.r(t);var r=n("4a83"),a=n("be5e");for(var i in a)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(i);n("9c11");var o=n("828b"),c=Object(o["a"])(a["default"],r["b"],r["c"],!1,null,"3ca2431b",null,!1,r["a"],void 0);t["default"]=c.exports},be5e:function(e,t,n){"use strict";n.r(t);var r=n("050a"),a=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(i);t["default"]=a.a},fa44:function(e,t,n){"use strict";(function(e,t){var r=n("47a9");n("7043");r(n("3240"));var a=r(n("a69c"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])}},[["fa44","common/runtime","common/vendor"]]]);