2 lines
7.2 KiB
JavaScript
2 lines
7.2 KiB
JavaScript
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{186:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26),n(27);o(n(25));var i=o(n(187));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},187:function(e,t,n){"use strict";n.r(t);var o=n(188),i=n(190);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(193);var a,c=n(46),u=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],a);u.options.__file="pages/my/my.vue",t["default"]=u.exports},188:function(e,t,n){"use strict";n.r(t);var o=n(189);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},189:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return a})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,593))},uniPopupDialog:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(n.bind(null,600))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c},r=!1,a=[];i._withStripped=!0},190:function(e,t,n){"use strict";n.r(t);var o=n(191),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},191:function(e,t,n){"use strict";(function(e,o){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(28)),a=i(n(31)),c=n(192),u=function(){n.e("components/cloud-image").then(function(){return resolve(n(612))}.bind(null,n)).catch(n.oe)},s=(e.importObject("uni-id-co"),{computed:{userInfo:function(){return c.store.userInfo},realNameStatus:function(){return this.userInfo.realNameAuth?this.userInfo.realNameAuth.authStatus:0}},components:{cloudImage:u},data:function(){return{avatar_url:"",menus:[[{name:"我的主页",icon:"/static/center/self.png",arrow:!0,type:"my_account"},{name:"我的关注",icon:"/static/center/icon-follow.png",arrow:!0,type:"my_follow"},{name:"新增文章",icon:"/static/center/icon-follow.png",arrow:!0,type:"edit_cms"},{name:"文章管理",icon:"/static/center/icon-follow.png",arrow:!0,type:"cms_list"},{name:"提现",icon:"/static/center/withdraw.png",arrow:!0,type:"withdraw"},{name:"回复我的",icon:"/static/center/reply.png",arrow:!1,type:"my_reply"},{name:"我的喜欢",icon:"/static/center/like.png",arrow:!1,type:"my_like"},{name:"浏览历史",icon:"/static/center/history.png",arrow:!1,type:"history"},{name:"我的收藏",icon:"/static/center/collect.png",arrow:!1,type:"my_collect"},{name:"充值记录",icon:"/static/center/recharge.png",arrow:!1,type:"recharge"}],[{name:"联系客服",icon:"/static/center/kefu.png",arrow:!0,type:"customer_service"},{name:"分享应用",icon:"/static/center/share.png",arrow:!1,type:"sharing_app"},{name:"退出登录",icon:"/static/center/out.png",arrow:!1,type:"logout"}]]}},onLoad:function(){console.log(this.userInfo)},created:function(){var e=this;return(0,a.default)(r.default.mark((function t(){return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!e.userInfo){t.next=5;break}return t.next=3,e.getFileUrl();case 3:e.avatar_url=t.sent,console.log(e.avatar_url);case 5:case"end":return t.stop()}}),t)})))()},methods:{getFileUrl:function(){return(0,a.default)(r.default.mark((function t(){var n,o,i,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,n="cloud://env-00jxt5y29hrd/67bcf790589f09b6fcf6c1621741070879567",t.next=4,e.getTempFileURL({fileList:[n]});case 4:return o=t.sent,i=o.fileList,a=i[0].tempFileURL,t.abrupt("return",a);case 10:return t.prev=10,t.t0=t["catch"](0),console.error("转换失败:",t.t0),t.abrupt("return","https://qnycdn.mymoyu.top/static/avatar.jpg");case 14:case"end":return t.stop()}}),t,null,[[0,10]])})))()},dialogConfirm:function(){console.log("点击确认")},inputDialogToggle:function(){this.$refs.inputDialog.open()},dialogClose:function(){console.log("点击关闭")},menuClick:function(e){if("my_account"===e.type)this.toPersonalpage();else if("my_follow"===e.type){var t=o.getStorageSync("uni_id_token");console.log(t),t?o.navigateTo({url:"/pages2/follow/follow"}):this.toLogin()}else if("withdraw"===e.type){var n=o.getStorageSync("uni_id_token");console.log(n),n?o.navigateTo({url:"/pages2/balance/balance"}):this.toLogin()}else if("my_reply"===e.type){var i=o.getStorageSync("uni_id_token");console.log(i),i?o.navigateTo({url:"/pages2/replyCommentList/replyCommentList"}):this.toLogin()}else if("cms_list"===e.type){var r=o.getStorageSync("uni_id_token");console.log(r),r?o.navigateTo({url:"/pages2/edit_list/edit_list"}):this.toLogin()}else if("edit_cms"===e.type){var a=o.getStorageSync("uni_id_token");console.log(a),a?o.navigateTo({url:"/pages2/editCms/editCms"}):this.toLogin()}else if("my_collect"===e.type){var u=o.getStorageSync("uni_id_token");console.log(u),u?o.navigateTo({url:"/pages2/arctcleCollectList/arctcleCollectList"}):this.toLogin()}else if("my_like"===e.type){var s=o.getStorageSync("uni_id_token");console.log(s),s?o.navigateTo({url:"/pages2/arctcleLikeList/arctcleLikeList"}):this.toLogin()}else if("customer_service"===e.type)this.inputDialogToggle();else if("sharing_app"===e.type)this.inputDialogToggle();else if("logout"===e.type)c.mutations.logout();else if("history"===e.type){var l=o.getStorageSync("uni_id_token");console.log(l),l?o.navigateTo({url:"/pages2/historyList/historyList"}):this.toLogin()}console.log(e)},toLogin:function(){o.navigateTo({url:"../../pages3/uni_modules/uni-id-pages/pages/login/login-withoutpwd?type=weixin"})},toUserInfoPage:function(){var e=o.getStorageSync("uni_id_token");console.log(e),e?o.navigateTo({url:"../../pages3/uni_modules/uni-id-pages/pages/userinfo/userinfo?showLoginManage=true"}):this.toLogin()},toPersonalpage:function(){var e=o.getStorageSync("uni_id_token");console.log(e),e?o.navigateTo({url:"/uni_modules/zetank-personalpage/pages/personalpage/personalpage?uid="+this.userInfo._id}):o.navigateTo({url:"../../pages3/uni_modules/uni-id-pages/pages/login/login-withoutpwd?type=weixin"})},toScan:function(){this.inputDialogToggle()},toSetting:function(){o.navigateTo({url:"/pages2/setting/setting"})}}});t.default=s}).call(this,n(27)["uniCloud"],n(2)["default"])},193:function(e,t,n){"use strict";n.r(t);var o=n(194),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},194:function(e,t,n){}},[[186,"common/runtime","common/vendor"]]]);
|
|
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/my.js.map
|