(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/index"],{"091b":function(t,e,n){"use strict";n.r(e);var o=n("42c3"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},"42c3":function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=o(n("7ca3")),i=n("8f59");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function c(t){for(var e=1;e"],userinfo:{},shop_id:"",openidInfo:null,token:"",src:"",openid_code:"",code:"",unread_number:"",init:{},timer:null,list:[{image:"../../static/my/class.png",text:"我的课程",url:"/packageA/my/orderList"},{image:"../../static/my/make.png",text:"预约课程",url:"/packageA/my/makeList"},{image:"../../static/my/start.png",text:"收藏课程",url:"/packageA/my/Collect"},{image:"../../static/my/afterSales.png",text:"售后订单",url:"/pages/afterSales/list"},{image:"../../static/my/Course.png",text:"课程表",url:"/packageA/my/timetable"},{image:"../../static/my/Feedback.png",text:"课程反馈",url:"/packageA/my/Feedback"},{image:"../../static/my/station.png",text:"消息通知",url:"/packageA/my/station"},{image:"../../static/my/Personal.png",text:"修改信息",url:"/packageA/my/person-detail"},{image:"../../static/my/exercise.png",text:"我的活动",url:"/packageA/activity/exercise"},{image:"../../static/my/Help.png",text:"帮助",url:"/packageA/my/help"}],list2:[{image:"../../static/my/Platform.png",text:"申请入驻",url:"/pages/index/Apply",auth_status:1},{image:"../../static/my/Check.png",text:"报名审核",url:"/packageA/my/classCheck",auth_status:0},{image:"../../static/my/Manage.png",text:"课程管理",auth_status:0,url:"/packageA/my/management"},{image:"../../static/my/activity.png",text:"活动管理",auth_status:0,url:"/packageA/my/ac-management"},{image:"../../static/my/verification.png",text:"核销课程",url:"/packageA/my/cancel",auth_status:0},{image:"../../static/my/cancal.png",text:"核销活动",url:"/packageA/my/cancelActivity",auth_status:0},{image:"../../static/my/organization.png",text:"我的机构",auth_status:0,url:"/pages/center/MechanismDetail"},{image:"../../static/my/addClass.png",text:"创建课程",auth_status:0,url:"/packageA/my/addManagement"}]}},onLoad:function(){t.hideTabBar()},onShow:function(){this.getStatus(),this.token=t.getStorageSync("token"),this.unread_number=this.number;var e=t.getStorageSync("userInfo"),n=t.getStorageSync("niName");n?(console.log(1,"niName",n),this.userName=n):(console.log(2),this.userName=e.name),this.avatar=t.getStorageSync("userInfo").avatar||"../../static/moren.png";var o=t.getStorageSync("openidInfo");o||this.miniLogin(),this.number(),this.getinit()},created:function(){var e=t.getSystemInfoSync(),n=e.statusBarHeight,o=e.windowWidth,a=n*(750/o);this.topHeight=a},beforeDestroy:function(){this.stopTimer()},mounted:function(){this.startTimer()},methods:{callPhone:function(e){t.makePhoneCall({phoneNumber:e})},getinit:function(){var e=this;t.$u.http.get("/api/index/init",{}).then((function(n){1==n.code?(e.init=n.data.customer_service,t.setStorageSync("init",n.data.customer_service)):t.showToast({title:n.msg,icon:"none",duration:2e3})})).catch((function(e){t.showToast({title:"请求失败,请稍后再试",icon:"none",duration:2e3})}))},getStatus:function(){var e=this;t.$u.http.get("/api/school/shop/auth_info",{}).then((function(n){if(console.log(e.list2.length,"this.list2.length"),1==n.code){var o=!1,a=!1;if(n.data.verification_auth.verification&&(o=!0),1==n.data.auth_status&&n.data.shop_id&&(a=!0),o&&1==n.data.auth_status){for(var i=1;i