(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28bd6485"],{1658:function(t,e,n){t.exports=n.p+"img/logo_memberShip.d29be70c.png"},"2dc0":function(t,e,n){"use strict";var i=function(){var t=this,e=t._self._c;return e("div",[e("mu-dialog",{attrs:{title:"通知",width:"360",open:t.openSimple},on:{"update:open":function(e){t.openSimple=e}}},[t._v(" "+t._s(t.text)+" "),e("mu-button",{attrs:{slot:"actions",flat:"",color:"primary"},on:{click:t.closeSimpleDialog},slot:"actions"},[t._v("关闭")])],1)],1)},r=[],a={data:function(){return{openSimple:!1,text:""}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},s=a,o=n("2877"),u=Object(o["a"])(s,i,r,!1,null,"5a3ccfc4",null);e["a"]=u.exports},"6f97":function(t,e,n){},"843d":function(t,e,n){"use strict";n("d0e2")},"8b19":function(t,e,n){t.exports=n.p+"img/logo_goAllOutMan.6a359887.png"},"999f":function(t,e,n){"use strict";n("6f97")},a8da:function(t,e,n){"use strict";n("b0c0");var i=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"bottomTab"}},[e("mu-container",{staticStyle:{width:"100%"},attrs:{color:"primary"}},[e("mu-bottom-nav",{attrs:{value:t.nowTab,color:"#E75296"}},t._l(t.tabs,(function(t){return e("mu-bottom-nav-item",{key:t.tabindex,attrs:{title:t.name,icon:t.src,to:t.class,value:t.name}})})),1)],1)],1)},r=[],a={data:function(){return{nowTab:this.curTab,tabs:[{name:"预约课程",class:"/",src:" ",tabindex:1},{name:"预约记录",class:"record",src:" ",tabindex:2},{name:"上课统计",class:"reportLesson",src:" ",tabindex:3},{name:"我的运动",class:"report",src:" ",tabindex:4}]}},props:["curTab"],methods:{},watch:{$route:function(t){this.nowTab=t.meta.title}}},s=a,o=(n("843d"),n("2877")),u=Object(o["a"])(s,i,r,!1,null,"2008d39a",null);e["a"]=u.exports},b0c0:function(t,e,n){"use strict";var i=n("83ab"),r=n("5e77").EXISTS,a=n("e330"),s=n("edd0"),o=Function.prototype,u=a(o.toString),c=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=a(c.exec),d="name";i&&!r&&s(o,d,{configurable:!0,get:function(){try{return l(c,u(this))[1]}catch(t){return""}}})},b8a1:function(t,e,n){"use strict";n.d(e,"Z",(function(){return s})),n.d(e,"h",(function(){return o})),n.d(e,"k",(function(){return u})),n.d(e,"O",(function(){return c})),n.d(e,"W",(function(){return l})),n.d(e,"z",(function(){return d})),n.d(e,"A",(function(){return p})),n.d(e,"C",(function(){return v})),n.d(e,"D",(function(){return f})),n.d(e,"b",(function(){return h})),n.d(e,"T",(function(){return m})),n.d(e,"V",(function(){return g})),n.d(e,"Q",(function(){return y})),n.d(e,"o",(function(){return C})),n.d(e,"S",(function(){return _})),n.d(e,"P",(function(){return T})),n.d(e,"x",(function(){return S})),n.d(e,"E",(function(){return x})),n.d(e,"H",(function(){return b})),n.d(e,"J",(function(){return I})),n.d(e,"F",(function(){return O})),n.d(e,"G",(function(){return D})),n.d(e,"K",(function(){return Q})),n.d(e,"M",(function(){return P})),n.d(e,"L",(function(){return B})),n.d(e,"r",(function(){return W})),n.d(e,"q",(function(){return L})),n.d(e,"X",(function(){return V})),n.d(e,"Y",(function(){return w})),n.d(e,"I",(function(){return R})),n.d(e,"g",(function(){return F})),n.d(e,"a",(function(){return A})),n.d(e,"R",(function(){return M})),n.d(e,"y",(function(){return k})),n.d(e,"B",(function(){return G})),n.d(e,"f",(function(){return N})),n.d(e,"u",(function(){return $})),n.d(e,"s",(function(){return U})),n.d(e,"t",(function(){return j})),n.d(e,"v",(function(){return q})),n.d(e,"w",(function(){return z})),n.d(e,"j",(function(){return E})),n.d(e,"c",(function(){return J})),n.d(e,"d",(function(){return H})),n.d(e,"n",(function(){return X})),n.d(e,"N",(function(){return Z})),n.d(e,"p",(function(){return K})),n.d(e,"U",(function(){return Y})),n.d(e,"e",(function(){return tt})),n.d(e,"m",(function(){return et})),n.d(e,"i",(function(){return nt})),n.d(e,"l",(function(){return it}));var i=n("bc3a"),r=n.n(i);n("379d");function a(t,e){return r.a.post(t,e).then((function(t){var e=t.data;return e}),(function(t){console.info(t)}))}function s(t){var e=headapi+"testSelect";return a(e,t)}function o(t){var e=headapi+"v1/Auth/GenVerifyPic";return a(e,t)}function u(t){var e=headapi+"v1/Auth/GetPhoneVFCode";return a(e,t)}function c(t){var e=headapi+"v1/Auth/PhoneSignIn";return a(e,t)}function l(t){var e=headapi+"v1/Auth/WXBind";return a(e,t)}function d(t){var e=headapi+"v1/Weixin/OderAddByVipUser";return a(e,t)}function p(t){var e=headapi+"v1/Weixin/OderCancelByVipUser";return a(e,t)}function v(t){var e=headapi+"v1/Weixin/OrderListQuery";return a(e,t)}function f(t){var e=headapi+"v1/Weixin/OrderShopQuery";return a(e,t)}function h(t){var e=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return a(e,t)}function m(t){var e=headapi+"v1/Weixin/VipUserConsumeListQuery";return a(e,t)}function g(t){var e=headapi+"v1/Weixin/VipUserSelfQuery";return a(e,t)}function y(t){var e=headapi+"v1/Weixin/SchoolTimeQueryByDate";return a(e,t)}function C(t){var e=headapi+"v1/User/ManagerSelfQuery";return a(e,t)}function _(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return a(e,t)}function T(t){var e=headapi+"v1/Weixin/QueryNextWeek";return a(e,t)}function S(t){var e=headapi+"v1/Weixin/MyShopQuery";return a(e,t)}function x(t){var e=headapi+"v1/Weixin/PersonCardStatistics";return a(e,t)}function b(t){var e=headapi+"v1/Weixin/PersonClassStatistics";return a(e,t)}function I(t){var e=headapi+"v1/Weixin/PersonMonthStatistics";return a(e,t)}function O(t){var e=headapi+"v1/Weixin/PersonClassDetail";return a(e,t)}function D(t){var e=headapi+"v1/Weixin/PersonClassList";return a(e,t)}function Q(t){var e=headapi+"v1/Weixin/PersonScoreClassQuery";return a(e,t)}function P(t){var e=headapi+"v1/Weixin/PersonTtolistQuery";return a(e,t)}function B(t){var e=headapi+"v1/Weixin/PersonTtdStaticsQuery";return a(e,t)}function W(t){var e=headapi+"v1/Weixin/MyDailyTrainOverviewQuery";return a(e,t)}function L(t){var e=headapi+"v1/Weixin/MyDailyTrainDetailListQuery";return a(e,t)}function V(t){var e=headapi+"v1/Weixin/WxTplClassOverDetail";return a(e,t)}function w(t){var e=headapi+"v1/Weixin/WxTplScoreClassQuery";return a(e,t)}function R(t){var e=headapi+"v1/Weixin/PersonFtoList";return a(e,t)}function F(t){var e=headapi+"v1/FitnessTest/FtoDetailQuery";return a(e,t)}function A(t){var e=headapi+"v1/FitnessTest/CanOrderDateQuery";return a(e,t)}function M(t){var e=headapi+"v1/Shop/ShopQueryByUnLoginLoalLoutUser";return a(e,t)}function k(t){var e=headapi+"v1/Auth/NotUserGetPhoneVFCode";return a(e,t)}function G(t){var e=headapi+"v1/FitnessTest/OrderFitnessTestAdd";return a(e,t)}function N(t){var e=headapi+"v1/FitnessTest/FTGroupTypeIsOrderOneQuery";return a(e,t)}function $(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestListQuery";return a(e,t)}function U(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestCancel";return a(e,t)}function j(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestDetailList";return a(e,t)}function q(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestListQueryByOpenId";return a(e,t)}function z(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestLogOut";return a(e,t)}function E(t){var e=headapi+"v1/FitnessTest/GetOpenIdAndPhoneByCode";return a(e,t)}function J(t){var e=headapi+"v1/WxPay/ChargeInfoQuery";return a(e,t)}function H(t){var e=headapi+"v1/WxPay/CurrentPromotionsQuery";return a(e,t)}function X(t){var e=headapi+"v1/WxPay/JsApiPrepayRequest";return a(e,t)}function Z(t){var e=headapi+"v1/WxPay/PhoneRelationShopQuery";return a(e,t)}function K(t){var e=headapi+"v1/WxPay/MyChargeInfoListQuery";return a(e,t)}function Y(t){var e=headapi+"v1/Weixin/VipUserSelfInviteCodeQuery";return a(e,t)}function tt(t){var e=headapi+"v1/WxPay/CurrentPromotionsTabQuery";return a(e,t)}function et(t){var e=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(e,t)}function nt(t){var e=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(e,t)}function it(t){var e=headbpi+"v1/OutService/GetSportPercentByDuId";return a(e,t)}},d0e2:function(t,e,n){},ea86:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{attrs:{id:"mainPage"}},[t._m(0),e("div",{staticClass:"title"},[e("span",[t._v(t._s(t.Title))]),e("img",{attrs:{src:n("8b19"),width:"69px",height:"86px"}}),e("em",{staticClass:"button",on:{click:function(e){return t.onGoNewPage("testMemberNavi")}}},[t._v("主页")])]),1==t.pageType?e("div",{staticClass:"contextQuery"},[e("div",{staticClass:"dataInput"},[e("div",{staticClass:"inputLine"},[e("span",{staticClass:"leftTitle"},[t._v("手机号码")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.phone,expression:"form.phone"}],staticClass:"middleInput",attrs:{type:"number",oninput:"if(value.length > 11)value = value.slice(0, 11)",placeholder:"请输入手机号"},domProps:{value:t.form.phone},on:{input:function(e){e.target.composing||t.$set(t.form,"phone",e.target.value)}}})]),e("div",{staticClass:"inputLine"},[e("span",{staticClass:"leftTitle"},[t._v("图形验证")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.picValidCode,expression:"form.picValidCode"}],staticClass:"middleInput",attrs:{type:"number",oninput:"if(value.length > 4)value = value.slice(0, 4)",placeholder:"请输入图形验证码"},domProps:{value:t.form.picValidCode},on:{input:function(e){e.target.composing||t.$set(t.form,"picValidCode",e.target.value)}}}),e("img",{staticClass:"validCode",attrs:{id:"imgValidcode",src:t.valImgSrc,title:t.InvisibilityGiveitatry},on:{click:t.getValImgSrc}})]),e("div",{staticClass:"inputLine"},[e("span",{staticClass:"leftTitle"},[t._v("短信验证")]),e("input",{directives:[{name:"model",rawName:"v-model",value:t.form.smsValidCode,expression:"form.smsValidCode"}],staticClass:"middleInput",attrs:{type:"text",placeholder:"请输入短信验证码"},domProps:{value:t.form.smsValidCode},on:{input:function(e){e.target.composing||t.$set(t.form,"smsValidCode",e.target.value)}}}),e("span",{staticClass:"validButton",on:{click:function(e){return t.getValidCode()}}},[t._v(t._s(t.btnText))])])]),e("div",{staticClass:"bottom",on:{click:function(e){return t.appointmentQuery()}}},[t._v(" 点击查询 ")])]):t._e(),2==t.pageType?e("div",{staticStyle:{"margin-top":"50px","padding-bottom":"50px"}},t._l(t.testResults,(function(n){return e("div",{staticClass:"context"},[4!=n.Status?e("div",[1==n.Status?e("div",{staticClass:"appointStatus"},[t._m(1,!0),e("div",{staticClass:"contentLine"},[e("span",[t._v("用户姓名:")]),e("em",[t._v(t._s(n.Name))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约时间:")]),e("em",[t._v(t._s(n.CanOrderDate))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约商家:")]),e("em",[t._v(t._s(n.ShopName))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("商家地址:")]),e("em",[t._v(t._s(n.Addr))])]),e("div",{staticClass:"contentTime"},[e("div",{staticClass:"timeText"},[e("span",[t._v("距离测评:")]),e("em",[t._v(t._s(n.dateBet))])]),e("div",{class:[{disableButton:t.cancelDisable(n)},{cancelButton:!t.cancelDisable(n)}],on:{click:function(e){return t.cancelAppointment(n)}}},[t._v(" 取消预约 ")])])]):t._e(),2==n.Status?e("div",{staticClass:"appointStatus"},[t._m(2,!0),e("div",{staticClass:"contentLine"},[e("span",[t._v("用户姓名:")]),e("em",[t._v(t._s(n.Name))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约时间:")]),e("em",[t._v(t._s(n.CanOrderDate))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约商家:")]),e("em",[t._v(t._s(n.ShopName))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("商家地址:")]),e("em",[t._v(t._s(n.Addr))])])]):t._e(),3==n.Status?e("div",{staticClass:"appointStatus"},[t._m(3,!0),e("div",{staticClass:"contentLine"},[e("span",[t._v("用户姓名:")]),e("em",[t._v(t._s(n.Name))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约时间:")]),e("em",[t._v(t._s(n.CanOrderDate))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约商家:")]),e("em",[t._v(t._s(n.ShopName))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("商家地址:")]),e("em",[t._v(t._s(n.Addr))])])]):t._e()]):e("div",[e("div",{staticClass:"appointStatus"},[e("div",{staticClass:"resultTitle"},[0==n.IsQualified?e("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("评测中")]):t._e(),1==n.IsQualified?e("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("测评结果: A")]):t._e(),2==n.IsQualified?e("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("测评结果: B")]):t._e(),3==n.IsQualified?e("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("测评结果: C")]):t._e()]),e("div",{staticClass:"contentLine"},[e("span",[t._v("用户姓名:")]),e("em",[t._v(t._s(n.Name))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("测试时间:")]),e("em",[t._v(t._s(t.filterTime(n.RealTestTime)))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("预约商家:")]),e("em",[t._v(t._s(n.ShopName))])]),e("div",{staticClass:"contentLine"},[e("span",[t._v("商家地址:")]),e("em",[t._v(t._s(n.Addr))])]),1==n.IsPublish?e("div",{staticClass:"resultButton",on:{click:function(e){return t.getTestDetail(n)}}},[t._v(" 查看结果 ")]):t._e()])])])})),0):t._e(),e("alert",{ref:"alertPart"})],1)},r=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"topBC"},[e("img",{attrs:{src:n("1658"),width:"110px",height:"45px"}})])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"resultTitle"},[e("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("预约成功")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"resultTitle"},[e("span",{staticStyle:{color:"#FF5800","font-size":"28px","text-align":"center"}},[t._v("已取消")])])},function(){var t=this,e=t._self._c;return e("div",{staticClass:"resultTitle"},[e("span",{staticStyle:{color:"#FF5800","font-size":"28px","text-align":"center"}},[t._v("预约未到")])])}],a=(n("b0c0"),n("14d9"),n("b8a1")),s=n("a8da"),o=n("2dc0"),u=(n("379d"),n("4328")),c={data:function(){return{dateTexttimer:"",btnText:"获取验证码",Title:"查询测评成绩",pageType:1,getValidSmsState:!1,InvisibilityGiveitatry:"无效?再点一下试试吧!",valImgSrc:"",valImgId:"",form:{phone:"",picValidCode:"",smsValidCode:""},testResults:[]}},mounted:function(){this.form.phone=this.$route.query.phone,null!=this.$route.query.pageType&&(this.pageType=this.$route.query.pageType,this.appointmentQuery()),localStorage.openId&&localStorage.phone&&this.getResultByOpenId(),this.getValImgSrc()},destroyed:function(){},watch:{$route:function(t){"testMembershipQuery"==t.name&&(this.form.phone=this.$route.query.phone,null!=this.$route.query.pageType&&(this.pageType=this.$route.query.pageType,this.appointmentQuery()),localStorage.openId&&localStorage.phone&&this.getResultByOpenId(),this.getValImgSrc())},active:function(){}},methods:{alertInfo:function(t){this.$refs.alertPart.openSimpleDialog(t)},getValImgSrc:function(){var t=this,e={token:localStorage.token,width:100,height:30,noiseCount:1,length:4,source:123456789},n=u.stringify(e);Object(a["h"])(n).then((function(e){var n=e;t.valImgSrc=n.Pic,t.valImgId=n.Id}))},getValidCode:function(){var t=this,e=this,n=e.form.phone,i=e.form.picValidCode;if(!n)return e.Toast("手机号不能为空"),!1;if(11!=n.length)return e.Toast("手机号只能是11位"),!1;if(!globalCheckPhone(n))return e.Toast("手机号格式不正确"),!1;if(!i)return e.Toast("图形验证码不能为空"),!1;if(4!=i.length)return e.Toast("图形验证码只能是4位"),!1;var r={token:localStorage.token,phone:n,codeType:2,picId:this.valImgId,picCode:i,oType:2},s=u.stringify(r);Object(a["y"])(s).then((function(n){var i=n;0==i.Code?(e.Toast("短信验证码已发送","success"),e.calcTime()):(e.Toast(i.Memo),1003==i.Code&&(t.getValImgSrc(),e.form.picValidCode=""))}))},calcTime:function(){var t=60,e=this;e.getValidSmsState=!0,e.btnText=t+"S";var n=setInterval((function(){0==t?(clearInterval(n),e.getValidSmsState=!1,e.btnText="重新发送"):(t--,e.btnText=t+"S")}),1e3)},appointmentQuery:function(){var t=this;1==t.pageType&&this.getResultBySms(),2==t.pageType&&this.getResultByOpenId()},getResultBySms:function(){var t=this,e={phone:t.form.phone,code:t.form.smsValidCode,openId:localStorage.openId?localStorage.openId:""};Object(a["u"])(u.stringify(e)).then((function(e){var n=e;0==n.Code?(localStorage.phone=t.form.phone,n.Rs.length>0?(t.testResults=n.Rs,t.pageType=2,t.addDateBetween()):(t.testResults=[],t.alertInfo("未查到记录"))):t.alertInfo(n.Memo)}))},getResultByOpenId:function(){var t=this,e={openId:localStorage.openId};Object(a["v"])(u.stringify(e)).then((function(e){var n=e;0==n.Code?n.Rs.length>0?(t.testResults=n.Rs,t.pageType=2,t.addDateBetween()):(t.testResults=[],t.alertInfo("未查到记录")):(t.$router.push({path:"/testMembershipQuery"}),t.alertInfo(n.Memo))}))},cancelAppointment:function(t){var e=this;e.cancelDisable(t)||this.$confirm("确定要取消预约吗?","提示",{type:"warning"}).then((function(n){var i=n.result;if(i){var r={oftId:t.OftId,phone:t.Phone},s=u.stringify(r);Object(a["s"])(s).then((function(t){var n=t;0==n.Code?e.appointmentQuery():e.alertInfo(n.Memo)}))}}))},addDateBetween:function(){var t=this;for(var e in t.testResults)t.testResults[e].dateBet=t.getTimeBetweenStr(t.testResults[e].CanOrderDate)},cancelDisable:function(t){var e=this,n=e.getTimeDiffGetArr(t.CanOrderDate)[0]<1&&e.getTimeDiffGetArr(t.CanOrderDate)[1]<1&&e.getTimeDiffGetArr(t.CanOrderDate)[2]<61;return n},getTimeDiffGetArr:function(t){return timeDiffGetArr(timeNow(),t)},getTimeBetweenStr:function(t){var e=timeDiffGetArr(timeNow(),t),n="";return e[0]>0&&(n+=e[0]+" 天 "),e[1]>0&&(n+=e[1]+" 小时 "),e[2]>0&&(n+=e[2]+" 分 "),""==n&&(n="0 分钟"),n},startTimer:function(){var t=this;t.dateTexttimer=setInterval((function(){if(t.testResults){for(var e in t.testResults)t.testResults[e].dateBet=t.getTimeBetweenStr(t.testResults[e].CanOrderDate);console.log(t.testResults)}}),2e4)},getTestDetail:function(t){this.$router.push({path:"/testMembershipDetail",query:{OftId:t.OftId}})},onGoNewPage:function(t){this.$router.push({path:"/"+t})},goPage:function(t){this.$router.push({path:t})},filterTime:function(t){return t?dateFormatWithoutZone(t,16):0}},beforeDestroy:function(){clearInterval(this.dateTexttimer)},beforeRouteEnter:function(t,e,n){n((function(e){t.name}))},components:{bottomTab:s["a"],alert:o["a"]}},l=c,d=(n("999f"),n("2877")),p=Object(d["a"])(l,i,r,!1,null,"6f783ce0",null);e["default"]=p.exports}}]); //# sourceMappingURL=chunk-28bd6485.undefined.1727314329046.js.map