Files
2026-04-29 15:33:58 +08:00

11 lines
6.0 KiB
JavaScript

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/component/mine/user-info"],{"16f0":function(e,t,o){"use strict";o.r(t);var n=o("af5b"),r=o.n(n);for(var i in n)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return n[e]}))}(i);t["default"]=r.a},"3ab5":function(e,t,o){},4325:function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"c",(function(){return r})),o.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,o=(e._self._c,1!=e.showStyle.layout||e.showStyle.hideMember||-1==e.memberState&&e.showStyle.hideApply?null:e.getMemberClass(e.memberState)),n=1!=e.showStyle.layout||e.showStyle.hideMember||-1==e.memberState&&e.showStyle.hideApply||6!=e.memberState||!e.userInfo.expire_time?null:e.userInfo.expire_time.replaceAll("-","/"),r=1!=e.showStyle.layout||e.showStyle.hideNotice?null:parseInt(e.userInfo.member_notification_count),i=1==e.showStyle.layout&&!e.showStyle.hideNotice&&r>0?parseInt(e.userInfo.member_notification_count):null,l=1==e.showStyle.layout||2!=e.showStyle.layout||e.showStyle.hideMember||-1==e.memberState&&e.showStyle.hideApply||6!=e.memberState||!e.userInfo.expire_time?null:e.userInfo.expire_time.replaceAll("-","/"),s=1==e.showStyle.layout||2!=e.showStyle.layout||e.showStyle.hideNotice?null:parseInt(e.userInfo.member_notification_count),a=1!=e.showStyle.layout&&2==e.showStyle.layout&&!e.showStyle.hideNotice&&s>0?parseInt(e.userInfo.member_notification_count):null,u=1==e.showStyle.layout||2==e.showStyle.layout||3!=e.showStyle.layout||e.showStyle.hideNotice?null:parseInt(e.userInfo.member_notification_count),c=1!=e.showStyle.layout&&2!=e.showStyle.layout&&3==e.showStyle.layout&&!e.showStyle.hideNotice&&u>0?parseInt(e.userInfo.member_notification_count):null,f=1==e.showStyle.layout||2==e.showStyle.layout||3!=e.showStyle.layout||e.showStyle.hideMember||-1==e.memberState&&e.showStyle.hideApply||6!=e.memberState||!e.userInfo.expire_time?null:e.userInfo.expire_time.replaceAll("-","/");e.$mp.data=Object.assign({},{$root:{m0:o,g0:n,m1:r,m2:i,g1:l,m3:s,m4:a,m5:u,m6:c,g2:f}})},r=[]},"7a1f":function(e,t,o){"use strict";o.r(t);var n=o("4325"),r=o("16f0");for(var i in r)["default"].indexOf(i)<0&&function(e){o.d(t,e,(function(){return r[e]}))}(i);o("93bf");var l=o("828b"),s=Object(l["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);t["default"]=s.exports},"93bf":function(e,t,o){"use strict";var n=o("3ab5"),r=o.n(n);r.a},af5b:function(e,t,o){"use strict";(function(e){var n=o("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(o("7ca3")),i=o("8f59"),l=n(o("f5e9"));function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}var a={name:"userInfo",props:["showStyle"],data:function(){return{iconMore1:"",iconMore2:"",iconMore3:"",iconMore4:"",iconMore5:"",iconAuth:"",iconRectangle:""}},computed:function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){(0,r.default)(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({},(0,i.mapState)({themeColor:function(e){return e.app.themeColor},organize:function(e){return e.app.organize},token:function(e){return e.user.token},userInfo:function(e){return e.user.userInfo},memberState:function(e){return e.user.userInfo&&e.user.userInfo.apply_member_state?e.user.userInfo.apply_member_state.state:-1}})),watch:{showStyle:{handler:function(){this.getSvgIcon()},immediate:!0,deep:!0}},methods:{getSvgIcon:function(){1==this.showStyle.layout?(this.iconMore1=l.default.svgToUrl("more","#5A5B6E"),this.iconMore2=l.default.svgToUrl("more","#325DFF"),this.iconMore3=l.default.svgToUrl("more","#F39700"),this.iconMore4=l.default.svgToUrl("more","#379CFA"),this.iconMore5=l.default.svgToUrl("more","#FA3737")):2==this.showStyle.layout?this.iconMore1=l.default.svgToUrl("more",this.themeColor):(this.iconMore1=l.default.svgToUrl("more","#FFF"),this.iconAuth=l.default.svgToUrl("auth",this.themeColor),this.iconRectangle=l.default.svgToUrl("rectangle",this.themeColor))},getMemberClass:function(e){return 6==e?"state-1":7==e?"state-2":3==e||4==e||5==e?"state-3":1==e?"state-2":2==e?"state-4":""},toLogin:function(){this.$util.toPage({mode:1,path:"/pages/login/index"})},getPoster:function(){this.$emit("getPoster")},toModifyUser:function(){this.$util.toPage({mode:1,path:"/pages/mine/settings/user"})},toApplyMember:function(){this.$util.toPage({mode:1,path:"/pages/member/apply/index"})},toPayment:function(){this.$util.toPage({mode:1,path:"/pages/member/fees/index"})},bindPhoneNumber:function(t){var o=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;"getPhoneNumber:ok"==t.detail.errMsg?(e.showLoading({mask:!0,title:"加载中"}),e.login({provider:"weixin",success:function(r){var i=t.detail;i.code=r.code,o.$util.request("login.bindMobile",i).then((function(t){e.hideLoading(),1==t.code?(o.$store.commit("user/updateMobile",t.data.phoneNumber),2==n?o.toApplyMember():(e.showToast({icon:"success",title:"绑定成功"}),o.$emit("getUserInfo"))):e.showToast({title:t.msg,icon:"none"})})).catch((function(t){e.hideLoading(),console.error("获取用户手机号码 ",t)}))},fail:function(){e.hideLoading(),e.showToast({icon:"none",title:"授权失败,请重试"})}})):e.showToast({title:"获取失败,请重新获取",icon:"none"})},toNotice:function(){this.$util.toPage({mode:1,path:"/pages/mine/notice/index"})}}};t.default=a}).call(this,o("df3c")["default"])}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'pages/component/mine/user-info-create-component',
{
'pages/component/mine/user-info-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('df3c')['createComponent'](__webpack_require__("7a1f"))
})
},
[['pages/component/mine/user-info-create-component']]
]);