(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/tuiguangDashi/index"],{"055d":function(e,t,n){"use strict";n.r(t);var a=n("bd99"),u=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=u.a},"13fe":function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var a={uIcon:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"7a87"))}},u=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.value=!e.value})},r=[]},"46ce":function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("1c90");a(n("66fd"));var u=a(n("f8b0"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(u.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},"6aef":function(e,t,n){"use strict";var a=n("8dde"),u=n.n(a);u.a},"8dde":function(e,t,n){},bd99:function(e,t,n){"use strict";(function(e){var a=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=a(n("2eee")),r=a(n("c973")),o=n("e7b1"),c={data:function(){return{picBase:this.$picBase2,formData:{name:"",phone:""},value:!0,sm:""}},onLoad:function(){this.tuiguangSm()},methods:{tuiguangSm:function(){var e=this;return(0,r.default)(u.default.mark((function t(){var n;return u.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,o.getPosterBg)({key:"desc_share"});case 2:n=t.sent,console.log("推广说明返回值--------2",n),0==n.code?e.sm=n.data.value:e.$toast(n.message);case 5:case"end":return t.stop()}}),t)})))()},apply:function(){var t=this;return(0,r.default)(u.default.mark((function n(){var a,r;return u.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=/^[1][3,4,5,7,8,9][0-9]{9}$/,t.formData.name){n.next=3;break}return n.abrupt("return",t.$toast("请输入姓名"));case 3:if(t.formData.phone){n.next=5;break}return n.abrupt("return",t.$toast("请输入手机号"));case 5:if(a.test(t.formData.phone)){n.next=7;break}return n.abrupt("return",t.$toast("请输入合法的手机号"));case 7:if(t.value){n.next=9;break}return n.abrupt("return",t.$toast("请同意协议"));case 9:return console.log("form",t.formData),n.next=12,(0,o.postZhaomu)(t.formData);case 12:r=n.sent,console.log("申请推广大使返回值--------2",r),t.$toast("申请成功","success"),0==r.code?(t.$toast("申请成功","success"),setTimeout((function(){e.reLaunch({url:"/pages/my/index"})}),1500)):t.$toast(r.message);case 16:case"end":return n.stop()}}),n)})))()},toProtocol:function(){e.navigateTo({url:"/pages/my/protocol/index?type=3"})}}};t.default=c}).call(this,n("543d")["default"])},f8b0:function(e,t,n){"use strict";n.r(t);var a=n("13fe"),u=n("055d");for(var r in u)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return u[e]}))}(r);n("6aef");var o=n("f0c5"),c=Object(o["a"])(u["default"],a["b"],a["c"],!1,null,"5e09b5ec",null,!1,a["a"],void 0);t["default"]=c.exports}},[["46ce","common/runtime","common/vendor"]]]);