(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{"397d":function(a,e,t){},"9ac1":function(a,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return i})),t.d(e,"a",(function(){return n}));var n={uModal:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-modal/u-modal")]).then(t.bind(null,"10a4"))}},o=function(){var a=this,e=a.$createElement;a._self._c},i=[]},"9cad":function(a,e,t){"use strict";(function(a){t("a89e");n(t("66fd"));var e=n(t("bb94"));function n(a){return a&&a.__esModule?a:{default:a}}wx.__webpack_require_UNI_MP_PLUGIN__=t,a(e.default)}).call(this,t("543d")["createPage"])},"9e2f":function(a,e,t){"use strict";(function(a){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(){Promise.all([t.e("common/vendor"),t.e("components/TabBar/tabbar")]).then(function(){return resolve(t("5f91"))}.bind(null,t)).catch(t.oe)},o={components:{TabBar:n},data:function(){return{modal:{show:!1,title:"用户信息获取",nickname:"",avatar:""},admin:"",imgurl:"http://t9.9026.com/imgs/bg@2x.png",islogin:!1,list:[{title:"积分",content:"积分兑换奖品"},{title:"奖品",content:"查看所有奖品"},{title:"点赞",content:"查看所有点赞"}]}},onShow:function(){this.admin=this.$store.getters.userInfo},methods:{handleGetWechatUserInfo:function(){console.log(1111),this.modal.show=!0,this.modal.nickname=this.admin.nickname,this.modal.avatar=this.admin.avatar},handleConfirmWechatUserInfo:function(){var a=this;this.modal.avatar?this.modal.nickname?(this.$loading("数据提交中..."),this.$api.my.update({avatar:this.modal.avatar,nickname:this.modal.nickname}).then((function(e){a.$hideLoading(),a.$store.dispatch("user/info",e.data),a.modal.show=!1}))):this.$u.toast("请填写昵称"):this.$u.toast("请上传头像")},handleChooseAvatar:function(a){console.log(a.detail),this.modal.avatar=a.detail.avatarUrl},handleChangeNickname:function(a){this.modal.nickname=a.detail.value},login:function(){a.navigateTo({url:"/pages/login/login"})},goPersonData:function(){a.navigateTo({url:"/pages/my/PersonalData/personalData"})},goSetting:function(){a.navigateTo({url:"/pages/my/setting/setting"})},goDetail:function(e){0==e?a.navigateTo({url:"/pages/my/integral/integral"}):1==e?a.navigateTo({url:"/pages/my/prize/prize"}):a.navigateTo({url:"/pages/my/Kudos/Kudos"})},goMyorders:function(e){switch(e){case 0:a.navigateTo({url:"/pages/my/myorders/orders"});break;case 1:a.navigateTo({url:"/pages/my/myorders/orders?isActive=1"});break;case 2:a.navigateTo({url:"/pages/my/myorders/orders?isActive=2"});break;case 3:a.navigateTo({url:"/pages/my/myorders/orders?isActive=3"});break;case 4:a.navigateTo({url:"/pages/my/myorders/orders?isActive=4"});break}},uploadAvatar:function(){}}};e.default=o}).call(this,t("543d")["default"])},ad60:function(a,e,t){"use strict";var n=t("397d"),o=t.n(n);o.a},bb94:function(a,e,t){"use strict";t.r(e);var n=t("9ac1"),o=t("fe61");for(var i in o)"default"!==i&&function(a){t.d(e,a,(function(){return o[a]}))}(i);t("ad60");var r,s=t("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"63d9ef36",null,!1,n["a"],r);e["default"]=u.exports},fe61:function(a,e,t){"use strict";t.r(e);var n=t("9e2f"),o=t.n(n);for(var i in n)"default"!==i&&function(a){t.d(e,a,(function(){return n[a]}))}(i);e["default"]=o.a}},[["9cad","common/runtime","common/vendor"]]]);