require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/goods/agreement_info/index"],{"0296":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n("3c22"),i=n("51a2"),o=(n("8f59"),n("0466")),c=getApp(),r={name:"user_about",components:{"jyf-parser":function(){Promise.all([n.e("pages/goods/common/vendor"),n.e("pages/goods/components/jyf-parser/jyf-parser")]).then(function(){return resolve(n("43df"))}.bind(null,n)).catch(n.oe)},mpHtml:function(){Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(function(){return resolve(n("1ab2"))}.bind(null,n)).catch(n.oe)}},data:function(){return{theme:c.globalData.theme,type:"",agreementData:"",check:!1,moal:!1,loaded:!1,tagStyle:{img:"width:100%;display:block;"}}},onLoad:function(t){this.type=t.from,this.setTitle(this.type),this.getCacheinfo()},methods:{navigateBack:function(){t.navigateBack()},toCancel:function(){(0,o.goToAgreement)("useraccountcancelinfo")},setCheck:function(){this.check=!this.check},ok:function(){var e=this;t.showLoading({title:"注销中",mask:!0}),this.moal=!1,(0,i.userOut)().then((function(n){e.$store.dispatch("GETLOGOUT"),e.$store.dispatch("GetTokenIsExist"),e.$store.dispatch("GetGlobalConfig"),e.$store.dispatch("GetLoginConfig"),e.$store.dispatch("GetThemeConfig"),t.hideLoading(),setTimeout((function(){e.$util.navigateTo("/pages/index/index")}),500)})).then((function(n){t.hideLoading(),e.$util.Tips({title:n})}))},cancelBtn:function(){if(!this.check)return t.showToast({title:"请勾选已阅读",icon:"none",duration:2e3});this.moal=!0},cancelMoal:function(){this.moal=!1,this.check=!1},getCacheinfo:function(){var t=this;this.loaded=!1,(0,a.agreementInfo)(this.type).then((function(e){t.agreementData=e.data?JSON.parse(e.data).agreement:"",t.loaded=!0}))},setTitle:function(e){switch(e){case"aboutusinfo":t.setNavigationBarTitle({title:"关于我们协议"});break;case"intelligentinfo":t.setNavigationBarTitle({title:"平台资质证明"});break;case"merincomminginfo":t.setNavigationBarTitle({title:"商户入驻协议"});break;case"useraccountcancelinfo":t.setNavigationBarTitle({title:"用户注销协议"});break;case"useraccountcancelnoticeinfo":t.setNavigationBarTitle({title:"用户注销声明"});break;case"userinfo":t.setNavigationBarTitle({title:"用户注册协议"});break;case"platfromruleinfo":t.setNavigationBarTitle({title:"平台规则"});break;case"coupon/agreement/info":t.setNavigationBarTitle({title:"优惠券协议"});break;case"paid/member/agreement/info":t.setNavigationBarTitle({title:"会员服务协议"});break;default:t.setNavigationBarTitle({title:"用户隐私协议"});break}}}};e.default=r}).call(this,n("df3c")["default"])},"47a3":function(t,e,n){},"910f":function(t,e,n){"use strict";var a=n("47a3"),i=n.n(a);i.a},b121:function(t,e,n){"use strict";(function(t,e){var a=n("47a9");n("1d3c");a(n("3240"));var i=a(n("d50a"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},b6b8:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var a={mpHtml:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(n.bind(null,"1ab2"))}},i=function(){var t=this.$createElement,e=(this._self._c,this.agreementData?this.agreementData.replace(/<br\/>/gi,""):null);this.$mp.data=Object.assign({},{$root:{g0:e}})},o=[]},cca8:function(t,e,n){"use strict";n.r(e);var a=n("0296"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},d50a:function(t,e,n){"use strict";n.r(e);var a=n("b6b8"),i=n("cca8");for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n("910f");var c=n("828b"),r=Object(c["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=r.exports}},[["b121","common/runtime","common/vendor"]]]);