| 12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b69894c8"],{"08fe":function(t,e,n){},"29ee":function(t,e,n){"use strict";n("08fe")},"2bd2":function(t,e,n){var r=n("02ba"),i=n("40ac").f,a=Function.prototype,o=a.toString,u=/^\s*function ([^ (]*)/,s="name";r&&!(s in a)&&i(a,s,{configurable:!0,get:function(){try{return o.call(this).match(u)[1]}catch(t){return""}}})},"2dc0":function(t,e,n){"use strict";var r=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)},i=[],a={data:function(){return{openSimple:!1,text:""}},methods:{openSimpleDialog:function(t){this.openSimple=!0,this.text=t},closeSimpleDialog:function(){this.openSimple=!1}}},o=a,u=n("cba8"),s=Object(u["a"])(o,r,i,!1,null,"5a3ccfc4",null);e["a"]=s.exports},6939:function(t,e,n){t.exports=n.p+"img/banner.e70f9803.png"},7669:function(t,e,n){"use strict";n("e6f0")},a8da:function(t,e,n){"use strict";var r=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)},i=[],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}}},o=a,u=(n("29ee"),n("cba8")),s=Object(u["a"])(o,r,i,!1,null,"2008d39a",null);e["a"]=s.exports},b8a1:function(t,e,n){"use strict";n.d(e,"O",(function(){return o})),n.d(e,"e",(function(){return u})),n.d(e,"g",(function(){return s})),n.d(e,"E",(function(){return c})),n.d(e,"L",(function(){return d})),n.d(e,"q",(function(){return l})),n.d(e,"r",(function(){return f})),n.d(e,"t",(function(){return p})),n.d(e,"u",(function(){return v})),n.d(e,"b",(function(){return h})),n.d(e,"J",(function(){return m})),n.d(e,"K",(function(){return g})),n.d(e,"G",(function(){return y})),n.d(e,"j",(function(){return b})),n.d(e,"I",(function(){return C})),n.d(e,"F",(function(){return S})),n.d(e,"o",(function(){return x})),n.d(e,"v",(function(){return T})),n.d(e,"y",(function(){return I})),n.d(e,"A",(function(){return V})),n.d(e,"w",(function(){return W})),n.d(e,"x",(function(){return O})),n.d(e,"B",(function(){return P})),n.d(e,"D",(function(){return Q})),n.d(e,"C",(function(){return w})),n.d(e,"l",(function(){return k})),n.d(e,"k",(function(){return L})),n.d(e,"M",(function(){return D})),n.d(e,"N",(function(){return _})),n.d(e,"z",(function(){return F})),n.d(e,"d",(function(){return M})),n.d(e,"a",(function(){return $})),n.d(e,"H",(function(){return G})),n.d(e,"p",(function(){return A})),n.d(e,"s",(function(){return B})),n.d(e,"c",(function(){return N})),n.d(e,"n",(function(){return U})),n.d(e,"m",(function(){return j})),n.d(e,"i",(function(){return R})),n.d(e,"f",(function(){return E})),n.d(e,"h",(function(){return q}));var r=n("82ae"),i=n.n(r);n("379d");function a(t,e){return i.a.post(t,e).then((function(t){var e=t.data;return e}),(function(t){console.info(t)}))}function o(t){var e=headapi+"testSelect";return a(e,t)}function u(t){var e=headapi+"v1/Auth/GenVerifyPic";return a(e,t)}function s(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 d(t){var e=headapi+"v1/Auth/WXBind";return a(e,t)}function l(t){var e=headapi+"v1/Weixin/OderAddByVipUser";return a(e,t)}function f(t){var e=headapi+"v1/Weixin/OderCancelByVipUser";return a(e,t)}function p(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 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 b(t){var e=headapi+"v1/User/ManagerSelfQuery";return a(e,t)}function C(t){var e=headapi+"v1/Weixin/VipUserCleCkSum";return a(e,t)}function S(t){var e=headapi+"v1/Weixin/QueryNextWeek";return a(e,t)}function x(t){var e=headapi+"v1/Weixin/MyShopQuery";return a(e,t)}function T(t){var e=headapi+"v1/Weixin/PersonCardStatistics";return a(e,t)}function I(t){var e=headapi+"v1/Weixin/PersonClassStatistics";return a(e,t)}function V(t){var e=headapi+"v1/Weixin/PersonMonthStatistics";return a(e,t)}function W(t){var e=headapi+"v1/Weixin/PersonClassDetail";return a(e,t)}function O(t){var e=headapi+"v1/Weixin/PersonClassList";return a(e,t)}function P(t){var e=headapi+"v1/Weixin/PersonScoreClassQuery";return a(e,t)}function Q(t){var e=headapi+"v1/Weixin/PersonTtolistQuery";return a(e,t)}function w(t){var e=headapi+"v1/Weixin/PersonTtdStaticsQuery";return a(e,t)}function k(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 D(t){var e=headapi+"v1/Weixin/WxTplClassOverDetail";return a(e,t)}function _(t){var e=headapi+"v1/Weixin/WxTplScoreClassQuery";return a(e,t)}function F(t){var e=headapi+"v1/Weixin/PersonFtoList";return a(e,t)}function M(t){var e=headapi+"v1/FitnessTest/FtoDetailQuery";return a(e,t)}function $(t){var e=headapi+"v1/FitnessTest/CanOrderDateQuery";return a(e,t)}function G(t){var e=headapi+"v1/Shop/ShopQueryByUnLoginLoalLoutUser";return a(e,t)}function A(t){var e=headapi+"v1/Auth/NotUserGetPhoneVFCode";return a(e,t)}function B(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 U(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestListQuery";return a(e,t)}function j(t){var e=headapi+"v1/FitnessTest/MyOrderFitnessTestCancel";return a(e,t)}function R(t){var e=headbpi+"v1/OutService/GetUserHistoryInfoByDuId";return a(e,t)}function E(t){var e=headbpi+"v1/OutService/GetHrValueInfoByDuId";return a(e,t)}function q(t){var e=headbpi+"v1/OutService/GetSportPercentByDuId";return a(e,t)}},e6f0:function(t,e,n){},ea86:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"mainPage"}},[r("img",{attrs:{src:n("6939"),width:"100%"}}),r("div",{staticClass:"context"},[r("div",{staticClass:"title"},[r("span",[t._v("入会测试预约查询")]),r("span",{staticClass:"testList",on:{click:function(e){return t.onGoNewPage("testForMembership")}}},[t._v("返回预约")])]),r("div",{staticClass:"dataInput"},[r("div",{staticClass:"inputLine"},[r("span",{staticClass:"leftTitle"},[t._v("手机")]),r("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)}}})]),r("div",{staticClass:"inputLine"},[r("span",{staticClass:"leftTitle"},[t._v("图形验证码")]),r("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)}}}),r("img",{staticClass:"validCode",attrs:{id:"imgValidcode",src:t.valImgSrc,title:t.InvisibilityGiveitatry},on:{click:t.getValImgSrc}})]),r("div",{staticClass:"inputLine"},[r("span",{staticClass:"leftTitle"},[t._v("短信验证码")]),r("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)}}}),r("span",{staticClass:"validButton",on:{click:function(e){return t.getValidCode()}}},[t._v(t._s(t.btnText))])])]),r("div",{staticClass:"bottom",on:{click:function(e){return t.appointmentQuery()}}},[t._v(" 点击查询 ")])]),r("alert",{ref:"alertPart"})],1)},i=[],a=(n("2bd2"),n("b8a1")),o=n("a8da"),u=n("2dc0"),s=(n("379d"),n("fed1")),c={data:function(){return{btnText:"获取验证码",getValidSmsState:!1,InvisibilityGiveitatry:"无效?再点一下试试吧!",valImgSrc:"",thisTab:"入会测试预约",valImgId:"",form:{phone:"",picValidCode:"",smsValidCode:""},list:[]}},mounted:function(){this.form.phone=this.$route.query.phone,this.getValImgSrc()},destroyed:function(){},watch:{$route:function(t){"testMembershipQuery"==t.name&&this.getValImgSrc()},active:function(){this.getList()}},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=s.stringify(e);Object(a["e"])(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,r=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(!r)return e.Toast("图形验证码不能为空"),!1;if(4!=r.length)return e.Toast("图形验证码只能是4位"),!1;var i={token:localStorage.token,phone:n,codeType:1,picId:this.valImgId,picCode:r},o=s.stringify(i);Object(a["p"])(o).then((function(n){var r=n;0==r.Code?(e.Toast("短信验证码已发送","success"),e.calcTime()):(e.Toast(r.Memo),1003==r.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,e={phone:t.form.phone,code:t.form.smsValidCode},n=s.stringify(e);Object(a["n"])(n).then((function(e){var n=e;0==n.Code?n.Rs.length>0?t.$router.push({path:"/testMembershipDetail",query:{phone:t.form.phone,oftId:n.Rs[0].OftId,orderTime:n.Rs[0].CanOrderDate,orderShop:n.Rs[0].ShopName,orderAddress:n.Rs[0].Addr}}):t.alertInfo("未查到记录"):(t.alertInfo(n.Memo),1010==n.Code&&t.$router.push({path:"/login"}))}))},getList:function(){var t=this,e={token:localStorage.token},n=s.stringify(e);Object(a["u"])(n).then((function(e){var n=e;0==n.Code?(t.list=n.Rs,t.list&&(t.shopNum=n.Rs.length)):t.alertInfo(n.Memo)}))},onGoNewPage:function(t){this.$router.push({path:"/"+t})},goPage:function(t){this.$router.push({path:t})}},beforeRouteEnter:function(t,e,n){n((function(e){""==t.name&&e.getList()}))},components:{bottomTab:o["a"],alert:u["a"]}},d=c,l=(n("7669"),n("cba8")),f=Object(l["a"])(d,r,i,!1,null,"4dc6cd27",null);e["default"]=f.exports}}]);
- //# sourceMappingURL=chunk-b69894c8.undefined.1658127451797.js.map
|