(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/edit/edit"],{"0e8e":function(e,t,n){"use strict";(function(e){var o=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n("8a83"),c=o(n("a820")),i=n("2a1c"),s={data:function(){return{headImg:"",defaultImg:"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fci.xiaohongshu.com%2Fc34b7b74-ba38-0456-982a-43c0f97522fe%3FimageView2%2F2%2Fw%2F1080%2Fformat%2Fjpg&refer=http%3A%2F%2Fci.xiaohongshu.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1693532127&t=a2e186c12aecaab7723611cb52a6778f",userId:"",userInfo:null}},methods:{chooseHead:function(){var t=this;e.chooseImage({count:1,success:function(n){console.log(n),(0,a.uploadImg)({fineName:n.tempFilePaths[0].substr(n.tempFilePaths[0].lastIndexOf("/")+1)}).then((function(o){if("Success"==o.state){var s=new Date;s.setHours(s.getHours()+1);var u={expiration:s.toISOString(),conditions:[["content-length-range",0,1073741824]]},r=(n.tempFilePaths[0].substr(n.tempFilePaths[0].lastIndexOf("/")+1),"http://"+o.content.bucket+"."+o.content.endPoint),f=i.Base64.encode(JSON.stringify(u)),l=c.default.enc.Base64.stringify(c.default.HmacSHA1(f,o.content.token.accessKeySecret)),d=n.tempFilePaths[0],g=o.content.paths[0];e.uploadFile({url:r,filePath:d,name:"file",formData:{key:g.join("/"),policy:f,success_action_status:"200",OSSAccessKeyId:o.content.token.accessKeyId,signature:l,"x-oss-security-token":o.content.token.securityToken},success:function(e){200===e.statusCode&&(console.log("上传成功"),(0,a.finishUploadImg)([{path:o.content.paths[0]}]).then((function(e){t.headImg=r+"/"+g.join("/")})))},fail:function(e){console.log(e)}})}}))}})},loginOut:function(){var t=e.getStorageSync("location"),n=e.getStorageSync("goodsTypeObj"),o=e.getStorageSync("inviteCode");e.clearStorageSync(),e.setStorageSync("location",t),e.setStorageSync("goodsTypeObj",n),e.setStorageSync("inviteCode",o),e.switchTab({url:"/pages/index/index"})}},created:function(){this.userInfo=JSON.parse(e.getStorageSync("userInfo")),this.headImg=this.userInfo.imgPath||"",this.userId=this.userInfo.userId||""}};t.default=s}).call(this,n("543d")["default"])},"1bb5":function(e,t,n){},"58b7":function(e,t,n){"use strict";n.r(t);var o=n("0e8e"),a=n.n(o);for(var c in o)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(c);t["default"]=a.a},"94cb":function(e,t,n){"use strict";var o=n("1bb5"),a=n.n(o);a.a},e8d8:function(e,t,n){"use strict";(function(e,t){var o=n("4ea4");n("b7d7");o(n("66fd"));var a=o(n("ea5e"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},ea5e:function(e,t,n){"use strict";n.r(t);var o=n("f51b"),a=n("58b7");for(var c in a)["default"].indexOf(c)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(c);n("94cb");var i=n("f0c5"),s=Object(i["a"])(a["default"],o["b"],o["c"],!1,null,"eb851716",null,!1,o["a"],void 0);t["default"]=s.exports},f51b:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return o}));var o={uCell:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-cell/u-cell")]).then(n.bind(null,"e8c3"))}},a=function(){var e=this.$createElement;this._self._c},c=[]}},[["e8d8","common/runtime","common/vendor"]]]);