1 line
46 KiB
JavaScript
1 line
46 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67d7dc57"],{"0484":function(t,e,a){t.exports=a.p+"static/app/img/bg_idcard_up@2x.8ded2479.png"},"133b":function(t,e,a){"use strict";a("7748")},"2b30":function(t,e,a){var i=a("2fc1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("b10fe1f2",i,!0,{sourceMap:!1,shadowMode:!1})},"2c87":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHJklEQVR4Xu2bZaimRRTHf2sndqAitoIfFLELC+zubsVCxe7ALvxgd3e3mJjY+kXswsRC7Jbf8swyd+7z3neeeO9917sHlt29d+bMnP/MnH7GMMppzCiXnwkATLgBvUdgMmBFYGVgDmC24s+sxf//Br4CvgC+Kf79KfAM8DTwZy+32KsnMDGwFrArsCYwVU0hfgEeBK4EHgIEq1VqG4ApgL2Ag4A5W90pfAacDVwA/N4W77YAmKQQ/Ehg9rY214HPl8ApwIXAX03XagOAjYEzgfmH2Mz7wAvFn5eAV4A/kvGTA4sDywFLAstm8DwEuLMJCE0A8J17JffvsAEFvB44HXi75iYXLZ7TdsCkHXicCxxcVz/UBWA64HZg9ZJN/QxcDJxVaPaasg+YpvVQr6hfpixh+BiwKfBD1cXqAKByexxYKFlMjX1eceLfVd1I5viZAa/9viWWxVu2BqAJzaaqAMwNPF/Y73gRF9fcfZy9crOB8xTmcZGEzeeFDvkkl30VAGYCXgTmS5jfB2wFePWHk6YBbgTWSxb9AFga+DZnM7kAqID0zGQck6bI6/hPzmI9GDNR8ezUDTFpaVbI8SJzAbgK2DFZ5HJgtx4IVYelSnePZOLVwE7dmOUAsE1hzmJeDwDrj+DJp3J5E+4B1k1+sS1ww1AgdANA58Q3pRkKpMLTUfmpG7rD/Ht1wsvAwtG6KkV1VkfXuRsAurYnRwxlpLf21jALl7ucVuF1wIMLdHQiwwBeQwGgs2MAMnU040TguNzdjNC4E4Bjo7W1TvoupU7SUADo3+tiBtLBWKDNSKxHAHn67wFzRfz1SnWgBlEnADR7enO+q0CCoe+fSwZH5gQeAd7JnZSM8z2vBjxc6KJcNrrNCh3oR0A/ZlBypRMARnh3RAxUeCpCGeWQnpoRoNpZMjFyRc7EaMwugKZWMuyVp08yh6Ytxvp3oE3KIsdOANwEbBlN1uHZO2flYsxhwGnR+H+B7UvMaSeWCn8ZDEjayvOMCnswcRI7SLckMo1lVQaAP/seUAkGWgJ4rcLimh7fYcw/FwRt97XJXD1Nn9RHFfagtYr3rBKcAXAf46gMAF1I3d5A+tRGYVVpB0APMgVhC+C2Dsw2AzypdI4e3TVVNwB8nezd5Oyz3QBIr69xvxurQ2UgmNj0Peq5xbRBoXdMtATytOoKLw+BNk8Q6IjkaZY+ARWPbzCQ5iPWqFWBKANBpaYrbaZXUniBNrfYlvDySa3BoPil7Ak8BawUbWSdIvauKng8vgwEU2ZrA9YN7i0R3hhEZdyE5G/cEsg6g/WJcVQGgL7/vNGYBQuF1mQjzjVnYGASr/lbYSoFIZBPxBxgU+Hlp+P2bsRbJRrLVvoEVHozRpNmKSo2TQHoBELMV+E3b5rpjRiqvFWEgXTudIiGvAGanPiUrOr82ob0BQ9vwnVArOz8VdvCy9MEqrnKQMo2YN2yJ2DEF19Jfes0h98ED73MW4cJAOWIQ2HliCPF0idggTK+Jl6jrPxaBiqdTr8X71+eyqE8gQb5NGU3QB8+Tnz2UgmG04lPRdvfhgVQaL1HPdJAH6ZJ3TIAngBWiSaZZopNScZBDxpSZgG8jhsWI3tlBjXh90e7eRJYtZsSvDRJdh5a1P7qCO6cJo5Q05tgCG9eI5AB1u7dAFBg63mBVFj673VopF1h4wrNaqDDE9lKlaDV2eeiSeNzMKTdNwIMtHxR2Rr3g07hsBOnjyYaWr5R4QqkCRGnNg2HVcZ6qbm0WJEgDeOzw2EnWHJScQUyubBP7sqAV+3UaHyu8GFKnA0KP2uaENG13jqVoVNGaKPEHa2aEtPf1vw0SYmZzRF4yejRG5CbEDEVZk0gzmnqgN2VC4AelA5EnFOrmhS1VG0Cws4QG53qkCZ4qaJbzB6AXGqcFHUh829xKnl8Tosri09oEFUtjBwPWHjoZ7Jw4z4D1S6MyOAo4KSIma6r2rVuz0+vgbOOoLWKXetjEhkG7KFbbdC+P5VZ3PM3qoqjomWa2vg9JpWanRkj1RiR3iStjfGEvn9M1iLSvVe6AWGwVZ2dE+b91CChj2/1KabWGiRk2s8tMhelAU7Ry6QJ7tpo3U0HxIh2apIy3LSMNtxNUpbtby7pCulJk1QAol/a5Ex0CHzcDeIee9omF0Cw7v5oyeLegPOL+DtOQ7Vp+ka8UTIIY+HU8rm1+5QE4pICCD+CaINCq+yeScdK4G3nquW2YWmVDYtaxjoH2K+DhKa8LISYkXmzJgo5zdK25x4w3M3SsTzm9ewcyW2Xt9v01ZJUu06XeQfb5A2AlsngadBzd01wx06rYgWGWmdUfzARA+Mpmjg5sEefzPjkVLR998lMejva/GjKErofTel+9/1HU2XPpOyzOT+Z8/M5tXvZZ3M2Q9mlYqm+qzfXDzqgyR5GdG5bSnBEhWiy+AQAmqD3f5j7Hy2FkFA2hNhdAAAAAElFTkSuQmCC"},"2fc1":function(t,e,a){var i=a("24fb"),s=a("1de5"),o=a("2c87");e=i(!1);var n=s(o);e.push([t.i,".subPos[data-v-c4ddf270]{position:relative}.van-button-group[data-v-c4ddf270]{padding-top:15px;padding-left:12px;padding-right:12px}#tips[data-v-c4ddf270]{text-align:left;color:#ff5d5c;font-size:12px;display:inline-block;padding-left:12px}.el-input__icon.el-icon-caret-top[data-v-c4ddf270]{color:#b8b8b8}.el-input__inner[data-v-c4ddf270]{border:.0625rem solid #b8b8b8;font-size:12px}.el-select[data-v-c4ddf270]{display:block;margin-bottom:.5rem;width:100%;height:2rem;border-radius:.3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}.delimg[data-v-c4ddf270]{position:absolute;top:0;right:0;height:1.25rem;width:1.875rem;color:#fff;background-color:red}#income h3[data-v-c4ddf270]{background:#f5f5f5;margin:0;padding:0 .625rem;text-align:left;font-weight:400;font-size:12px;height:2rem;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:2rem}#income h3 span[data-v-c4ddf270]{color:#999}a[data-v-c4ddf270]{text-decoration:none;color:#222}input[data-v-c4ddf270]{border-width:0;right:0}.list-ul img[data-v-c4ddf270]{width:80%;height:80%}.list-ul[data-v-c4ddf270]{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}.image-list[data-v-c4ddf270]{width:100%;height:100%;background-color:#fff;padding:.75rem 0;margin-top:-.625rem}.image-list .otherphoto .photobox[data-v-c4ddf270]{position:relative;width:5rem;height:5rem;border:1px dashed #c0ccda;margin-right:.2rem;margin-left:.2rem;margin-bottom:.2rem}.image-list .otherphoto .photobox img[data-v-c4ddf270]{width:100%;height:100%}.image-list .otherphoto .photobox i[data-v-c4ddf270]{width:1.2rem;height:1.2rem;position:absolute;top:.1rem;right:.1rem;background:url("+n+");background-size:100%}.list-default-img[data-v-c4ddf270]{height:3.125rem;text-align:left;padding-left:.75rem}.supplier[data-v-c4ddf270]{overflow:hidden}.supplier .banner img[data-v-c4ddf270]{width:100%}.supplier .main[data-v-c4ddf270]{position:relative;top:-.25rem}.welcome[data-v-c4ddf270]{padding:.625rem;background:#fff}.welcome .text p[data-v-c4ddf270]{font-size:12px;color:#666;line-height:1.2rem;margin-top:0}.welcome .text p span[data-v-c4ddf270]{color:#f55955}.welcome .info[data-v-c4ddf270]{margin-top:.625rem}.welcome .info input[data-v-c4ddf270]{position:relative;display:block;margin-bottom:.5rem;width:100%;height:2rem;border-radius:.3125rem;padding:0 .3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none}.welcome .info .inp[data-v-c4ddf270],.welcome .info .inp1[data-v-c4ddf270]{border:.0625rem solid #b8b8b8}.welcome .info .inp[data-v-c4ddf270]:focus{border-color:#f55955;-webkit-box-sizing:border-box;box-sizing:border-box}.welcome .info span[data-v-c4ddf270]{color:#f55955}.welcome .info .btn[data-v-c4ddf270]{background:#f55955;color:#fff;margin-bottom:.5rem;width:100%;height:2rem;border-radius:.3125rem;padding:0 .3125rem;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;font-size:12px;line-height:2rem}.welcome .info .btn i[data-v-c4ddf270]{display:inline-block}.welcome .info .btn[data-v-c4ddf270]:focus{background:#d8403c}.supplier .main .vip_main[data-v-c4ddf270]{background:#fff;margin:.9375rem 0}.supplier .main .vip_main .title[data-v-c4ddf270]{padding:.625rem;font-size:12px;border-bottom:.0625rem solid #eee;text-align:center}.supplier .main .vip_main .vip[data-v-c4ddf270]{padding:.9375rem .625rem;overflow:hidden;font-size:12px;color:#999}.supplier .main .vip_main .vip .ico1[data-v-c4ddf270],.supplier .main .vip_main .vip .ico2[data-v-c4ddf270]{width:15%;float:left}.supplier .main .vip_main .vip .ico1 i[data-v-c4ddf270]{background:#32cd32}.supplier .main .vip_main .vip .ico2 i[data-v-c4ddf270]{background:#fece00}.supplier .main .vip_main .vip .text[data-v-c4ddf270]{float:left;width:100%}.supplier .main .vip_main .vip .text .t1[data-v-c4ddf270]{font-size:16px;color:#333;margin-bottom:.3125rem;text-align:left}.supplier .main .vip_main .vip .text .t2[data-v-c4ddf270]{text-align:justify}.supplier .main .vip_main .vip i[data-v-c4ddf270]{background:#32cd32;height:2.25rem;width:2.25rem;border-radius:1.125rem;color:#fff;text-align:center;line-height:2.375rem;font-size:1.25rem}.supplier .main .vip_main .vip1[data-v-c4ddf270]{border-bottom:.0625rem solid #eee}.supplier .success[data-v-c4ddf270]{height:12.5rem;padding-top:4.0625rem;background:#fff}.supplier .success .ico[data-v-c4ddf270]{height:4.0625rem;width:4.0625rem;margin:auto;border:.1875rem solid #32cd32;border-radius:4rem;color:#32cd32;font-size:2.3rem;text-align:center;line-height:4rem}.supplier .success .text[data-v-c4ddf270]{height:2rem;margin-top:1.875rem;color:#666;line-height:1.6rem;text-align:center}.supplier .success a .sub[data-v-c4ddf270]{height:2rem;width:80%;background:#f55955;margin:1.25rem auto;border-radius:2rem;color:#fff;line-height:2rem;text-align:center;font-size:14px;margin-bottom:1.25rem}.supplier .success a .sub[data-v-c4ddf270]:focus{background:#d8403c}.imgflex[data-v-c4ddf270]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.checkbox[data-v-c4ddf270]{padding:1rem 0 0 1rem}.explainWrapper[data-v-c4ddf270]{width:21.25rem;max-height:22.625rem;background-color:#fff;border-radius:1.531rem;padding-bottom:3rem;-webkit-transition:.3s;transition:.3s;padding-top:.5rem}.explainWrapper .header[data-v-c4ddf270]{height:2.596rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;position:relative}.explainWrapper .header .title[data-v-c4ddf270]{font-size:1rem;letter-spacing:.05rem;color:#000}.explainWrapper .header .icon-guanbi[data-v-c4ddf270]{position:absolute;top:.875rem;right:1.25rem;color:#000}.explainWrapper .content[data-v-c4ddf270]{max-height:11rem;padding-top:.562rem;font-size:.875rem;letter-spacing:.066rem;color:#666;padding-left:1.049rem;padding-right:1.469rem;text-align:left;text-indent:1.75rem;line-height:1.5rem;overflow-y:scroll}.main .grop-title .van-cell[data-v-c4ddf270]{height:50px;padding:0 12px;color:#555}.main .van-cell-group__title[data-v-c4ddf270]{text-align:left;padding:2.5px 12px 5px}.main .left-title[data-v-c4ddf270]{text-align:left}.main[data-v-c4ddf270] .van-field__control{color:#555}.main[data-v-c4ddf270] textarea::-webkit-input-placeholder{color:#555}.main[data-v-c4ddf270] textarea::-moz-placeholder{color:#555}.main[data-v-c4ddf270] textarea:-ms-input-placeholder{color:#555}.main[data-v-c4ddf270] textarea::-ms-input-placeholder{color:#555}.main[data-v-c4ddf270] textarea::placeholder{color:#555}.main .checkbox-text[data-v-c4ddf270]{text-align:left;color:#555}.main .city-text[data-v-c4ddf270]{margin-top:10px;margin-bottom:10px}.main .city-text[data-v-c4ddf270] .van-cell__title{text-align:left;-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;width:auto;margin-right:0}.main .city-text input[data-v-c4ddf270]{width:100%;border:none;color:#333}.main .city-text select[data-v-c4ddf270]{width:100%;border:none;color:#555}.main .city-text .van-cell[data-v-c4ddf270],.main .data-text .van-cell[data-v-c4ddf270]{height:50px;padding:0 12px;color:#555}.main .flex-height[data-v-c4ddf270]{margin-bottom:10px}.main .flex-height .van-cell[data-v-c4ddf270]{height:50px;padding:0 12px;color:#555}.main .flex-height .van-cell .van-cell__title[data-v-c4ddf270]{-webkit-box-flex:0;-webkit-flex:none;-ms-flex:none;flex:none;margin-right:5px}.main .checkbox-height .van-cell[data-v-c4ddf270]{padding:0 12px;height:50px}",""]),t.exports=e},7748:function(t,e,a){var i=a("cef7");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var s=a("499e").default;s("206ee25e",i,!0,{sourceMap:!1,shadowMode:!1})},"9619f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAGv0lEQVR4Xu2dUYgVZRiGv292C89uiQQREVFEBhaUheZFIokXQtBNN5nmRRey5IaU7PyzexEdunFmznI2pNWQ6EIs7b7Ai3ApKrKMJAgFJcoL6SaCaPdIuztfzLK7oOn6enbc+c+c91zKO///z/N+PHrOGTwqXfZqNBovZln2nIg8KyKb8ttX1e/M7AdV/do591k3IdFuudkDBw482tPTc2yh9CXu+/Ts7OyOkZGR37qBTVcMQJIke1V1HC3UzK6o6n7n3GH0mk7NVX4A4jjeHgTByXYKUtVtYRieaufaTrmm0gNw8ODB1a1W66Kq3ttOIWZ2uVarrdu3b9/f7VzfCddUegDSNP1YRHYus4hjzrndy1zD28srOwDNZvOemZmZP4sg39/ff/fg4OA/Razl2xqVHYA4jrcEQfBlQcA3O+e+KWgtr5ap7ACkafq6iBwqiPaAc+5IQWt5tUxlByBJkjFVfbMg2mPOuf0FreXVMlUegHFV3VsQ7cPOuaLWKuhIxSzDAcA4cgAwTv6kkiShAYA6aAAAkojQABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMU3caYP7/3M9/XWu9ma3CWPmRUtUXRGRjEacxszMi8nkRa63UGqp6RUTOzs7Onh4ZGfnrRvte1wCNRuMdM3tNRB5aqQNzn9tK4HcR+cg59+61u1w1AEmSbBCRo6q67rYeh4uXQsDMzqnqTufc2YUDLA5AmqYvi8iJUk7GTVeUQJZlrwwPD891PTcAY2Nj909PT58XkdUrehJuVhaBySzLHh8eHr40NwBpmk6IyPNlnYb7rjwBM/vWObdZ4zh+KgiCxb8TVv4o3LFEAps1TdNBEXm/xENw6/IIvK1JkhxX1R3lnYE7l0XAzCZyA1wSkQfLOgT3LY/A3I9kJ0nyh6reV94xuHOZBPIBOKmq28s8BPcuh0D+TiAfgFhVo3KOwF1LJjCavw3cEQTB8ZIPwu1LIKCqL2m9Xu/r6+vLPwdYW8IZuGVJBMzsl1ar9czcJ4FxHD+hqmdUtaO+8i2JXcdva2ZTqrreOXdh8cugJEl2q+rRjr873sBNCajqrjAMP8mDV30d3Gg0NmVZdkJVH77pKgx0HAEzuxgEwathGJ5eOPz/HghpNpu1mZmZRETeuHZAOu6OeeAFApZ/3D81NeXq9Xr+pNDi64bPBDYajf4sy9ap6loze0RE7ugknnwkTP/NsuzX3t7eC2Z2PgzDyev1x4dCsanuzodCMTZ+pvhYONYLDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqorAHSNG2KyFsYhqVTZvZeFEWFrFXEeYpco7IDEMfxniAIjhQEa49z7sOC1vJqmcoOwOjo6MYsy74vgnYQBBuGhoZ+LGIt39ao7ADU6/U7a7VaS1WD5UA3s2zNmjWrBgYGppezjq/XVnYAcuBpmn4gIgPLhF/ZdwA5l0oPwPj4+F2Tk5PnReSBdobAzC4HQfDYjX5to501fbum0gOQw06SZJuqftEOeFXdFobhqXau7ZRrKj8A80OwV1XHb6UUMxuMoujQrVzTidmuGID5fw/kP371qao+vVRRZvaTiOyKouhcJxZ6q2fumgHIwZhZ/mPZT6rqVhHZqqpb5v/8KxGZMLOJKIp+VtX8Z9a64vUfBXQMKAwW+l8AAAAASUVORK5CYII="},af3e:function(t,e,a){"use strict";a("2b30")},ba8b:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"income"}},[i("div",{staticClass:"supplier"},[i("c-title",{attrs:{hide:!1,text:"供应商申请"}}),t.apply_page_banner?i("div",{staticClass:"banner"},[i("img",{attrs:{src:t.apply_page_banner}})]):t._e(),1!=t.supplier_status||t.isDiyForm?t._e():i("div",{staticClass:"main"},[i("div",{staticClass:"welcome"},[t._m(0),i("div",{staticClass:"info"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.username,expression:"applyModel.username"},{name:"show",rawName:"v-show",value:!t.apply_switch,expression:"!apply_switch"}],staticClass:"inp",attrs:{type:"text",placeholder:"设置账号"},domProps:{value:t.applyModel.username},on:{input:function(e){e.target.composing||t.$set(t.applyModel,"username",e.target.value)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.password,expression:"applyModel.password"},{name:"show",rawName:"v-show",value:!t.apply_switch,expression:"!apply_switch"}],staticClass:"inp",attrs:{type:"password",placeholder:"设置密码"},domProps:{value:t.applyModel.password},on:{input:function(e){e.target.composing||t.$set(t.applyModel,"password",e.target.value)}}}),1!=t.pass_safe||t.apply_switch?t._e():i("span",{attrs:{id:"tips"}},[t._v("密码至少8-16个字符,至少1个大写字母,1个小写字母和1个数字,其他可以是任意字符")]),i("input",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.realname,expression:"applyModel.realname"}],staticClass:"inp",attrs:{type:"text",placeholder:"请填写真实姓名"},domProps:{value:t.applyModel.realname},on:{input:function(e){e.target.composing||t.$set(t.applyModel,"realname",e.target.value)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.mobile,expression:"applyModel.mobile"}],staticClass:"inp",attrs:{type:"number",placeholder:"请填写手机号码"},domProps:{value:t.applyModel.mobile},on:{input:function(e){e.target.composing||t.$set(t.applyModel,"mobile",e.target.value)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.product,expression:"applyModel.product"}],staticClass:"inp",attrs:{type:"text",placeholder:"请填写产品类型"},domProps:{value:t.applyModel.product},on:{input:function(e){e.target.composing||t.$set(t.applyModel,"product",e.target.value)}}}),i("input",{directives:[{name:"model",rawName:"v-model",value:t.fullAddress,expression:"fullAddress"}],staticClass:"inp1",attrs:{type:"text",placeholder:"请选择地区",readonly:""},domProps:{value:t.fullAddress},on:{click:function(e){t.showCity1=!0},input:function(e){e.target.composing||(t.fullAddress=e.target.value)}}}),t.strShow?i("input",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.street_name,expression:"applyModel.street_name"}],staticClass:"inp1",attrs:{type:"text",placeholder:"请选择街道",readonly:""},domProps:{value:t.applyModel.street_name},on:{click:function(e){return e.stopPropagation(),t.streetChoose.apply(null,arguments)},input:function(e){e.target.composing||t.$set(t.applyModel,"street_name",e.target.value)}}}):t._e(),"1"===t.is_open_group?i("van-cell-group",{staticClass:"city-text"},[i("van-cell",{staticStyle:{border:"1px solid #757575","border-radius":"0.3125rem",height:"2rem",padding:"0 6px",position:"relative"},attrs:{"title-style":"text-align:left",center:"",border:!1}},[i("select",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.group_id,expression:"applyModel.group_id"}],staticStyle:{color:"#757575","font-size":"13px"},attrs:{slot:"default"},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.applyModel,"group_id",e.target.multiple?a:a[0])},t.groupingSelect],click:t.groupingClick},slot:"default"},[i("option",{attrs:{value:""}},[t._v("请选择分组")]),t._l(t.grouping,(function(e,a){return i("option",{key:a,domProps:{value:e.id}},[t._v(t._s(e.title))])}))],2),t.grouping_info?t._e():i("van-icon",{staticStyle:{position:"absolute",top:"25%",right:"0"},attrs:{name:"arrow"}}),t.grouping_info?i("van-icon",{staticStyle:{position:"absolute",top:"25%",right:"0"},attrs:{name:"arrow-down"}}):t._e()],1)],1):t._e(),"1"===t.is_open_category?i("van-cell-group",{staticClass:"city-text"},[i("van-cell",{staticStyle:{border:"1px solid #757575","border-radius":"0.3125rem",height:"2rem",padding:"0 6px",position:"relative"},attrs:{"title-style":"text-align:left",center:"",border:!1}},[i("select",{directives:[{name:"model",rawName:"v-model",value:t.applyModel.category_id,expression:"applyModel.category_id"}],staticStyle:{color:"#757575","font-size":"13px"},attrs:{slot:"default"},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(t.applyModel,"category_id",e.target.multiple?a:a[0])},t.industrySelect],click:t.industryClick},slot:"default"},[i("option",{attrs:{value:""}},[t._v("请选择行业")]),t._l(t.industry,(function(e,a){return i("option",{key:a,domProps:{value:e.id}},[t._v(t._s(e.title))])}))],2),t.industry_info?t._e():i("van-icon",{staticStyle:{position:"absolute",top:"25%",right:"0"},attrs:{name:"arrow"}}),t.industry_info?i("van-icon",{staticStyle:{position:"absolute",top:"25%",right:"0"},attrs:{name:"arrow-down"}}):t._e()],1)],1):t._e(),1===t.groupList.up_aptitude?i("div",{staticClass:"item-upload"},[t._m(1),i("div",{staticClass:"img_uploader"},[t._l(t.applyModel.aptitude,(function(e,a){return[i("div",{key:a,staticClass:"photoBox"},[i("img",{staticStyle:{width:"100%"},attrs:{src:e}}),i("i",{on:{click:function(e){return t.removeImage(a)}}})])]})),i("van-uploader",{attrs:{"after-read":t.multipleMethod_1,multiple:""}},[i("van-icon",{attrs:{name:"plus"}})],1)],2)]):t._e(),1==t.groupList.is_identity?i("div",{staticClass:"item-upload"},[t._m(2),i("div",{staticClass:"img_uploader",staticStyle:{display:"block"}},[i("div",{on:{click:function(e){return t.upIdCard(1)}}},[i("p",{staticClass:"list-item border-none",staticStyle:{"font-weight":"bold"}},[t._v("身份证人像面")]),i("van-uploader",{staticStyle:{width:"100%",height:"auto"},attrs:{"after-read":t.onReadIdCard}},[i("div",{staticStyle:{width:"100%",height:"11rem"}},[i("img",{staticClass:"avatar",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.id_card_side?t.id_card_side:a("0484")}})])])],1),i("div",{on:{click:function(e){return t.upIdCard(0)}}},[i("p",{staticClass:"list-item border-none",staticStyle:{"font-weight":"bold"}},[t._v("身份证国徽面")]),i("van-uploader",{staticStyle:{width:"100%",height:"auto"},attrs:{"after-read":t.onReadIdCard}},[i("div",{staticStyle:{width:"100%",height:"11rem"}},[i("img",{staticClass:"avatar",staticStyle:{width:"100%",height:"100%"},attrs:{src:t.id_card_front?t.id_card_front:a("db18")}})])])],1)])]):t._e(),i("van-cell-group",[i("van-field",{attrs:{type:"textarea",placeholder:"备注",rows:"2"},model:{value:t.applyModel.remark,callback:function(e){t.$set(t.applyModel,"remark",e)},expression:"applyModel.remark"}})],1),i("div",{staticClass:"subPos"},[i("input",{staticClass:"btn",attrs:{type:"submit",value:"申请"},on:{click:t.setApplyData}}),i("yzSubscribe",{attrs:{tagName:"supplier_apply",styleWidth:"400px",styleHeight:"35px",styleSubWidth:"400px"},on:{confirm:t.confirmSub,error:t.errorSub}})],1)],1),i("div",{staticClass:"checkbox"},[i("van-checkbox",{attrs:{"checked-color":"#f55955","icon-size":"20px"},model:{value:t.agreement,callback:function(e){t.agreement=e},expression:"agreement"}},[i("p",{staticClass:"label",on:{click:function(e){e.stopPropagation(),t.explainFlag=!0}}},[t._v("阅读并同意《供应商协议》")])])],1)]),null!=t.supplier_info&&""!=t.supplier_info&&void 0!=t.supplier_info?i("div",{staticClass:"vip_main"},[i("div",{staticClass:"title"},[t._v("供应商说明")]),i("div",{staticClass:"vip"},[i("div",{staticClass:"text"},[i("div",{staticClass:"t1",domProps:{innerHTML:t._s(t.supplier_info)}})])])]):t._e()]),2==t.supplier_status&&t.isDiyForm?i("div",{staticClass:"main"},[i("van-cell-group",{staticClass:"grop-title",attrs:{border:!1}},[i("van-cell",{attrs:{border:!1,"title-class":"left-title",center:""}},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(" 请填写申请信息")])])],1),t._l(t.diydata,(function(e,s){return["diyinput"==e.type?[i("van-cell-group",{key:s,staticClass:"flex-height",attrs:{border:!1}},[i("van-cell",{attrs:{border:!1,center:""}},[1==e.data.tp_must?i("van-field",{class:[e.value?"vant-sure-class":"vant-no-sure-class"],staticStyle:{"min-height":"30px"},attrs:{label:""===e.data.tp_name?"输入框:":e.data.tp_name+":",clearable:"","right-icon":e.value?"checked":"warning",placeholder:e.data.placeholder},model:{value:e.value,callback:function(a){t.$set(e,"value","string"===typeof a?a.trim():a)},expression:"item.value"}}):t._e(),0==e.data.tp_must?i("van-field",{staticStyle:{"min-height":"30px"},attrs:{label:""===e.data.tp_name?"输入框:":e.data.tp_name+":",clearable:"",placeholder:e.data.placeholder},model:{value:e.value,callback:function(a){t.$set(e,"value","string"===typeof a?a.trim():a)},expression:"item.value"}}):t._e()],1)],1)]:t._e(),"diyimage"==e.type?i("div",{key:s,staticClass:"image-list"},[i("section",{staticClass:"otherphoto"},[i("div",{staticStyle:{height:"50px","text-align":"left","padding-left":"13px","line-height":"50px"}},[i("span",{staticStyle:{"font-size":"15px"}},[t._v(t._s(e.data.tp_name)+":")])]),i("div",[i("div",{staticClass:"imgflex"},[i("viewer",{staticClass:"section",staticStyle:{display:"flex"},attrs:{images:e.imgUrls}},[t._l(e.imgUrls,(function(e,a){return[i("div",{key:a,staticClass:"photobox"},[i("img",{staticStyle:{width:"100%"},attrs:{src:e}}),i("i",{on:{click:function(e){return t.removeImg(a,s)}}})])]}))],2),i("div",{on:{click:function(a){return t.setIndex(e.name)}}},[i("van-uploader",{attrs:{"after-read":t.onRead_1}},[i("div",{staticStyle:{padding:"1rem",width:"5rem",height:"5rem",border:"1px dashed #c0ccda","margin-left":"0.2rem","margin-right":"0.2rem"}},[i("img",{staticClass:"avatar",staticStyle:{width:"100%"},attrs:{src:a("9619f")}})])])],1)],1)])])]):t._e(),"diytextarea"==e.type?[i("van-cell-group",{key:s,staticStyle:{"margin-bottom":"10px"},attrs:{border:!1,title:e.data.tp_name}},[i("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",maxlength:"100",placeholder:e.data.placeholder,"show-word-limit":""},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}})],1)]:t._e(),"diycheckbox"==e.type?[i("van-checkbox-group",{key:s,attrs:{"checked-color":"#4cd864"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}},[i("van-cell-group",{staticClass:"checkbox-height",attrs:{border:!1,title:e.data.tp_name}},t._l(e.data.tp_text,(function(e,a){return i("van-cell",{key:a,attrs:{"title-class":"checkbox-text",clickable:"",center:"",title:e,border:!1},on:{click:function(e){return t.toggle(a)}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[i("van-checkbox",{ref:"checkboxes",refInFor:!0,attrs:{name:e}})]},proxy:!0}],null,!0)})})),1)],1)]:t._e(),"diyselect"==e.type?[i("van-cell-group",{key:s,staticClass:"city-text",attrs:{border:!1}},[i("van-cell",{attrs:{"title-style":"text-align:left",center:"",border:!1,"is-link":""}},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.data.tp_name)+":")]),i("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"item.value"}],attrs:{slot:"default"},on:{change:function(a){var i=Array.prototype.filter.call(a.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.$set(e,"value",a.target.multiple?i:i[0])}},slot:"default"},[i("option",{attrs:{value:""}},[t._v("请选择"+t._s(e.data.tp_name))]),t._l(e.data.tp_text,(function(e,a){return i("option",{key:a,domProps:{value:e}},[t._v(t._s(e))])}))],2)])],1)]:t._e(),"diyradio"==e.type?[i("van-radio-group",{key:s,model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"item.value"}},[i("van-cell-group",{staticClass:"active-detail checkbox-height",attrs:{border:!1,title:e.data.tp_name}},t._l(e.data.tp_text,(function(a,s){return i("van-cell",{key:s,attrs:{clickable:"",center:"",border:!1,"title-style":"text-align:left"},on:{click:function(t){e.value=a}},scopedSlots:t._u([{key:"right-icon",fn:function(){return[i("van-radio",{attrs:{name:a.toString()},scopedSlots:t._u([{key:"icon",fn:function(t){return[i("i",{staticClass:"iconfont check-icon ",class:t.checked?"icon-record_go":"",staticStyle:{color:"#09bb07","font-size":"25px"}})]}}],null,!0)})]},proxy:!0}],null,!0)},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(a))])])})),1)],1)]:t._e(),"diycity"==e.type?[i("van-cell-group",{key:s,staticClass:"city-text",attrs:{border:!1}},[i("van-cell",{attrs:{"title-style":"text-align:left",center:"",border:!1,"is-link":""}},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.data.tp_name)+":")]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"item.value"}],attrs:{slot:"default",type:"text",readonly:""},domProps:{value:e.value},on:{click:[function(e){e.stopPropagation(),t.showCity=!0},function(a){return t.openCity(e.name)}],input:function(a){a.target.composing||t.$set(e,"value",a.target.value)}},slot:"default"})])],1)]:t._e(),"diydate"==e.type?[i("van-cell-group",{key:s,staticClass:"data-text",attrs:{border:!1}},[i("van-cell",{attrs:{"title-style":"text-align:left",center:"",border:!1,"is-link":""},nativeOn:{click:function(a){return t.openPicker(e.name)}}},[i("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(e.data.tp_name)+":")]),i("span",{attrs:{slot:"default"},slot:"default"},[t._v(t._s(e.value))])])],1)]:t._e(),"diyusername"==e.type?[i("van-cell-group",{key:s,staticClass:"flex-height",attrs:{border:!1}},[i("van-cell",{attrs:{border:!1,center:""}},[1==e.data.tp_must?i("van-field",{class:[e.value?"vant-sure-class":"vant-no-sure-class"],staticStyle:{"min-height":"30px"},attrs:{label:""===e.data.tp_name?"账号:":e.data.tp_name+":",clearable:"","right-icon":e.value?"checked":"warning",placeholder:e.data.placeholder},model:{value:e.value,callback:function(a){t.$set(e,"value","string"===typeof a?a.trim():a)},expression:"item.value"}}):t._e(),0==e.data.tp_must?i("van-field",{staticStyle:{"min-height":"30px"},attrs:{label:""===e.data.tp_name?"账号:":e.data.tp_name+":",clearable:"",placeholder:e.data.placeholder},model:{value:e.value,callback:function(a){t.$set(e,"value","string"===typeof a?a.trim():a)},expression:"item.value"}}):t._e()],1)],1)]:t._e(),"diypassword"==e.type?[i("van-cell-group",{key:s,staticClass:"flex-height",attrs:{border:!1}},[i("van-cell",{attrs:{border:!1,center:""}},[1==e.data.tp_must?i("van-field",{class:[e.value?"vant-sure-class":"vant-no-sure-class"],staticStyle:{height:"30px"},attrs:{label:""===e.data.tp_name?"密码:":e.data.tp_name+":",clearable:"",type:"password","right-icon":e.value?"checked":"warning",placeholder:e.data.placeholder},model:{value:e.value,callback:function(a){t.$set(e,"value","string"===typeof a?a.trim():a)},expression:"item.value"}}):t._e(),0==e.data.tp_must?i("van-field",{staticStyle:{height:"30px"},attrs:{label:""===e.data.tp_name?"密码:":e.data.tp_name+":",clearable:"",type:"password",placeholder:e.data.placeholder},model:{value:e.value,callback:function(a){t.$set(e,"value","string"===typeof a?a.trim():a)},expression:"item.value"}}):t._e()],1)],1)]:t._e()]})),[i("div",{staticClass:"van-button-group"},[i("van-button",{staticStyle:{height:"40px"},attrs:{size:"large",type:"primary"},nativeOn:{click:function(e){return t.submit.apply(null,arguments)}}},[t._v("提交申请")])],1)],i("div",{staticClass:"checkbox"},[i("van-checkbox",{attrs:{"checked-color":"#07c160","icon-size":"20px"},model:{value:t.agreement,callback:function(e){t.agreement=e},expression:"agreement"}},[i("p",{staticClass:"label",on:{click:function(e){e.stopPropagation(),t.explainFlag=!0}}},[t._v("阅读并同意《供应商协议》")])])],1),null!=t.supplier_info&&""!=t.supplier_info&&void 0!=t.supplier_info?i("div",{staticClass:"vip_main"},[i("div",{staticClass:"title"},[t._v("供应商说明")]),i("div",{staticClass:"vip"},[i("div",{staticClass:"text"},[i("div",{staticClass:"t1",domProps:{innerHTML:t._s(t.supplier_info)}})])])]):t._e()],2):t._e(),i("van-overlay",{attrs:{show:t.explainFlag,"z-index":"999","lock-scroll":!1},on:{click:function(e){t.explainFlag=!1}}},[i("div",{staticStyle:{display:"flex","align-items":"center","justify-content":"center",height:"100%"}},[i("transition",{attrs:{name:"van-slide-up"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.explainFlag,expression:"explainFlag"}],staticClass:"explainWrapper",on:{click:function(t){t.stopPropagation()}}},[i("div",{staticClass:"header"},[i("div",{staticClass:"title"},[t._v("协议说明")]),i("i",{staticClass:"iconfont icon-guanbi",on:{click:function(e){t.explainFlag=!1}}})]),i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.agreementText)}})])])],1)]),i("van-popup",{attrs:{position:"bottom"},model:{value:t.pickerShow,callback:function(e){t.pickerShow=e},expression:"pickerShow"}},[i("van-datetime-picker",{attrs:{type:"date",title:"选择年月日"},on:{cancel:function(e){t.pickerShow=!1},confirm:t.setDate},model:{value:t.pickerValue,callback:function(e){t.pickerValue=e},expression:"pickerValue"}})],1),i("yd-cityselect",{attrs:{callback:t.setCity,items:t.district},model:{value:t.showCity,callback:function(e){t.showCity=e},expression:"showCity"}}),i("yd-cityselect",{attrs:{callback:t.setCity1,items:t.district},model:{value:t.showCity1,callback:function(e){t.showCity1=e},expression:"showCity1"}}),i("van-popup",{attrs:{position:"bottom",overlay:!0},model:{value:t.streetShow,callback:function(e){t.streetShow=e},expression:"streetShow"}},[i("van-picker",{attrs:{title:"选择街道","show-toolbar":"","value-key":"areaname",columns:t.districtVal},on:{confirm:t.streetConfirm,cancel:t.onCancel}})],1),0==t.supplier_status?i("div",{staticClass:"success"},[t._m(3),i("div",{staticClass:"text"},[t._v("您的申请已经提交,请等待审核!")]),i("a",{on:{click:function(e){return t.goHome()}}},[i("div",{staticClass:"sub"},[t._v("去商城逛逛")])])]):t._e(),-1==t.supplier_status?i("div",{staticClass:"success"},[t._m(4),i("div",{staticClass:"text"},[t._v("您已通过审核")]),i("a",{on:{click:function(e){return t.goHome()}}},[i("div",{staticClass:"sub"},[t._v("去商城逛逛")])])]):t._e()],1)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"text"},[a("p",[t._v("请填写申请信息")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[t._v("上传营业执照"),a("span",{staticClass:"xi"},[t._v("*")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"title"},[t._v("上传身份证"),a("span",{staticClass:"xi"},[t._v("*")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico"},[a("i",{staticClass:"fa fa-check"})])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ico"},[a("i",{staticClass:"fa fa-check"})])}],o=(a("e7e5"),a("d399")),n=(a("7db0"),a("d3b7"),a("a434"),a("14d9"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("88a7"),a("271a"),a("5494"),a("ac1f"),a("00b4"),a("b64b"),a("5319"),a("e9c4"),a("159b"),a("b0c0"),a("6968")),r=a("fd6a"),l={data:function(){return{explainFlag:!1,agreement:!1,agreementText:"",setname:"",supplier_status:-2,supplier_info:"",supplier_form:"",isDiyForm:0,applyModel:{username:"",password:"",realname:"",mobile:"",product:"",remark:"",province_name:"",city_name:"",district_name:"",street_name:"",group_id:"",category_id:"",aptitude:[],identity:[]},diyform:{},diydata:[],types:{88:"diyusername",99:"diypassword",0:"diyinput",1:"diytextarea",3:"diycheckbox",4:"diyradio",2:"diyselect",7:"diydate",9:"diycity",5:"diyimage"},pickerValue:new Date,showCity:!1,showCity1:!1,district:district,currentDateKey:"",currentCityKey:"",checks:[],isValidation:!0,activity_id:"",form_id:"",conference:{},intro:!1,thumb:"",imgUrls:[],urlArr:[],isPhoto:!0,btnTitle:"",isModify:!1,previewImg:"",isPreview:!1,currentImageField:"",pass_safe:0,startDate:new Date("1900-01-01"),imageUrl:"",uploadUrl:"",fileList1:[],upNumMax:0,fullAddress:"",showAddress:!1,pickerShow:!1,photosize:4194304,fileList2:[],grouping:[],is_open_category:"",is_open_group:"",groupList:[],industry:[],grouping_info:!1,industry_info:!1,districtVal:[],streetShow:!1,strShow:!1,id_card_front:"",id_card_side:"",apply_page_banner:"",apply_switch:!1}},activated:function(){this.showAddress=!1,this.fullAddress="",this.supplier_status=-2,this.pass_safe=0,this.diyform={},this.diydata=[],this.getData(),this.imgUrls=[],this.currentImageField="",this.pickerShow=!1,this.id_card_front="",this.id_card_side="",this.upEvent(),this.getApply()},watch:{"applyModel.password":function(t,e){this.msgText=this.checkStrong(t);var a=document.getElementById("tips");a&&(3==this.msgText?a.style.display="none":(a.style.display="#D33047",a.style.display="inline-block"))}},methods:{groupingSelect:function(){var t=this;this.grouping_info=!1,this.groupingClick(),this.applyModel.aptitude=[],this.id_card_front="",this.id_card_side="",this.applyModel.group_id?this.groupList=this.grouping.find((function(e){return e.id===t.applyModel.group_id})):this.groupList=[]},groupingClick:function(){this.grouping_info=!this.grouping_info},industrySelect:function(){this.industry_info=!1,this.industryClick()},industryClick:function(){this.industry_info=!this.industry_info},removeImage:function(t){this.applyModel.aptitude.splice(t,1)},multipleMethod_1:function(t,e){if(t&&t.length)for(var a=0;a<t.length;a++)this.onReadMore(t[a],e);else this.onReadMore(t,e)},upIdCard:function(t){this.idI=t},onReadIdCard:function(t,e){var a=this;o["a"].loading({message:"上传中",forbidClick:!0});var i=new FormData;!0===e?i.append("file",t):i.append("file",t.file),axios.post(this.uploadUrl,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){var e=t.data;1===e.result?(o["a"].clear(),0===a.idI?a.id_card_front=e.data.img_url:a.id_card_side=e.data.img_url):(Object(o["a"])(e.msg),o["a"].clear())})).catch((function(t){o["a"].clear()}))},onReadMore:function(t,e){o["a"].loading({message:"上传中",forbidClick:!0});var a=new FormData;!0===e?a.append("file",t):a.append("file",t.file);var i=this;axios.post(this.fun.getRealUrl("upload.uploadPic"),a,{headers:{"Content-Type":"multipart/form-data"}}).then((function(a){var s=a.data;1===s.result?(o["a"].clear(),!0===e?i.fileList2.push({url:URL.createObjectURL(t)}):i.fileList2.push({url:URL.createObjectURL(t.file)}),i.applyModel.aptitude.push(s.data.img_url)):(o["a"].clear(),Object(o["a"])(s.msg))})).catch((function(t){o["a"].clear()}))},onphotosize:function(t){this.imgPreview(t.file,1)},onphotosize2:function(t){this.imgPreview(t.file,2)},imgPreview:function(t,e){var a=this;if(t&&window.FileReader&&/^image/.test(t.type)){var i=new FileReader;i.readAsDataURL(t),i.onloadend=function(){var i=this.result,s=new Image;s.src=i,s.onload=function(){var i=this.width,o=this.height,n=400,r=400,l=i,d=o;(i>n||o>r)&&(i/o>n/r?(l=n,d=Math.round(n*(o/i))):(d=r,l=Math.round(r*(i/o)))),canvas.width=l,canvas.height=d,context.clearRect(0,0,l,d),context.drawImage(s,0,0,l,d),canvas.toBlob((function(t){1===e?a.onReadIdCard(t,!0):a.multipleMethod_1(t,!0)}),t.type||"image/png")}}}},getApply:function(){var t=this;$http.get("plugin.supplier.supplier.controllers.apply.supplier-apply.index",{validate_page:1}).then((function(e){if(1==e.result){var a,i,s,n;t.grouping=e.data.groups,t.industry=e.data.categorys,t.is_open_group=e.data.is_open_group,t.is_open_category=e.data.is_open_category;var r=JSON.parse(localStorage.getItem("yz_basic_info"));t.apply_switch=e.basic_info?null!==(a=null===(i=e.basic_info.plugin_setting.sub_platform)||void 0===i?void 0:i.apply_switch)&&void 0!==a&&a:null!==(s=null===(n=r.plugin_setting.sub_platform)||void 0===n?void 0:n.apply_switch)&&void 0!==s&&s}else Object(o["a"])(e.msg)}),(function(t){}))},checkStrong:function(t){var e=0;return t.length<1?e:(/\d/.test(t)&&e++,/[a-z]/.test(t)&&e++,/[A-Z]/.test(t)&&e++,3==e?t.length<8?2:3:e)},getData:function(){var t=this,e={};$http.get("plugin.supplier.supplier.controllers.apply.supplier-apply",e,"加载中...").then((function(e){if(1==e.result){if(t.supplier_status=e.data.status,t.pass_safe=e.data.safe,t.agreementText=e.data.agreement,t.apply_page_banner=e.data.apply_page_banner,1==t.supplier_status)return"1"==e.data.is_open_region&&(t.showAddress=!0),t.checkEnableDiyForm(),t.supplier_info=e.data.signature,void(t.supplier_info&&(t.supplier_info=t.supplier_info.replace(/(\r\n|\n|\r)/gm,"<br />")))}else Object(o["a"])(e.msg)}),(function(t){}))},checkEnableDiyForm:function(){var t=this,e={};$http.get("plugin.supplier.supplier.controllers.apply.supplier-apply.is-enable-diyform",e,"").then((function(e){1==e.result&&(t.supplier_status=2,t.isDiyForm=1,t.form_id=e.data.form_id,t.getForm())}),(function(t){}))},getForm:function(){var t=this;$http.get("plugin.diyform.api.diy-form.get-diy-form-by-id",{form_id:this.form_id,i:this.fun.getKeyByI(),type:this.fun.getTyep()}).then((function(e){if(1==e.result){t.diyform=e.data;var a=t.diyform.fields,i={};for(var s in a)i="diycheckbox"==t.types[a[s].data_type]?{name:s,data:a[s],value:[],type:t.types[a[s].data_type]}:"diydate"==t.types[a[s].data_type]?{name:s,data:a[s],value:"2018-03-29",type:t.types[a[s].data_type]}:"diyimage"==t.types[a[s].data_type]?{name:s,data:a[s],imgUrls:[],isPhoto:!1,type:t.types[a[s].data_type]}:{name:s,data:a[s],value:"",type:t.types[a[s].data_type]},t.diydata.push(i)}}),(function(t){alert("fail")}))},createImage:function(t,e,a){lrz(t[0],{width:480}).then((function(t){return a.imgUrls.push(t.base64),t})).always((function(){e.target.value=null}))},delImage:function(t,e){this.$dialog.confirm({title:"删除",mes:"确定删除该图片?",opts:function(){t.splice(e,1)}})},confirmSub:function(t){this.setApplyData()},errorSub:function(){this.setApplyData()},setApplyData:function(){if(!this.fun.isTextEmpty(this.applyModel.username)||this.apply_switch)if(!this.fun.isTextEmpty(this.applyModel.password)||this.apply_switch)if(3==this.msgText||1!=this.pass_safe)if(this.fun.isTextEmpty(this.applyModel.realname))Object(o["a"])("请填写真实姓名");else if(this.fun.isTextEmpty(this.applyModel.mobile))Object(o["a"])("请填写手机号码");else if(this.fun.isMoblie(this.applyModel.mobile))Object(o["a"])("请输入正确的手机号");else if(this.fun.isTextEmpty(this.applyModel.product))Object(o["a"])("请填写产品类型");else if(this.fun.isTextEmpty(this.applyModel.group_id)&&"1"===this.is_open_group)Object(o["a"])("请选择分组");else if(this.fun.isTextEmpty(this.applyModel.category_id)&&"1"===this.is_open_category)Object(o["a"])("请选择行业");else if(this.fun.isTextEmpty(this.applyModel.aptitude)&&1===this.groupList.up_aptitude)Object(o["a"])("上传营业执照");else if(1===this.groupList.is_identity&&this.fun.isTextEmpty(this.id_card_side)&&this.fun.isTextEmpty(this.id_card_front))Object(o["a"])("上传个人身份证");else if(this.agreement){this.applyModel.identity[0]=this.id_card_front,this.applyModel.identity[1]=this.id_card_side;var t=this,e={apply:JSON.stringify(this.applyModel)};$http.get("plugin.supplier.supplier.controllers.apply.supplier-apply.apply",e,"提交中...").then((function(e){1==e.result?t.supplier_status=e.data.status:Object(o["a"])(e.msg)}),(function(t){}))}else Object(o["a"])("请先阅读协议");else Object(o["a"])("请正确填写密码");else Object(o["a"])("请填写密码");else Object(o["a"])("请填写账号")},goHome:function(){this.$router.push(this.fun.getUrl("home"))},setCity:function(t){var e=this,a=t.itemName1+" "+t.itemName2+" "+t.itemName3;this.diydata.forEach((function(t){t.name==e.currentCityKey&&e.$set(t,"value",a)}))},openPicker:function(t){this.currentDateKey=t,this.pickerShow=!0},setDate:function(t){var e=this;this.diydata.forEach((function(a){a.name==e.currentDateKey&&e.$set(a,"value",t.Format("yyyy-MM-dd"))})),this.pickerShow=!1},openCity:function(t){this.currentCityKey=t},goback:function(){this.$router.go(-1)},validation:function(){var t=this;this.isValidation=!0,this.diydata.forEach((function(e){1!=e.data.tp_must||e.value||"diyimage"==e.type||(Object(o["a"])(e.data.tp_name+"必须填写哦"),t.isValidation=!1),1==e.data.tp_must&&"diyimage"==e.type&&e.imgUrls.length<e.data.tp_max&&(Object(o["a"])(e.data.tp_name+"必须上传"+e.data.tp_max+"张"),t.isValidation=!1),"diycheckbox"==e.type&&0==e.value.length&&(Object(o["a"])(e.data.tp_name+"必须选择哦"),t.isValidation=!1)}))},submit:function(){this.validation(),this.isValidation&&(this.agreement?this.submitForm():Object(o["a"])("请先阅读协议"))},submitForm:function(){var t=this,e=[],a={};this.diydata.forEach((function(t){"diyimage"==t.type?a[t.name]=t.imgUrls:a[t.name]=t.value})),e.push(a);var i={form_id:this.form_id,form_data:e};$http.post("plugin.diyform.api.diy-form.save-diy-form-data",i,"提交中...").then((function(e){1==e.result?t.submitApplyByForm(e.data.form_data_id):Object(o["a"])(e.msg)}),(function(t){}))},submitApplyByForm:function(t){var e=this,a={form_data_id:t};$http.get("plugin.supplier.supplier.controllers.apply.supplier-apply.apply",a,"提交中...").then((function(t){1==t.result?(Object(o["a"])(t.msg),e.$router.go(-1)):Object(o["a"])(t.msg)}),(function(t){}))},handleAptiSuccess:function(t,e){if(1==t.result)for(var a=0;a<this.diydata.length;a++)this.diydata[a].name==t.data.attach&&this.diydata[a].imgUrls.push(t.data.img);else Object(o["a"])(t.msg)},handleAptiRemove:function(t,e){var a=this;if(this.upNumMax=e.length,t.response){var i=t.response.data.img;if(i)for(var s=function(){if(a.diydata[o].name==t.response.data.attach){var e="";a.diydata[o].imgUrls.forEach((function(t,a,s){t==i&&(e=a)})),a.diydata[o].imgUrls.splice(e,1)}},o=0;o<this.diydata.length;o++)s()}else;},beforeUpload:function(t){var e="image/png"===t.type||"image/jpeg"===t.type,a=t.size/1024/1024<2;return e||this.$notify("上传头像图片只能是 JPG或PNG 格式!"),a||this.$notify("上传头像图片大小不能超过 2MB!"),e&&a},upEvent:function(){this.uploadUrl=this.fun.getRealUrl("upload.uploadPic",{})},occlusion:function(){this.$notify({background:"#fef0f0",message:"图片数量已达到上限",color:"#f56c6c"})},handleChange:function(t,e){this.upNumMax=e.length},setCity1:function(t){this.applyModel.street_name="",this.districtVal=[],this.applyModel.province_name=t.itemName1,this.applyModel.city_name=t.itemName2,this.applyModel.district_name=t.itemName3,this.fullAddress=t.itemName1+" "+t.itemName2+" "+t.itemName3,this.getStreet(t.itemValue3)},getStreet:function(t){var e=this;$http.get("member.memberAddress.street",{district_id:t}).then((function(t){1==t.result&&!e.fun.isTextEmpty(t.data)&&t.data.length>0?(e.districtVal=t.data,e.strShow=!0):e.strShow=!1})).catch((function(t){}))},streetChoose:function(){this.fun.isTextEmpty(this.fullAddress)?this.$dialog.alert({message:"请先选择所在地区"}):this.streetShow=!0},streetConfirm:function(t){this.applyModel.street_name=t.areaname,this.streetShow=!1},onCancel:function(){this.streetShow=!1},setIndex:function(t){this.setname=t},onRead_1:function(t){var e=this,a=this,i=new FormData;i.append("attach",this.setname),i.append("file",t.file),axios.post(this.uploadUrl,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(t){var i=t.data;if(1==i.result)for(var s=0;s<e.diydata.length;s++)a.diydata[s].name==i.data.attach&&a.diydata[s].imgUrls.push(i.data.img_url);else Object(o["a"])(i.msg)})).catch((function(t){}))},removeImg:function(t,e){this.diydata[e].imgUrls.splice(t,1)},toggle:function(t){this.$refs.checkboxes[t].toggle()}},components:{cTitle:n["a"],yzSubscribe:r["a"]}},d=l,c=d,p=(a("af3e"),a("133b"),a("2877")),u=Object(p["a"])(c,i,s,!1,null,"c4ddf270",null);e["default"]=u.exports},cef7:function(t,e,a){var i=a("24fb"),s=a("1de5"),o=a("2c87");e=i(!1);var n=s(o);e.push([t.i,".vant-sure-class .van-field__right-icon{color:green}.vant-no-sure-class .van-field__right-icon{color:red}.item-upload{text-align:left;padding-top:.875rem}.item-upload .data-text .van-cell{min-height:50px;padding:0 12px;color:#555}.item-upload .img_uploader{margin-top:1rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.item-upload .img_uploader .photoBox{position:relative;width:4.5rem;height:4.5rem;border:1px dashed #c0ccda;margin-right:.2rem;margin-left:.2rem;margin-bottom:.2rem}.item-upload .img_uploader .photoBox div,.item-upload .img_uploader .photoBox img{width:100%;height:100%}.item-upload .img_uploader .photoBox i{width:1.2rem;height:1.2rem;position:absolute;top:.1rem;right:.1rem;background:url("+n+");background-size:100%}.item-upload .img_uploader .van-uploader{width:4.5rem;height:4.5rem;overflow:hidden;background:#fff;margin-left:.2rem;margin-right:.875rem;margin-bottom:.9375rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;border:1px dashed #757575}.item-upload .img_uploader .van-uploader .van-icon{font-size:24px;line-height:4.5rem;color:#666}.item-upload .img_uploader .avatar{width:11.125rem;height:11.125rem;display:block}",""]),t.exports=e},db18:function(t,e,a){t.exports=a.p+"static/app/img/bg_idcard_down@2x.10cd3a43.png"}}]); |