Files
t/unpackage/dist/dev/mp-weixin/pages/my/my.js
T
2026-05-04 00:43:20 +08:00

2 lines
7.0 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{178:function(e,n,t){"use strict";(function(e,n){var i=t(4);t(26),t(27);i(t(25));var o=i(t(179));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},179:function(e,n,t){"use strict";t.r(n);var i=t(180),o=t(182);for(var r in o)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(r);t(185);var c,u=t(46),s=Object(u["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);s.options.__file="pages/my/my.vue",n["default"]=s.exports},180:function(e,n,t){"use strict";t.r(n);var i=t(181);t.d(n,"render",(function(){return i["render"]})),t.d(n,"staticRenderFns",(function(){return i["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return i["recyclableRender"]})),t.d(n,"components",(function(){return i["components"]}))},181:function(e,n,t){"use strict";var i;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return r})),t.d(n,"components",(function(){return i}));try{i={uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,578))},uniPopupDialog:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(t.bind(null,585))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},r=!1,c=[];o._withStripped=!0},182:function(e,n,t){"use strict";t.r(n);var i=t(183),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);n["default"]=o.a},183:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=t(184),o=function(){t.e("components/cloud-image").then(function(){return resolve(t(597))}.bind(null,t)).catch(t.oe)},r={components:{cloudImage:o},computed:{userInfo:function(){return i.store.userInfo||{}},isLogin:function(){return!!e.getStorageSync("uni_id_token")},realNameStatus:function(){return this.userInfo.realNameAuth?this.userInfo.realNameAuth.authStatus:0},profileDesc:function(){return this.isLogin?this.userInfo.signature||"点击查看个人资料与账号设置":"登录后可同步查看收藏、历史与个人主页"},stats:function(){return[{label:"收藏",value:this.getCount("my_collection_count"),menu:this.findMenuItem("my_collect")},{label:"喜欢",value:this.getCount("like_count"),menu:this.findMenuItem("my_like")},{label:"历史",value:this.getCount("read_history_count"),menu:this.findMenuItem("history")},{label:"关注",value:this.getCount("following_count"),menu:this.findMenuItem("my_follow")}]},quickMenus:function(){return[this.findMenuItem("my_collect"),this.findMenuItem("history"),this.findMenuItem("my_reply"),this.findMenuItem("customer_service")].filter(Boolean)},menuGroups:function(){return[["my_account","my_follow","edit_cms","cms_list"].map(this.findMenuItem).filter(Boolean),["withdraw","recharge","sharing_app","customer_service"].map(this.findMenuItem).filter(Boolean)]}},data:function(){return{menuMap:{my_account:{name:"我的主页",icon:"/static/center/self.png",desc:"查看个人主页与公开动态",type:"my_account"},my_follow:{name:"我的关注",icon:"/static/center/icon-follow.png",desc:"关注的人与内容动态",type:"my_follow"},edit_cms:{name:"新增文章",icon:"/static/center/release.png",desc:"快速发布新的文章内容",type:"edit_cms"},cms_list:{name:"文章管理",icon:"/static/center/book.png",desc:"编辑或管理已发布文章",type:"cms_list"},withdraw:{name:"提现中心",icon:"/static/center/withdraw.png",desc:"查看余额并申请提现",type:"withdraw"},reply:{name:"回复我的",icon:"/static/center/reply.png",desc:"查看收到的回复消息",type:"my_reply"},my_reply:{name:"回复我的",icon:"/static/center/reply.png",desc:"查看收到的回复消息",type:"my_reply"},my_like:{name:"我的喜欢",icon:"/static/center/like.png",desc:"收藏喜欢的内容足迹",type:"my_like"},history:{name:"浏览历史",icon:"/static/center/history.png",desc:"继续查看最近浏览记录",type:"history"},my_collect:{name:"我的收藏",icon:"/static/center/collect.png",desc:"集中管理收藏内容",type:"my_collect"},recharge:{name:"充值记录",icon:"/static/center/recharge.png",desc:"查看账户充值明细",type:"recharge"},customer_service:{name:"联系客服",icon:"/static/center/kefu.png",desc:"获取帮助与问题反馈",type:"customer_service"},sharing_app:{name:"分享应用",icon:"/static/center/share.png",desc:"把应用推荐给更多好友",type:"sharing_app"},logout:{name:"退出登录",icon:"/static/center/out.png",desc:"安全退出当前登录状态",type:"logout"}}}},methods:{getCount:function(e){var n=Number(this.userInfo[e]||0);return n>99?"99+":String(n)},findMenuItem:function(e){return this.menuMap[e]},dialogConfirm:function(){console.log("点击确认")},inputDialogToggle:function(){this.$refs.inputDialog.open()},dialogClose:function(){console.log("点击关闭")},requireLogin:function(n){var t=e.getStorageSync("uni_id_token");return t?(n&&n(),!0):(this.toLogin(),!1)},menuClick:function(n){if(n&&n.type){var t={my_follow:"/pages2/follow/follow",withdraw:"/pages2/balance/balance",my_reply:"/pages2/replyCommentList/replyCommentList",cms_list:"/pages2/edit_list/edit_list",edit_cms:"/pages2/editCms/editCms",my_collect:"/pages2/arctcleCollectList/arctcleCollectList",my_like:"/pages2/arctcleLikeList/arctcleLikeList",history:"/pages2/historyList/historyList"};"my_account"!==n.type?t[n.type]?this.requireLogin((function(){e.navigateTo({url:t[n.type]})})):"customer_service"!==n.type&&"sharing_app"!==n.type&&"recharge"!==n.type?"logout"===n.type&&i.mutations.logout():this.inputDialogToggle():this.toPersonalpage()}},toLogin:function(){e.navigateTo({url:"../../pages3/uni_modules/uni-id-pages/pages/login/login-withoutpwd?type=weixin"})},toUserInfoPage:function(){this.requireLogin((function(){e.navigateTo({url:"../../pages3/uni_modules/uni-id-pages/pages/userinfo/userinfo?showLoginManage=true"})}))},toPersonalpage:function(){var n=this;this.requireLogin((function(){e.navigateTo({url:"/uni_modules/zetank-personalpage/pages/personalpage/personalpage?uid="+n.userInfo._id})}))},toScan:function(){this.inputDialogToggle()},toSetting:function(){e.navigateTo({url:"/pages2/setting/setting"})}}};n.default=r}).call(this,t(2)["default"])},185:function(e,n,t){"use strict";t.r(n);var i=t(186),o=t.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){t.d(n,e,(function(){return i[e]}))}(r);n["default"]=o.a},186:function(e,n,t){}},[[178,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/my.js.map