1234567891011 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/comm/comm"],{201:function(t,e,n){"use strict";n.r(e);var o=n(202),i=n(204);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n(206);var r,c=n(36),s=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"ad2d06f4",null,!1,o["components"],r);s.options.__file="pages/comm/comm.vue",e["default"]=s.exports},202:function(t,e,n){"use strict";n.r(e);var o=n(203);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},203:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return a})),n.d(e,"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,220))},tnLoading:function(){return n.e("tuniao-ui/components/tn-loading/tn-loading").then(n.bind(null,180))},uvSticky:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uv-sticky/components/uv-sticky/uv-sticky")]).then(n.bind(null,235))},uniIcons:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-icons/components/uni-icons/uni-icons")]).then(n.bind(null,470))},uniSearchBar:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar")]).then(n.bind(null,348))},tnTabsSwiper:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tabs-swiper/tn-tabs-swiper")]).then(n.bind(null,252))},tnTag:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-tag/tn-tag")]).then(n.bind(null,306))},tnGrid:function(){return n.e("tuniao-ui/components/tn-grid/tn-grid").then(n.bind(null,259))},tnGridItem:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-grid-item/tn-grid-item")]).then(n.bind(null,266))},basicTable:function(){return n.e("components/basic-table/basic-table").then(n.bind(null,478))},tnEmpty:function(){return n.e("tuniao-ui/components/tn-empty/tn-empty").then(n.bind(null,280))},tnPopup:function(){return Promise.all([n.e("common/vendor"),n.e("tuniao-ui/components/tn-popup/tn-popup")]).then(n.bind(null,456))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.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 t=this,e=t.$createElement,n=(t._self._c,0==t.current?t.__map(t.content,(function(e,n){var o=t.__get_orig(e),i=e.imgList?[1,2,4].indexOf(e.imgList.length):null,a=e.imgList&&-1!=i?t.__map(e.imgList,(function(n,o){var i=t.__get_orig(n),a=e.imgList.length,r=2===e.imgList.length||4===e.imgList.length;return{$orig:i,g1:a,g2:r}})):null,r=e.shareExt&&e.shareExt.length>0,c=t.__map(e.fileDetailList,(function(e,n){var o=t.__get_orig(e),i=t.isImage(e.fileName);return{$orig:o,m0:i}})),s=t._f("formatDate")(e.createTime),u=t.content.length;return{$orig:o,g0:i,l0:a,g3:r,l1:c,f0:s,g4:u}})):null),o=0==t.current?t.showEmpty&&0==t.content.length:null;t.$mp.data=Object.assign({},{$root:{l2:n,g5:o}})},a=!1,r=[];i._withStripped=!0},204:function(t,e,n){"use strict";n.r(e);var o=n(205),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},205:function(t,e,n){"use strict";(function(t,o){var i=n(4);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n(58)),r={name:"Circle",data:function(){return{loading:!1,searchProdValue:"",tabList:[{"tab-name":"产品"},{"tab-name":"服务"}],currentTab:0,showEmpty:!1,columns:[{fieldName:"prodName",fieldDesc:"产品名称"},{fieldName:"prodSpec",fieldDesc:"规格型号"},{fieldName:"prodDesc",fieldDesc:"产品介绍"}],showSheet:!1,curItem:{},collId:"",showContact:!1,curContact:{},current:0,collStatus:"",searchValue:"",scrollList:[{name:"产品"},{name:"服务"},{name:"其他"}],contentHideShowHeight:0,content:[],totalSize:0,curIndex:1}},onLoad:function(){this.initContentData(),this.contentHideShowHeight=3*t.upx2px(56)},onReady:function(){var t=this;this.$nextTick((function(){t.fetchData()}))},onShow:function(){this.fetchData()},onHide:function(){this.adAutoplay=!1},filters:{formatDate:function(t){if(!t)return"";var e=new Date(t),n=new Date,o=new Date(n);return o.setDate(o.getDate()-1),e.getFullYear()==n.getFullYear()&&e.getMonth()==n.getMonth()&&e.getDate()==n.getDate()?"今天 "+(e.getHours()>9?"":"0")+e.getHours()+":"+(e.getMinutes()>9?"":"0")+e.getMinutes():e.getFullYear()==o.getFullYear()&&e.getMonth()==o.getMonth()&&e.getDate()==o.getDate()?"昨天 "+(e.getHours()>9?"":"0")+e.getHours()+":"+(e.getMinutes()>9?"":"0")+e.getMinutes():e.toLocaleDateString()+" "+(e.getHours()>9?"":"0")+e.getHours()+":"+(e.getMinutes()>9?"":"0")+e.getMinutes()}},methods:{showSearch:function(e){t.showToast({title:"请输入",icon:"none",duration:100}),t.navigateTo({url:"/pages/comm/search"})},isImage:function(t){var e=["jpg","jpeg","png","gif","bmp","webp","ico"],n=t.split(".").pop().toLowerCase();return e.includes(n)},addButton:function(){if(!t.getStorageSync("userNo"))return t.showToast({title:"请登录"}),t.navigateTo({url:"/pages/login/login"}),!1;t.navigateTo({url:"/circlePages/addShare"})},showImg:function(e,n){for(var o=[],i=0;i<e.length;i++)o.push(e[i].ftpUrl);t.previewImage({urls:o,current:n})},clickLink:function(e){t.navigateTo({url:"/pages/webview/web-view?url="+e})},tabChange:function(t){this.current=t},tn:function(e){t.navigateTo({url:e})},navEdit:function(e){o.vibrateLong(),t.navigateTo({url:"/circlePages/edit"})},navCreate:function(e){o.vibrateLong(),t.navigateTo({url:"/circlePages/create"})},navBuild:function(e){o.vibrateLong(),t.navigateTo({url:"/circlePages/build"})},initContentData:function(){var t=this;this.content.forEach((function(e,n){e.hideContent=!1,e.showAllContent=!1,e.contentContainerHeight=0,e.contentContainerInit=!1,t.$set(t.content,n,e)}))},reFetchData:function(){this.loading=!0,t.showToast({title:"正在刷新...",icon:"none"}),this.fetchData()},loadMore:function(){this.totalSize>this.content.length&&this.fetchData(this.curIndex+1),console.error("正在加载更多")},changeTab:function(t){this.currentTab=t,this.fetchData()},fetchData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=this;n.showEmpty=!1,t.getStorageSync("searchProdValue")&&(n.searchProdValue=t.getStorageSync("searchProdValue")),a.default.post("/slbResourceShare/query",{type:1==n.currentTab?"2":"1",index:e,content:1==n.currentTab?n.searchValue:void 0,prodDesc:0==n.currentTab?n.searchProdValue?n.searchProdValue.split("/")[2]:"":void 0,prodName:0==n.currentTab?n.searchProdValue?n.searchProdValue.split("/")[0]:"":void 0,prodSpec:0==n.currentTab?n.searchProdValue?n.searchProdValue.split("/")[1]:"":void 0}).then((function(t){if(n.loading=!1,t&&t.success){n.totalSize=t.total||0;for(var o=t.list||[],i=0;i<o.length;i++){o[i].imgList=[];for(var a=0;a<o[i].fileDetailList.length;a++)n.isImage(o[i].fileDetailList[a].fileName)&&o[i].imgList.push(o[i].fileDetailList[a])}n.content=1==e?o||[]:n.content.concat(o||[])}n.showEmpty=!0,console.warn(t)}))},showActionSheet:function(e){var n=this;if(this.curItem=e,this.collStatus=!1,this.showSheet=!0,n.showContact=!1,t.getStorageSync("userNo")){var o={};o={fkBisNo:n.curItem.bisNo,userNo:t.getStorageSync("userNo")},a.default.post("/slbCollect/query",o).then((function(t){t.success&&t.list&&t.list.length>0&&(n.collStatus=!0,n.collId=t.list[0].id)}))}},linkTel:function(){if(!t.getStorageSync("userNo"))return t.showToast({title:"请登录"}),t.navigateTo({url:"/pages/login/login"}),!1;var e=this,n={};n.slbBisContact=JSON.stringify({fkBisNo:e.curItem.bisNo,bisType:"2",type:"1",userNo:t.getStorageSync("userNo")}),a.default.post("/slbBisContact/add",n).then((function(n){n.success?(e.showContact=!0,e.curContact.company=e.curItem.company,e.curContact.contactMethod=n.resultMap.contactMethod,e.curContact.contactPerson=n.resultMap.contactPerson):(e.showContact=!1,t.showToast({title:n.msg,icon:"none"}))}))},addColl:function(){if(!t.getStorageSync("userNo"))return t.showToast({title:"请登录"}),t.navigateTo({url:"/pages/login/login"}),!1;var e=this,n={};n.slbCollect=JSON.stringify({fkBisNo:e.curItem.bisNo,bisType:"2",userNo:t.getStorageSync("userNo")}),a.default.post("/slbCollect/add",n).then((function(n){n.success?(t.showToast({title:"信息已收藏,请在我的收藏里查看阅读",duration:2e3,icon:"none"}),e.showSheet=!1):t.showToast({title:n.msg})}))},delColl:function(){var e=this;a.default.post("/slbCollect/del",{id:e.collId}).then((function(n){n.success?(t.showToast({title:"取消成功"}),e.showSheet=!1):t.showToast({title:n.msg})}))},search:function(){this.fetchData()},searchProd:function(){this.searchProdValue="",this.fetchData()},cancel:function(){this.searchValue="",this.fetchData()},clear:function(){this.searchValue="",this.fetchData()},clearProd:function(){this.searchProdValue="",t.removeStorageSync("searchProdValue"),this.fetchData()}}};e.default=r}).call(this,n(2)["default"],n(1)["default"])},206:function(t,e,n){"use strict";n.r(e);var o=n(207),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},207:function(t,e,n){}}]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/comm/comm.js.map
- ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
- 'pages/comm/comm-create-component',
- {
- 'pages/comm/comm-create-component':(function(module, exports, __webpack_require__){
- __webpack_require__('2')['createComponent'](__webpack_require__(201))
- })
- },
- [['pages/comm/comm-create-component']]
- ]);
|