"use strict";const t=require("../../../common/vendor.js"),e=require("../../../request/api.js"),n=require("../../../common/assets.js"),s={data:()=>({navH:t.inject("navHeight"),navTitle:"",type:"",webContent:""}),onLoad(t){t.type&&(this.type=t.type,this.getUserInfoData(),1==t.type?this.navTitle="关于我们":2==t.type?this.navTitle="服务条款":3==t.type&&(this.navTitle="隐私协议"))},methods:{getUserInfoData(){e.agreements().then((e=>{200==e.code?1==this.type?this.webContent=e.data.agreements.about_us.content:2==this.type?this.webContent=e.data.agreements.service_terms.content:3==this.type&&(this.webContent=e.data.agreements.privacy_policy.content):t.wx$1.showToast({title:e.message})})).catch((t=>{}))}}};if(!Array){t.resolveComponent("navBar")()}Math;const a=t._export_sfc(s,[["render",function(e,s,a,o,i,r){return{a:t.p({leftText:i.navTitle}),b:n._imports_0,c:t.t(i.webContent),d:t.s("top:"+i.navH+"px;")}}]]);wx.createPage(a);
