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.4 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/needsManage/index"],{1147:function(t,e,n){"use strict";n.r(e);var a=n("d81b"),s=n("ce20");for(var c in s)"default"!==c&&function(t){n.d(e,t,(function(){return s[t]}))}(c);n("1817");var i,o=n("f0c5"),u=Object(o["a"])(s["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],i);e["default"]=u.exports},1817:function(t,e,n){"use strict";var a=n("3ac2"),s=n.n(a);s.a},"3ac2":function(t,e,n){},a80c: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{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 a=e.currentTarget.dataset.item.id,s=e.currentTarget.dataset.item.status,c=this;1==s?t.showModal({title:"提示",content:"是否确定下架需求",success:function(e){e.confirm&&n.http("GET","Resources/withdrawResource",{id:a}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){c.getList()}),1500))}))}}):t.showModal({title:"提示",content:"是否确定上架需求",success:function(e){e.confirm&&n.http("GET","Resources/putOnResource",{id:a}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){c.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 a=e.currentTarget.dataset.id;t.showModal({title:"提示",content:"是否确定删除?",success:function(e){e.confirm&&n.http("GET","Resources/delResource",{id:a}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){that.getList()}),1500))}))}})}}};e.default=a}).call(this,n("543d")["default"])},acf1:function(t,e,n){"use strict";(function(t){n("0371");a(n("66fd"));var e=a(n("1147"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},ce20:function(t,e,n){"use strict";n.r(e);var a=n("a80c"),s=n.n(a);for(var c in a)"default"!==c&&function(t){n.d(e,t,(function(){return a[t]}))}(c);e["default"]=s.a},d81b:function(t,e,n){"use strict";var a;n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return a}));var s=function(){var t=this,e=t.$createElement;t._self._c},c=[]}},[["acf1","common/runtime","common/vendor"]]]);