(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/becomeVip"],{"10bf":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){}));var i=function(){var t=this.$createElement,n=(this._self._c,this.imgList.length);this.$mp.data=Object.assign({},{$root:{g0:n}})},o=[]},"20a6":function(t,n,e){"use strict";var i=e("ccb3"),o=e.n(i);o.a},"443d":function(t,n,e){"use strict";e.r(n);var i=e("10bf"),o=e("6d48");for(var c in o)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(c);e("20a6");var s=e("f0c5"),a=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=a.exports},"68f1":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("3e59");i(e("66fd"));var o=i(e("443d"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"6d48":function(t,n,e){"use strict";e.r(n);var i=e("f69c"),o=e.n(i);for(var c in i)["default"].indexOf(c)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(c);n["default"]=o.a},ccb3:function(t,n,e){},f69c:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=e("c30e"),o=e("bde5"),c={data:function(){return{name:"",sex:"请选择您的性别",phone:"",code:"",countDown:0,array:["男","女"],imgList:[],imgCount:2}},watch:{countDown:function(t){0==t&&clearInterval(this.time)}},methods:{scImg:function(){var n=this;console.log(n.imgCount,11),0!=n.imgCount?(0,i.upload)({file:""}).then((function(t){console.log(t[0].url,"e"),n.imgList.push(t[0].url),console.log(n.imgList,"imgList"),n.imgCount=2-n.imgList.length,console.log(n.imgCount,"imgCount ")})).catch((function(t){})):t.showToast({title:"最多添加2张图片",icon:"none"})},bindPickerSex:function(t){console.log(this.array[t.target.value]),this.sex=this.array[t.target.value]},imgInfo:function(n){var e=[];console.log(111),this.imgList.forEach((function(t){e.push(t)})),console.log(e),t.previewImage({current:n,loop:!1,urls:e,indicator:"default"})},delImg:function(n){var e=this;t.showModal({content:"确定删除这张吗",success:function(t){t.confirm?(e.imgList.splice(n,1),e.imgCount++):t.cancel}})},verification:function(){var t=this;if(""!=this.phone){if(!(this.phone.length<11))return!(t.countDown>0)&&(t.countDown=60,t.time=setInterval((function(){t.countDown--}),1e3),void(0,o.verify)({phone:t.phone,type:"register"}).then((function(t){t.data})).catch((function(t){console.log(t)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入联系方式")},add:function(){var n=this;return""==n.name?this.$api.msg("请输入你的姓名"):""==n.sex?this.$api.msg("请输入你的姓别"):""==n.phone?this.$api.msg("请输入你的联系方式"):this.phone.length<11?void this.$api.msg("请输入正确的联系方式"):""==n.code?this.$api.msg("请输入你的验证码"):0==n.imgList.length?this.$api.msg("请上传你的身份证照片"):void(0,i.apply)({name:n.name,sex:"男"==n.sex?1:2,phone:n.phone,images:n.imgList,captcha:n.code}).then((function(n){t.navigateTo({url:"/pages/order/success?type=2"})}))}}};n.default=c}).call(this,e("543d")["default"])}},[["68f1","common/runtime","common/vendor"]]]);