chunk-055c0d5a.undefined.1671071058477.js 18 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-055c0d5a"],{"00c5":function(t,e,n){},"00f8":function(t,e,n){"use strict";n("00c5")},"08fe":function(t,e,n){},1658:function(t,e,n){t.exports=n.p+"img/logo_memberShip.d29be70c.png"},"29ee":function(t,e,n){"use strict";n("08fe")},"2bd2":function(t,e,n){var i=n("02ba"),r=n("40ac").f,a=Function.prototype,s=a.toString,o=/^\s*function ([^ (]*)/,u="name";i&&!(u in a)&&r(a,u,{configurable:!0,get:function(){try{return s.call(this).match(o)[1]}catch(t){return""}}})},"2dc0":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("mu-dialog",{attrs:{title:"通知",width:"360",open:t.openSimple},on:{"update:open":function(e){t.openSimple=e}}},[t._v(" "+t._s(t.text)+" "),n("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("cba8"),u=Object(o["a"])(s,i,r,!1,null,"5a3ccfc4",null);e["a"]=u.exports},"8b19":function(t,e,n){t.exports=n.p+"img/logo_goAllOutMan.6a359887.png"},a8da:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"bottomTab"}},[n("mu-container",{staticStyle:{width:"100%"},attrs:{color:"primary"}},[n("mu-bottom-nav",{attrs:{value:t.nowTab,color:"#E75296"}},t._l(t.tabs,(function(t){return n("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("29ee"),n("cba8")),u=Object(o["a"])(s,i,r,!1,null,"2008d39a",null);e["a"]=u.exports},b8a1:function(t,e,n){"use strict";n.d(e,"X",(function(){return s})),n.d(e,"g",(function(){return o})),n.d(e,"j",(function(){return u})),n.d(e,"N",(function(){return c})),n.d(e,"U",(function(){return l})),n.d(e,"y",(function(){return d})),n.d(e,"z",(function(){return p})),n.d(e,"B",(function(){return f})),n.d(e,"C",(function(){return v})),n.d(e,"b",(function(){return m})),n.d(e,"S",(function(){return h})),n.d(e,"T",(function(){return g})),n.d(e,"P",(function(){return y})),n.d(e,"n",(function(){return C})),n.d(e,"R",(function(){return _})),n.d(e,"O",(function(){return T})),n.d(e,"w",(function(){return S})),n.d(e,"D",(function(){return x})),n.d(e,"G",(function(){return b})),n.d(e,"I",(function(){return I})),n.d(e,"E",(function(){return O})),n.d(e,"F",(function(){return D})),n.d(e,"J",(function(){return Q})),n.d(e,"L",(function(){return B})),n.d(e,"K",(function(){return P})),n.d(e,"q",(function(){return L})),n.d(e,"p",(function(){return W})),n.d(e,"V",(function(){return V})),n.d(e,"W",(function(){return w})),n.d(e,"H",(function(){return R})),n.d(e,"f",(function(){return F})),n.d(e,"a",(function(){return A})),n.d(e,"Q",(function(){return $})),n.d(e,"x",(function(){return M})),n.d(e,"A",(function(){return k})),n.d(e,"e",(function(){return G})),n.d(e,"t",(function(){return N})),n.d(e,"r",(function(){return U})),n.d(e,"s",(function(){return E})),n.d(e,"u",(function(){return j})),n.d(e,"v",(function(){return q})),n.d(e,"i",(function(){return z})),n.d(e,"c",(function(){return J})),n.d(e,"d",(function(){return H})),n.d(e,"m",(function(){return X})),n.d(e,"M",(function(){return K})),n.d(e,"o",(function(){return Z})),n.d(e,"l",(function(){return Y})),n.d(e,"h",(function(){return tt})),n.d(e,"k",(function(){return et}));var i=n("82ae"),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 f(t){var e=headapi+"v1/Weixin/OrderListQuery";return a(e,t)}function v(t){var e=headapi+"v1/Weixin/OrderShopQuery";return a(e,t)}function m(t){var e=headapi+"v1/Weixin/CanOrderSchoolTimeTableListQuery";return a(e,t)}function h(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 B(t){var e=headapi+"v1/Weixin/PersonTtolistQuery";return a(e,t)}function P(t){var e=headapi+"v1/Weixin/PersonTtdStaticsQuery";return a(e,t)}function L(t){var e=headapi+"v1/Weixin/MyDailyTrainOverviewQuery";return a(e,t)}function W(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 $(t){var e=headapi+"v1/Shop/ShopQueryByUnLoginLoalLoutUser";return a(e,t)}function M(t){var e=headapi+"v1/Auth/NotUserGetPhoneVFCode";return a(e,t)}function k(t){var e=headapi+"v1/FitnessTest/OrderFitnessTestAdd";return a(e,t)}function G(t){var e=headapi+"v1/FitnessTest/FTGroupTypeIsOrderOneQuery";return a(e,t)}function N(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 E(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestDetailList";return a(e,t)}function j(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestListQueryByOpenId";return a(e,t)}function q(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestLogOut";return a(e,t)}function z(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 K(t){var e=headapi+"v1/WxPay/PhoneRelationShopQuery";return a(e,t)}function Z(t){var e=headapi+"v1/WxPay/MyChargeInfoListQuery";return a(e,t)}function Y(t){var e=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(e,t)}function tt(t){var e=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(e,t)}function et(t){var e=headbpi+"v1/OutService/GetSportPercentByDuId";return a(e,t)}},ea86:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"mainPage"}},[t._m(0),i("div",{staticClass:"title"},[i("span",[t._v(t._s(t.Title))]),i("img",{attrs:{src:n("8b19"),width:"69px",height:"86px"}}),i("em",{staticClass:"button",on:{click:function(e){return t.onGoNewPage("testMemberNavi")}}},[t._v("主页")])]),1==t.pageType?i("div",{staticClass:"contextQuery"},[i("div",{staticClass:"dataInput"},[i("div",{staticClass:"inputLine"},[i("span",{staticClass:"leftTitle"},[t._v("手机号码")]),i("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)}}})]),i("div",{staticClass:"inputLine"},[i("span",{staticClass:"leftTitle"},[t._v("图形验证")]),i("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)}}}),i("img",{staticClass:"validCode",attrs:{id:"imgValidcode",src:t.valImgSrc,title:t.InvisibilityGiveitatry},on:{click:t.getValImgSrc}})]),i("div",{staticClass:"inputLine"},[i("span",{staticClass:"leftTitle"},[t._v("短信验证")]),i("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)}}}),i("span",{staticClass:"validButton",on:{click:function(e){return t.getValidCode()}}},[t._v(t._s(t.btnText))])])]),i("div",{staticClass:"bottom",on:{click:function(e){return t.appointmentQuery()}}},[t._v(" 点击查询 ")])]):t._e(),2==t.pageType?i("div",{staticStyle:{"margin-top":"50px","padding-bottom":"50px"}},t._l(t.testResults,(function(e){return i("div",{staticClass:"context"},[4!=e.Status?i("div",[1==e.Status?i("div",{staticClass:"appointStatus"},[t._m(1,!0),i("div",{staticClass:"contentLine"},[i("span",[t._v("用户姓名:")]),i("em",[t._v(t._s(e.Name))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约时间:")]),i("em",[t._v(t._s(e.CanOrderDate))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约商家:")]),i("em",[t._v(t._s(e.ShopName))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("商家地址:")]),i("em",[t._v(t._s(e.Addr))])]),i("div",{staticClass:"contentTime"},[i("div",{staticClass:"timeText"},[i("span",[t._v("距离测评:")]),i("em",[t._v(t._s(e.dateBet))])]),i("div",{class:[{disableButton:t.cancelDisable(e)},{cancelButton:!t.cancelDisable(e)}],on:{click:function(n){return t.cancelAppointment(e)}}},[t._v(" 取消预约 ")])])]):t._e(),2==e.Status?i("div",{staticClass:"appointStatus"},[t._m(2,!0),i("div",{staticClass:"contentLine"},[i("span",[t._v("用户姓名:")]),i("em",[t._v(t._s(e.Name))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约时间:")]),i("em",[t._v(t._s(e.CanOrderDate))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约商家:")]),i("em",[t._v(t._s(e.ShopName))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("商家地址:")]),i("em",[t._v(t._s(e.Addr))])])]):t._e(),3==e.Status?i("div",{staticClass:"appointStatus"},[t._m(3,!0),i("div",{staticClass:"contentLine"},[i("span",[t._v("用户姓名:")]),i("em",[t._v(t._s(e.Name))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约时间:")]),i("em",[t._v(t._s(e.CanOrderDate))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约商家:")]),i("em",[t._v(t._s(e.ShopName))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("商家地址:")]),i("em",[t._v(t._s(e.Addr))])])]):t._e()]):i("div",[i("div",{staticClass:"appointStatus"},[i("div",{staticClass:"resultTitle"},[0==e.IsQualified?i("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("评测中")]):t._e(),1==e.IsQualified?i("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("测评结果: A")]):t._e(),2==e.IsQualified?i("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("测评结果: B")]):t._e(),3==e.IsQualified?i("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("测评结果: C")]):t._e()]),i("div",{staticClass:"contentLine"},[i("span",[t._v("用户姓名:")]),i("em",[t._v(t._s(e.Name))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("测试时间:")]),i("em",[t._v(t._s(t.filterTime(e.RealTestTime)))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("预约商家:")]),i("em",[t._v(t._s(e.ShopName))])]),i("div",{staticClass:"contentLine"},[i("span",[t._v("商家地址:")]),i("em",[t._v(t._s(e.Addr))])]),1==e.IsPublish?i("div",{staticClass:"resultButton",on:{click:function(n){return t.getTestDetail(e)}}},[t._v(" 查看结果 ")]):t._e()])])])})),0):t._e(),i("alert",{ref:"alertPart"})],1)},r=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"topBC"},[i("img",{attrs:{src:n("1658"),width:"110px",height:"45px"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"resultTitle"},[n("span",{staticStyle:{color:"#37CB00","font-size":"28px","text-align":"center"}},[t._v("预约成功")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"resultTitle"},[n("span",{staticStyle:{color:"#FF5800","font-size":"28px","text-align":"center"}},[t._v("已取消")])])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"resultTitle"},[n("span",{staticStyle:{color:"#FF5800","font-size":"28px","text-align":"center"}},[t._v("预约未到")])])}],a=(n("2bd2"),n("b8a1")),s=n("a8da"),o=n("2dc0"),u=(n("379d"),n("fed1")),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["g"])(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["x"])(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["t"])(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["u"])(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["r"])(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("00f8"),n("cba8")),p=Object(d["a"])(l,i,r,!1,null,"6f783ce0",null);e["default"]=p.exports}}]);
  2. //# sourceMappingURL=chunk-055c0d5a.undefined.1671071058477.js.map