chunk-819d8782.undefined.1670315735204.js 10 KB

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