cancel.js 2.8 KB

1
  1. require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["bundle/pages/cancel/cancel"],{"071f":function(e,n,t){"use strict";t.r(n);var u=t("eacb"),o=t.n(u);for(var c in u)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(c);n["default"]=o.a},2900:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return u}));var u={uPopup:function(){return t.e("components/uview-ui/components/u-popup/u-popup").then(t.bind(null,"002f"))},uIcon:function(){return t.e("components/uview-ui/components/u-icon/u-icon").then(t.bind(null,"1340"))},uCheckbox:function(){return t.e("components/uview-ui/components/u-checkbox/u-checkbox").then(t.bind(null,"8007"))},uLoading:function(){return t.e("components/uview-ui/components/u-loading/u-loading").then(t.bind(null,"527f"))}},o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.showPopup=!0},e.e1=function(n){e.showPopup=!1},e.e2=function(n){e.showPopup=!1})},c=[]},"8edb":function(e,n,t){e.exports={red_theme:"#FF2C3C",orange_theme:"#f7971e",pink_theme:"#fa444d",gold_theme:"#e0a356",blue_theme:"#2f80ed",green_theme:"#2ec840"}},ba32:function(e,n,t){"use strict";(function(e,n){var u=t("47a9");t("b46f");u(t("3240"));var o=u(t("edf8"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},e1be:function(e,n,t){"use strict";var u=t("8edb"),o=t.n(u);o.a},eacb:function(e,n,t){"use strict";var u=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=u(t("7eb4")),c=u(t("ee10")),r=t("e585"),a=t("49f8"),i={data:function(){return{showPopup:!1,isAgree:!1,loading:!1,AgreemenName:""}},methods:{getPolicyAgreement:function(){var e=this;(0,a.apiPolicyAgreement)({type:4}).then((function(n){e.AgreemenName=n.name}))},handleCancel:function(){var e=this;return(0,c.default)(o.default.mark((function n(){var t,u;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e.isAgree){n.next=2;break}return n.abrupt("return",e.$toast({title:"请先阅读并同意《用户注销协议》"}));case 2:return e.loading=!0,n.next=5,(0,r.apiuserDeletecheck)();case 5:if(t=n.sent,u=t.pass,console.log(u),1!==u){n.next=11;break}return n.next=11,(0,r.apiuserDelete)();case 11:e.$Router.replaceAll({path:"/bundle/pages/cancel_result/cancel_result",query:{pass:u}});case 12:case"end":return n.stop()}}),n)})))()},onLoad:function(){this.getPolicyAgreement()}}};n.default=i},edf8:function(e,n,t){"use strict";t.r(n);var u=t("2900"),o=t("071f");for(var c in o)["default"].indexOf(c)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(c);t("e1be");var r=t("828b"),a=Object(r["a"])(o["default"],u["b"],u["c"],!1,null,null,null,!1,u["a"],void 0);n["default"]=a.exports}},[["ba32","common/runtime","common/vendor"]]]);