1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/index"],{"0796":function(e,n,t){"use strict";t.r(n);var o=t("2d0b"),u=t("a7e4");for(var a in u)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return u[e]}))}(a);t("f0b0");var i=t("f0c5"),r=Object(i["a"])(u["default"],o["b"],o["c"],!1,null,"8fc914a2",null,!1,o["a"],void 0);n["default"]=r.exports},"2d0b":function(e,n,t){"use strict";t.d(n,"b",(function(){return u})),t.d(n,"c",(function(){return a})),t.d(n,"a",(function(){return o}));var o={uAvatar:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-avatar/u-avatar")]).then(t.bind(null,"9ff5"))},uIcon:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(t.bind(null,"f391"))},uSubsection:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-subsection/u-subsection")]).then(t.bind(null,"8c01"))},uLoadmore:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(t.bind(null,"22a8"))},uEmpty:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(t.bind(null,"55c0"))}},u=function(){var e=this.$createElement,n=(this._self._c,this.picList.length),t=n?this.picList.length:null;this.$mp.data=Object.assign({},{$root:{g0:n,g1:t}})},a=[]},a7e4:function(e,n,t){"use strict";t.r(n);var o=t("f658"),u=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=u.a},ce38:function(e,n,t){},eec8:function(e,n,t){"use strict";(function(e,n){var o=t("4ea4");t("f91a");o(t("66fd"));var u=o(t("0796"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(u.default)}).call(this,t("bc2e")["default"],t("543d")["createPage"])},f0b0:function(e,n,t){"use strict";var o=t("ce38"),u=t.n(o);u.a},f658:function(e,n,t){"use strict";(function(e){var o=t("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var u=o(t("2eee")),a=o(t("c973")),i=t("c0ba"),r={data:function(){return{value:1,status:"nomore",list:["我的写真"],curNow:0,userInfo:e.getStorageSync("userInfo"),token:e.getStorageSync("token"),picList:[]}},components:{},onShow:function(){var n=this;return(0,a.default)(u.default.mark((function t(){var o;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n.getTaskList(),t.next=3,(0,i.getUserInfo)();case 3:o=t.sent,console.log("用户信息返回值:",o),0==o.code&&(n.userInfo=o.data,e.setStorageSync("userInfo",o.data));case 6:case"end":return t.stop()}}),t)})))()},onShareAppMessage:function(e){if("button"===e.from||"menu"===e.from)return{title:"思维定制相机-我的",imageUrl:"",path:"/pages/my/index",mpId:this.$appId,type:this.$shareType}},computed:{},methods:{logout:function(){var n=this;e.showModal({title:"确定退出登录?",showCancel:!0,cancelColor:"#999",confirmColor:"#F7790C",success:function(t){t.confirm?(e.clearStorageSync(),n.$toast("退出登录成功"),setTimeout((function(){e.reLaunch({url:"/pages/my/index"})}),1500)):t.cancel&&console.log("用户点击取消")},fail:function(e){}})},toSet:function(){e.navigateTo({url:"/pages/set/index"})},previewImg:function(n,t){e.previewImage({current:t,urls:n,loop:!0,indicator:"default"})},updateAvatar:function(){e.navigateTo({url:"/pages/genDigitalFenshen/index"})},getTaskList:function(){var e=this;return(0,a.default)(u.default.mark((function n(){var t;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,(0,i.taskList)();case 2:t=n.sent,0==t.code?(e.picList=t.data.reverse(),console.log("任务列表返回值:",t,e.picList)):e.$toast(t.message);case 4:case"end":return n.stop()}}),n)})))()},sectionChange:function(e){this.curNow=e},swiperChange:function(e){},toGenPic:function(){e.navigateTo({url:"/pages/selAndGenPage/index"})},toMyPage:function(){e.navigateTo({url:"/pages/my/index"})},login:function(){var n=this;e.showLoading({title:"登录中..."}),e.login({provider:"weixin",success:function(){var t=(0,a.default)(u.default.mark((function t(o){var a,r;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("login:ok"!=o.errMsg){t.next=7;break}return a={code:o.code},console.log("登录所传的parmas参数:",a),t.next=5,(0,i.wxAuthLoginReq)(a);case 5:r=t.sent,0==r.code?(n.userInfo=r.data.user_info,console.log("登录返回的用户信息:",n.userInfo),e.hideLoading(),e.setStorageSync("token",r.data.token),e.setStorageSync("userInfo",r.data.user_info),n.$toast("登录成功"),setTimeout((function(){e.reLaunch({url:"/pages/my/index"})}),1500)):e.showToast({title:r.message,icon:"none"});case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()})}}};n.default=r}).call(this,t("543d")["default"])}},[["eec8","common/runtime","common/vendor"]]]);
|