1 line
22 KiB
Plaintext
1 line
22 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///E:/云商会/云商会/pages/index/home.vue?8933","webpack:///E:/云商会/云商会/pages/index/home.vue?2a76","webpack:///E:/云商会/云商会/pages/index/home.vue?8a67","webpack:///E:/云商会/云商会/pages/index/home.vue?69d8","uni-app:///pages/index/home.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","selectShow","selectList","topCurrent","searlist","cardCur","isAndroid","swiperList","url","goryList","news_list","actList","current","page","size","gory_id","type","HomeTitle","apiImgUrl","mounted","methods","confirm","store","name","value","uni","getAssociationIndex","then","console","label","Gid","catch","title","icon","duration","getActivityList","association_id","getNewsGoryList","key","id","getNewsList","cardSwiper","ReachBottom","change","openUrl","opentab","index"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,aAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAA6H;AAC7H;AACwD;AACL;;;AAGnD;AAC+L;AAC/L,gBAAgB,wMAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,2FAAM;AACR,EAAE,oGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,+FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,wRAEN;AACP,KAAK;AACL;AACA,aAAa,0SAEN;AACP,KAAK;AACL;AACA,aAAa,kRAEN;AACP,KAAK;AACL;AACA,aAAa,sQAEN;AACP,KAAK;AACL;AACA,aAAa,4NAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrEA;AAAA;AAAA;AAAA;AAAguB,CAAgB,qvBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;AC2JpvB;AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC,WACA,aACA;MACAC;MACAC;MACAC;QACAC;MACA;QACAA;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACA;IACA;IACA;EACA;EACAC;IACAC;MACA;MACAC;QACAC;QACAC;MACA;MACAC;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA,6BACAC;QACAC;QACA;UACA;UACA;YAAA;cACAJ;cACAK;YACA;UAAA;UACA;YAAA,6CACAC;UAAA;UACA;UACA;QACA;MACA,GACAC;QACAN;UACAO;UACAC;UACAC;QACA;MACA;IACA;IACAC;MAAA;MACA;QACAC;QACAvB;QACAC;MACA,GACAa;QACAC;QACA;UACA;QACA;UACA;QACA;MACA,GACAG;QACAN;UACAO;UACAC;UACAC;QACA;MACA;IACA;IACAG;MAAA;MACA;QACAD;MACA,GACAT;QACAC;QACA;UACA;UACAU;YACAC;YACAhB;UACA;UACA;UACA;UACA;UACA;QACA;MACA,GACAQ;QACAN;UACAO;UACAC;UACAC;QACA;MACA;IACA;IACAM;MAAA;MACA;QACAJ;QACApB;QACAD;QACAF;QACAC;MACA,GACAa;QACAC;QACA;UAAA;UACA;QACA;MACA,GACAG;QACAN;UACAO;UACAC;UACAC;QACA;MACA;IACA;IACAO;MACA;IACA;IACAC;MACAd;MACA;MACA;MACA;IACA;IACAe;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MACAnB;QACAjB;MACA;IACA;IACAqC;MACApB;QACAqB;MACA;IACA;EACA;AACA;AAAA,2B","file":"pages/index/home.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/home.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./home.vue?vue&type=template&id=14a6ab35&scoped=true&\"\nvar renderjs\nimport script from \"./home.vue?vue&type=script&lang=js&\"\nexport * from \"./home.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\HBuilderX.3.5.3.20220729\\\\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 \"14a6ab35\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/home.vue\"\nexport default component.exports","export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./home.vue?vue&type=template&id=14a6ab35&scoped=true&\"","var components\ntry {\n components = {\n tnNavBar: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-nav-bar/tn-nav-bar\" */ \"@/tuniao-ui/components/tn-nav-bar/tn-nav-bar.vue\"\n )\n },\n tnNoticeBar: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-notice-bar/tn-notice-bar\" */ \"@/tuniao-ui/components/tn-notice-bar/tn-notice-bar.vue\"\n )\n },\n tnButton: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-button/tn-button\" */ \"@/tuniao-ui/components/tn-button/tn-button.vue\"\n )\n },\n tnTabs: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-tabs/tn-tabs\" */ \"@/tuniao-ui/components/tn-tabs/tn-tabs.vue\"\n )\n },\n tnSelect: function () {\n return import(\n /* webpackChunkName: \"tuniao-ui/components/tn-select/tn-select\" */ \"@/tuniao-ui/components/tn-select/tn-select.vue\"\n )\n },\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.actList.length\n var g1 = _vm.actList.length\n if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.selectShow = true\n }\n }\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n g1: g1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./home.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./home.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view style=\"background-color: #EBF4F7;letter-spacing: 1rpx;\">\r\n\t\t<tn-nav-bar :isBack=\"false\" :bottomShadow=\"true\" backgroundColor=\"#FFFFFF\">\r\n\t\t\t<view class=\"custom-nav tn-flex tn-flex-col-center tn-flex-row-left\">\r\n\t\t\t\t<view style=\"text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;width: 100%;\">\r\n\t\t\t\t\t<!-- <tn-tabs :list=\"[{name:'智慧云商协'}]\" :current=\"topCurrent\" activeColor=\"#000\" :bold=\"false\"\r\n :fontSize=\"36\"></tn-tabs> -->\r\n\t\t\t\t\t<view style=\"text-align: center;font-size: 36rpx;\" @click=\"selectShow = true\">\r\n\t\t\t\t\t\t<text>{{HomeTitle}}</text>\r\n<!--\t\t\t\t\t\t<image src=\"/static/c1455.png\" style=\"width: 25rpx;height: 25rpx;margin-left: 10rpx;\"></image>-->\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</tn-nav-bar>\r\n\t\t<view :style=\"{paddingTop: vuex_custom_bar_height + 'px'}\">\r\n\t\t\t<view class=\"tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between\" style=\"padding-top: 30rpx;\">\r\n\t\t\t\t<view class=\"tn-color-gray--dark\"\r\n\t\t\t\t\tstyle=\"width: 100%;margin: 0rpx 30rpx 0 30rpx;border-radius: 100rpx;padding-left: 6rpx;background-color: #ffffff;\"\r\n\t\t\t\t\t@click=\"openUrl('/pages/index/search/search')\">\r\n\t\t\t\t\t<tn-notice-bar :list=\"searlist\" mode=\"vertical\" leftIconName=\"search\"\r\n\t\t\t\t\t\t:duration=\"6000\"></tn-notice-bar>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"tn-flex\" style=\"margin:0px 30rpx;\">\r\n\t\t\t\t\t<image @click=\"openUrl('/pages/index/my_assist')\" src=\"/static/t1.png\"\r\n\t\t\t\t\t\tstyle=\"width: 35rpx;height: 35rpx;\"></image>\r\n\t\t\t\t\t<image @click=\"openUrl('/pages/index/my_msg')\" src=\"/static/t2.png\"\r\n\t\t\t\t\t\tstyle=\"width: 35rpx;height: 35rpx;margin-left: 40rpx;\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\r\n\r\n\t\t\t<swiper class=\"card-swiper\" :circular=\"true\" :autoplay=\"true\" duration=\"500\" interval=\"8000\"\r\n\t\t\t\t@change=\"cardSwiper\">\r\n\t\t\t\t<swiper-item v-for=\"(item,index) in swiperList\" :key=\"index\" :class=\"cardCur==index?'cur':''\">\r\n\t\t\t\t\t<!-- <view class=\"swiper-item image-banner\"\r\n :style=\"'background-image:url('+ item.url + ');background-size: cover;border-radius: 15rpx;'\">\r\n </view> -->\r\n\t\t\t\t\t<image :src=\"item.url\" mode=\"widthFix\" style=\"width: 100%;border-radius: 15rpx;\"></image>\r\n\t\t\t\t</swiper-item>\r\n\t\t\t</swiper>\r\n\t\t\t<view class=\"indication\">\r\n\t\t\t\t<block v-for=\"(item,index) in swiperList\" :key=\"index\">\r\n\t\t\t\t\t<view class=\"spot\" :class=\"cardCur==index?'active':''\"></view>\r\n\t\t\t\t</block>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center\"\r\n\t\t\tstyle=\"padding:0px 30rpx 0rpx 30rpx;text-align: center;font-size: 28rpx;\">\r\n\t\t\t<view @click=\"openUrl('/pages/index/tissue')\"\r\n\t\t\t\tstyle=\"width: 25%;background: linear-gradient(270deg, #3CBAEA, #6BC7F0);;border-radius: 16rpx;padding:35rpx 20rpx;\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"/static/c3.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t<text style=\"color: #FFF;\">组织架构</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view @click=\"opentab(1)\"\r\n\t\t\t\tstyle=\"width: 25%;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"/static/c2.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t<text style=\"color: #FFF;\">协会活动</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view @click=\"openUrl('/pages/index/directory')\"\r\n\t\t\t\tstyle=\"width: 25%;background: linear-gradient(270deg, #45B335, #89C33D);border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"/static/c1.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t<text style=\"color: #FFF;\">通讯录</text>\r\n\t\t\t\t</view>\r\n\r\n\t\t\t</view>\r\n\t\t\t<view @click=\"openUrl('/pages/index/knowledge_list')\"\r\n\t\t\t\tstyle=\"width: 25%;background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<image src=\"/static/book.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"margin-top: 10rpx;\">\r\n\t\t\t\t\t<text style=\"color: #FFF;\">商学院</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view @click.stop=\"opentab(1)\" class=\"tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center\"\r\n\t\t\tstyle=\"padding: 30rpx;\">\r\n\t\t\t<view style=\"font-size: 36rpx;\">协会活动</view>\r\n\t\t\t<view style=\"color: #808080;\">\r\n\t\t\t\t<text>更多</text>\r\n\t\t\t\t<text class=\"tn-icon-right\"></text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view style=\"padding-bottom: 30rpx;\">\r\n\t\t\t<scroll-view :scroll-x=\"true\" style=\"padding:0rpx 30rpx;white-space: nowrap;\" v-if=\"actList.length>0\">\r\n\t\t\t\t<view v-for=\"(item,index) in actList\" @click=\"openUrl('/pages/index/event_info?id='+item.id)\"\r\n\t\t\t\t\tstyle=\"position: relative;;display: inline-block;width: 300rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;\">\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t<image :src=\"apiImgUrl+item.activity_image\" style=\"width: 350rpx;height: 170rpx;\">\r\n\t\t\t\t\t\t</image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view style=\"padding:10rpx 20rpx;font-weight: 400;\">\r\n\t\t\t\t\t\t<view class=\"tn-text-ellipsis-2\">{{ item.activity_name }}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view style=\"position: absolute;top: 10rpx;left: 10rpx;\">\r\n\t\t\t\t\t\t<tn-button v-if=\"item.type=='进行中'\" width=\"80rpx\" height=\"40rpx\" size=\"sm\"\r\n\t\t\t\t\t\t\tbackgroundColor=\"#6BC7F0 \" fontColor=\"tn-color-white\">进行中\r\n\t\t\t\t\t\t</tn-button>\r\n\t\t\t\t\t\t<tn-button v-if=\"item.type=='未开始'\" width=\"80rpx\" height=\"40rpx\" size=\"sm\"\r\n\t\t\t\t\t\t\tbackgroundColor=\"#EE9556 \" fontColor=\"tn-color-white\">预告\r\n\t\t\t\t\t\t</tn-button>\r\n\t\t\t\t\t\t<tn-button v-if=\"item.type=='已结束'\" width=\"80rpx\" height=\"40rpx\" size=\"sm\"\r\n\t\t\t\t\t\t\tbackgroundColor=\"#E12B33 \" fontColor=\"tn-color-white\">已结束\r\n\t\t\t\t\t\t</tn-button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</scroll-view>\r\n <view style=\"background-color: #ffffff;padding: 20rpx;text-align: center\" v-if=\"actList.length==0\">暂无活动</view>\r\n\t\t</view>\r\n\t\t<view style=\"background-color: #ffffff;\">\r\n\t\t\t<tn-tabs :list=\"goryList\" :isScroll=\"true\" :activeItemStyle=\"{fontSize:'35rpx',fontWeight:'600'}\"\r\n\t\t\t\tactiveColor=\"#000000\" :current=\"current\" name=\"name\" @change=\"change\" :fontSize=\"28\"></tn-tabs>\r\n\t\t</view>\r\n\t\t<view style=\"padding:10px 30rpx;padding-bottom: 100rpx;\">\r\n\t\t\t<view v-for=\"(item,index) in news_list\" class=\"tn-flex tn-flex-row-between\"\r\n\t\t\t\t@click=\"openUrl('/pages/index/new_info?id='+item.news_id)\"\r\n\t\t\t\tstyle=\"background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;\">\r\n\t\t\t\t<view style=\"position:relative;\">\r\n\t\t\t\t\t<view class=\"tn-text-ellipsis-2\" style=\"font-size: 28rpx;\">{{ item.news_title }}</view>\r\n\t\t\t\t\t<view class=\"tn-flex tn-flex-row-between\"\r\n\t\t\t\t\t\tstyle=\"bottom: 0rpx;width: 100%;color: #808080;padding-top: 80rpx; min-width: 380rpx;overflow: hidden\">\r\n\t\t\t\t\t\t<view>{{ item.name }}</view>\r\n\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t<text class=\"tn-icon-eye\"></text>\r\n\t\t\t\t\t\t\t<text>{{ item.news_hits }}</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view style=\"margin-left: 20rpx;\" v-if=\"item.news_image\">\r\n\t\t\t\t\t<image :src=\"apiImgUrl+item.news_image\" mode=\"aspectFill\"\r\n\t\t\t\t\t\tstyle=\"width: 240rpx;height: 160rpx;;border-radius: 10rpx;\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<tn-select v-model=\"selectShow\" mode=\"single\" :list=\"selectList\" @confirm=\"confirm\"></tn-select>\r\n\t</view>\r\n\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\tnewsGoryList,\r\n\t\tactivityList,\r\n\t\tnewsList,\r\n\t\tassociationIndex\r\n\t} from '@/util/api.js';\r\n\timport store from '@/store/index.js'\r\n\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tselectShow: false,\r\n\t\t\t\tselectList: [],\r\n\t\t\t\ttopCurrent: 0,\r\n\t\t\t\tsearlist: [\r\n\t\t\t\t\t'企业家名称/公司名称',\r\n\t\t\t\t],\r\n\t\t\t\tcardCur: 0,\r\n\t\t\t\tisAndroid: true,\r\n\t\t\t\tswiperList: [{\r\n\t\t\t\t\turl: '/static/banner.jpg',\r\n\t\t\t\t}, {\r\n\t\t\t\t\turl: '/static/banner2.jpg',\r\n\t\t\t\t}],\r\n\t\t\t\tgoryList: [],\r\n\t\t\t\tnews_list: [],\r\n\t\t\t\tactList: [],\r\n\t\t\t\tcurrent: 0,\r\n\t\t\t\tpage: 1,\r\n\t\t\t\tsize: 10,\r\n\t\t\t\tgory_id: 0,\r\n\t\t\t\ttype: 1,\r\n\t\t\t\tHomeTitle: '',\r\n apiImgUrl:this.$store.state.imgUrl\r\n\t\t\t}\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.getNewsGoryList();\r\n\t\t\tthis.getActivityList();\r\n\t\t\tthis.getAssociationIndex();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tconfirm(d) {\r\n\t\t\t\tvar info = d[0];\r\n\t\t\t\tstore.commit('$tStore', {\r\n\t\t\t\t\tname: 'Gid',\r\n\t\t\t\t\tvalue: info.value\r\n\t\t\t\t})\r\n uni.setStorageSync('Gid', info.value);\r\n this.page = 1;\r\n\t\t\t\tthis.goryList = [];\r\n\t\t\t\tthis.news_list = [];\r\n\t\t\t\tthis.actList = [];\r\n\t\t\t\tthis.getNewsGoryList();\r\n\t\t\t\tthis.getActivityList();\r\n\t\t\t\tthis.getAssociationIndex();\r\n\t\t\t},\r\n\t\t\tgetAssociationIndex() {\r\n\t\t\t\tassociationIndex()\r\n\t\t\t\t\t.then(res => {\r\n console.log(res);\r\n\t\t\t\t\t\tif (res.code == 1) {\r\n\t\t\t\t\t\t\tvar key = res.data;\r\n\t\t\t\t\t\t\tconst transformedSelectList = key.map(item => ({\r\n\t\t\t\t\t\t\t\tvalue: item.id,\r\n\t\t\t\t\t\t\t\tlabel: item.association_name\r\n\t\t\t\t\t\t\t}));\r\n\t\t\t\t\t\t\tconst foundNumber = transformedSelectList.find((element) => element.value == store.state\r\n\t\t\t\t\t\t\t\t.Gid);\r\n\t\t\t\t\t\t\tthis.HomeTitle = foundNumber.label;\r\n\t\t\t\t\t\t\tthis.selectList = transformedSelectList;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: error,\r\n icon: 'none',\r\n\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgetActivityList() {\r\n\t\t\t\tactivityList({\r\n\t\t\t\t\t\tassociation_id: store.state.Gid,\r\n\t\t\t\t\t\tpage: 1,\r\n\t\t\t\t\t\tsize: 5\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\tif (res.code == 1) {\r\n\t\t\t\t\t\t\tthis.actList = res.data.ret;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.actList = [];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: error,\r\n icon: 'none',\r\n\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgetNewsGoryList() {\r\n\t\t\t\tnewsGoryList({\r\n\t\t\t\t\t\tassociation_id: store.state.Gid\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\tif (res.code == 1) {\r\n\t\t\t\t\t\t\tvar key = res.data;\r\n\t\t\t\t\t\t\tkey.unshift({\r\n\t\t\t\t\t\t\t\tid: 0,\r\n\t\t\t\t\t\t\t\tname: '最新'\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tthis.goryList = key;\r\n\t\t\t\t\t\t\tthis.type = 1;\r\n\t\t\t\t\t\t\tthis.gory_id = 0;\r\n\t\t\t\t\t\t\tthis.getNewsList();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: error,\r\n icon: 'none',\r\n\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tgetNewsList() {\r\n\t\t\t\tnewsList({\r\n\t\t\t\t\t\tassociation_id: store.state.Gid,\r\n\t\t\t\t\t\ttype: this.type,\r\n\t\t\t\t\t\tgory_id: this.gory_id,\r\n\t\t\t\t\t\tpage: this.page,\r\n\t\t\t\t\t\tsize: this.size\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\tconsole.log(res);\r\n\t\t\t\t\t\tif (res.code == 1) {\r\n\t\t\t\t\t\t\tthis.news_list.push(...res.data.ret);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch(error => {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: error,\r\n icon: 'none',\r\n\t\t\t\t\t\t\tduration: 2000\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcardSwiper(d) {\r\n\t\t\t\tthis.cardCur = d.detail.current;\r\n\t\t\t},\r\n\t\t\tReachBottom() {\r\n\t\t\t\tconsole.log('home');\r\n\t\t\t\tthis.page = this.page + 1;\r\n\t\t\t\tthis.getNewsList();\r\n\t\t\t\t//this.getIndex();\r\n\t\t\t},\r\n\t\t\tchange(e) {\r\n\t\t\t\tthis.current = e;\r\n\t\t\t\tvar info = this.goryList[e];\r\n\t\t\t\tthis.gory_id = info.id;\r\n\t\t\t\tthis.type = e === 0 ? 1 : 0;\r\n\t\t\t\tthis.page = 1;\r\n\t\t\t\tthis.news_list = [];\r\n\t\t\t\tthis.getNewsList();\r\n\t\t\t},\r\n\t\t\topenUrl(url) {\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl: url\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\topentab() {\r\n\t\t\t\tuni.$emit('depId', {\r\n\t\t\t\t\tindex: 1\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>\r\n"],"sourceRoot":""} |