need.js 6.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/need"],{100:function(e,t,n){},93:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(94));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},94:function(e,t,n){"use strict";n.r(t);var o=n(95),i=n(97);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(99);var u,a=n(36),s=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"16800ba9",null,!1,o["components"],u);s.options.__file="pages/mine/need.vue",t["default"]=s.exports},95:function(e,t,n){"use strict";n.r(t);var o=n(96);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},96:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return u})),n.d(t,"recyclableRender",(function(){return r})),n.d(t,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(n.bind(null,204))},uvSticky:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uv-sticky/components/uv-sticky/uv-sticky")]).then(n.bind(null,266))},tnTabsSwiper:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tabs-swiper/tn-tabs-swiper")]).then(n.bind(null,283))},tnGrid:function(){return n.e("tuniao-ui/components/tn-grid/tn-grid").then(n.bind(null,290))},tnGridItem:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-grid-item/tn-grid-item")]).then(n.bind(null,297))},tnEmpty:function(){return n.e("tuniao-ui/components/tn-empty/tn-empty").then(n.bind(null,304))},uniPopup:function(){return n.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(n.bind(null,311))},uniPopupDialog:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog")]).then(n.bind(null,318))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement,n=(e._self._c,e.content.length),o=e.__map(e.content,(function(t,n){var o=e.__get_orig(t),i=t.imgList?[1,2,4].indexOf(t.imgList.length):null,r=t.imgList&&-1!=i?e.__map(t.imgList,(function(n,o){var i=e.__get_orig(n),r=t.imgList.length,u=2===t.imgList.length||4===t.imgList.length;return{$orig:i,g1:r,g2:u}})):null,u=e.__map(t.fileDetailList,(function(t,n){var o=e.__get_orig(t),i=e.isImage(t.fileName);return{$orig:o,m0:i}})),a=e._f("formatDate")(t.createTime);return{$orig:o,g0:i,l0:r,l1:u,f0:a}}));e.$mp.data=Object.assign({},{$root:{g3:n,l2:o}})},r=!1,u=[];i._withStripped=!0},97:function(e,t,n){"use strict";n.r(t);var o=n(98),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a},98:function(e,t,n){"use strict";(function(e,o){var i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(61)),u=n(69),a={data:function(){return{list:[{"tab-name":"已通过"},{"tab-name":"审核中"},{"tab-name":"暂存"},{"tab-name":"已拒绝"}],current:0,content:[],showEmpty:!1,curItem:{},wxFontSize:17}},filters:{formatDate:function(e){if(!e)return"";var t=new Date(e),n=new Date,o=new Date(n);return o.setDate(o.getDate()-1),t.getFullYear()==n.getFullYear()&&t.getMonth()==n.getMonth()&&t.getDate()==n.getDate()?"今天 "+(t.getHours()>9?"":"0")+t.getHours()+":"+(t.getMinutes()>9?"":"0")+t.getMinutes():t.getFullYear()==o.getFullYear()&&t.getMonth()==o.getMonth()&&t.getDate()==o.getDate()?"昨天 "+(t.getHours()>9?"":"0")+t.getHours()+":"+(t.getMinutes()>9?"":"0")+t.getMinutes():t.toLocaleDateString()+" "+(t.getHours()>9?"":"0")+t.getHours()+":"+(t.getMinutes()>9?"":"0")+t.getMinutes()}},onLoad:function(t){var n=e.getAppBaseInfo();this.wxFontSize=o.getStorageSync("fontSize")||n.fontSizeSetting||17,1==t.tab&&(this.current=1),2==t.tab&&(this.current=2)},onShow:function(){this.loadData()},methods:{showTips:function(e){o.showToast({title:e.feedback?e.feedback:"已拒绝",icon:"none"})},goBack:function(){o.navigateBack()},tabChange:function(e){this.current=e,this.loadData()},isImage:function(e){var t=["jpg","jpeg","png","gif","bmp","webp","ico"],n=e.split(".").pop().toLowerCase();return t.includes(n)},loadData:function(){var e=this;e.content=[],r.default.post("/slbResourceDemand/show/my",{userNo:o.getStorageSync("userNo"),status:1==e.current?"3":2==e.current?"1":3==e.current?"9":"4",limit:1e3,index:1}).then((function(t){if(t&&t.success){for(var n=t.list||[],o=0;o<n.length;o++){n[o].imgList=[];for(var i=0;i<n[o].fileDetailList.length;i++)e.isImage(n[o].fileDetailList[i].fileName)&&n[o].imgList.push(n[o].fileDetailList[i])}e.content=n,0==n.length?e.showEmpty=!0:e.showEmpty=!1}console.warn(t)}))},dialogConfirm:function(){var e=this.curItem,t=this;r.default.post("/slbResourceDemand/offShelf",{id:e.id,userNo:o.getStorageSync("userNo")}).then((function(e){e.success?(o.showToast({title:"结束成功"}),t.loadData()):o.showToast({title:e.msg,icon:"none"})}))},finishItem:function(e){this.curItem=e;var t=this;(0,u.uniShowModal)("确定结束需求吗?","",{showCancel:!0,confirmText:"确定",success:function(e){e.confirm&&t.dialogConfirm()}})},showImg:function(e,t){for(var n=[],i=0;i<e.length;i++)n.push(e[i].ftpUrl);o.previewImage({urls:n,current:t})},clickLink:function(t,n){o.downloadFile({url:t,filePath:e.env.USER_DATA_PATH+"/"+n,success:function(e){var i=e.filePath;o.openDocument({filePath:i,showMenu:!0,success:function(e){console.log("打开文档成功")},fail:function(){o.navigateTo({url:"/pages/webview/web-view?url="+encodeURIComponent("https://slb-m.lx-device.com/webview?title="+n+"&url="+t)})}})}})},editItem:function(e){o.setStorageSync(e.bisNo,JSON.stringify(e)),o.navigateTo({url:"/circlePages/circle?sid="+e.bisNo})}}};t.default=a}).call(this,n(1)["default"],n(2)["default"])},99:function(e,t,n){"use strict";n.r(t);var o=n(100),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(r);t["default"]=i.a}},[[93,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/need.js.map