chunk-4d2f6315.undefined.1671071058477.js 10 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d2f6315"],{"0882":function(e,t,o){},"1dab":function(e,t,o){var n=o("1de2"),i=o("e4e4"),s=o("70d4"),c=s("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[c])?!!t:"RegExp"==i(e))}},"523b":function(e,t,o){e.exports=o.p+"img/icon_charge_title.f126a76f.png"},5816:function(e,t,o){var n=o("02ba"),i=o("0294"),s=o("82f7"),c=o("91ad"),a=o("3f48"),r=o("40ac").f,h=o("6876").f,l=o("1dab"),d=o("0bdd"),u=o("6115"),f=o("7e31"),p=o("d03a"),g=o("bde6"),v=o("6cc4"),m=o("38e1").enforce,S=o("8d0d"),_=o("70d4"),I=o("acc8"),C=o("509f"),y=_("match"),P=i.RegExp,b=P.prototype,R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,x=/a/g,T=/a/g,M=new P(x)!==x,w=f.UNSUPPORTED_Y,k=n&&(!M||w||I||C||g((function(){return T[y]=!1,P(x)!=x||P(T)==T||"/a/i"!=P(x,"i")}))),E=function(e){for(var t,o=e.length,n=0,i="",s=!1;n<=o;n++)t=e.charAt(n),"\\"!==t?s||"."!==t?("["===t?s=!0:"]"===t&&(s=!1),i+=t):i+="[\\s\\S]":i+=t+e.charAt(++n);return i},L=function(e){for(var t,o=e.length,n=0,i="",s=[],c={},a=!1,r=!1,h=0,l="";n<=o;n++){if(t=e.charAt(n),"\\"===t)t+=e.charAt(++n);else if("]"===t)a=!1;else if(!a)switch(!0){case"["===t:a=!0;break;case"("===t:R.test(e.slice(n+1))&&(n+=2,r=!0),i+=t,h++;continue;case">"===t&&r:if(""===l||v(c,l))throw new SyntaxError("Invalid capture group name");c[l]=!0,s.push([l,h]),r=!1,l="";continue}r?l+=t:i+=t}return[i,s]};if(s("RegExp",k)){for(var O=function(e,t){var o,n,i,s,r,h,f=this instanceof O,p=l(e),g=void 0===t,v=[],S=e;if(!f&&p&&g&&e.constructor===O)return e;if((p||e instanceof O)&&(e=e.source,g&&(t="flags"in S?S.flags:u.call(S))),e=void 0===e?"":d(e),t=void 0===t?"":d(t),S=e,I&&"dotAll"in x&&(n=!!t&&t.indexOf("s")>-1,n&&(t=t.replace(/s/g,""))),o=t,w&&"sticky"in x&&(i=!!t&&t.indexOf("y")>-1,i&&(t=t.replace(/y/g,""))),C&&(s=L(e),e=s[0],v=s[1]),r=c(P(e,t),f?this:b,O),(n||i||v.length)&&(h=m(r),n&&(h.dotAll=!0,h.raw=O(E(e),o)),i&&(h.sticky=!0),v.length&&(h.groups=v)),e!==S)try{a(r,"source",""===S?"(?:)":S)}catch(_){}return r},B=function(e){e in O||r(O,e,{configurable:!0,get:function(){return P[e]},set:function(t){P[e]=t}})},H=h(P),A=0;H.length>A;)B(H[A++]);b.constructor=O,O.prototype=b,p(i,"RegExp",O)}S("RegExp")},"91ad":function(e,t,o){var n=o("1de2"),i=o("9c8e");e.exports=function(e,t,o){var s,c;return i&&"function"==typeof(s=t.constructor)&&s!==o&&n(c=s.prototype)&&c!==o.prototype&&i(e,c),e}},"9c27":function(e,t,o){"use strict";o("0882")},dc65:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"mainPage"}},[n("div",{staticClass:"topBC"},[n("img",{attrs:{src:o("523b"),width:"55%",height:"25px"}}),n("div",{staticClass:"title"},[n("span",[e._v("用户充值")]),n("img",{attrs:{src:o("8b19"),width:"69px",height:"86px"}}),e._e()])]),n("div",{staticClass:"context"},[n("div",{staticClass:"area_search"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.phone,expression:"phone"}],staticClass:"phone",attrs:{type:"text",pattern:"[0-9]*",maxlength:"11",onchange:e.getUserList(),placeholder:"请输入手机号查询所属商家"},domProps:{value:e.phone},on:{input:function(t){t.target.composing||(e.phone=t.target.value)}}}),11==e.phone.length?n("ul",{staticClass:"memberList"},e._l(e.userList,(function(t){return n("li",{on:{click:function(o){return e.selectUser(t)}}},[n("input",{attrs:{type:"checkbox"},domProps:{checked:t.ShopId==e.userSelect.ShopId}}),n("span",[e._v(e._s(t.ShopName.length>7?t.ShopName.slice(5):t.ShopName.slice(3)))]),n("em",[e._v(e._s(t.UserName))])])})),0):e._e()]),n("div",{staticClass:"area_member"},[e._m(0),n("ul",{staticClass:"chargeOption"},e._l(e.RsMonth,(function(t){return n("li",{class:[{activeLi:e.monthSelect.PdId==t.PdId}],on:{click:function(o){return e.selectMonth(t)}}},[n("em",{staticClass:"month"},[e._v(e._s(t.EffectiveMonths)+"个月")]),n("div",{staticClass:"cash",class:[{cashActive:e.monthSelect.PdId==t.PdId}]},[e._v(" ¥"),n("em",{class:[{emActive:e.monthSelect.PdId==t.PdId}]},[e._v(e._s(t.Price/100))])]),n("div",{staticClass:"gift",class:[{giftActive:e.monthSelect.PdId==t.PdId}]},[t.GiftMonths>0?n("div",[e._v("赠送"+e._s(t.GiftMonths)+"个月")]):n("div",[e._v("无赠送")])])])})),0)]),n("div",{staticClass:"area_member"},[e._m(1),n("ul",{staticClass:"chargeOption"},e._l(e.RsHour,(function(t){return n("li",{class:[{activeLi:e.hourSelect.PdId==t.PdId}],on:{click:function(o){return e.selectHour(t)}}},[n("em",{staticClass:"month"},[e._v(e._s(t.NormalHour)+"课时")]),n("div",{staticClass:"cash",class:[{cashActive:e.hourSelect.PdId==t.PdId}]},[e._v(" ¥"),n("em",{class:[{emActive:e.hourSelect.PdId==t.PdId}]},[e._v(e._s(t.Price/100))])]),n("div",{staticClass:"gift",class:[{giftActive:e.hourSelect.PdId==t.PdId}]},[t.GiftHour>0?n("div",[e._v("赠送"+e._s(t.GiftHour)+"课时")]):n("div",[e._v("无赠送")])])])})),0)]),n("div",{staticClass:"area_account"},[n("div",{staticClass:"title"},[e._v("充值金额")]),n("div",{staticClass:"right_cash"},[e._v(" ¥"),n("em",{staticClass:"money"},[e._v(e._s(e.cashTotal))]),n("em",{staticClass:"memo"},[e._v(e._s(e.giftTips))])]),n("div",{staticClass:"button",on:{click:function(t){return e.doBought()}}},[e._v(" 充值 ")])])]),n("alert",{ref:"alertPart"})],1)},i=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"banner"},[o("span",[e._v("会籍")]),o("em",[e._v("请选择入会月数")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"banner_hour"},[o("span",[e._v("课时")]),o("em",[e._v("请选择课时数")])])}],s=(o("2bd2"),o("a717"),o("d7f0"),o("5816"),o("7d8f"),o("c505"),o("b8a1")),c=o("a8da"),a=o("2dc0"),r=o("b66f"),h=(o("64da"),o("21a7"),o("fed1")),l={data:function(){return{openId:"",phone:"",phoneQuery:"",userList:[],userSelect:"",monthSelect:"",hourSelect:"",giftTips:"无赠送",cashTotal:"0",RsMonth:[],RsHour:[],RsMix:[]}},mounted:function(){this.checkCode()},destroyed:function(){},watch:{$route:function(e){"membershipCharge"==e.name&&this.checkCode()},active:function(){this.getList()}},methods:{onChange:function(e){console.log(e.format("YY-MM-DD"))},alertInfo:function(e){this.$refs.alertPart.openSimpleDialog(e)},confirmDay:function(e){console.log(globaltime2StringNoMin(e))},selectUser:function(e){e.ShopId==this.userSelect.ShopId?this.userSelect="":this.userSelect=e},selectMonth:function(e){e.PdId==this.monthSelect.PdId?this.monthSelect="":this.monthSelect=e,this.calcCash()},selectHour:function(e){e.PdId==this.hourSelect.PdId?this.hourSelect="":this.hourSelect=e,this.calcCash()},checkCode:function(){if(localStorage.openId)localStorage.phone&&(this.phone=localStorage.phone),this.getChargeList();else if(123==this.getUrlKey("state")){var e=this.getUrlKey("code");this.getOpenId(e),this.getChargeList()}else this.getOpenCode()},getOpenCode:function(){console.log("获取公众号ID");var e=location.href,t=encodeURIComponent(e),o="snsapi_userinfo",n="wx36cb8b6661d71811",i="123",s="https://open.weixin.qq.com/connect/oauth2/authorize?appid="+n+"&redirect_uri="+t+"&response_type=code&scope="+o+"&state="+i+"#wechat_redirect";self.location=s},getUrlKey:function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||[,""])[1].replace(/\+/g,"%20"))||null},getOpenId:function(e){var t=this,o=this,n={code:e},i=h.stringify(n);Object(s["i"])(i).then((function(e){var n=e;0==n.Code?(""!=n.OpenId?localStorage.openId=n.OpenId:localStorage.removeItem("openId"),""!=n.Phone?localStorage.phone=n.Phone:localStorage.removeItem("phone")):(localStorage.removeItem("phone"),localStorage.removeItem("openId")),null!=localStorage.phone&&(o.phone=localStorage.phone,t.getUserList())}))},getUserList:function(){var e=this;if(11==e.phone.toString().length){if(e.phoneQuery==e.phone)return;var t={phone:e.phone},o=h.stringify(t);Object(s["M"])(o).then((function(t){e.userList=[],e.phoneQuery=e.phone;var o=t;0==o.Code&&o.Rs&&(e.userList=o.Rs)}))}else console.log("not 11 phone")},calcCash:function(){this.cashTotal=0,this.monthSelect&&(this.cashTotal+=this.monthSelect.Price),this.hourSelect&&(this.cashTotal+=this.hourSelect.Price),this.cashTotal/=100,this.monthSelect.GiftMonths>0||this.hourSelect.GiftHour>0?(this.giftTips="含赠送",this.monthSelect.GiftMonths>0&&(this.giftTips+=this.monthSelect.GiftMonths+"个月"),this.monthSelect.GiftMonths>0&&this.hourSelect.GiftHour>0&&(this.giftTips+="+"),this.hourSelect.GiftHour>0&&(this.giftTips+=this.hourSelect.GiftHour+"课时")):this.giftTips="无赠送"},getChargeList:function(){var e=this,t=this,o={},n=h.stringify(o);Object(s["d"])(n).then((function(o){var n=o;0==n.Code?(n.RsClassHour.length>0&&(t.RsHour=n.RsClassHour),n.RsMonth.length>0&&(t.RsMonth=n.RsMonth),n.RsMix.length>0&&(t.RsMix=n.RsMix)):e.getChargeList()}))},doBought:function(){var e=this;if(e.userSelect)if(e.monthSelect||e.hourSelect){var t=[];e.monthSelect&&t.push(e.monthSelect.PdId),e.hourSelect&&t.push(e.hourSelect.PdId);var o={phone:e.phone,openId:localStorage.openId,shopId:e.userSelect.ShopId,pdIdStr:t.toString(),amount:100*e.cashTotal},n=h.stringify(o);Object(s["m"])(n).then((function(t){var o=t;if(console.log(o),0==o.Code){var n=o.Rs;"undefined"===typeof WeixinJSBridge?document.addEventListener?document.addEventListener("WeixinJSBridgeReady",e.onBridgeReady(n),!1):document.attachEvent&&(document.attachEvent("WeixinJSBridgeReady",e.onBridgeReady(n)),document.attachEvent("onWeixinJSBridgeReady",e.onBridgeReady(n))):(console.log("准备调用微信支付"),e.onBridgeReady(n))}}))}else e.Toast("请选择充值选项");else e.Toast("请选择充值会员")},onBridgeReady:function(e){console.log("onBridgeReady");var t=this;WeixinJSBridge.invoke("getBrandWCPayRequest",{appId:e.AppId,timeStamp:e.TimeStamp,nonceStr:e.NonceStr,package:e.Package,signType:e.SignType,paySign:e.PaySign},(function(o){if("get_brand_wcpay_request:ok"==o.err_msg){console.log("支付成功,正在查询结果"),t.Toast("支付成功,正在查询结果");var n=e.OutTradeNo;t.$router.push({path:"/membershipChargeResult",query:{OutTradeNo:n}})}else t.Toast("支付失败")}))},onGoNewPage:function(e){this.$router.push({path:"/"+e})}},beforeDestroy:function(){},beforeRouteEnter:function(e,t,o){o((function(t){""==e.name&&t.getList()}))},components:{bottomTab:c["a"],alert:a["a"],DatePicker:r["default"]}},d=l,u=(o("9c27"),o("cba8")),f=Object(u["a"])(d,n,i,!1,null,"7aa551af",null);t["default"]=f.exports}}]);
  2. //# sourceMappingURL=chunk-4d2f6315.undefined.1671071058477.js.map