1 line
8.9 KiB
JavaScript
1 line
8.9 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-promoter-index"],{"141f":function(t,a,e){"use strict";e.r(a);var i=e("a674"),n=e("2e2a");for(var r in n)["default"].indexOf(r)<0&&function(t){e.d(a,t,(function(){return n[t]}))}(r);e("b268");var o=e("f0c5"),d=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"7d9ac210",null,!1,i["a"],void 0);a["default"]=d.exports},"1de5":function(t,a,e){"use strict";t.exports=function(t,a){return a||(a={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),a.hash&&(t+=a.hash),/["'() \t\n]/.test(t)||a.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2e2a":function(t,a,e){"use strict";e.r(a);var i=e("841f"),n=e.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){e.d(a,t,(function(){return i[t]}))}(r);a["default"]=n.a},"841f":function(t,a,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=i(e("c7eb")),r=i(e("1da1")),o=i(e("5530")),d=e("26cb"),s=e("f741"),l={name:"Register",data:function(){return{loading:!1,nickname:""}},computed:(0,o.default)({},(0,d.mapGetters)(["tenantInfo","userInfo"])),methods:{onRegister:function(){var t=this;return(0,r.default)((0,n.default)().mark((function a(){var e;return(0,n.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.loading=!0,a.prev=1,a.next=4,(0,s.registerPromoter)({nickname:t.nickname,mobile:t.userInfo.mobile,status:1,sourceType:2});case 4:e=a.sent,t.$util.Tips({title:0===e.code?"注册成功":e.msg},{tab:1,url:"/pages/member_application/index"}),a.next=11;break;case 8:a.prev=8,a.t0=a["catch"](1),t.$util.Tips({title:a.t0});case 11:return a.prev=11,t.loading=!1,a.finish(11);case 14:case"end":return a.stop()}}),a,null,[[1,8,11,14]])})))()}}};a.default=l},"8f04":function(t,a,e){var i=e("ea3d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=e("4f06").default;n("38fcd4dc",i,!0,{sourceMap:!1,shadowMode:!1})},a674:function(t,a,e){"use strict";e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return n})),e.d(a,"a",(function(){}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"login-wrapper"},[t._m(0),e("v-uni-view",{staticClass:"title"},[t._v("注册推广员")]),e("div",{staticClass:"whiteBg"},[e("div",{staticClass:"list"},[e("v-uni-form",{on:{submit:function(a){a.preventDefault(),arguments[0]=a=t.$handleEvent(a),t.submit.apply(void 0,arguments)}}},[e("div",{staticClass:"item"},[e("div",{staticClass:"acea-row row-middle"},[e("v-uni-text",{staticClass:"label"},[t._v("所属公司")]),e("v-uni-input",{staticClass:"texts",attrs:{type:"text",disabled:!0,value:t.tenantInfo.name||"--"}})],1)]),e("div",{staticClass:"item"},[e("div",{staticClass:"acea-row row-middle"},[e("v-uni-text",{staticClass:"label"},[t._v("手机号")]),e("v-uni-input",{staticClass:"texts",attrs:{type:"text",value:t.userInfo.mobile||"--",disabled:!0}})],1)]),e("div",{staticClass:"item"},[e("div",{staticClass:"acea-row row-middle"},[e("v-uni-text",{staticClass:"label"},[t._v("姓名")]),e("v-uni-input",{staticClass:"texts",attrs:{type:"text",maxlength:"10",placeholder:"请输入"},model:{value:t.nickname,callback:function(a){t.nickname=a},expression:"nickname"}})],1)])])],1),e("v-uni-button",{staticClass:"logon",attrs:{disabled:t.loading,loading:t.loading},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onRegister.apply(void 0,arguments)}}},[t._v("注册推广员")])],1),e("div",{staticClass:"bottom"})],1)},n=[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"logo-wrap"},[a("img",{staticStyle:{width:"105rpx",height:"105rpx"},attrs:{src:"/static/images/mallLogo.png"}}),a("img",{staticStyle:{width:"233rpx",height:"43rpx"},attrs:{src:"/static/images/mall.png"}})])}]},b268:function(t,a,e){"use strict";var i=e("8f04"),n=e.n(i);n.a},ea3d:function(t,a,e){var i=e("24fb"),n=e("1de5"),r=e("ee66");a=i(!1);var o=n(r);a.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里<EFBFBD>
|