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
3.3 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/resourcesManage/index"],{"2a1e":function(t,e,s){"use strict";var a=s("d299"),n=s.n(a);n.a},"2dc8":function(t,e,s){"use strict";(function(t){s("ef82");a(s("66fd"));var e=a(s("6b18"));function a(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,s("543d")["createPage"])},"57d8":function(t,e,s){"use strict";s.r(e);var a=s("a449"),n=s.n(a);for(var i in a)"default"!==i&&function(t){s.d(e,t,(function(){return a[t]}))}(i);e["default"]=n.a},"6b18":function(t,e,s){"use strict";s.r(e);var a=s("d0a3"),n=s("57d8");for(var i in n)"default"!==i&&function(t){s.d(e,t,(function(){return n[t]}))}(i);s("2a1e");var c,u=s("f0c5"),r=Object(u["a"])(n["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],c);e["default"]=r.exports},a449:function(t,e,s){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=getApp(),a={data:function(){return{tabActive:1,list:[],resourceType:1,resourceAuditState:null,resourceState:0}},components:{},props:{},onLoad:function(t){this.setData({tabActive:t.type}),this.setParams(t.type)},onPullDownRefresh:function(){this.setParams(this.tabActive)},onReachBottom:function(){},methods:{toRelease:function(){t.navigateTo({url:"/pages/release/index"})},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()},getList:function(){var e=this;s.http("post","Resources/listMyResources",{resourceType:this.resourceType,resourceState:this.resourceState,resourceAuditState:this.resourceAuditState}).then((function(s){s.data.success&&(e.setData({list:s.data.data.content}),t.stopPullDownRefresh())}))},xiajiaClick:function(e){var a=e.currentTarget.dataset.item.id,n=e.currentTarget.dataset.item.status,i=this;1==n?t.showModal({title:"提示",content:"是否确定下架需求",success:function(e){e.confirm&&s.http("GET","Resources/withdrawResource",{id:a}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){i.getList()}),1500))}))}}):t.showModal({title:"提示",content:"是否确定上架?",success:function(e){e.confirm&&s.http("GET","Resources/putOnResource",{id:a}).then((function(e){e.data.success&&(t.showToast({title:"操作成功"}),setTimeout((function(){i.getList()}),1500))}))}})},withdrawClick:function(t){t.currentTarget.dataset.id},editClick:function(e){var s=e.currentTarget.dataset.id;t.navigateTo({url:"/pages/user/editNeeds/index?id="+s})},delClick:function(e){var a=e.currentTarget.dataset.id;t.showModal({title:"提示",content:"是否确定删除?",success:function(e){e.confirm&&s.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,s("543d")["default"])},d0a3:function(t,e,s){"use strict";var a;s.d(e,"b",(function(){return n})),s.d(e,"c",(function(){return i})),s.d(e,"a",(function(){return a}));var n=function(){var t=this,e=t.$createElement;t._self._c},i=[]},d299:function(t,e,s){}},[["2dc8","common/runtime","common/vendor"]]]);