(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/index"],{3785:function(e,n,o){"use strict";(function(e){var t=o("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=t(o("0b78")),r={data:function(){return{avatarUrl:"",nickName:"",PhoneCode:"",imgUrl:"",isPhone:!1,user_img:"",user_name:""}},methods:{get_user:function(){var n=this;e.getUserInfo({provider:"weixin",success:function(e){console.log("getUserInfo返回值：",e),console.log("用户昵称为："+e.userInfo.nickName,e.userInfo.avatarUrl),n.user_img=e.userInfo.avatarUrl,n.user_name=e.userInfo.nickName}})},onChooseAvatar:function(e){console.log("onChooseAvatar返回值：",e),this.upImg(e.detail.avatarUrl)},upImg:function(n){console.log("upImg的file",n);var o=this;e.uploadFile({url:a.default.baseUrl,filePath:n,name:"file",header:{"Content-Type":"multipart/form-data"},formData:{fileType:"images",dirName:"cert"},success:function(e){var n=JSON.parse(e.data);0==n.code&&(o.avatarUrl=n.data.url,console.log("上传后的头像url地址",n.data.url))},fail:function(e){console.log("upload failed:",e)}})},inputName:function(e){this.nickName=e.detail.value},testGetUserInfo:function(){console.log("testGetUserInfo()------------"),e.login({provider:"weixin",success:function(n){console.log("uni.login返回值：",n),"login:ok"==n.errMsg&&e.request({url:"https://api.weixin.qq.com/sns/jscode2session",method:"GET",data:{appid:"wx98ab2939999e13de",secret:"29bad412d9cc5a7f48ca88d2848db8d3",js_code:n.code,grant_type:"authorization_code"},success:function(e){console.log("uni.request获取信息",e),"request:ok"==e.errMsg&&console.log("openid和session_key",e.data)}})}})},getphonenumber:function(e){console.log("getphonenumber返回值",e),(e.errMsg="getPhoneNumber:ok")&&console.log("getphonenumber需要传给后端的参数：",{encryptedData:e.encryptedData,iv:e.iv})}}};n.default=r}).call(this,o("543d")["default"])},"4af7":function(e,n,o){"use strict";(function(e,n){var t=o("4ea4");o("2707");t(o("66fd"));var a=t(o("97d4"));e.__webpack_require_UNI_MP_PLUGIN__=o,n(a.default)}).call(this,o("bc2e")["default"],o("543d")["createPage"])},"539e":function(e,n,o){"use strict";o.r(n);var t=o("3785"),a=o.n(t);for(var r in t)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return t[e]}))}(r);n["default"]=a.a},"567b":function(e,n,o){},"762c":function(e,n,o){"use strict";o.d(n,"b",(function(){return a})),o.d(n,"c",(function(){return r})),o.d(n,"a",(function(){return t}));var t={uButton:function(){return Promise.all([o.e("common/vendor"),o.e("uni_modules/uview-ui/components/u-button/u-button")]).then(o.bind(null,"effc"))}},a=function(){var e=this.$createElement;this._self._c},r=[]},"97d4":function(e,n,o){"use strict";o.r(n);var t=o("762c"),a=o("539e");for(var r in a)["default"].indexOf(r)<0&&function(e){o.d(n,e,(function(){return a[e]}))}(r);o("c0a1");var u=o("f0c5"),i=Object(u["a"])(a["default"],t["b"],t["c"],!1,null,"daf6fe3a",null,!1,t["a"],void 0);n["default"]=i.exports},c0a1:function(e,n,o){"use strict";var t=o("567b"),a=o.n(t);a.a}},[["4af7","common/runtime","common/vendor"]]]);