pages-login-agreement.5bc60e8f.js 3.0 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-login-agreement"],{"0f45":function(e,t,n){"use strict";n.r(t);var r=n("c9d2"),o=n("c555");for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);var u,s=n("f0c5"),i=Object(s["a"])(o["default"],r["b"],r["c"],!1,null,"0d44ee64",null,!1,r["a"],u);t["default"]=i.exports},"14ba":function(e,t,n){"use strict";n("d3b7"),Object.defineProperty(t,"__esModule",{value:!0}),t.request=t.baseURL=void 0;var r="http://yuanjie.n.broing.cn/api/";t.baseURL=r;var o=function(e){return new Promise((function(t,n){uni.request({url:r+e.url,method:e.method||"GET",data:e.data||{},header:{"Content-Type":"application/x-www-form-urlencoded",token:uni.getStorageSync("token")||""},success:function(e){console.log(e,uni.getStorageSync("token")),1==e.data.code?t(e.data.data):(401==e.data.code&&(uni.navigateTo({url:"/login/login"}),uni.clearStorageSync()),n(e.data.msg))},fail:function(e){console.log(e),n(e)}})}))};t.request=o},"1a9f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAgreement=t.resetPassword=t.sendCode=t.register=t.login=void 0;var r=n("14ba"),o=function(e,t){return(0,r.request)({url:"user/login",method:"post",data:{account:e,password:t}})};t.login=o;var a=function(e,t,n,o){return(0,r.request)({url:"user/register",method:"post",data:{username:e,password:t,mobile:n,code:o}})};t.register=a;var u=function(e,t){return(0,r.request)({url:"sms/send",method:"post",data:{mobile:e,event:t}})};t.sendCode=u;var s=function(e,t,n,o){return(0,r.request)({url:"user/resetpwd",method:"post",data:{mobile:e,captcha:t,newpassword:n,confirmpassword:o}})};t.resetPassword=s;var i=function(e){return(0,r.request)({url:"common/agreement ",method:"post",data:{type:e}})};t.getAgreement=i},"2b5d":function(e,t,n){"use strict";var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("96cf");var o=r(n("1da1")),a=n("1a9f"),u={data:function(){return{text:"",type:""}},onLoad:function(e){this.type=e.type,wx.setNavigationBarTitle({title:1==e.type?"用户协议":2==e.type?"隐私政策":""}),this.getAgreement()},methods:{getAgreement:function(){var e=this;return(0,o.default)(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,a.getAgreement)(e.type);case 3:n=t.sent,e.text=n.agreement,console.log("getAgreement",n),t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](0),uni.showToast({title:t.t0,icon:"none"}),console.log("getAgreement",t.t0);case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()}}};t.default=u},c555:function(e,t,n){"use strict";n.r(t);var r=n("2b5d"),o=n.n(r);for(var a in r)"default"!==a&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=o.a},c9d2:function(e,t,n){"use strict";var r;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{},[n("v-uni-rich-text",{attrs:{nodes:e.text}})],1)},a=[]}}]);