require("../../common/manifest.js")
require("../../common/vendor.js")
global.webpackJsonpMpvue([6],{"4anE":function(t,o){},G8aF:function(t,o,e){"use strict";var s=e("bc+d"),n=e("qJpW");var c=function(t){e("iiJx"),e("4anE")},a=e("ybqe")(s.a,n.a,c,"data-v-4bb38824",null);o.a=a.exports},RzA3:function(t,o,e){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s=e("5nAL"),n=e.n(s),c=e("G8aF");n.a.config.errorHandler=function(t){console&&console.error&&console.error(t)},new n.a(c.a).$mount()},"bc+d":function(t,o,e){"use strict";var s,n=e("aJjD");e("iy8u");o.a={name:"scan_container",data:function(){return{show:!1,school:"",student:"",scroll_list:[],indicatorDots:!1,autoplay:!0,interval:1800,duration:1800,vertical:!0,circular:!0}},methods:{joint_test:function(){var t=/^[a-zA-Z\u4e00-\u9fa5]+$/,o=/^[\u4e00-\u9fa5]+$/;if(!s.school||!s.student||t.test(s.school)&&o.test(s.student)){var e={phone:wx.getStorageSync("phone"),school:s.school,name:s.student};Object(n.a)(e).then(function(t){console.log("联名",t);var o=t.data;0==o.code?(s.show=!0,s.school="",s.student=""):1012==o.code?wx.showToast({title:"请先登录",icon:"error"}):wx.showToast({title:o.errmsg,icon:"error"})}).catch(function(t){console.log("错误",t)})}else t.test(s.school)?!o.test(s.student)&&t.test(s.school)&&wx.showToast({title:"请输入中文名",icon:"error"}):wx.showToast({title:"请输中英文校名",icon:"error"})},close_pop:function(){s.show=!1}},mounted:function(){Object(n.g)().then(function(t){console.log("已联名",t);var o=t.data;0==o.code?s.scroll_list=o.data:console.log("获取不到已联名",err)}).catch(function(t){console.log("错误",t)})},created:function(){s=this},onUnload:function(){s.show=!1,s.school="",s.student=""}}},iiJx:function(t,o){},qJpW:function(t,o,e){"use strict";var s={render:function(){var t=this,o=t.$createElement,e=t._self._c||o;return e("div",{attrs:{id:"index_login_container"}},[e("div",{staticClass:"cover_whole"},[e("div",{staticClass:"cover_input"},[e("span",{staticClass:"title"},[t._v("联名邀请，免费测评专注力")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.school,expression:"school"}],attrs:{placeholder:"请输入学校名称","placeholder-style":"font-size: 28rpx;color: #B0784F;",eventid:"0"},domProps:{value:t.school},on:{input:[function(o){o.target.composing||(t.school=o.target.value)},function(o){t.textControl(o,"sch")}]}}),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.student,expression:"student"}],attrs:{placeholder:"请输入学生","placeholder-style":"font-size: 28rpx;color: #B0784F;",eventid:"1"},domProps:{value:t.student},on:{input:[function(o){o.target.composing||(t.student=o.target.value)},function(o){t.textControl(o,"stu")}]}}),t._v(" "),e("button",{staticClass:"cu-btn btn",attrs:{eventid:"2"},on:{click:t.joint_test}},[t._v("免费测评")])],1),t._v(" "),e("div",{staticClass:"cover_scroll"},[e("swiper",{staticClass:"swiper",attrs:{"easing-function":"linear",circular:t.circular,"indicator-dots":t.indicatorDots,autoplay:t.autoplay,interval:t.interval,duration:t.duration,vertical:t.vertical}},t._l(t.scroll_list,function(o,s){return e("block",{key:s},[e("swiper-item",{staticClass:"swiper-item",attrs:{mpcomid:"0_"+s}},[e("div",{staticClass:"item"},[t._v(t._s(o.school)+" "+t._s(o.name)+" 已联名")])])],1)}))],1)]),t._v(" "),e("van-popup",{attrs:{show:t.show,"close-on-click-overlay":!0,"custom-class":"pop",overlay:"","z-index":"99",eventid:"3",mpcomid:"1"},on:{close:t.close_pop}},[e("img",{staticClass:"cover_pop",attrs:{"show-menu-by-longpress":"true",src:"https://img.shuimuai.com/success_joint.png"}})])],1)},staticRenderFns:[]};o.a=s}},["RzA3"]);