(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/index"],{2437:function(e,n,a){"use strict";var o=a("57b3"),t=a.n(o);t.a},3785:function(e,n,a){"use strict";(function(e,o){var t=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t(a("0b78")),r={data:function(){return{serList:[{icon:a("4a36"),name:"设置",url:"/pages/my/set/index"},{icon:a("00df"),name:"售后",url:"/pages/my/sellAfter/index"},{icon:a("1da3"),name:"活动商品",url:"/pages/my/actGoods/index"},{icon:a("8f2a"),name:"收藏"},{icon:a("e6b7"),name:"其他信息",url:"/pages/my/otherInfo/index"},{icon:a("1da3"),name:"一键联系",phone:"12983098478"},{icon:a("8f2a"),name:"兑奖信息",url:"/pages/my/chapinShip/index"},{icon:a("e6b7"),name:"小程序使用指南",url:"/pages/my/useLead/index"}],showPrivacy:!0,avatarUrl:"",nickName:"",PhoneCode:"",imgUrl:"",isPhone:!1,user_img:"",user_name:""}},onLoad:function(){var n=this;e.onNeedPrivacyAuthorization((function(e,a){console.log("触发本次事件的接口是："+a.referrer),n.showPrivacy=!0,n.resolvePrivacyAuthorization=e}))},methods:{testchooseAndUp:function(){var e=this;o.chooseImage({success:function(n){console.log("res",n.tempFilePaths[0]),e.upImg(n.tempFilePaths[0])}})},handleAgreePrivacyAuthorization:function(){this.resolvePrivacyAuthorization({buttonId:"agree-btn",event:"agree"})},testPrcBox:function(){o.navigateTo({url:"/pages/privicyPopup/index"})},genQr:function(){o.navigateTo({url:"/pages/qrPage/index"})},get_user:function(){var e=this;o.getUserInfo({provider:"weixin",success:function(n){console.log("getUserInfo返回值：",n),console.log("用户昵称为："+n.userInfo.nickName,n.userInfo.avatarUrl),e.user_img=n.userInfo.avatarUrl,e.user_name=n.userInfo.nickName}})},onChooseAvatar:function(e){console.log("onChooseAvatar返回值：",e),this.upImg(e.detail.avatarUrl)},upImg:function(e){console.log("upImg的file",e);var n=this;o.uploadFile({url:i.default.baseUrl,filePath:e,name:"file",header:{"Content-Type":"multipart/form-data"},formData:{fileType:"images",dirName:"cert",tag:"lamp"},success:function(e){var a=JSON.parse(e.data);0==a.code&&(n.avatarUrl=a.data.file,console.log("上传后的头像url地址",a.data.file))},fail:function(e){console.log("upload failed:",e)}})},inputName:function(e){this.nickName=e.detail.value},testGetUserInfo:function(){console.log("testGetUserInfo()------------"),o.login({provider:"weixin",success:function(e){console.log("uni.login返回值：",e),e.errMsg}})},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,a("bc2e")["default"],a("543d")["default"])},"4af7":function(e,n,a){"use strict";(function(e,n){var o=a("4ea4");a("2707");o(a("66fd"));var t=o(a("97d4"));e.__webpack_require_UNI_MP_PLUGIN__=a,n(t.default)}).call(this,a("bc2e")["default"],a("543d")["createPage"])},"539e":function(e,n,a){"use strict";a.r(n);var o=a("3785"),t=a.n(o);for(var i in o)["default"].indexOf(i)<0&&function(e){a.d(n,e,(function(){return o[e]}))}(i);n["default"]=t.a},"57b3":function(e,n,a){},"97d4":function(e,n,a){"use strict";a.r(n);var o=a("b17a"),t=a("539e");for(var i in t)["default"].indexOf(i)<0&&function(e){a.d(n,e,(function(){return t[e]}))}(i);a("2437");var r=a("f0c5"),u=Object(r["a"])(t["default"],o["b"],o["c"],!1,null,"64a721aa",null,!1,o["a"],void 0);n["default"]=u.exports},b17a:function(e,n,a){"use strict";a.d(n,"b",(function(){return o})),a.d(n,"c",(function(){return t})),a.d(n,"a",(function(){}));var o=function(){var e=this.$createElement;this._self._c},t=[]}},[["4af7","common/runtime","common/vendor"]]]);