1 line
25 KiB
Plaintext
1 line
25 KiB
Plaintext
{"version":3,"sources":["webpack:///E:/云商会/云商会/pages/index/directory.vue?a4f7","webpack:///E:/云商会/云商会/pages/index/directory.vue?4a64","webpack:///E:/云商会/云商会/pages/index/directory.vue?0921","webpack:///E:/云商会/云商会/pages/index/directory.vue?ee70","uni-app:///pages/index/directory.vue","webpack:///E:/云商会/云商会/pages/index/directory.vue?a2e7","webpack:///E:/云商会/云商会/pages/index/directory.vue?29e6","uni-app:///main.js"],"names":["data","list","topCurrent","tabbarIndex","tabbarItemInfo","scrollViewBasicTop","scrollViewHeight","leftScrollViewTop","rightScrollViewTop","currentTabbarIndex","apiImgUrl","industry_list","leftId","selectShow","HomeTitle","selectList","gid","top","computed","tabbarItemClass","clazz","onLoad","console","methods","getScroll","onload","confirm","getAssociationIndex","then","value","label","catch","uni","title","icon","duration","getIndustryList","association_id","id","industry_name","getAddressList","industry_id","clickClassifyNav","randomBetween","handleLeftScrollView","height","switchClassifyContent","tn","url","goBack","wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACsC;;;AAG9F;AAC+L;AAC/L,gBAAgB,wMAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;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,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,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AClEA;AAAA;AAAA;AAAA;AAAquB,CAAgB,0vBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;AC4FzvB;AAKA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA;EACAA;IACA;MACAC;MACAC;MACAC;MACA;MACAC;MACA;MACAC;MACA;MACAC;MACA;MACAC;MACA;MACAC;MACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAC;MAAA;MACA;QACA;UACA;QACA;UACA;UACA;YACAC;UACA;UACA,kGACA;YACAA;UACA;UACA;QACA;MACA;IACA;EACA;EACAC;IACAC;IACA;MACA;IACA;IACA;IACA;EACA;EACAC;IACAC;MACA;IACA;IACAC;MACA;MACA;MACA;IACA;IACAC;MAEA;MACA;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA,6BACAC;QACAN;QACA;UACA;UACA;YAAA;cACAO;cACAC;YACA;UAAA;UACA;YAAA;UAAA;UACA;UACA;QACA;MACA,GACAC;QACAC;UACAC;UACAC;UACAC;QACA;MACA;IACA;IACAC;MAAA;MACA;QACAC;MACA,GACAT;QACAN;QACA;UACA;UACA;YACAgB;YACAC;UACA;UACA;UACA;QACA;MACA,GACAR;QACAC;UACAC;UACAC;UACAC;QACA;MACA;IACA;IACAK;MAAA;MACA;QACAH;QACAI;MACA,GACAb;QACAN;QACA;UACA;QACA;MACA,GACAS;QACAC;UACAC;UACAC;UACAC;QACA;MACA;IACA;IACAO;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MACA;MACA;IACA;IACA;IACAC;MACA;MACA;QACA,gGACAC;MACA;QACA;MACA;IACA;IACA;IACAC;MAAA;MACA;MACA;QACA;MACA;MACA;IACA;IACAC;MACAf;QACAgB;MACA;IACA;IACAC;MACA;QACAjB;MACA;QACAA;UACAgB;QACA;MAEA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;AC3RA;AAAA;AAAA;AAAA;AAAg5C,CAAgB,62CAAG,EAAC,C;;;;;;;;;;;ACAp6C;AACA,OAAO,KAAU,EAAE,kBAKd;;;;;;;;;;;;;;;;ACNL;AAGA;AACA;AAHA;AACAE,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,kBAAI,CAAC,C","file":"pages/index/directory.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./directory.vue?vue&type=template&id=671ec3f2&scoped=true&\"\nvar renderjs\nimport script from \"./directory.vue?vue&type=script&lang=js&\"\nexport * from \"./directory.vue?vue&type=script&lang=js&\"\nimport style0 from \"./directory.vue?vue&type=style&index=0&id=671ec3f2&lang=scss&scoped=true&\"\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 \"671ec3f2\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/index/directory.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!./directory.vue?vue&type=template&id=671ec3f2&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 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 l0 = _vm.__map(_vm.industry_list, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var m0 = _vm.tabbarItemClass(index)\n return {\n $orig: $orig,\n m0: m0,\n }\n })\n var g0 = _vm.list.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 l0: l0,\n g0: g0,\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!./directory.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!./directory.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\" backTitle=\"\" :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=\"padding-left: 15rpx;\" @click=\"goBack()\">\r\n\t\t\t\t\t<text class=\"tn-icon-left\" style=\"font-size: 40rpx;\"></text>\r\n\t\t\t\t</view> -->\r\n\t\t\t\t<view class=\"tn-margin-top\"\r\n\t\t\t\t\tstyle=\";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;\">\r\n\r\n\t\t\t\t\t<tn-tabs :list=\"[{name:'会员名录'}]\" :current=\"topCurrent\" activeColor=\"#000\" :bold=\"false\"\r\n\t\t\t\t\t\t:fontSize=\"36\"></tn-tabs>\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-col-center tn-flex-row-between\" @click=\"selectShow= true\"\r\n\t\t\t\tstyle=\"padding: 30rpx;\">\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<text>{{HomeTitle}}</text>\r\n\t\t\t\t\t<text class=\"tn-icon-down-triangle\"></text>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view>\r\n\t\t\t\t\t<text>筛选</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"tn-classify__container\">\r\n\t\t\t<view class=\"tn-classify__container__wrap tn-flex tn-flex-nowrap tn-flex-row-around\"\r\n\t\t\t\tstyle=\"height: 100vh;background-color: #EBF4F7;\">\r\n\t\t\t\t<!-- 左边容器 -->\r\n\t\t\t\t<scroll-view class=\"tn-classify__left-box left-width\" scroll-y scroll-with-animation>\r\n\t\t\t\t\t<view v-for=\"(item, index) in industry_list\" :key=\"index\" :id=\"`tabbar_item_${index}`\"\r\n\t\t\t\t\t\tstyle=\"padding-left: 20rpx;\" class=\"tn-classify__tabbar__item tn-flex tn-flex-col-center\"\r\n\t\t\t\t\t\t:class=\"[tabbarItemClass(index)]\" @tap.stop=\"clickClassifyNav(index)\">\r\n\t\t\t\t\t\t<view class=\"tn-classify__tabbar__item__title\">{{ item.industry_name }}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</scroll-view>\r\n\r\n\t\t\t\t<!-- 右边容器 -->\r\n\t\t\t\t<scroll-view class=\"tn-classify__right-box\" @scroll=\"getScroll\" :scroll-top=\"top\" scroll-y\r\n\t\t\t\t\tstyle=\"width: 72%\">\r\n\t\t\t\t\t<block>\r\n\t\t\t\t\t\t<view class=\"tn-classify__content\">\r\n\t\t\t\t\t\t\t<!-- 分类内容子栏目 -->\r\n\t\t\t\t\t\t\t<view class=\"tn-classify__content__sub-classify__content \">\r\n\t\t\t\t\t\t\t\t<view v-for=\"(item,index) in list\" :key=\"index\">\r\n\t\t\t\t\t\t\t\t\t<view v-if=\"item.neirong\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"font-weight: 300;;background-color: #EBF4F7;color:#4AA2EF;width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;\">\r\n\t\t\t\t\t\t\t\t\t\t{{item.position_name}}\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t<view v-if=\"item.neirong\" v-for=\"(v,k) in item.neirong\"\r\n\t\t\t\t\t\t\t\t\t\t@click=\"tn('/pages/index/my_card?id='+v.member_id)\"\r\n\t\t\t\t\t\t\t\t\t\tclass=\"tn-classify__content__sub-classify__content__item tn-flex tn-flex-center tn-flex-col-center\">\r\n\t\t\t\t\t\t\t\t\t\t<!-- 标题,有需要可以显示出来 -->\r\n\t\t\t\t\t\t\t\t\t\t<view style=\"width: 100rpx;height: 100rpx\">\r\n\t\t\t\t\t\t\t\t\t\t\t<image :src=\"apiImgUrl+v.photo_image\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"width: 100rpx;height: 100rpx;border-radius:50%;\">\r\n\t\t\t\t\t\t\t\t\t\t\t</image>\r\n\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t<view style=\"margin-left: 20rpx;\">\r\n\t\t\t\t\t\t\t\t\t\t\t<view style=\"font-size: 28rpx;\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<text>{{v.nikename}}</text>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<text style=\"margin-left: 50rpx;\">{{v.nation}}</text>\r\n\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t<view class=\"tn-text-ellipsis-2\"\r\n\t\t\t\t\t\t\t\t\t\t\t\tstyle=\"font-size: 24rpx;margin-top: 10rpx;\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<text>{{v.enterprise_name==null?'':v.enterprise_name}}</text>\r\n\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view v-if=\"list.length==0\" style=\"text-align: center;padding: 20rpx\">\r\n\t\t\t\t\t\t\t\t\t暂无\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</block>\r\n\t\t\t\t</scroll-view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!--\t\t<view @click=\"tn('/pages/index/apply_in')\" style=\"line-height: 40rpx;text-align: center;position: fixed;bottom:15%;right: 20rpx;width: 120rpx;height: 120rpx;border-radius: 50%;background: linear-gradient(270deg, #EE7E45, #EE9657);-->\r\n\t\t<!--box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);\">-->\r\n\t\t<!--\t\t\t<view style=\"color: #fff;letter-spacing: 2rpx;padding: 20rpx;font-size: 32rpx;\">申请入会-->\r\n\t\t<!--\t\t\t</view>-->\r\n\t\t<!--\t\t</view>-->\r\n\t\t<tn-select :safeAreaInsetBottom=\"true\" v-model=\"selectShow\" mode=\"single\" :list=\"selectList\"\r\n\t\t\t@confirm=\"confirm\"></tn-select>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport {\r\n\t\taddressList,\r\n\t\tassociationIndex,\r\n\t\tnewIndustryIndex\r\n\t} from '@/util/api.js';\r\n\timport store from \"@/store\";\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tlist: [],\r\n\t\t\t\ttopCurrent: 0,\r\n\t\t\t\ttabbarIndex: 0,\r\n\t\t\t\t// 分类菜单item的信息\r\n\t\t\t\ttabbarItemInfo: [],\r\n\t\t\t\t// scrollView的top值\r\n\t\t\t\tscrollViewBasicTop: 0,\r\n\t\t\t\t// scrollView的高度\r\n\t\t\t\tscrollViewHeight: 0,\r\n\t\t\t\t// 左边scrollView的滚动高度\r\n\t\t\t\tleftScrollViewTop: 0,\r\n\t\t\t\t// 右边scrollView的滚动高度\r\n\t\t\t\trightScrollViewTop: 0,\r\n\t\t\t\t// 当前选中的tabbar序号\r\n\t\t\t\tcurrentTabbarIndex: 0,\r\n\t\t\t\tapiImgUrl: this.$store.state.imgUrl,\r\n\t\t\t\tindustry_list: [],\r\n\t\t\t\tleftId: 0,\r\n\t\t\t\tselectShow: false,\r\n\t\t\t\tHomeTitle: '',\r\n\t\t\t\tselectList: [],\r\n\t\t\t\tgid: store.state.Gid,\r\n\t\t\t\ttop: 0,\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\ttabbarItemClass() {\r\n\t\t\t\treturn index => {\r\n\t\t\t\t\tif (index === this.currentTabbarIndex) {\r\n\t\t\t\t\t\treturn 'tn-classify__tabbar__item--active tn-bg-white'\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlet clazz = ''\r\n\t\t\t\t\t\tif (this.currentTabbarIndex > 0 && index === this.currentTabbarIndex - 1) {\r\n\t\t\t\t\t\t\tclazz += ' tn-classify__tabbar__item--active--prev'\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (this.currentTabbarIndex < this.industry_list.length && index === this.currentTabbarIndex +\r\n\t\t\t\t\t\t\t1) {\r\n\t\t\t\t\t\t\tclazz += ' tn-classify__tabbar__item--active--next'\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn clazz\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonLoad(d) {\r\n\t\t\tconsole.log(d.id);\r\n\t\t\tif (typeof(d.id) != 'undefined') {\r\n\t\t\t\tthis.gid = d.id;\r\n\t\t\t}\r\n\t\t\tthis.getIndustryList();\r\n\t\t\tthis.getAssociationIndex();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tgetScroll(d) {\r\n\t\t\t\tthis.top = d.scrollTop;\r\n\t\t\t},\r\n\t\t\tonload() {\r\n\t\t\t\tthis.gid = store.state.Gid;\r\n\t\t\t\tthis.getIndustryList();\r\n\t\t\t\tthis.getAssociationIndex();\r\n\t\t\t},\r\n\t\t\tconfirm(d) {\r\n\r\n\t\t\t\tvar info = d[0];\r\n\t\t\t\tthis.list = [];\r\n\t\t\t\tthis.gid = info.value;\r\n\t\t\t\tthis.getAssociationIndex();\r\n\t\t\t\tthis.getIndustryList();\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\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\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 == this.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\t\t\t\t\t\t\ticon: '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\tgetIndustryList() {\r\n\t\t\t\tnewIndustryIndex({\r\n\t\t\t\t\t\tassociation_id: this.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\tthis.industry_list = res.data;\r\n\t\t\t\t\t\t\tthis.industry_list.push({\r\n\t\t\t\t\t\t\t\tid: 0,\r\n\t\t\t\t\t\t\t\tindustry_name: '其他行业'\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\tthis.leftId = res.data[0].id;\r\n\t\t\t\t\t\t\tthis.getAddressList();\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\t\t\t\t\t\t\ticon: '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\tgetAddressList() {\r\n\t\t\t\taddressList({\r\n\t\t\t\t\t\tassociation_id: this.gid,\r\n\t\t\t\t\t\tindustry_id: this.leftId\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.list = 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\t\t\t\t\t\t\ticon: '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\tclickClassifyNav(index) {\r\n\t\t\t\tthis.currentTabbarIndex = index;\r\n\t\t\t\tthis.leftId = this.industry_list[index].id;\r\n\t\t\t\tthis.list = [];\r\n\t\t\t\tthis.top = this.randomBetween();\r\n\t\t\t\tthis.getAddressList();\r\n\t\t\t\t//this.handleLeftScrollView(index)\r\n\t\t\t\t//this.switchClassifyContent();\r\n\t\t\t},\r\n\t\t\trandomBetween() {\r\n\t\t\t\tlet baseRandom = Math.random() * (0.99999 - 0.00001) + 0.00001;\r\n\t\t\t\treturn baseRandom.toFixed(5); //\r\n\t\t\t},\r\n\t\t\t// 点击分类后,处理scrollView滚动到居中位置\r\n\t\t\thandleLeftScrollView(index) {\r\n\t\t\t\tconst tabbarItemTop = this.tabbarItemInfo[index].top - this.scrollViewBasicTop\r\n\t\t\t\tif (tabbarItemTop > this.scrollViewHeight / 2) {\r\n\t\t\t\t\tthis.leftScrollViewTop = tabbarItemTop - (this.scrollViewHeight / 2) + this.tabbarItemInfo[index]\r\n\t\t\t\t\t\t.height\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.leftScrollViewTop = 0\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 切换对应分类的数据\r\n\t\t\tswitchClassifyContent() {\r\n\t\t\t\tthis.rightScrollViewTop = 1\r\n\t\t\t\tthis.$nextTick(() => {\r\n\t\t\t\t\tthis.rightScrollViewTop = 0\r\n\t\t\t\t})\r\n\t\t\t\t//this.classifyContent.subClassify[0].title = this.tabbar[this.currentTabbarIndex]\r\n\t\t\t},\r\n\t\t\ttn(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\tgoBack() {\r\n\t\t\t\tif (getCurrentPages().length > 1) {\r\n\t\t\t\t\tuni.navigateBack()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.redirectTo({\r\n\t\t\t\t\t\turl: '/pages/index/index'\r\n\t\t\t\t\t})\r\n\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\t/* 自定义导航栏内容 start */\r\n\t.custom-nav {\r\n\t\theight: 100%;\r\n\r\n\t\t&__back {\r\n\t\t\tmargin: auto 30rpx;\r\n\t\t\tmargin-right: 10rpx;\r\n\t\t\tflex-basis: 5%;\r\n\t\t\twidth: 100rpx;\r\n\t\t\tposition: absolute;\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t.left-width {\r\n\t\tflex-basis: 28%;\r\n\t}\r\n\r\n\t/* 自定义导航栏内容 end */\r\n\t.tn-classify {\r\n\r\n\t\t/* 搜索栏 start */\r\n\r\n\r\n\t\t/* 搜索栏 end */\r\n\r\n\t\t/* 分类列表和内容 strat */\r\n\t\t&__container {}\r\n\r\n\t\t&__left-box {}\r\n\r\n\t\t&__right-box {\r\n\t\t\tbackground-color: #FFFFFF;\r\n\t\t}\r\n\r\n\t\t/* 分类列表和内容 end */\r\n\r\n\t\t/* 侧边导航 start */\r\n\t\t&__tabbar {\r\n\t\t\t&__item {\r\n\t\t\t\theight: 90rpx;\r\n\r\n\t\t\t\t&:first-child {\r\n\t\t\t\t\tborder-top-right-radius: 0rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&:last-child {\r\n\t\t\t\t\tborder-bottom-right-radius: 0rpx;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&--active {\r\n\t\t\t\t\tbackground-color: #FFFFFF;\r\n\t\t\t\t\tposition: relative;\r\n\t\t\t\t\t// font-weight: bold;\r\n\t\t\t\t\tcolor: #4AA2EF;\r\n\r\n\t\t\t\t\t&--prev {\r\n\t\t\t\t\t\tborder-bottom-right-radius: 26rpx;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t&--next {\r\n\t\t\t\t\t\tborder-top-right-radius: 26rpx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* 侧边导航 end */\r\n\r\n\t\t/* 分类内容 start */\r\n\t\t&__content {\r\n\t\t\tmargin: 18rpx;\r\n\r\n\t\t\t/* 推荐商品 start */\r\n\t\t\t&__recomm {\r\n\t\t\t\tmargin-bottom: 40rpx;\r\n\r\n\t\t\t\t&__swiper {}\r\n\t\t\t}\r\n\r\n\t\t\t/* 推荐商品 end */\r\n\r\n\t\t\t/* 子栏目 start */\r\n\t\t\t&__sub-classify {\r\n\t\t\t\tmargin-bottom: 20rpx;\r\n\t\t\t\tpadding-bottom: 40rpx;\r\n\r\n\t\t\t\t&--title {\r\n\t\t\t\t\tfont-weight: bold;\r\n\t\t\t\t\tmargin-bottom: 18rpx;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\t&__content {\r\n\r\n\t\t\t\t\t&__item {\r\n\t\t\t\t\t\tpadding: 20rpx;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* 子栏目 end */\r\n\t\t}\r\n\r\n\t\t/* 分类内容 end */\r\n\t}\r\n</style>","import mod from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.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--8-oneOf-1-2!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!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!./directory.vue?vue&type=style&index=0&id=671ec3f2&lang=scss&scoped=true&\"; export default mod; export * from \"-!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.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--8-oneOf-1-2!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\HBuilderX.3.5.3.20220729\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!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!./directory.vue?vue&type=style&index=0&id=671ec3f2&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1716281256102\n var cssReload = require(\"F:/HBuilderX.3.5.3.20220729/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"/\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n ","import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/directory.vue'\ncreatePage(Page)"],"sourceRoot":""} |