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

2 lines
6.1 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/my"],{100:function(e,n,t){"use strict";t.r(n);var r=t(101);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},101:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return a})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));try{r={uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,483))},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,490))},cloudImage:function(){return t.e("uni_modules/uni-id-pages/components/cloud-image/cloud-image").then(t.bind(null,502))}}}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},i=!1,a=[];o._withStripped=!0},102:function(e,n,t){"use strict";t.r(n);var r=t(103),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},103:function(e,n,t){"use strict";(function(e,r){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(t(28)),a=o(t(31)),u=t(104),c=(e.importObject("uni-id-co"),{computed:{userInfo:function(){return u.store.userInfo},realNameStatus:function(){return this.userInfo.realNameAuth?this.userInfo.realNameAuth.authStatus:0}},data:function(){return{avatar_url:"",menus:[[{name:"我的文章",icon:"/static/center/book.png",arrow:!0,type:"my_article"},{name:"我的账户",icon:"/static/center/self.png",arrow:!0,type:"my_account"},{name:"发布文章",icon:"/static/center/release.png",arrow:!0,type:"publish_article"},{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/reward.png",arrow:!1,type:"reward"}],[{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)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(!e.userInfo){n.next=5;break}return n.next=3,e.getFileUrl();case 3:e.avatar_url=n.sent,console.log(e.avatar_url);case 5:case"end":return n.stop()}}),n)})))()},methods:{getFileUrl:function(){return(0,a.default)(i.default.mark((function n(){var t,r,o,a;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.prev=0,t="cloud://env-00jxt5y29hrd/67bcf790589f09b6fcf6c1621741070879567",n.next=4,e.getTempFileURL({fileList:[t]});case 4:return r=n.sent,o=r.fileList,a=o[0].tempFileURL,n.abrupt("return",a);case 10:return n.prev=10,n.t0=n["catch"](0),console.error("转换失败:",n.t0),n.abrupt("return","https://env-00jxt5y29hrd.normal.cloudstatic.cn/static/center/avatar.png?expire_at=1741157497&er_sign=9b8381ae7875137d28c57d502762691b");case 14:case"end":return n.stop()}}),n,null,[[0,10]])})))()},dialogConfirm:function(){console.log("点击确认")},inputDialogToggle:function(){this.$refs.inputDialog.open()},dialogClose:function(){console.log("点击关闭")},menuClick:function(e){"my_article"===e.type?r.navigateTo({url:"/uni_modules/uni-cms/pages/article/list/list"}):"my_account"===e.type?this.inputDialogToggle():"publish_article"===e.type?r.navigateTo({url:"/uni_modules/uni-cms/pages/article/add/add"}):"my_reply"===e.type?r.navigateTo({url:"/pages2/replyCommentList/replyCommentList"}):"my_collect"===e.type?r.navigateTo({url:"/pages2/arctcleCollectList/arctcleCollectList"}):"my_like"===e.type?r.navigateTo({url:"/pages2/arctcleLikeList/arctcleLikeList"}):"customer_service"===e.type||"sharing_app"===e.type?this.inputDialogToggle():"logout"===e.type?u.mutations.logout():"history"===e.type&&r.navigateTo({url:"/pages2/historyList/historyList"}),console.log(e)},toLogin:function(){r.navigateTo({url:"/pages/login/login"})},toUserInfoPage:function(){var e=r.getStorageSync("uni_id_token");console.log(e),e?r.navigateTo({url:"/uni_modules/uni-id-pages/pages/userinfo/userinfo?showLoginManage=true"}):r.navigateTo({url:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd?type=weixin"})},toScan:function(){this.inputDialogToggle()},toSetting:function(){this.inputDialogToggle()}}});n.default=c}).call(this,t(27)["uniCloud"],t(2)["default"])},105:function(e,n,t){"use strict";t.r(n);var r=t(106),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},106:function(e,n,t){},98:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26),t(27);r(t(25));var o=r(t(99));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},99:function(e,n,t){"use strict";t.r(n);var r=t(100),o=t(102);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t(105);var a,u=t(46),c=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],a);c.options.__file="pages/my/my.vue",n["default"]=c.exports}},[[98,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/my.js.map