require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/form/formdata"],{"0beb":function(n,t,e){"use strict";e.d(t,"b",(function(){return o})),e.d(t,"c",(function(){return a})),e.d(t,"a",(function(){return i}));var i={nsNewform:function(){return e.e("components/ns-newform/ns-newform").then(e.bind(null,"9783"))},nsEmpty:function(){return e.e("components/ns-empty/ns-empty").then(e.bind(null,"a84f"))},loadingCover:function(){return e.e("components/loading-cover/loading-cover").then(e.bind(null,"0773"))},nsLogin:function(){return Promise.all([e.e("common/vendor"),e.e("components/ns-login/ns-login")]).then(e.bind(null,"17d0"))}},o=function(){var n=this.$createElement;this._self._c},a=[]},"168f":function(n,t,e){},5468:function(n,t,e){"use strict";(function(n,t){var i=e("47a9");e("1dee");i(e("3240"));var o=i(e("ca77"));n.__webpack_require_UNI_MP_PLUGIN__=e,t(o.default)}).call(this,e("3223")["default"],e("df3c")["createPage"])},8711:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e={data:function(){return{id:0,detail:null,isRepeat:!1,complete:!1,scroll:!0,uniacid:0}},onLoad:function(t){var e=this;if(!t.uniacid)return n.showModal({title:"提示",content:"参数错误",showCancel:!1,success:function(n){}}),!1;if(this.uniacid=t.uniacid,this.id=t.id||0,t.scene){var i=decodeURIComponent(t.scene);i=i.split("&"),i.length&&i.forEach((function(n){-1!=n.indexOf("id")&&(e.id=n.split("-")[1])}))}this.getData()},watch:{storeToken:function(n,t){n&&this.getData()}},methods:{getData:function(){var t=this;this.$api.sendRequest({url:"/form/api/form/info",data:{form_id:this.id,uniacid:this.uniacid},success:function(e){0==e.code&&e.data&&(t.detail=e.data,n.setNavigationBarTitle({title:e.data.form_name})),t.$refs.loadingCover&&t.$refs.loadingCover.hide()},fail:function(n){t.$refs.loadingCover&&t.$refs.loadingCover.hide()}})},create:function(){var t=this;if(this.$refs.form.verify()){if(this.isRepeat)return;this.isRepeat=!0,this.$api.sendRequest({url:"/form/api/form/create",data:{form_id:this.id,form_data:JSON.stringify(this.$refs.form.formData),uniacid:this.uniacid},success:function(e){0==e.code?n.showModal({title:"提示",content:"提交成功",showCancel:!1,success:function(n){}}):(t.isRepeat=!1,t.$util.showToast({title:e.message}))}})}}}};t.default=e}).call(this,e("df3c")["default"])},a809:function(n,t,e){"use strict";e.r(t);var i=e("8711"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(a);t["default"]=o.a},c525:function(n,t,e){"use strict";var i=e("168f"),o=e.n(i);o.a},ca77:function(n,t,e){"use strict";e.r(t);var i=e("0beb"),o=e("a809");for(var a in o)["default"].indexOf(a)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(a);e("c525");var r=e("828b"),s=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=s.exports}},[["5468","common/runtime","common/vendor"]]]);