You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
2.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/demandHall/needsContact/index"],{"37e3":function(t,e,n){},"89aa":function(t,e,n){"use strict";var a=n("37e3"),i=n.n(a);i.a},"8df0":function(t,e,n){"use strict";(function(t){n("ef82");a(n("66fd"));var e=a(n("9942"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},9216:function(t,e,n){"use strict";n.r(e);var a=n("c7b9"),i=n.n(a);for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=i.a},9942:function(t,e,n){"use strict";n.r(e);var a=n("a4e0"),i=n("9216");for(var c in i)"default"!==c&&function(t){n.d(e,t,(function(){return i[t]}))}(c);n("89aa");var o,s=n("f0c5"),u=Object(s["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],o);e["default"]=u.exports},a4e0:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return a}));var i=function(){var t=this,e=t.$createElement;t._self._c},c=[]},c7b9:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=getApp(),a={data:function(){return{active:null,needsDetail:{},needsList:[],content:""}},components:{},props:{},onLoad:function(t){var e=JSON.parse(decodeURIComponent(t.detail));this.setData({needsDetail:e}),this.getList()},methods:{needItemClick:function(t){t.currentTarget.dataset.id;this.setData({active:t.currentTarget.dataset.id})},inpChange:function(t){console.log(t),this.setData({content:t.detail.value})},getList:function(){var t=this;n.http("post","Resources/listMyResourcesPublish",{resourceType:1}).then((function(e){e.data.success&&(e.data.data.content.length>0?t.setData({active:e.data.data.content[0].id}):t.setData({active:null}),t.setData({needsList:e.data.data.content}))}))},submit:function(){if(""!=this.content||null!=this.demandId){var e={resourceId:this.needsDetail.id,content:this.content};n.http("post","Communicate/create",e).then((function(e){e.data.success&&(t.showToast({title:"提交成功!",duration:2e3}),setTimeout((function(){t.navigateBack({delta:1})}),2e3))}))}else t.showToast({title:"请填写您的申请内容!",icon:"none"})}}};e.default=a}).call(this,n("543d")["default"])}},[["8df0","common/runtime","common/vendor"]]]);