Files
t/unpackage/dist/build/mp-weixin/pages/my/my.js
T
2025-06-13 20:46:10 +08:00

1 line
6.3 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{1954:function(e,t,n){},"2ec7":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var o={uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,"a1d3"))},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,"067f"))}},i=function(){var e=this.$createElement;this._self._c},a=[]},"381d":function(e,t,n){"use strict";(function(e,t){var o=n("47a9");n("7bfe"),n("861b");o(n("3240"));var i=o(n("b6d9"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"7efb":function(e,t,n){"use strict";var o=n("1954"),i=n.n(o);i.a},b6d9:function(e,t,n){"use strict";n.r(t);var o=n("2ec7"),i=n("c3e8");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("7efb");var r=n("828b"),c=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);t["default"]=c.exports},c3e8:function(e,t,n){"use strict";n.r(t);var o=n("df7e"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},df7e:function(e,t,n){"use strict";(function(e,o){var i=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("7eb4")),r=i(n("ee10")),c=n("6b19"),u=(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:function(){n.e("components/cloud-image").then(function(){return resolve(n("caa5"))}.bind(null,n)).catch(n.oe)}},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,r.default)(a.default.mark((function t(){return a.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,r.default)(a.default.mark((function t(){var n,o,i;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,"cloud://env-00jxt5y29hrd/67bcf790589f09b6fcf6c1621741070879567",t.next=4,e.getTempFileURL({fileList:["cloud://env-00jxt5y29hrd/67bcf790589f09b6fcf6c1621741070879567"]});case 4:return n=t.sent,o=n.fileList,i=o[0].tempFileURL,t.abrupt("return",i);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 a=o.getStorageSync("uni_id_token");console.log(a),a?o.navigateTo({url:"/pages2/edit_list/edit_list"}):this.toLogin()}else if("edit_cms"===e.type){var r=o.getStorageSync("uni_id_token");console.log(r),r?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 l=o.getStorageSync("uni_id_token");console.log(l),l?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 s=o.getStorageSync("uni_id_token");console.log(s),s?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=u}).call(this,n("861b")["uniCloud"],n("df3c")["default"])}},[["381d","common/runtime","common/vendor"]]]);