yunshangxie/unpackage/dist/dev/.sourcemap/mp-weixin/pages/index/home.js.map

1 line
28 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"version":3,"sources":["uni-app:///main.js",null,"webpack:///E:/云商会/云商会/pages/index/home.vue?8952","webpack:///E:/云商会/云商会/pages/index/home.vue?823b","webpack:///E:/云商会/云商会/pages/index/home.vue?6adc","uni-app:///pages/index/home.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","selectShow","selectList","topCurrent","searlist","cardCur","isAndroid","goryList","news_list","actList","carousel_list","current","page","size","gory_id","type","HomeTitle","apiImgUrl","mounted","getApp","console","methods","msg","getMsg","uid","member_id","res","name","value","confirm","store","uni","getAssociationIndex","then","label","icon","Gid","catch","title","duration","getCarouselIndex","association_id","getActivityList","getNewsGoryList","key","id","getNewsList","cardSwiper","ReachBottom","change","openUrl","url","opentab","index","videoErrorCallback","content","showCancel"],"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;;;;;;;;;;;;;;;;;;;;;;ACqMpvB;AAQA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC,WACA,aACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MACAC;IACA;IACA;IACA;IACA;IACA;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MAAA;MAAA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACAC;gBAAA;gBAAA,OAEA;kBACAC;gBACA;cAAA;gBAFAC;gBAGAN;gBACA;kBACA;oBACAO;oBACAC;kBACA;gBACA;kBACA;oBACAD;oBACAC;kBACA;gBACA;gBACAR;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA;IACA;IACAS;MACA;MACAC;QACAH;QACAC;MACA;MACAG;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA,6BACAC;QACAb;QACA;UACA;UACA;YAAA;cACAQ;cACAM;cACAC;YACA;UAAA;UACA;YAAA,6CACAC;UAAA;UACA;UACA;UAEA;QAMA;MACA,GACAC;QACAN;UACAO;UACAH;UACAI;QACA;MACA;IACA;IACAC;MAAA;MACA;QACAC;MACA,GACAR;QACAb;QACA;UACA;QACA;MACA,GACAiB;QACAN;UACAO;UACAH;UACAI;QACA;MACA;IACA;IACAG;MAAA;MACA;QACAD;QACA7B;QACAC;MACA,GACAoB;QACAb;QACA;UACA;QACA;UACA;QACA;MACA,GACAiB;QACAN;UACAO;UACAH;UACAI;QACA;MACA;IACA;IACAI;MAAA;MACA;QACAF;MACA,GACAR;QACAb;QACA;UACA;UACAwB;YACAC;YACAlB;UACA;UACA;UACA;UACA;UACA;QACA;MACA,GACAU;QACAN;UACAO;UACAH;UACAI;QACA;MACA;IACA;IACAO;MAAA;MACA;QACAL;QACA1B;QACAD;QACAF;QACAC;MACA,GACAoB;QACAb;QACA;UAAA;UACA;QACA;MACA,GACAiB;QACAN;UACAO;UACAH;UACAI;QACA;MACA;IACA;IACAQ;MACA;IACA;IACAC;MACA5B;MACA;MACA;MACA;IACA;IACA6B;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MACAnB;QACAoB;MACA;IACA;IACAC;MACArB;QACAsB;MACA;IACA;IACAC;MACAvB;QACAwB;QACAC;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 <view style=\"background-color: rgb(235, 244, 247);\">\r\n <tn-nav-bar :isBack=\"false\" :bottomShadow=\"true\" backgroundColor=\"#FFFFFF\">\r\n <view class=\"custom-nav tn-flex tn-flex-col-center tn-flex-row-left\">\r\n <view style=\"text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;width: 100%;\">\r\n <!-- <tn-tabs :list=\"[{name:'智慧云商协'}]\" :current=\"topCurrent\" activeColor=\"#000\" :bold=\"false\"\r\n :fontSize=\"36\"></tn-tabs> -->\r\n <view style=\"text-align: center;font-size: 32rpx;\" @click=\"selectShow = true\">\r\n <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 </view>\r\n </view>\r\n </view>\r\n </tn-nav-bar>\r\n <view :style=\"{paddingTop: vuex_custom_bar_height + 'px'}\">\r\n <view class=\"tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between\" style=\"padding-top: 30rpx;\">\r\n <view class=\"tn-color-gray--dark\"\r\n style=\"width: 100%;margin: 0rpx 30rpx 0 30rpx;border-radius: 100rpx;padding-left: 6rpx;background-color: #ffffff;\"\r\n @click=\"openUrl('/pages/index/search/search')\">\r\n <tn-notice-bar :list=\"searlist\" mode=\"vertical\" leftIconName=\"search\"\r\n :duration=\"6000\"></tn-notice-bar>\r\n </view>\r\n <view class=\"tn-flex\" style=\"margin:0px 30rpx 0rpx 0rpx;\">\r\n <tn-button backgroundColor=\"#ffffff\" fontColor=\"#666666\" shape=\"round\" width=\"140rpx\" height=\"70rpx\">搜索\r\n </tn-button>\r\n\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<view style=\"position: relative;\">-->\r\n <!--\t\t\t\t\t\t<image @click=\"openUrl('/pages/index/my_msg')\" src=\"/static/t2.png\"-->\r\n <!--\t\t\t\t\t\t\tstyle=\"width: 35rpx;height: 35rpx;margin-left: 40rpx;\"></image>-->\r\n <!--\t\t\t\t\t\t<tn-badge v-if=\"msg()>0\" style=\"position: absolute;top: -20rpx;right: -20rpx;\"-->\r\n <!--\t\t\t\t\t\t\tbackgroundColor=\"#E83A30\" fontColor=\"#ffffff\">{{msg()}}</tn-badge>-->\r\n <!--\t\t\t\t\t</view>-->\r\n </view>\r\n </view>\r\n\r\n <swiper class=\"card-swiper\" style=\"height: 365rpx\" current=\"0\" mode=\"dot\" :circular=\"true\" duration=\"500\"\r\n interval=\"8000\"\r\n @change=\"cardSwiper\">\r\n <swiper-item style=\"padding: 0px 28rpx;height: 380rpx\" v-for=\"(item,index) in carousel_list\" :key=\"index\"\r\n :class=\"cardCur==index?'cur':''\">\r\n <video :muted=\"true\" v-if=\"item.type==2\" id=\"myVideo\" :src=\"apiImgUrl+item.image\" :controls=\"false\"\r\n loop autoplay object-fit=\"contain\" style=\"width: 100%;border-radius: 15rpx;height: 100%;\"\r\n @error=\"videoErrorCallback\"></video>\r\n <image v-if=\"item.type==1\" :src=\"apiImgUrl+item.image\" mode=\"aspectFit\"\r\n style=\"width: 100%;height: 380rpx;border-radius: 15rpx;\">\r\n </image>\r\n </swiper-item>\r\n </swiper>\r\n <view class=\"indication\">\r\n <block v-for=\"(item,index) in carousel_list\" :key=\"index\">\r\n <view class=\"spot\" :class=\"cardCur==index?'active':''\"></view>\r\n </block>\r\n </view>\r\n </view>\r\n <view class=\"tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center\" style=\"padding: 0px 28rpx;\">\r\n <view\r\n style=\"position:relative;padding: 20rpx;border-radius: 16rpx;height: 270rpx;width: 100%;background: linear-gradient(275.57deg, rgba(193, 237, 217, 1) 1.39%, rgba(188, 237, 216, 1) 112.49%);\">\r\n <view style=\"font-size: 30rpx\">协会简介</view>\r\n <view style=\"font-size: 22rpx;margin-top: 10rpx\">Association introduction</view>\r\n <image src=\"/static/48098165.png\" style=\"width: 150rpx;height: 150rpx;position: absolute; right: 10rpx;bottom: 0;\"></image>\r\n </view>\r\n <view style=\"width: 100%;margin-left: 20rpx\">\r\n <view\r\n style=\" position:relative;padding: 20rpx;border-radius: 16rpx;height: 130rpx;background: linear-gradient(280.64deg, rgba(251, 236, 198, 1) 0%, rgba(248, 225, 183, 1) 117.05%);\">\r\n <view style=\"font-size: 30rpx\">调查问卷</view>\r\n <view style=\"font-size: 22rpx;margin-top: 10rpx\">Questionnaires</view>\r\n <image src=\"/static/48098160.png\" style=\"width: 90rpx;height: 90rpx;position: absolute; right: 10rpx;bottom: 0;\"></image>\r\n </view>\r\n <view\r\n style=\"position:relative;margin-top: 10rpx;padding: 20rpx;border-radius: 16rpx;height: 130rpx;background: linear-gradient(279.38deg, rgba(246, 217, 197, 1) -5.05%, rgba(245, 209, 189, 1) 121.63%);\">\r\n <view style=\"font-size: 30rpx\">公益捐赠</view>\r\n <view style=\"font-size: 22rpx;margin-top: 10rpx\">Public donations</view>\r\n <image src=\"/static/48098162.png\" style=\"width: 90rpx;height: 90rpx;position: absolute; right: 10rpx;bottom: 0;\"></image>\r\n </view>\r\n </view>\r\n </view>\r\n <view class=\"tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center\" style=\"padding: 0px 28rpx;margin-top: 10rpx\">\r\n <view\r\n style=\"position:relative;padding: 20rpx;border-radius: 16rpx;height: 130rpx;width: 100%;background: linear-gradient(96.63deg, rgba(189, 224, 249, 1) 11.78%, rgba(205, 233, 251, 1) 103.76%);\">\r\n <view style=\"font-size: 30rpx\">协会简介</view>\r\n <view style=\"font-size: 22rpx;margin-top: 10rpx\">Association introduction</view>\r\n <image src=\"/static/48098162.png\" style=\"width: 90rpx;height: 90rpx;position: absolute; right: 10rpx;bottom: 0;\"></image>\r\n </view>\r\n <view style=\"width: 100%;margin-left: 20rpx\">\r\n <view\r\n style=\"position:relative;padding: 20rpx;border-radius: 16rpx;height: 130rpx;background: linear-gradient(96.63deg, rgba(226, 228, 245, 1) 11.78%, rgba(234, 236, 255, 1) 103.76%);\">\r\n <view style=\"font-size: 30rpx\">公益捐赠</view>\r\n <view style=\"font-size: 22rpx;margin-top: 10rpx\">Public donations</view>\r\n <image src=\"/static/48098162.png\" style=\"width: 90rpx;height: 90rpx;position: absolute; right: 10rpx;bottom: 0;\"></image>\r\n </view>\r\n </view>\r\n </view>\r\n <!-- <view class=\"tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center\"-->\r\n <!-- style=\"padding:0px 30rpx 0rpx 30rpx;text-align: center;font-size: 28rpx;\">-->\r\n <!-- <view @click=\"openUrl('/pages/index/tissue')\"-->\r\n <!-- style=\"width: 33%;background: linear-gradient(270deg, #3CBAEA, #6BC7F0);;border-radius: 16rpx;padding:25rpx 20rpx;\">-->\r\n <!-- <view>-->\r\n <!-- <image src=\"/static/c3.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">-->\r\n <!-- </image>-->\r\n <!-- </view>-->\r\n <!-- <view style=\"margin-top: 10rpx;\">-->\r\n <!-- <text style=\"color: #FFF;\">组织架构</text>-->\r\n <!-- </view>-->\r\n <!-- </view>-->\r\n <!-- <view @click=\"openUrl('/pages/index/service')\"-->\r\n <!-- style=\"width: 33%;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 16rpx;padding:25rpx 20rpx;margin-left:10rpx;\">-->\r\n <!-- <view>-->\r\n <!-- <image src=\"/static/c2.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">-->\r\n <!-- </image>-->\r\n <!-- </view>-->\r\n <!-- <view style=\"margin-top: 10rpx;\">-->\r\n <!-- <text style=\"color: #FFF;\">协会活动</text>-->\r\n <!-- </view>-->\r\n <!-- </view>-->\r\n <!-- <view @click=\"openUrl('/pages/index/directory')\"-->\r\n <!-- style=\"width: 33%;background: linear-gradient(270deg, #45B335, #89C33D);border-radius: 16rpx;padding:25rpx 20rpx;margin-left:10rpx;\">-->\r\n <!-- <view>-->\r\n <!-- <image src=\"/static/c1.png\" style=\"width: 35rpx;height: 35rpx;vertical-align: middle;\">-->\r\n <!-- </image>-->\r\n <!-- </view>-->\r\n <!-- <view style=\"margin-top: 10rpx;\">-->\r\n <!-- <text style=\"color: #FFF;\">通讯录</text>-->\r\n <!-- </view>-->\r\n\r\n <!-- </view>-->\r\n <!-- </view>-->\r\n <view @click.stop=\"openUrl('/pages/index/service')\"\r\n class=\"tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center\" style=\"padding: 30rpx;\">\r\n <view style=\"font-size: 36rpx;\">协会活动</view>\r\n <view style=\"color: #808080;\">\r\n <text>更多</text>\r\n <text class=\"tn-icon-right\"></text>\r\n </view>\r\n </view>\r\n <view style=\"padding-bottom: 30rpx;\">\r\n <scroll-view :scroll-x=\"true\" style=\"padding:0rpx 30rpx;white-space: nowrap;\" v-if=\"actList.length>0\">\r\n <view v-for=\"(item,index) in actList\" @click=\"openUrl('/pages/index/event_info?id='+item.id)\"\r\n style=\"position: relative;;display: inline-block;width: 300rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;\">\r\n <view>\r\n <image :src=\"apiImgUrl+item.activity_image\" style=\"width: 350rpx;height: 170rpx;\">\r\n </image>\r\n </view>\r\n <view style=\"padding:10rpx 20rpx;font-weight: 400;min-height: 100rpx;\">\r\n <view class=\"tn-text-ellipsis-2\" style=\"text-align: left;\">\r\n <text>{{ item.activity_name }}</text>\r\n </view>\r\n </view>\r\n <view style=\"position: absolute;top: 10rpx;left: 10rpx;\">\r\n <tn-button v-if=\"item.type=='进行中'\" width=\"80rpx\" height=\"40rpx\" size=\"sm\"\r\n backgroundColor=\"#6BC7F0 \" fontColor=\"tn-color-white\">进行中\r\n </tn-button>\r\n <tn-button v-if=\"item.type=='未开始'\" width=\"80rpx\" height=\"40rpx\" size=\"sm\"\r\n backgroundColor=\"#EE9556 \" fontColor=\"tn-color-white\">预告\r\n </tn-button>\r\n <tn-button v-if=\"item.type=='已结束'\" width=\"80rpx\" height=\"40rpx\" size=\"sm\"\r\n backgroundColor=\"#E12B33 \" fontColor=\"tn-color-white\">已结束\r\n </tn-button>\r\n </view>\r\n </view>\r\n </scroll-view>\r\n <view style=\"background-color: #ffffff;padding: 20rpx;text-align: center\" v-if=\"actList.length==0\">暂无活动\r\n </view>\r\n </view>\r\n <view style=\"background-color: #ffffff;\">\r\n <tn-tabs :list=\"goryList\" :isScroll=\"true\" :activeItemStyle=\"{fontSize:'35rpx',fontWeight:'600'}\"\r\n activeColor=\"#000000\" :current=\"current\" name=\"name\" @change=\"change\" :fontSize=\"28\"></tn-tabs>\r\n </view>\r\n <view style=\"padding:10px 30rpx;padding-bottom: 100rpx;\">\r\n <view v-for=\"(item,index) in news_list\" class=\"tn-flex tn-flex-row-between\"\r\n @click=\"openUrl('/pages/index/new_info?id='+item.news_id)\"\r\n style=\"background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;\">\r\n <view style=\"position:relative;\">\r\n <view class=\"tn-text-ellipsis-2\" style=\"font-size: 28rpx;\">{{ item.news_title }}\r\n </view>\r\n <view class=\"tn-flex tn-flex-row-between\"\r\n style=\"width: 100%;color: #808080;position: absolute; bottom: 0rpx; min-width: 380rpx;overflow: hidden\">\r\n <view>{{ item.name }}</view>\r\n <view>\r\n <text class=\"tn-icon-eye\" style=\"vertical-align: middle;\"></text>\r\n <text style=\"vertical-align: middle;\">{{ item.news_hits }}</text>\r\n </view>\r\n </view>\r\n </view>\r\n <view style=\"margin-left: 20rpx;\" v-if=\"item.news_image\">\r\n <image :src=\"apiImgUrl+item.news_image\" mode=\"aspectFill\"\r\n style=\"width: 240rpx;height: 160rpx;;border-radius: 10rpx;\"></image>\r\n </view>\r\n </view>\r\n </view>\r\n <tn-select v-model=\"selectShow\" mode=\"single\" :list=\"selectList\" @confirm=\"confirm\"></tn-select>\r\n </view>\r\n\r\n</template>\r\n\r\n<script>\r\nimport {\r\n newsGoryList,\r\n activityList,\r\n newsList,\r\n associationIndex,\r\n carouselIndex,\r\n Mailcoent\r\n} from '@/util/api.js';\r\nimport store from '@/store/index.js'\r\n\r\nexport default {\r\n data() {\r\n return {\r\n selectShow: false,\r\n selectList: [],\r\n topCurrent: 0,\r\n searlist: [\r\n '企业家名称/公司名称',\r\n ],\r\n cardCur: 0,\r\n isAndroid: true,\r\n goryList: [],\r\n news_list: [],\r\n actList: [],\r\n carousel_list: [],\r\n current: 0,\r\n page: 1,\r\n size: 10,\r\n gory_id: 0,\r\n type: 1,\r\n HomeTitle: '',\r\n apiImgUrl: this.$store.state.imgUrl\r\n }\r\n },\r\n mounted() {\r\n getApp().getUserLogin((r) => {\r\n console.log('---Login---', r);\r\n })\r\n this.getNewsGoryList();\r\n this.getActivityList();\r\n this.getAssociationIndex();\r\n this.getCarouselIndex();\r\n this.getMsg();\r\n },\r\n methods: {\r\n msg() {\r\n return this.$store.state.msgCount;\r\n },\r\n async getMsg() {\r\n var uid = uni.getStorageSync('uid');\r\n\r\n const res = await Mailcoent({\r\n member_id: uid\r\n });\r\n console.log(res);\r\n if (res.code == 1) {\r\n this.$store.commit('$tStore', {\r\n name: 'msgCount',\r\n value: res.data\r\n })\r\n } else {\r\n this.$store.commit('$tStore', {\r\n name: 'msgCount',\r\n value: 0\r\n })\r\n }\r\n console.log(store.state.msgCount);\r\n },\r\n confirm(d) {\r\n var info = d[0];\r\n store.commit('$tStore', {\r\n name: 'Gid',\r\n value: info.value\r\n })\r\n uni.setStorageSync('Gid', info.value);\r\n this.page = 1;\r\n this.goryList = [];\r\n this.news_list = [];\r\n this.actList = [];\r\n this.carousel_list = [];\r\n this.getNewsGoryList();\r\n this.getActivityList();\r\n this.getAssociationIndex();\r\n this.getCarouselIndex();\r\n //this.$emit('childEvent', '修改后的数据');\r\n },\r\n getAssociationIndex() {\r\n associationIndex()\r\n .then(res => {\r\n console.log(res);\r\n if (res.code == 1) {\r\n var key = res.data;\r\n const transformedSelectList = key.map(item => ({\r\n value: item.id,\r\n label: item.association_name,\r\n icon: item.association_image\r\n }));\r\n const foundNumber = transformedSelectList.find((element) => element.value == store.state\r\n .Gid);\r\n this.HomeTitle = foundNumber.label;\r\n this.selectList = transformedSelectList;\r\n //#ifdef MP-WEIXIN\r\n this.$parent.childEvent(foundNumber);\r\n //#endif\r\n // #ifdef H5\r\n console.log('H5');\r\n this.$parent.$parent.$parent.$parent.childEvent(foundNumber);\r\n // #endif\r\n }\r\n })\r\n .catch(error => {\r\n uni.showToast({\r\n title: error,\r\n icon: 'none',\r\n duration: 2000\r\n });\r\n })\r\n },\r\n getCarouselIndex() {\r\n carouselIndex({\r\n association_id: store.state.Gid,\r\n })\r\n .then(res => {\r\n console.log(res);\r\n if (res.code == 1) {\r\n this.carousel_list = res.data;\r\n }\r\n })\r\n .catch(error => {\r\n uni.showToast({\r\n title: error,\r\n icon: 'none',\r\n duration: 2000\r\n });\r\n })\r\n },\r\n getActivityList() {\r\n activityList({\r\n association_id: store.state.Gid,\r\n page: 1,\r\n size: 5\r\n })\r\n .then(res => {\r\n console.log(res);\r\n if (res.code == 1) {\r\n this.actList = res.data.ret;\r\n } else {\r\n this.actList = [];\r\n }\r\n })\r\n .catch(error => {\r\n uni.showToast({\r\n title: error,\r\n icon: 'none',\r\n duration: 2000\r\n });\r\n })\r\n },\r\n getNewsGoryList() {\r\n newsGoryList({\r\n association_id: store.state.Gid\r\n })\r\n .then(res => {\r\n console.log(res);\r\n if (res.code == 1) {\r\n var key = res.data;\r\n key.unshift({\r\n id: 0,\r\n name: '最新'\r\n });\r\n this.goryList = key;\r\n this.type = 1;\r\n this.gory_id = 0;\r\n this.getNewsList();\r\n }\r\n })\r\n .catch(error => {\r\n uni.showToast({\r\n title: error,\r\n icon: 'none',\r\n duration: 2000\r\n });\r\n })\r\n },\r\n getNewsList() {\r\n newsList({\r\n association_id: store.state.Gid,\r\n type: this.type,\r\n gory_id: this.gory_id,\r\n page: this.page,\r\n size: this.size\r\n })\r\n .then(res => {\r\n console.log(res);\r\n if (res.code == 1) {\r\n this.news_list.push(...res.data.ret);\r\n }\r\n })\r\n .catch(error => {\r\n uni.showToast({\r\n title: error,\r\n icon: 'none',\r\n duration: 2000\r\n });\r\n })\r\n },\r\n cardSwiper(d) {\r\n this.cardCur = d.detail.current;\r\n },\r\n ReachBottom() {\r\n console.log('home');\r\n this.page = this.page + 1;\r\n this.getNewsList();\r\n //this.getIndex();\r\n },\r\n change(e) {\r\n this.current = e;\r\n var info = this.goryList[e];\r\n this.gory_id = info.id;\r\n this.type = e === 0 ? 1 : 0;\r\n this.page = 1;\r\n this.news_list = [];\r\n this.getNewsList();\r\n },\r\n openUrl(url) {\r\n uni.navigateTo({\r\n url: url\r\n })\r\n },\r\n opentab() {\r\n uni.$emit('depId', {\r\n index: 1\r\n })\r\n },\r\n videoErrorCallback: function (e) {\r\n uni.showModal({\r\n content: e.target.errMsg,\r\n showCancel: false\r\n })\r\n },\r\n }\r\n}\r\n</script>\r\n\r\n\r\n<style lang=\"scss\" scoped>\r\n\r\n</style>\r\n"],"sourceRoot":""}