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 line
3.0 KiB

3 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/agreement/index"],{4350:function(e,t,n){"use strict";var a=n("a7d9"),o=n.n(a);o.a},5082:function(e,t,n){"use strict";(function(e){n("ef82");a(n("66fd"));var t=a(n("79f4"));function a(e){return e&&e.__esModule?e:{default:e}}e(t.default)}).call(this,n("543d")["createPage"])},"79f4":function(e,t,n){"use strict";n.r(t);var a=n("85cf"),o=n("e05f");for(var u in o)"default"!==u&&function(e){n.d(t,e,(function(){return o[e]}))}(u);n("4350");var s,r=n("f0c5"),c=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],s);t["default"]=c.exports},"85cf":function(e,t,n){"use strict";var a;n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return a}));var o=function(){var e=this,t=e.$createElement;e._self._c},u=[]},a7d9:function(e,t,n){},b876:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=getApp(),a={data:function(){return{navTopHeight:n.globalData.menuTop+n.globalData.navTopHeight+10,userInfo:null,canIUse:e.canIUse("button.open-type.getUserInfo"),canIUseGetUserProfile:!1,code:"",hasUserInfo:!1}},components:{},props:{},onLoad:function(t){var a=this;e.getUserProfile&&this.setData({canIUseGetUserProfile:!0}),e.login({success:function(e){a.setData({code:e.code})}});var o=getCurrentPages();n.http("get","userinfo").then((function(t){t.data.success&&(e.setStorageSync("userInfo",t.data.data),a.setData({userInfo:t.data.data}))})).then((function(){o[o.length-2]||a.userInfo.isVip&&setTimeout((function(){e.reLaunch({url:"/pages/user/mine/index"})}),2e3)}))},onReady:function(){},onShow:function(){n.getInfo()},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{getUserProfile:function(t){var a=this;e.getUserProfile({desc:"展示用户信息",success:function(t){e.showLoading({title:"登陆中..."});var o={code:a.code,iv:t.iv,encryptedData:t.encryptedData,spread:0,login_type:0};n.http("POST","wxapp/auth",o).then((function(t){t.data.success?(e.hideLoading(),e.setStorageSync("token","Bearer "+t.data.data.token),e.setStorageSync("userInfo",t.data.data.user),e.showModal({title:"提示",content:"登陆成功!点击确定按钮完善信息",success:function(n){n.confirm,0==t.data.data.user.isVip?e.navigateTo({url:"../personalData/index"}):setTimeout((function(){e.reLaunch({url:"/pages/user/index"})}),1e3)}})):e.showToast({title:t.data.msg,icon:"none"})}))}})},getUserInfo:function(e){this.setData({userInfo:e.detail.userInfo,hasUserInfo:!0})},toPay:function(){e.navigateTo({url:"../personalData/index"})},backPage:function(){e.navigateBack({delta:1})},getUser:function(){this.setData({userInfo:e.getStorageSync("userInfo")})}}};t.default=a}).call(this,n("543d")["default"])},e05f:function(e,t,n){"use strict";n.r(t);var a=n("b876"),o=n.n(a);for(var u in a)"default"!==u&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=o.a}},[["5082","common/runtime","common/vendor"]]]);