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
19 KiB
1 lines
19 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/resourcesManage/index.vue?951a","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/resourcesManage/index.vue?019a","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/resourcesManage/index.vue?d615","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/resourcesManage/index.vue?fbe0","uni-app:///pages/user/resourcesManage/index.vue","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/resourcesManage/index.vue?eede","webpack:////Users/yanghao/Desktop/禅易云/zhaoshangMiniApp-uniapp/pages/user/resourcesManage/index.vue?b49a"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,4G;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACa;;;AAGjE;AACmN;AACnN,gBAAgB,iNAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAk1B,CAAgB,myBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgDt2B;AACA,mB;;AAEA;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A;AACA,iBA9GA,yBA8GA,CA9GA,EA8GA;AACA;AACA,KAhHA;;AAkHA;AACA,aAnHA,qBAmHA,CAnHA,EAmHA;AACA;AACA;AACA,mDADA;;AAGA,KAxHA;;AA0HA;AACA,YA3HA,oBA2HA,CA3HA,EA2HA;AACA;AACA;AACA,mBADA;AAEA,0BAFA;;AAIA,eAJA,mBAIA,GAJA,EAIA;AACA;AACA;AACA,oBADA;AAEA,gBAFA,CAEA;AACA;AACA;AACA,+BADA;;AAGA;AACA;AACA,iBAFA,EAEA,IAFA;AAGA;AACA,aAXA;AAYA;AACA,SAnBA;;AAqBA,KAlJA,EAlCA,E;;;;;;;;;;;;;ACnDA;AAAA;AAAA;AAAA;AAAqsC,CAAgB,gmCAAG,EAAC,C;;;;;;;;;;;ACAztC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/user/resourcesManage/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/user/resourcesManage/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=362fbde2&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/user/resourcesManage/index.vue\"\nexport default component.exports","export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=362fbde2&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\n<!--pages/user/resourcesManage/index.wxml-->\n<view class=\"manage-page\">\n <view class=\"tabs-box acea-row row-between\">\n <view :class=\"'tab ' + (tabActive == 1 ? 'tab-a' : '')\" data-i=\"1\" @tap=\"tabClick\">发布中</view>\n <view :class=\"'tab ' + (tabActive == 2 ? 'tab-a' : '')\" data-i=\"2\" @tap=\"tabClick\">审核中</view>\n <view :class=\"'tab ' + (tabActive == 3 ? 'tab-a' : '')\" data-i=\"3\" @tap=\"tabClick\">草稿箱</view>\n <view :class=\"'tab ' + (tabActive == 4 ? 'tab-a' : '')\" data-i=\"4\" @tap=\"tabClick\">已结束</view>\n </view>\n <view class=\"list\">\n <view class=\"no-list\" v-if=\"list.length == 0\">\n <image src=\"https://download.cyjyyjy.com/no-order.png\"></image>\n <view>暂无资源</view>\n <view class=\"to-btn\" @tap=\"toRelease\">去发布吧</view>\n </view>\n <view v-for=\"(item, index) in list\" :key=\"index\" class=\"list-item\" v-if=\"list.length > 0\">\n <view class=\"number acea-row row-between row-middle\">\n <text> </text>\n <view class=\"status\" v-if=\"tabActive == 2\">等待审核</view>\n <view class=\"status\" v-if=\"tabActive == 3\">{{item.resourceAuditState == 0 ? '未编辑完成' : '审核未通过:' + item.reason }}</view>\n </view>\n <view class=\"info-box acea-row row-middle\">\n <image :src=\"item.resourceImgs[0]\"></image>\n <view class=\"info\">\n <view class=\"i-title\">{{item.title}}</view>\n <view class=\"i-desc line2\">{{item.detailedDescription}}</view>\n </view>\n </view>\n <view class=\"colO\" v-if=\"tabActive == 1 || tabActive == 4\">项目合作数量({{item.finishProjects}})</view>\n <view class=\"btn-box acea-row row-between row-middle\">\n\t\t\t\t<view class=\"btn-box-l\">\n\t\t\t\t\t<view>成交金额 {{item.totalMoney}}元</view>\n\t\t\t\t\t<view class=\"time\" v-if=\"tabActive == 2 || tabActive == 3\">{{item.createTime}}申请</view>\n\t\t\t\t</view>\n <view class=\"btns acea-row\">\n <view class=\"btn\" v-if=\"tabActive == 1\" :data-item=\"item\" @tap=\"xiajiaClick\">下架资源</view>\n <view class=\"btn\" v-if=\"tabActive == 2\" :data-id=\"item.id\" @tap=\"withdrawClick\">撤回审核</view>\n <view class=\"btn\" v-if=\"tabActive == 3\" :data-id=\"item.id\" @tap=\"editClick\">编辑发布</view>\n <view class=\"btn default\" v-if=\"tabActive == 3\" :data-id=\"item.id\" @tap=\"delClick\">删除项目</view>\n <view class=\"text\" v-if=\"tabActive == 4\" :data-id=\"item.id\">项目已圆满结束</view>\n </view>\n </view>\n </view>\n </view>\n</view>\n</template>\n\n<script>\n// pages/user/NeedsManage/index.js\nconst app = getApp();\n\nexport default {\n data() {\n return {\n tabActive: 1,\n list: [],\n resourceType: 1,\n resourceAuditState: null,\n resourceState: 0\n };\n },\n\n components: {},\n props: {},\n\n /**\n * 生命周期函数--监听页面加载\n */\n onLoad: function (options) {\n this.setData({\n tabActive: options.type\n });\n this.setParams(options.type);\n },\n /**\n * 页面相关事件处理函数--监听用户下拉动作\n */\n onPullDownRefresh: function () {\n this.setParams(this.tabActive);\n },\n\n /**\n * 页面上拉触底事件的处理函数\n */\n onReachBottom: function () {},\n methods: {\n toRelease() {\n uni.navigateTo({\n url: '/pages/release/index'\n });\n },\n\n tabClick(e) {\n let i = e.currentTarget.dataset.i;\n this.setParams(i);\n },\n\n setParams(i) {\n if (i == 1) {\n this.setData({\n tabActive: i,\n resourceState: 1,\n resourceAuditState: [2]\n });\n } else if (i == 2) {\n this.setData({\n tabActive: i,\n resourceAuditState: [1]\n });\n } else if (i == 3) {\n this.setData({\n tabActive: i,\n resourceAuditState: [0, 3]\n });\n } else if (i == 4) {\n this.setData({\n tabActive: i,\n resourceState: 2,\n resourceAuditState: []\n });\n }\n this.getList();\n },\n\n getList() {\n app.http('post', 'Resources/listMyResources', {\n resourceType: this.resourceType,\n resourceState: this.resourceState,\n resourceAuditState: this.resourceAuditState\n }).then(res => {\n if (res.data.success) {\n this.setData({\n list: res.data.data.content\n });\n uni.stopPullDownRefresh();\n }\n });\n },\n\n // 下架\n xiajiaClick(e) {\n let id = e.currentTarget.dataset.item.id;\n let status = e.currentTarget.dataset.item.status;\n let that = this;\n\n if (status == 1) {\n uni.showModal({\n title: '提示',\n content: '是否确定下架需求',\n\n success(res) {\n if (res.confirm) {\n app.http('GET', 'Resources/withdrawResource', {\n id: id\n }).then(res => {\n if (res.data.success) {\n uni.showToast({\n title: '操作成功'\n });\n setTimeout(() => {\n that.getList();\n }, 1500);\n }\n });\n }\n }\n\n });\n } else {\n uni.showModal({\n title: '提示',\n content: '是否确定上架?',\n\n success(res) {\n if (res.confirm) {\n app.http('GET', 'Resources/putOnResource', {\n id: id\n }).then(res => {\n if (res.data.success) {\n uni.showToast({\n title: '操作成功'\n });\n setTimeout(() => {\n that.getList();\n }, 1500);\n }\n });\n }\n }\n\n });\n }\n },\n\n // 撤回\n withdrawClick(e) {\n let id = e.currentTarget.dataset.id;\n },\n\n // 编辑\n editClick(e) {\n let id = e.currentTarget.dataset.id;\n uni.navigateTo({\n url: '/pages/user/editNeeds/index?id=' + id\n });\n },\n\n // 删除\n delClick(e) {\n let id = e.currentTarget.dataset.id;\n uni.showModal({\n title: '提示',\n content: '是否确定删除?',\n\n success(res) {\n if (res.confirm) {\n app.http('GET', 'Resources/delResource', {\n id: id\n }).then(res => {\n if (res.data.success) {\n uni.showToast({\n title: '操作成功'\n });\n setTimeout(() => {\n that.getList();\n }, 1500);\n }\n });\n }\n }\n });\n }\n }\n};\n</script>\n<style>\n/* pages/user/resourcesManage/index.wxss */\n.manage-page{\n width: 100%;\n min-height: 100vh;\n background: #EEEEEE;\n}\n.tabs-box{\n width: 100%;\n padding: 18rpx 58rpx;\n background: #fff; \n}\n.tab{\n text-align: center;\n font-size: 28rpx;\n color: #707070;\n position: relative;\n}\n.tab::after{\n display: block;\n content: '';\n width: 100%;\n height: 8rpx;\n border-radius: 8rpx;\n background: #FF6D31;\n position: absolute;\n bottom: -22rpx;\n left: 50%;\n opacity: 0;\n transform: translateX(-50%) scaleX(0);\n transition: all .2s ease,opacity .15s ease;\n}\n.tab-a::after{\n opacity: 1;\n left: 0;\n transform: translateX(0%) scaleX(1);\n}\n.list{\n width: 100%;\n padding: 32rpx 40rpx;\n}\n.list-item{\n width: 100%;\n padding: 20rpx 20rpx 32rpx;\n background: #fff;\n border-radius: 12rpx;\n margin-bottom: 20rpx;\n}\n.number{\n margin-bottom: 12rpx;\n color: #666666;\n font-size: 28rpx;\n}\n.status{\n font-weight: 500;\n font-size: 28rpx;\n color: #FF5100;\n}\n.info-box image{\n width: 154rpx;\n height: 154rpx;\n border-radius: 8rpx;\n margin-right: 12rpx;\n}\n.info{\n width: 450rpx;\n font-size: 28rpx;\n}\n.i-title{\n font-weight: 500;\n line-height: 40rpx;\n color: #1D1D1D;\n}\n.i-desc{\n font-size: 24rpx;\n font-weight: 400;\n line-height: 34rpx;\n color: #666666;\n /* height: 110rpx; */\n /* overflow: hidden; */\n}\n.time{\n color: #A7A7A7;\n font-size: 24rpx;\n}\n.colO{\n font-size: 28rpx;\n margin: 24rpx 0 4rpx;\n color: #FF5100;\n}\n.btn-box{\n font-size: 30rpx;\n font-weight: 500;\n line-height: 40px;\n color: #FF5100;\n\tmargin-top: 10rpx;\n}\n.btn-box-l{\n\tline-height: 40rpx;\n}\n.btn{\n font-size: 28rpx;\n width: 150rpx;\n height: 56rpx;\n line-height: 56rpx;\n text-align: center;\n background: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\n border-radius: 12rpx;\n color: #fff;\n margin-left: 16rpx;\n}\n.default{\n background: linear-gradient(134deg, #BFBFBF 0%, #BFBFBF 100%);\n}\n.text{\n font-size: 28rpx;\n color: #666;\n}\n\n\n</style>","import mod from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css&\"; export default mod; export * from \"-!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635513139272\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""} |