share.js 6.7 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/share"],{101:function(n,t,e){"use strict";(function(n,t){var o=e(4);e(26);o(e(25));var i=o(e(102));n.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e(1)["default"],e(2)["createPage"])},102:function(n,t,e){"use strict";e.r(t);var o=e(103),i=e(105);for(var r in i)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return i[n]}))}(r);e(107);var u,a=e(36),s=Object(a["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"1dac5edc",null,!1,o["components"],u);s.options.__file="pages/mine/share.vue",t["default"]=s.exports},103:function(n,t,e){"use strict";e.r(t);var o=e(104);e.d(t,"render",(function(){return o["render"]})),e.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),e.d(t,"components",(function(){return o["components"]}))},104:function(n,t,e){"use strict";var o;e.r(t),e.d(t,"render",(function(){return i})),e.d(t,"staticRenderFns",(function(){return u})),e.d(t,"recyclableRender",(function(){return r})),e.d(t,"components",(function(){return o}));try{o={tnNavBar:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-nav-bar/tn-nav-bar")]).then(e.bind(null,220))},uvSticky:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uv-sticky/components/uv-sticky/uv-sticky")]).then(e.bind(null,235))},tnTabsSwiper:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tabs-swiper/tn-tabs-swiper")]).then(e.bind(null,252))},tnTag:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-tag/tn-tag")]).then(e.bind(null,306))},uniTable:function(){return e.e("uni_modules/uni-table/components/uni-table/uni-table").then(e.bind(null,313))},uniTr:function(){return e.e("uni_modules/uni-table/components/uni-tr/uni-tr").then(e.bind(null,320))},uniTh:function(){return e.e("uni_modules/uni-table/components/uni-th/uni-th").then(e.bind(null,327))},uniTd:function(){return e.e("uni_modules/uni-table/components/uni-td/uni-td").then(e.bind(null,334))},tnGrid:function(){return e.e("tuniao-ui/components/tn-grid/tn-grid").then(e.bind(null,259))},tnGridItem:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-grid-item/tn-grid-item")]).then(e.bind(null,266))},tnButton:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-button/tn-button")]).then(e.bind(null,273))},tnModal:function(){return Promise.all([e.e("common/vendor"),e.e("tuniao-ui/components/tn-modal/tn-modal")]).then(e.bind(null,341))},tnEmpty:function(){return e.e("tuniao-ui/components/tn-empty/tn-empty").then(e.bind(null,280))}}}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 n=this,t=n.$createElement,e=(n._self._c,n.content.length),o=n.__map(n.content,(function(t,e){var o=n.__get_orig(t),i=t.shareExt&&t.shareExt.length>0,r=t.imgList?[1,2,4].indexOf(t.imgList.length):null,u=t.imgList&&-1!=r?n.__map(t.imgList,(function(e,o){var i=n.__get_orig(e),r=t.imgList.length,u=2===t.imgList.length||4===t.imgList.length;return{$orig:i,g2:r,g3:u}})):null,a=n.__map(t.fileDetailList,(function(t,e){var o=n.__get_orig(t),i=n.isImage(t.fileName);return{$orig:o,m0:i}})),s=n._f("formatDate")(t.createTime);return{$orig:o,g0:i,g1:r,l0:u,l1:a,f0:s}}));n.$mp.data=Object.assign({},{$root:{g4:e,l2:o}})},r=!1,u=[];i._withStripped=!0},105:function(n,t,e){"use strict";e.r(t);var o=e(106),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},106:function(n,t,e){"use strict";(function(n){var o=e(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(e(58)),r={data:function(){return{showModel:!1,titleModel:"提示",contentModel:"下架之后内容不再展示在共享页面里, 是否继续?",buttonModel:[{text:"取消",plain:!0,shape:"round"},{text:"继续",backgroundColor:"tn-bg-indigo",fontColor:"#FFFFFF"}],list:[{"tab-name":"已通过"},{"tab-name":"审核中"},{"tab-name":"暂存"},{"tab-name":"已拒绝"}],current:0,showEmpty:!1,content:[],curItem:{}}},filters:{formatDate:function(n){if(!n)return"";var t=new Date(n),e=new Date,o=new Date(e);return o.setDate(o.getDate()-1),t.getFullYear()==e.getFullYear()&&t.getMonth()==e.getMonth()&&t.getDate()==e.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()}},onShow:function(){this.loadData()},methods:{goBack:function(){n.navigateBack()},change:function(n){this.current=n,this.loadData()},isImage:function(n){var t=["jpg","jpeg","png","gif","bmp","webp","ico"],e=n.split(".").pop().toLowerCase();return t.includes(e)},loadData:function(){var t=this;t.content=[],i.default.post("/slbResourceShare/show/my",{userNo:n.getStorageSync("userNo"),status:1==t.current?"3":2==t.current?"1":3==t.current?"9":"4"}).then((function(n){n.list;if(n.success){for(var e=n.list||[],o=0;o<e.length;o++){e[o].imgList=[];for(var i=0;i<e[o].fileDetailList.length;i++)t.isImage(e[o].fileDetailList[i].fileName)&&e[o].imgList.push(e[o].fileDetailList[i])}t.content=e,0==e.length?t.showEmpty=!0:t.showEmpty=!1}console.warn(n)}))},showImg:function(t,e){for(var o=[],i=0;i<t.length;i++)o.push(t[i].ftpUrl);n.previewImage({urls:o,current:e})},clickLink:function(t){n.navigateTo({url:"/pages/webview/web-view?url="+t})},finishItem:function(n){return this.curItem=n,this.showModel=!0,!1},clickModel:function(n){(n.index=1)?(this.showModel=!1,this.finishNext(this.curItem)):this.showModel=!1},finishNext:function(t){var e=this;i.default.post("/slbResourceShare/offShelf",{id:t.id,userNo:n.getStorageSync("userNo")}).then((function(t){t.success?(n.showToast({title:"下架成功"}),e.loadData()):n.showToast({title:t.msg,icon:"none"})}))}}};t.default=r}).call(this,e(2)["default"])},107:function(n,t,e){"use strict";e.r(t);var o=e(108),i=e.n(o);for(var r in o)["default"].indexOf(r)<0&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},108:function(n,t,e){}},[[101,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/share.js.map