(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/becomeVip"],{164:function(n,t,e){"use strict";(function(n,t){var i=e(4);e(26);i(e(25));var o=i(e(165));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e(1)["default"],e(2)["createPage"])},165:function(n,t,e){"use strict";e.r(t);var i=e(166),o=e(168);for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);e(170);var c,s=e(35),u=Object(s["default"])(o["default"],i["render"],i["staticRenderFns"],!1,null,null,null,!1,i["components"],c);u.options.__file="pages/user/becomeVip.vue",t["default"]=u.exports},166:function(n,t,e){"use strict";e.r(t);var i=e(167);e.d(t,"render",(function(){return i["render"]})),e.d(t,"staticRenderFns",(function(){return i["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return i["recyclableRender"]})),e.d(t,"components",(function(){return i["components"]}))},167:function(n,t,e){"use strict";var i;e.r(t),e.d(t,"render",(function(){return o})),e.d(t,"staticRenderFns",(function(){return c})),e.d(t,"recyclableRender",(function(){return r})),e.d(t,"components",(function(){return i}));var o=function(){var n=this,t=n.$createElement,e=(n._self._c,n.imgList.length);n.$mp.data=Object.assign({},{$root:{g0:e}})},r=!1,c=[];o._withStripped=!0},168:function(n,t,e){"use strict";e.r(t);var i=e(169),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);t["default"]=o.a},169:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=e(58),o=e(100),r={data:function(){return{name:"",sex:"请选择您的性别",phone:"",code:"",countDown:0,array:["男","女"],imgList:[],imgCount:2}},watch:{countDown:function(n){0==n&&clearInterval(this.time)}},methods:{scImg:function(){var t=this;console.log(t.imgCount,11),0!=t.imgCount?(0,i.upload)({file:""}).then((function(n){console.log(n[0].url,"e"),t.imgList.push(n[0].url),console.log(t.imgList,"imgList"),t.imgCount=2-t.imgList.length,console.log(t.imgCount,"imgCount ")})).catch((function(n){})):n.showToast({title:"最多添加2张图片",icon:"none"})},bindPickerSex:function(n){console.log(this.array[n.target.value]),this.sex=this.array[n.target.value]},imgInfo:function(t){var e=[];console.log(111),this.imgList.forEach((function(n){e.push(n)})),console.log(e),n.previewImage({current:t,loop:!1,urls:e,indicator:"default"})},delImg:function(t){var e=this;n.showModal({content:"确定删除这张吗",success:function(n){n.confirm?(e.imgList.splice(t,1),e.imgCount++):n.cancel}})},verification:function(){var n=this;if(""!=this.phone){if(!(this.phone.length<11))return!(n.countDown>0)&&(n.countDown=60,n.time=setInterval((function(){n.countDown--}),1e3),void(0,o.verify)({phone:n.phone,type:"register"}).then((function(n){n.data})).catch((function(n){console.log(n)})));this.$api.msg("请输入正确的手机号")}else this.$api.msg("请输入联系方式")},add:function(){var t=this;return""==t.name?this.$api.msg("请输入你的姓名"):""==t.sex?this.$api.msg("请输入你的姓别"):""==t.phone?this.$api.msg("请输入你的联系方式"):this.phone.length<11?void this.$api.msg("请输入正确的联系方式"):""==t.code?this.$api.msg("请输入你的验证码"):0==t.imgList.length?this.$api.msg("请上传你的身份证照片"):void(0,i.apply)({name:t.name,sex:"男"==t.sex?1:2,phone:t.phone,images:t.imgList,captcha:t.code}).then((function(t){n.navigateTo({url:"/pages/order/success?type=2"})}))}}};t.default=r}).call(this,e(2)["default"])},170:function(n,t,e){"use strict";e.r(t);var i=e(171),o=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);t["default"]=o.a},171:function(n,t,e){}},[[164,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/user/becomeVip.js.map