share.js 6.6 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/share"],{101:function(e,t,n){"use strict";(function(e,t){var o=n(4);n(26);o(n(25));var i=o(n(102));e.__webpack_require_UNI_MP_PLUGIN__=n,t(i.default)}).call(this,n(1)["default"],n(2)["createPage"])},102:function(e,t,n){"use strict";n.r(t);var o=n(103),i=n(105);for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n(107);var a,u=n(36),s=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"1dac5edc",null,!1,o["components"],a);s.options.__file="pages/mine/share.vue",t["default"]=s.exports},103:function(e,t,n){"use strict";n.r(t);var o=n(104);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"]}))},104:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return a})),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,236))},uvSticky:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uv-sticky/components/uv-sticky/uv-sticky")]).then(n.bind(null,251))},tnTabsSwiper:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tabs-swiper/tn-tabs-swiper")]).then(n.bind(null,268))},tnTag:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tag/tn-tag")]).then(n.bind(null,315))},basicTable:function(){return n.e("components/basic-table/basic-table").then(n.bind(null,322))},tnGrid:function(){return n.e("tuniao-ui/components/tn-grid/tn-grid").then(n.bind(null,275))},tnGridItem:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-grid-item/tn-grid-item")]).then(n.bind(null,282))},tnModal:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-modal/tn-modal")]).then(n.bind(null,329))},tnEmpty:function(){return n.e("tuniao-ui/components/tn-empty/tn-empty").then(n.bind(null,289))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.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.shareExt&&t.shareExt.length>0,r=t.imgList?[1,2,4].indexOf(t.imgList.length):null,a=t.imgList&&-1!=r?e.__map(t.imgList,(function(n,o){var i=e.__get_orig(n),r=t.imgList.length,a=2===t.imgList.length||4===t.imgList.length;return{$orig:i,g2:r,g3:a}})):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}})),s=e._f("formatDate")(t.createTime);return{$orig:o,g0:i,g1:r,l0:a,l1:u,f0:s}}));e.$mp.data=Object.assign({},{$root:{g4:n,l2:o}})},r=!1,a=[];i._withStripped=!0},105:function(e,t,n){"use strict";n.r(t);var o=n(106),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},106:function(e,t,n){"use strict";(function(e){var o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(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:{},columns:[{fieldName:"prodName",fieldDesc:"产品名称"},{fieldName:"prodSpec",fieldDesc:"规格型号"},{fieldName:"prodDesc",fieldDesc:"产品介绍"}]}},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(e){1==e.tab&&(this.current=1),2==e.tab&&(this.current=2)},onShow:function(){this.loadData()},methods:{goBack:function(){e.navigateBack()},change: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 t=this;t.content=[],i.default.post("/slbResourceShare/show/my",{userNo:e.getStorageSync("userNo"),status:1==t.current?"3":2==t.current?"1":3==t.current?"9":"4"}).then((function(e){e.list;if(e.success){for(var n=e.list||[],o=0;o<n.length;o++){n[o].imgList=[];for(var i=0;i<n[o].fileDetailList.length;i++)t.isImage(n[o].fileDetailList[i].fileName)&&n[o].imgList.push(n[o].fileDetailList[i])}t.content=n,0==n.length?t.showEmpty=!0:t.showEmpty=!1}console.warn(e)}))},showImg:function(t,n){for(var o=[],i=0;i<t.length;i++)o.push(t[i].ftpUrl);e.previewImage({urls:o,current:n})},clickLink:function(t,n){e.navigateTo({url:"/pages/webview/web-view?url="+encodeURIComponent("http://slb-m.dev.ml1993.com/webview?title="+n+"&url="+t)})},finishItem:function(e){return this.curItem=e,this.showModel=!0,!1},clickModel:function(e){1==e.index?(this.showModel=!1,this.finishNext(this.curItem)):this.showModel=!1},finishNext:function(t){var n=this;i.default.post("/slbResourceShare/offShelf",{id:t.id,userNo:e.getStorageSync("userNo")}).then((function(t){t.success?(e.showToast({title:"下架成功"}),n.loadData()):e.showToast({title:t.msg,icon:"none"})}))},editItem:function(t){e.setStorageSync(t.bisNo,JSON.stringify(t)),e.navigateTo({url:"/circlePages/addShare?sid="+t.bisNo})}}};t.default=r}).call(this,n(2)["default"])},107:function(e,t,n){"use strict";n.r(t);var o=n(108),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},108:function(e,t,n){}},[[101,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine/share.js.map