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
3.5 KiB
1 lines
3.5 KiB
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/needsManage/index"],{"51ab":function(t,e,n){"use strict";(function(t){n("ef82");s(n("66fd"));var e=s(n("99a7"));function s(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},"6f81":function(t,e,n){},7602:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=getApp(),s={data:function(){return{tabActive:1,list:[],resourceType:2,resourceAuditState:null,resourceState:0}},components:{},props:{},onLoad:function(t){this.setData({tabActive:t.type}),this.setParams(t.type)},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){this.setParams(this.tabActive)},onReachBottom:function(){},onShareAppMessage:function(){},methods:{tabClick:function(t){var e=t.currentTarget.dataset.i;this.setParams(e)},setParams:function(t){1==t?this.setData({tabActive:t,resourceState:1,resourceAuditState:[2]}):2==t?this.setData({tabActive:t,resourceAuditState:[1]}):3==t?this.setData({tabActive:t,resourceAuditState:[0,3]}):4==t&&this.setData({tabActive:t,resourceState:2,resourceAuditState:[]}),this.getList()},toRelease:function(){t.navigateTo({url:"/pages/release/index"})},getList:function(){var e=this;n.http("post","Resources/listMyResources",{resourceType:this.resourceType,resourceState:this.resourceState,resourceAuditState:this.resourceAuditState}).then((function(n){n.data.success&&(e.setData({list:n.data.data.content}),t.stopPullDownRefresh())}))},xiajiaClick:function(e){var s=e.currentTarget.dataset.item.id,a=e.currentTarget.dataset.item.status,i=this;1==a?t.showModal({title:"提示",content:"是否确定下架需求",success:function(e){e.confirm&&n.http("GET","Resources/withdrawResource",{id:s}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){i.getList()}),1500))}))}}):t.showModal({title:"提示",content:"是否确定上架需求",success:function(e){e.confirm&&n.http("GET","Resources/putOnResource",{id:s}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){i.getList()}),1500))}))}})},withdrawClick:function(t){var e=t.currentTarget.dataset.id;console.log(e)},editClick:function(e){var n=e.currentTarget.dataset.id;console.log(n),t.navigateTo({url:"/pages/user/editNeeds/index?id="+n})},delClick:function(e){var s=e.currentTarget.dataset.id;t.showModal({title:"提示",content:"是否确定删除?",success:function(e){e.confirm&&n.http("GET","Resources/delResource",{id:s}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){that.getList()}),1500))}))}})}}};e.default=s}).call(this,n("543d")["default"])},"99a7":function(t,e,n){"use strict";n.r(e);var s=n("d2ec"),a=n("9b30");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("f353");var o,c=n("f0c5"),u=Object(c["a"])(a["default"],s["b"],s["c"],!1,null,null,null,!1,s["a"],o);e["default"]=u.exports},"9b30":function(t,e,n){"use strict";n.r(e);var s=n("7602"),a=n.n(s);for(var i in s)"default"!==i&&function(t){n.d(e,t,(function(){return s[t]}))}(i);e["default"]=a.a},d2ec:function(t,e,n){"use strict";var s;n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return s}));var a=function(){var t=this,e=t.$createElement;t._self._c},i=[]},f353:function(t,e,n){"use strict";var s=n("6f81"),a=n.n(s);a.a}},[["51ab","common/runtime","common/vendor"]]]); |