1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b3d1e89"],{"07ae":function(e,t,i){"use strict";i("ab57")},"1d1e":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,"#yz_bindMobile .verification[data-v-e9eb509e]{width:22rem;padding:0 .75rem;margin:0 auto}#yz_bindMobile .verification .text[data-v-e9eb509e]{padding:1.725rem 2rem 2.125rem;color:#666;text-align:center;font-size:.75rem}#yz_bindMobile .verification .inputBox[data-v-e9eb509e]{height:3rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:.0625rem solid #ebebeb;text-align:left;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;margin-top:.625rem}#yz_bindMobile .verification .inputBox .name[data-v-e9eb509e]{width:65px;color:#000}#yz_bindMobile .verification .inputBox input[data-v-e9eb509e]{border:none}#yz_bindMobile .verification .inputBox #phone[data-v-e9eb509e]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#yz_bindMobile .verification .inputBox #code[data-v-e9eb509e]{width:45%}#yz_bindMobile .verification .inputBox .getcodeClass[data-v-e9eb509e]{display:inline-block;height:1.75rem;line-height:1.75rem;background-color:#f54242;color:#fff;border-radius:.625rem;padding:0 .625rem;font-size:.75rem}#yz_bindMobile .verification .inputBox .getcodeImg[data-v-e9eb509e]{display:inline-block;height:1.25rem;line-height:1.25rem;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}#yz_bindMobile .verification .bottomBox[data-v-e9eb509e]{padding-top:2rem;padding-bottom:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around}#yz_bindMobile .verification .bottomBox .btn1[data-v-e9eb509e],#yz_bindMobile .verification .bottomBox .btn2[data-v-e9eb509e]{width:6rem;height:2rem;line-height:2rem;text-align:center;color:#fff;font-size:1rem;border-radius:1.234rem}#yz_bindMobile .verification .bottomBox .btn1[data-v-e9eb509e]{background:#bcbcbc}#yz_bindMobile .verification .bottomBox .btn2[data-v-e9eb509e]{background:#f71515}#yz_bindMobile .city-info[data-v-e9eb509e]{border-radius:.656rem;width:20rem;height:32rem;margin:0 auto;background:#fff}#yz_bindMobile .city-info header[data-v-e9eb509e]{border-radius:.656rem .656rem 0 0}#yz_bindMobile .city-info #a_content[data-v-e9eb509e]{margin:0 1.063rem 0 .75rem;height:24rem;overflow-y:scroll}#yz_bindMobile .city-info #a_content[data-v-e9eb509e] ::v-deepimg{max-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}#yz_bindMobile .city-info #a_content img[data-v-e9eb509e]{max-width:100%;height:auto;display:inline-block}#yz_bindMobile .protocol[data-v-e9eb509e]{text-align:left;font-weight:700;margin:1rem .5rem 0 .5rem;color:#f71515}",""]),e.exports=t},52048:function(e,t,i){"use strict";i("5fa7")},"5fa7":function(e,t,i){var o=i("1d1e");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("1ff22458",o,!0,{sourceMap:!1,shadowMode:!1})},"6f31":function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{directives:[{name:"show",rawName:"v-show",value:e.url,expression:"url"}],staticClass:"container"},[i("iframe",{ref:"iframe",attrs:{src:e.url,id:"iframe",width:"100%",height:"100%",frameborder:"0",allow:"geolocation"}})]),i("yz_bindMobile",{directives:[{name:"show",rawName:"v-show",value:e.show,expression:"show"}],ref:"yz_bindMobile",on:{bindSuccess:e.getData}}),i("div",{staticClass:"fixed-box",class:[3==e.fun.getPhoneEnv()?"pcStyle":""]},[i("router-link",{staticClass:"fixed-item",attrs:{to:e.fun.getUrl("home")}},[i("i",{staticClass:"iconfont icon-zhuye2",staticStyle:{"font-size":"28px"}}),i("span",[e._v("首页")])])],1)],1)},a=[],n=(i("b0c0"),i("a36f")),s={data:function(){return{url:"",show:!1}},activated:function(){this.show=!1,this.getData(),window.addEventListener("message",this.handleMessage)},deactivated:function(){window.removeEventListener("message",this.handleMessage)},methods:{handleMessage:function(e){window.location.href=e.data},getData:function(){var e=this;$http.post("plugin.oil-station.frontend.index.getPageData",{},"...").then((function(t){1==t.result?(e.url=t.data.oil_url,e.fun.wxShare("",{},{title:"全国加油优惠-"+e.$store.state.temp.mailInfo.name,description:"400+城市油站加油优惠,平台会员专享特权!"})):(e.show=!0,e.$nextTick((function(){e.$refs.yz_bindMobile.initShow()})))}),(function(e){}))}},components:{yz_bindMobile:n["a"]}},r=s,c=(i("07ae"),i("2877")),d=Object(c["a"])(r,o,a,!1,null,"a09ed7c4",null);t["default"]=d.exports},a36f:function(e,t,i){"use strict";var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{attrs:{id:"yz_bindMobile"}},[i("van-popup",{attrs:{round:"","close-on-click-overlay":!1},model:{value:e.showVerification,callback:function(t){e.showVerification=t},expression:"showVerification"}},[i("div",{staticClass:"verification"},[i("div",{staticStyle:{padding:"10px 0"}},[i("em",{staticClass:"name"}),i("span",[e._v("请先绑定手机号")])]),i("div",{staticClass:"inputBox"},[i("em",{staticClass:"name"},[e._v("手机号")]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.form.mobile,expression:"form.mobile"}],attrs:{type:"number",placeholder:"请输入手机号",id:"phone"},domProps:{value:e.form.mobile},on:{input:function(t){t.target.composing||e.$set(e.form,"mobile",t.target.value)}}})]),e.imgcode?i("div",{staticClass:"inputBox"},[i("em",{staticClass:"name",staticStyle:{width:"25%"}},[e._v("图形验证码")]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.form.captcha,expression:"form.captcha"}],staticStyle:{width:"35%"},attrs:{type:"text",placeholder:"请输入图形验证码",id:"captcha"},domProps:{value:e.form.captcha},on:{input:function(t){t.target.composing||e.$set(e.form,"captcha",t.target.value)}}}),i("img",{staticClass:"getcodeImg",staticStyle:{width:"40%",height:"2.5rem","z-index":"999"},attrs:{src:e.imgcode},on:{click:function(t){return e.getimgdata()}}})]):e._e(),i("div",{staticClass:"inputBox"},[i("em",{staticClass:"name"},[e._v("验证码")]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.form.code,expression:"form.code"}],attrs:{type:"number",placeholder:"请输入验证码",id:"code"},domProps:{value:e.form.code},on:{input:function(t){t.target.composing||e.$set(e.form,"code",t.target.value)}}}),i("span",{directives:[{name:"show",rawName:"v-show",value:!e.count,expression:"!count"}],staticClass:"getcodeClass",on:{click:e.VerificationCode}},[e._v("获取验证码")]),i("span",{directives:[{name:"show",rawName:"v-show",value:e.count,expression:"count"}],staticClass:"getcodeClass"},[e._v(e._s(e.count)+"秒后重新获取")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:e.protocol_content,expression:"protocol_content"}],staticClass:"protocol",on:{click:function(t){t.stopPropagation(),e.showContent=!0}}},[e._v(e._s(e.protocol_title))]),i("div",{staticClass:"bottomBox"},[i("div",{staticClass:"btn2",on:{click:e.bindMobile}},[e._v("确认")])])])]),i("van-popup",{staticClass:"mint-popup-3",staticStyle:{"z-index":"2004","border-radius":"0.656rem"},attrs:{closeOnClickModal:"true",modal:"false"},model:{value:e.showContent,callback:function(t){e.showContent=t},expression:"showContent"}},[i("div",{staticClass:"city-info"},[i("van-nav-bar",{attrs:{title:"协议",fixed:""}}),i("div",[i("div",{staticStyle:{height:"2.5rem",clear:"both"}}),i("div",{attrs:{id:"a_content"},domProps:{innerHTML:e._s(e.protocol_content)}}),i("div",{staticStyle:{width:"12.75rem",height:"2.313rem","background-color":"#f04d4d","border-radius":"0.188rem",display:"flex","align-items":"center","justify-content":"center",color:"#fff","font-size":"1.193rem",margin:"0 auto","margin-top":"1.5rem","margin-bottom":"1.063rem"},on:{click:function(t){e.showContent=!1}}},[e._v(" 确定 ")])])],1)])],1)},a=[],n=(i("e7e5"),i("d399")),s={props:{datas:{type:[String,Object,Array]}},data:function(){return{showVerification:!1,imgcode:"",count:"",form:{mobile:"",code:"",captcha:""},showContent:!1,protocol_title:"",protocol_content:""}},deactivated:function(){this.showVerification=!1},destroyed:function(){this.showVerification=!1},methods:{initShow:function(){this.getimgdata(),this.getProtocolInfo(),this.showVerification=!0},hide:function(){this.showVerification=!1},getProtocolInfo:function(){var e=this;$http.get("setting.get-member-protocol").then((function(t){1==t.result&&(e.protocol_content=t.data.content,e.protocol_title=t.data.title)}),(function(e){}))},getimgdata:function(){var e=this;$http.get("home-page.getCaptcha").then((function(t){t.data.captcha.status&&"0"==t.data.captcha.status&&(e.imgcode=null),t.data.captcha.img&&(e.imgcode=t.data.captcha.img)})).catch((function(e){}))},VerificationCode:function(){var e=this;this.fun.isTextEmpty(this.form.captcha)&&this.imgcode?Object(n["a"])("请填图形验证码"):this.fun.isTextEmpty(this.form.mobile)?Object(n["a"])("请填写手机号"):(n["a"].loading({duration:0,forbidClick:!0,message:"发送中"}),$http.get("member.register.sendCodeV2",{mobile:this.form.mobile,captcha:this.form.captcha}).then((function(t){n["a"].clear(),1==t.result?e.getCode():(Object(n["a"])(t.msg),e.form.captcha="",e.getimgdata())}),(function(e){})))},getCode:function(){var e=this,t=60;this.timer||(this.count=t,this.timer=setInterval((function(){e.count>0&&e.count<=t?e.count--:(clearInterval(e.timer),e.count=0,e.timer=null)}),1e3))},bindMobile:function(){var e=this;this.fun.isTextEmpty(this.form.mobile)?Object(n["a"])("手机号码不能为空"):this.fun.isMoblie(this.form.mobile)?Object(n["a"])("请输入正确的手机号"):this.fun.isTextEmpty(this.form.code)?Object(n["a"])("请填写验证码"):this.imgcode&&this.fun.isTextEmpty(this.form.captcha)?Object(n["a"])("图形验证码不能为空"):$http.post("member.member.justBindMobile",this.form,"正在绑定手机..").then((function(t){1==t.result?(Object(n["a"])("绑定成功!"),e.showContent=!1,e.showVerification=!1,e.$emit("bindSuccess")):Object(n["a"])(t.msg)}),(function(e){}))}}},r=s,c=(i("52048"),i("2877")),d=Object(c["a"])(r,o,a,!1,null,"e9eb509e",null);t["a"]=d.exports},ab57:function(e,t,i){var o=i("f963c");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("008f08c8",o,!0,{sourceMap:!1,shadowMode:!1})},f963c:function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".container[data-v-a09ed7c4]{width:100%;height:100vh}.fixed-box[data-v-a09ed7c4]{position:fixed;bottom:8rem;right:2%;color:#518bff}.fixed-box.pcStyle[data-v-a09ed7c4]{right:32%}.fixed-box .fixed-item[data-v-a09ed7c4]{width:3.5rem;height:3.5rem;margin-bottom:10px;background:#fff;border-radius:50%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column}.fixed-box .fixed-item span[data-v-a09ed7c4]{font-size:12px}.fixed-box .fixed-item i[data-v-a09ed7c4]{font-size:25px}",""]),e.exports=t}}]); |