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 line
2.4 KiB

3 years ago
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/demandHall/resourcesContact/index"],{"086e":function(t,e,n){"use strict";(function(t){n("ef82");a(n("66fd"));var e=a(n("2c2b"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},1431:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return a}));var o=function(){var t=this,e=t.$createElement;t._self._c},s=[]},1603:function(t,e,n){"use strict";var a=n("b504"),o=n.n(a);o.a},"1d35":function(t,e,n){"use strict";n.r(e);var a=n("e623"),o=n.n(a);for(var s in a)"default"!==s&&function(t){n.d(e,t,(function(){return a[t]}))}(s);e["default"]=o.a},"2c2b":function(t,e,n){"use strict";n.r(e);var a=n("1431"),o=n("1d35");for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);n("1603");var c,i=n("f0c5"),u=Object(i["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],c);e["default"]=u.exports},b504:function(t,e,n){},e623: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,resourcesDetail:{},resourcesList:[],content:""}},components:{},props:{},onLoad:function(t){console.log(t);var e=JSON.parse(decodeURIComponent(t.detail));this.setData({resourcesDetail:e}),console.log(this.resourcesDetail),this.getList()},methods:{needItemClick:function(t){var e=t.currentTarget.dataset.id;console.log(e),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:2}).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({resourcesList:e.data.data.content}))}))},submit:function(){if(""!=this.content||null!=this.active){var e={resourceId:this.resourcesDetail.id,demandId:this.active,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)):t.showToast({title:e.data.msg,icon:"none"})}))}else t.showToast({title:"请填写您的申请内容!",icon:"none"})}}};e.default=a}).call(this,n("543d")["default"])}},[["086e","common/runtime","common/vendor"]]]);