hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/pages/tabbar/pageHome/pageHome.js.map

1 line
31 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/pagehome/pagehome.vue?b867","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/pagehome/pagehome.vue?eded","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/pagehome/pagehome.vue?2d61","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/pagehome/pagehome.vue?31d8","uni-app:///pages/tabbar/pagehome/pagehome.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4G,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,iBAAD,CAAV,C;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAqH;AACrH;AAC4D;AACL;;;AAGvD;AACsL;AACtL,gBAAgB,uLAAU;AAC1B,EAAE,8EAAM;AACR,EAAE,mFAAM;AACR,EAAE,4FAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,uFAAU;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;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAosB,CAAgB,oqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC4FxtB,sE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAHA,O,CAAA,G,YAAA,G,wlBAIA,EACA,cACA,kBADA,EAEA,sBAFA,EADA,EAKA,IALA,kBAKA,CACA,SACA,wDADA,EAEA,0CAFA,EAGA,aAHA,EAGA;AACA,qBAJA,EAIA;AACA;AAAA,OALA,EAOA;AAAA,OAPA,EASA,WATA,EASA;AACA;AAAA,OAVA,EAYA;AAAA,OAZA,EAcA,cAdA,EAeA,aAfA,EAgBA,OAhBA,EAiBA,QAjBA,EAkBA,SAlBA,EAkBA;AACA,kBAnBA,EAoBA,YApBA,EAqBA,gBArBA,EAsBA,aAtBA,EAuBA,aAvBA,EAuBA;AACA,iBAxBA,EAwBA;AACA,gBAzBA,EA0BA,UA1BA,EA2BA,YA3BA,EA4BA,WA5BA,EA6BA,gBA7BA,EA8BA,WA9BA,EA+BA,QA/BA,EAgCA,cAhCA,EAgCA;AACA,oBAjCA,EAkCA,sBAlCA,EAkCA;AACA,0CAnCA,EAoCA,sCApCA,EAqCA,iBArCA,GAuCA,CA7CA,EA8CA,YA9CA,wBA8CA,CA9CA,EA8CA,CACA,+DACA,CAhDA,EAiDA,aAjDA,2BAiDA;AACA,6CACA,YACA,eAFA,CAEA;AACA,KAHA,MAGA,CACA,uEACA,oBACA,CACA,CAzDA,EA0DA,MA1DA,oBA0DA,CACA,wBACA,CA5DA,EA6DA,QA7DA,sBA6DA,CACA,wBACA,CA/DA,EAgEA,MAhEA,oBAgEA,CACA,aACA,gBACA,8BACA,eACA,IADA,EACA;AACA,6BAFA,CAEA;AAFA,MAIA,oCACA,2EACA,8BACA,6BACA,CACA,eAbA,CAaA;AACA,2BACA,CA/EA,EAgFA,iBAhFA,6BAgFA,GAhFA,EAgFA,CACA,cACA,eACA,IADA,EACA;AACA,6BAFA,CAEA;AAFA,MAIA,oCACA,iBACA,eADA,EACA;AACA,oGAFA,CAEA;AAFA,MAIA,gBACA,CA5FA,EA6FA,MA7FA,kBA6FA,OA7FA,EA6FA,kBACA,oEACA,sBACA,CAFA,MAEA,6BACA,wEACA,YACA,kBADA,EAEA,gCACA,eACA,cADA,EAEA,sBAFA,CAEA;AAFA,YAIA,8BACA,0GACA,CATA,IAWA,CAbA,MAaA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAJA,EAIA,IAJA;AAKA;AACA;AACA,oBA7BA,CA6BA;AACA;AACA,yCA/BA,CA+BA;AACA;AACA;AACA;AACA;AACA,KAHA,EAGA,IAHA;AAIA;AACA,GAnIA;AAoIA;AACA,WADA,mBACA,MADA,EACA;AACA;AACA;AACA,0BADA;AAEA;AACA;AACA,0BADA;AAEA,iDAFA,EAEA;AACA,iDAHA;AAIA,yCAJA;;AAMA;AACA;AACA,SAXA;;AAaA,KAhBA;AAiBA,iBAjBA,2BAiBA;AACA;AACA;AACA;AACA;AACA;AACA,SAJA,MAIA;AACA;AACA;AACA,OARA;AASA,KA3BA;AA4BA,UA5BA,oBA4BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OARA;AASA,KAtCA;AAuCA,aAvCA,uBAuCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0CADA;;AAGA,WAJA,EAIA,IAJA;AAKA;AACA;AACA;AACA;AACA;AACA,uCADA;;AAGA,WAJA,EAIA,IAJA;AAKA;AACA,OAlBA;AAmBA,KA3DA;AA4DA,WA5DA,qBA4DA;AACA;AACA;AACA,KA/DA;AAgEA,YAhEA,sBAgEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CADA;AAEA,6BAFA;AAGA,gCAHA;AAIA,+CAJA;;AAMA;AACA,aAVA;AAWA;AACA;AACA,OAhBA;AAiBA,KAlFA;AAmFA,YAnFA,sBAmFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WATA,MASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAnBA;;AAqBA,KAzGA;AA0GA,WA1GA,qBA0GA;AACA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KA/GA;AAgHA,SAhHA,mBAgHA;AACA;AACA,KAlHA;AAmHA,aAnHA,qBAmHA,KAnHA,EAmHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBADA;;AAGA,SARA,MAQA;AACA;AACA,KAhIA;AAiIA,YAjIA,sBAiIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA;AAIA;AACA;AACA,OAVA,EAUA,mBAVA;AAWA,KA7IA;AA8IA,cA9IA,wBA8IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gDADA;AAEA,gCAFA;AAGA,kCAHA;;AAKA;AACA,eAPA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,wDADA;AAEA,gEAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eA1BA;AA2BA;AACA;AACA;AACA;AACA;AACA,0DADA;AAEA,wCAFA;;AAIA;AACA,0DADA;AAEA,wCAFA;;AAIA;AACA,0DADA;AAEA,wCAFA;;AAIA;AACA;AACA;AACA;AACA;AACA,OAhEA,EAgEA,mBAhEA;AAiEA,KAhNA;AAiNA,WAjNA,qBAiNA;AACA;AACA,iCADA,EACA;AACA,uBAFA;AAGA,uBAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA,iCAFA;AAGA,mCAHA;;AAKA;AACA,aAPA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CADA,EACA;AACA,2BAFA;AAGA,+CAHA,EAGA;AACA,uCAJA,EAIA;AACA,iCALA,EAKA;AACA,oDANA,EAMA;AACA,iDAPA,EAOA;AACA,iCARA,EAQA;AACA,sCATA,EASA;AACA,6DAVA,EAUA;AACA,iDAXA,EAWA;AACA,oDAZA,CAYA;AAZA;AAcA;AACA,aAlBA;AAmBA;AACA;AACA;AACA,OAzCA,EAyCA,mBAzCA;AA0CA,KAjQA;AAkQA,cAlQA,sBAkQA,CAlQA,EAkQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAzQA;AA0QA,aA1QA,qBA0QA,CA1QA,EA0QA;AACA;AACA;AACA;AACA;AACA,KA/QA;AAgRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aA1SA,qBA0SA,KA1SA,EA0SA;AACA;AACA;AACA;AACA;AACA;AACA,4CADA;;AAGA,WAJA,MAIA;AACA;AACA;AACA,SARA,MAQA;AACA;AACA,KAvTA;AAwTA,gBAxTA,wBAwTA,CAxTA,EAwTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA/TA;AAgUA,WAhUA,qBAgUA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KArUA;AAsUA,YAtUA,sBAsUA;AACA;AACA;AACA;AACA;AACA;AACA,2EADA;;AAGA,SAJA,MAIA;AACA;AACA,KAhVA;AAiVA,cAjVA,sBAiVA,KAjVA,EAiVA;AACA;AACA;AACA;AACA;AACA,qFADA;;AAGA,SAJA,MAIA;AACA;AACA,KA1VA,EApIA,E","file":"pages/tabbar/pagehome/pagehome.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/tabbar/pagehome/pagehome.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./pagehome.vue?vue&type=template&id=557b89f7&\"\nvar renderjs\nimport script from \"./pagehome.vue?vue&type=script&lang=js&\"\nexport * from \"./pagehome.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../HbuilderX/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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/tabbar/pagehome/pagehome.vue\"\nexport default component.exports","export * from \"-!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pagehome.vue?vue&type=template&id=557b89f7&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pagehome.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./pagehome.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<view class=\"status-box statusHNH\">\r\n\t\t <view :style=\"{height:statusBarHeight+'px',background:publicColor}\"></view>\r\n\t\t <view class=\"status-nav\" :style=\"{background:publicColor}\">\r\n\t\t <!-- 标题 -->\r\n\t\t\t\t<view class=\"tab-title tcenter\" style=\"color: #FFFFFF;\">首页<text v-if=\"!isNet\" class=\"mar-z20\">(正在尝试连接网络...)</text></view>\r\n\t\t </view>\r\n\t\t</view>\r\n\t\t<template v-if=\"isNet\">\r\n\t\t\t<!-- <status-nav :titleVal=\"'首页'\" :backgroudColor=\"publicColor\" :tabcolor=\"'#FFFFFF'\" :statusBack=\"false\" :statusTitle=\"true\"></status-nav> -->\r\n\t\t\t<!-- 输入框 -->\r\n\t\t\t<view class=\"input-box posiszy\" :style=\"{top: statusHNH+'px',background:publicColor}\" style=\"height: 60px;display: flex;align-items: center;\">\r\n\t\t\t\t<view class=\"disac width100\">\r\n\t\t\t\t\t<image class=\"searchImg flexs\" src=\"/static/public/search.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t<!-- 输入框 -->\r\n\t\t\t\t\t<input @confirm=\"searchEv\" class=\"width100 fon34\" type=\"text\" v-model=\"searchVal\" placeholder=\"请输入问题/病种/医生姓名\"/>\r\n\t\t\t\t\t<!-- 竖线 -->\r\n\t\t\t\t\t<view class=\"linev\"></view>\r\n\t\t\t\t\t<!-- 搜索 -->\r\n\t\t\t\t\t<view @tap=\"searchEv\" class=\"searchT flexs fon34\" :style=\"{color:publicColor}\">搜索</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"pad-x180\">\r\n\t\t\t\t<!-- 自定义轮播 -->\r\n\t\t\t\t<view :style=\"{marginTop: (statusHNH+60)+'px'}\">\r\n\t\t\t\t\t<swiper-pu :bannerList=\"bannerList\" :isplay=\"isAutoPlay\"></swiper-pu>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 宫格 -->\r\n\t\t\t\t<view v-if=\"gonggList.length>1\" class=\"mar-zy30 bacf radius10 pad-s25 mar-s10 disac fw\">\r\n\t\t\t\t\t<view class=\"disac fc gongg-box mar-x25\" style=\"width: 25%;\" @tap=\"chooseGon(indexgg)\" v-for=\"(itemgg,indexgg) in gonggList\" :key=\"indexgg\">\r\n\t\t\t\t\t\t<view class=\"img-box\">\r\n\t\t\t\t\t\t\t<image :src=\"itemgg.src\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"fon24\">{{itemgg.title}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 发问 -->\r\n\t\t\t\t<view class=\"mar-zy30 mar-sx20 disjb\">\r\n\t\t\t\t\t<image class=\"flexs mar-y20 radius30 fawen-img\" @tap=\"tapChoose(0)\" :src=\"gaoone.imgSrc\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t<view class=\"disjb fc width100\">\r\n\t\t\t\t\t\t<image class=\"radius30 width100 fawen-itemImg\" @tap=\"tapChoose(1)\" :src=\"gaotwo.imgSrc\" mode=\"\"></image>\r\n\t\t\t\t\t\t<image class=\"radius30 width100 fawen-itemImg\" @tap=\"tapChoose(2)\" :src=\"gaothree.imgSrc\" mode=\"\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 热门搜索 -->\r\n\t\t\t\t<view v-if=\"isLoading\" class=\"mar-zy30 mar-s50\">\r\n\t\t\t\t\t<view class=\"col2c fon36 bold mar-x36\">热门搜索</view>\r\n\t\t\t\t\t<view class=\"bacf fon24 disac fw radius20 pad-zy20 pad-s20\">\r\n\t\t\t\t\t\t<view @tap=\"chooseReEv(indexf)\" v-for=\"(itemf,indexf) in fwList\" :key=\"indexf\" class=\"disac radius10 mar-x20 reitem-box\">\r\n\t\t\t\t\t\t\t<image src=\"/static/public/hot.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t\t<view class=\"\">{{itemf.title}}</view>\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<!-- 恒美小课堂 -->\r\n\t\t\t\t<view v-if=\"isLoading\" class=\"mar-zy30 mar-s40\">\r\n\t\t\t\t\t<view class=\"col2c fon36 bold\">恒美小课堂</view>\r\n\t\t\t\t\t<!-- 自定义二级分类 -->\r\n\t\t\t\t\t<view class=\"mar-s50 mar-x30\">\r\n\t\t\t\t\t\t<cate-pu :activeb=\"publicColor\" :newcateList=\"ktList\" :isMinW=\"true\" :newCurrent=\"newCurrent*1\" @choosecateEv=\"choosecateEv\" :newbmo=\"'#E0E0E0'\"></cate-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- 列表 -->\r\n\t\t\t\t\t<!-- <wfalls-flow @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"dataList\" ref=\"wfalls\"></wfalls-flow> -->\r\n\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"dataList\"></list-pu>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</template>\r\n\t\t<template v-else>\r\n\t\t\t<view class=\"disjcac fc\" style=\"height: 100vh;\">\r\n\t\t\t\t<view class=\"fon24 col3\">{{wuNet}}<text @tap=\"refresh\" class=\"mar-z20 pcol\">刷新</text></view>\r\n\t\t\t</view>\r\n\t\t</template>\r\n\t\t<!-- 底部tab -->\r\n\t\t<foot-tab :titleList=\"titleList\" :imgList=\"imgList\"></foot-tab> \r\n\t\t<!-- 返回顶部 -->\r\n\t\t<!-- <back-top :showTop=\"showTop\" @backTop=\"backTop\"></back-top> -->\r\n\t\t<!-- 底部客服 -->\r\n\t\t<!-- <public-customer></public-customer> -->\r\n\t\t<!-- 弹框优惠券 -->\r\n\t\t<view class=\"home-quan-box\" v-if=\"isQuan\">\r\n\t\t\t<image @tap=\"recerveEv\" :src=\"quanImg\" mode=\"aspectFill\"></image>\r\n\t\t\t<image @tap=\"closeEv\" src=\"/static/public/closequan.png\" mode=\"\"></image>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\tconst {log} = console;\r\n\timport swiperPu from '@/components/swiper-pu.vue';\r\n\timport wfallsFlow from '@/components/wfalls-flow'\r\n\timport {collectionEV,cancleCollectionEV,checkBanner} from '@/jsFile/publicAPI.js';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tswiperPu,\r\n\t\t\twfallsFlow\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusBarHeight:uni.getSystemInfoSync().statusBarHeight,\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tsearchVal:'',//输入框的值\r\n\t\t\t\tpublicColor:'',//主题颜色\r\n\t\t\t\tgonggList:[//九宫格列表\r\n\t\t\t\t],\r\n\t\t\t\tfwList:[//热搜关键词\r\n\t\t\t\t],\r\n\t\t\t\tkcurrent:0,//默认选中第一项\r\n\t\t\t\tktList:[//恒美小课堂\r\n\t\t\t\t],\r\n\t\t\t\tdataList:[//小课堂数据列表\r\n\t\t\t\t],\r\n\t\t\t\tshowTop:false,\r\n\t\t\t\tnewCurrent:0,\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:10,\r\n\t\t\t\ttotal:'',//总数\r\n\t\t\t\tisZanw:true,\r\n\t\t\t\tcourse_id:0,\r\n\t\t\t\tisLoading:false,\r\n\t\t\t\tisShowT:true,\r\n\t\t\t\ttitleList:[],//底部导航文字\r\n\t\t\t\timgList:[],//底部导航图标\r\n\t\t\t\tgaoone:{},\r\n\t\t\t\tgaotwo:{},\r\n\t\t\t\tgaothree:{},\r\n\t\t\t\tisNet:true,\r\n\t\t\t\twuNet:'当前无网络连接',\r\n\t\t\t\trefTime:'',\r\n\t\t\t\treNum:0,\r\n\t\t\t\tbannerList:[],//轮播图\r\n\t\t\t\tjieDuan:false,\r\n\t\t\t\tisNewRenderDone:false ,//锁的作用\r\n\t\t\t\tisQuan:uni.getStorageSync('isQuan'),\r\n\t\t\t\tquanImg:uni.getStorageSync('quanImg'),\r\n\t\t\t\tisAutoPlay:false\r\n\t\t\t}\r\n\t\t},\r\n\t\tonPageScroll(e) {\r\n\t\t e.scrollTop > 360 ? this.showTop = true : this.showTop = false\r\n\t\t},\r\n\t\tonReachBottom() {//触底事件\r\n\t\t\tif(this.total!=this.dataList.length){\r\n\t\t\t\tthis.page++\r\n\t\t\t\tthis.checkKT()//调用自主预约列表事件\r\n\t\t\t} else {\r\n\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)\r\n\t\t\t\tthis.isZanw = false\r\n\t\t\t}\r\n\t\t},\r\n\t\tonHide() {\r\n\t\t\tthis.isAutoPlay = false;\r\n\t\t},\r\n\t\tonUnload() {\r\n\t\t\tthis.isAutoPlay = false;\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tlog('输出的解构')\r\n\t\t\tthis.checkNet()\r\n\t\t\tthis.$toolAll.tools.isLogin()\r\n\t\t\tlet maiOjb = {\r\n\t\t\t\te:6,//进入首页\r\n\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t}\r\n\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t\tif(uni.getStorageSync('token')!='' && uni.getStorageSync('chu')=='') {\r\n\t\t\t\tthis.$toolAll.tools.daoTime()\r\n\t\t\t\tuni.setStorageSync('chu',1)\r\n\t\t\t}\r\n\t\t\tthis.checkKT()//恒美课堂列表\r\n\t\t\tthis.isAutoPlay = true;\r\n\t\t},\r\n\t\tonShareAppMessage(res) {\r\n\t\t var ya = this;\r\n\t\t\tlet maiOjb = {\r\n\t\t\t\te:6,//内容分享\r\n\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t}\r\n\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t\tvar shareObj = {\r\n\t\t    \ttitle: '成都恒美毛发', // 默认是小程序的名称(可以写slogan等)\r\n\t\t    \tpath: `/pages/tabbar/pagehome/pagehome?invite_code=${uni.getStorageSync('invite_code')}` // 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t \t};\r\n\t\t  return shareObj;\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tif(options.source_code!='' && options.source_code!=undefined){\r\n\t\t\t\tthis.loginEv(options);\r\n\t\t\t} else if(options.q!=undefined){\r\n\t\t\t\tlet newInvite = options.q.slice(options.q.indexOf('invite_code%')+14);\r\n\t\t\t\tuni.login({\r\n\t\t\t\t\tprovider: 'weixin',\r\n\t\t\t\t\tsuccess: (res)=> {\r\n\t\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\t\tcode:res.code,\r\n\t\t\t\t\t\t\tinvite_code:newInvite,//用户邀请码\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tconsole.log(newInvite,'邀请码');\r\n\t\t\t\t\t\tthis.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})\r\n\t\t\t\t\t},\r\n\t\t\t\t});\r\n\t\t\t} else if(options.invite_code!='' && options.invite_code!=undefined){\r\n\t\t\t\tthis.loginEv(options);\r\n\t\t\t} else {\r\n\t\t\t\tthis.$toolAll.tools.overdue()\r\n\t\t\t}\r\n\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\tquery.select('.statusHNH').boundingClientRect((rect) => {\r\n\t\t\t\t// log('状态栏+标题栏:',rect.height);\r\n\t\t\t\tuni.setStorageSync('statusHNH',rect.height)\r\n\t\t\t\tthis.statusHNH = rect.height\r\n\t\t\t}).exec()\r\n\t\t\tthis.checkBCate();\r\n\t\t\tthis.checkKey();\r\n\t\t\tthis.checkSwi();//查询轮播图\r\n\t\t\t// this.checkBanner()//调用轮播图查询事件\r\n\t\t\tthis.$toolAll.tools.buriedPointAll();//查询需要埋点的事件id\r\n\t\t\t// this.checkQ();\r\n\t\t\tsetTimeout(()=>{\r\n\t\t\t\tthis.quanImg= uni.getStorageSync('quanImg');\r\n\t\t\t\tthis.quanId = uni.getStorageSync('quanId');\r\n\t\t\t},3000)\r\n\t\t\tthis.checkUserInfo();\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tloginEv(option){\r\n\t\t\t\tconsole.log(option,'option');\r\n\t\t\t\tuni.login({\r\n\t\t\t\t\tprovider: 'weixin',\r\n\t\t\t\t\tsuccess: (res)=> {\r\n\t\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\t\tcode:res.code,\r\n\t\t\t\t\t\t\tinvite_code:option.invite_code || '',//用户邀请码\r\n\t\t\t\t\t\t\tsource_code:option.source_code || '',\r\n\t\t\t\t\t\t\tchannel:option.channel || ''\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tconsole.log(option.invite_code);\r\n\t\t\t\t\t\tthis.$requst.post('user/login',params).then(res => {console.log('调用成功');},error => {})\r\n\t\t\t\t\t},\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tcheckUserInfo(){\r\n\t\t\t\tthis.$requst.post('user/info').then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(res.data.phone_active!=0){\r\n\t\t\t\t\t\t\tuni.setStorageSync('phone_active',res.data.phone_active);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.$toolAll.tools.isLogin()\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcheckQ(){//查询优惠券\r\n\t\t\t\tthis.$requst.post('user/home-coupon').then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(res.data.has_coupon==1){\r\n\t\t\t\t\t\t\tthis.isQuan = true;\r\n\t\t\t\t\t\t\tthis.quanImg = this.$http + res.data.home_coupon.cover;\r\n\t\t\t\t\t\t\tthis.quanId = res.data.home_coupon.id;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\trecerveEv(){//领取优惠券\r\n\t\t\t\tthis.$requst.post('user/get-coupon',{coupon_id:uni.getStorageSync('quanId')}).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tthis.isQuan = false;\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast('领取成功');\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'/pagesA/coupon/coupon'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(res.code==302){\r\n\t\t\t\t\t\tthis.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t},1500)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcloseEv(){\r\n\t\t\t\tthis.isQuan = false;\r\n\t\t\t\tuni.setStorageSync('isQuan',false);\r\n\t\t\t},\r\n\t\t\tcheckSwi(){\r\n\t\t\t\tcheckBanner({position:'home-banner'}).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\t\tif(item.type!='img') isVideo = true\r\n\t\t\t\t\t\t\t\tlet banObj = {\r\n\t\t\t\t\t\t\t\t\timgSrc:this.$http + item.src,\r\n\t\t\t\t\t\t\t\t\turl:item.url,\r\n\t\t\t\t\t\t\t\t\tisVideo:isVideo,\r\n\t\t\t\t\t\t\t\t\tposter:this.$http + item.src,\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.bannerList.push(banObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcheckNet(){\r\n\t\t\t\tuni.getNetworkType({\r\n\t\t\t\t\tsuccess: (res)=> {\r\n\t\t\t\t\t\tif(res.networkType=='none'){\r\n\t\t\t\t\t\t\tuni.setStorageSync('isNet',false)\r\n\t\t\t\t\t\t\tthis.isNet = false\r\n\t\t\t\t\t\t\tif((this.reNum++)==5){\r\n\t\t\t\t\t\t\t\tclearInterval(this.refTime)\r\n\t\t\t\t\t\t\t\tthis.wuNet = '刷新失败'\r\n\t\t\t\t\t\t\t\tthis.reNum = 0\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.publicColor = uni.getStorageSync('publicColor')\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tuni.setStorageSync('isNet',true)\r\n\t\t\t\t\t\t\tthis.isNet = true\r\n\t\t\t\t\t\t\tclearInterval(this.refTime)\r\n\t\t\t\t\t\t\tif(this.wuNet == '正在刷新...') {\r\n\t\t\t\t\t\t\t\tgetCurrentPages()[getCurrentPages().length - 1].onLoad()\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\trefresh(){\r\n\t\t\t\tthis.wuNet = '正在刷新...'\r\n\t\t\t\tthis.refTime = setInterval(()=>{\r\n\t\t\t\t\tthis.checkNet()\r\n\t\t\t\t},1000)\r\n\t\t\t},\r\n\t\t\tbangd(){//绑定客服事件\r\n\t\t\t\tthis.$requst.post('').then(res=>{log('绑定客服:',res);},error=>{})\r\n\t\t\t},\r\n\t\t\ttapChoose(index){//宫格下的,三张图点击事件\r\n\t\t\t\tif(!this.jieDuan){\r\n\t\t\t\t\tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t\tif(!isAuth){\r\n\t\t\t\t\t\tlet newUrl = ''\r\n\t\t\t\t\t\tif(index==0) newUrl = this.gaoone.url\r\n\t\t\t\t\t\tif(index==1) newUrl = this.gaotwo.url\r\n\t\t\t\t\t\tif(index==2) newUrl = this.gaothree.url\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:newUrl\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else this.jieDuan = true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcheckKey(){//查询热搜关键词事件\r\n\t\t\t\tthis.$requst.get('index/hot-keywords').then(res=>{\r\n\t\t\t\t\t// log('关键词列表:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet reObj = {title:item.keyword}\r\n\t\t\t\t\t\t\t\tthis.fwList.push(reObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tcheckBCate(){//查询底部事件、八宫格、\r\n\t\t\t\tthis.$requst.post('index/mini-program-setting').then(res=>{\r\n\t\t\t\t\t// log('数据:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\tif(res.data.length!=0){\r\n\t\t\t\t\t\t\tif(res.data.recommend.length!=0){//宫格\r\n\t\t\t\t\t\t\t\tres.data.recommend.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet bcObj = {\r\n\t\t\t\t\t\t\t\t\t\tsrc:this.$http + item.icon,\r\n\t\t\t\t\t\t\t\t\t\turl:item.link,\r\n\t\t\t\t\t\t\t\t\t\ttitle:item.name\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tthis.gonggList.push(bcObj)\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tthis.gonggList.push({src:this.$http + res.data.recommendMore,title:'更多'})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(res.data.footBar.length!=0){//底部导航\r\n\t\t\t\t\t\t\t\tres.data.footBar.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet newName = item.name\r\n\t\t\t\t\t\t\t\t\tlet newObj = {\r\n\t\t\t\t\t\t\t\t\t\ticonPath:this.$http + item.icon[0],\r\n\t\t\t\t\t\t\t\t\t\tselectedIconPath:this.$http + item.icon[1],\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(item.key==\"home\"){\r\n\t\t\t\t\t\t\t\t\t\tthis.imgList[0] = newObj\r\n\t\t\t\t\t\t\t\t\t\tthis.titleList[0] = newName\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(item.key==\"category\"){\r\n\t\t\t\t\t\t\t\t\t\tthis.imgList[1] = newObj\r\n\t\t\t\t\t\t\t\t\t\tthis.titleList[1] = newName\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(item.key==\"service\"){\r\n\t\t\t\t\t\t\t\t\t\tthis.imgList[2] = newObj\r\n\t\t\t\t\t\t\t\t\t\tthis.titleList[2] = newName\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(item.key==\"shop\"){\r\n\t\t\t\t\t\t\t\t\t\tthis.imgList[3] = newObj\r\n\t\t\t\t\t\t\t\t\t\tthis.titleList[3] = newName\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(item.key==\"my\"){\r\n\t\t\t\t\t\t\t\t\t\tthis.imgList[4] = newObj\r\n\t\t\t\t\t\t\t\t\t\tthis.titleList[4] = newName\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('footTitle',this.titleList)\r\n\t\t\t\t\t\t\t\tuni.setStorageSync('footimg',this.imgList)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(res.data.ad.length!=0){//三张图\r\n\t\t\t\t\t\t\t\tthis.gaoone = {\r\n\t\t\t\t\t\t\t\t\timgSrc:this.$http + res.data.ad[0].img,\r\n\t\t\t\t\t\t\t\t\turl:res.data.ad[0].link,\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.gaotwo = {\r\n\t\t\t\t\t\t\t\t\timgSrc:this.$http + res.data.ad[1].img,\r\n\t\t\t\t\t\t\t\t\turl:res.data.ad[1].link,\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.gaothree = {\r\n\t\t\t\t\t\t\t\t\timgSrc:this.$http + res.data.ad[2].img,\r\n\t\t\t\t\t\t\t\t\turl:res.data.ad[2].link,\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// this.publicColor = res.data.mainColor\r\n\t\t\t\t\t\t\tthis.publicColor = uni.getStorageSync('publicColor')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tcheckKT(){//查询恒美小课堂\r\n\t\t\t\tlet parmas = {\r\n\t\t\t\t\tcourse_id:this.course_id,//课堂ID\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size\r\n\t\t\t\t}\r\n\t\t\t\tthis.$requst.post('archives/course',parmas).then(res=>{\r\n\t\t\t\t\t// log('恒美小课堂列表:',res);\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t// 课堂栏目\r\n\t\t\t\t\t\tif(res.data.course.length!=0){\r\n\t\t\t\t\t\t\tthis.ktList = []\r\n\t\t\t\t\t\t\tres.data.course.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet lObj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\ttitle:item.title,\r\n\t\t\t\t\t\t\t\t\tactive:item.active\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.ktList.push(lObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 课堂列表\r\n\t\t\t\t\t\tif(this.page==1) this.dataList = []\r\n\t\t\t\t\t\tif(res.data.list.list.length!=0){\r\n\t\t\t\t\t\t\tthis.total = res.data.list.total\r\n\t\t\t\t\t\t\tres.data.list.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet fabImg = '';\r\n\t\t\t\t\t\t\t\tif(item.published_headimgurl!='' && item.published_headimgurl!=null) fabImg = this.$http + item.published_headimgurl;\r\n\t\t\t\t\t\t\t\tlet ktObj = {\r\n\t\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tis_collected:item.is_collected,//是否已收藏\r\n\t\t\t\t\t\t\t\t\tcollects:item.collects,//收藏数量\r\n\t\t\t\t\t\t\t\t\tviews:item.views,//查看量\r\n\t\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\r\n\t\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\r\n\t\t\t\t\t\t\t\t\ttitle:item.title,//内容标题\r\n\t\t\t\t\t\t\t\t\tcontent:item.subtitle,//副标题\r\n\t\t\t\t\t\t\t\t\thead_img: fabImg || '/static/public/logo.png',//发布者头像\r\n\t\t\t\t\t\t\t\t\tname:item.published_by || '恒美植发',//发布者昵称\r\n\t\t\t\t\t\t\t\t\tisVideo:item.video.includes(\".mp4\")//是否是视频\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.dataList.push(ktObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.isLoading = true\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tchooseLike(e){//收藏事件\r\n\t\t\t\t// console.log(this.dataList[e].is_collected);\r\n\t\t\t\tif(this.dataList[e].is_collected==0){\r\n\t\t\t\t\tthis.dataList[e].is_collected = 1\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({action:'collect',archive_id:this.dataList[e].id})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcomfirmev(e){//确认取消收藏事件\r\n\t\t\t\tthis.dataList[e].is_collected = 0\r\n\t\t\t\tthis.$toolAll.tools.showToast('正在取消...','loading')\r\n\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\tcancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})\t\r\n\t\t\t},\r\n\t\t\t// chooseLike(e){//收藏事件\r\n\t\t\t// \t// log(this.dataList[e].is_collected);\r\n\t\t\t// \tlet active = ''\r\n\t\t\t// \tthis.dataList.forEach((item,index)=>{\r\n\t\t\t// \t\tif(e==item.id){\r\n\t\t\t// \t\t\tactive = index\r\n\t\t\t// \t\t}\r\n\t\t\t// \t})\r\n\t\t\t// \tif(this.dataList[active].is_collected==0){\r\n\t\t\t// \t\tthis.dataList[active].is_collected = 1\r\n\t\t\t// \t\t// 调用收藏事件\r\n\t\t\t// \t\tcollectionEV({action:'collect',archive_id:e})\r\n\t\t\t// \t}\r\n\t\t\t// },\r\n\t\t\t// comfirmev(e){//确认取消收藏事件\r\n\t\t\t// \tlet active = ''\r\n\t\t\t// \tthis.dataList.forEach((item,index)=>{\r\n\t\t\t// \t\tif(e==item.id){\r\n\t\t\t// \t\t\tactive = index\r\n\t\t\t// \t\t}\r\n\t\t\t// \t})\r\n\t\t\t// \tthis.dataList[active].is_collected = 0\r\n\t\t\t// \tthis.$toolAll.tools.showToast('正在取消...','loading')\r\n\t\t\t// \t// 调用取消收藏事件\r\n\t\t\t// \tcancleCollectionEV({action:'collect',archive_id:e})\t\r\n\t\t\t// },\r\n\t\t\tchooseGon(index){//宫格事件\r\n\t\t\t\tif(!this.jieDuan){\r\n\t\t\t\t\tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t\tif(!isAuth){\r\n\t\t\t\t\t\tif(index==(this.gonggList.length-1)){\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:'/pages/tabbar/cate/cate'\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tuni.navigateTo({url:this.gonggList[index].url})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else this.jieDuan = true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchoosecateEv(e){//恒美小课堂选择事件\r\n\t\t\t\t// log('恒美小课堂:',e);\r\n\t\t\t\tthis.newCurrent = e\r\n\t\t\t\tthis.isZanw = true\r\n\t\t\t\tthis.page = 1\r\n\t\t\t\tthis.course_id = this.ktList[e].id\r\n\t\t\t\tthis.checkKT()\r\n\t\t\t},\r\n\t\t\tbackTop(){//回到顶部事件\r\n\t\t\t uni.pageScrollTo({\r\n\t\t\t scrollTop: 0,\r\n\t\t\t duration: 300\r\n\t\t\t });\r\n\t\t\t},\r\n\t\t\tsearchEv(){//搜索事件\r\n\t\t\t\t// log(this.searchVal);\r\n\t\t\t\tif(!this.jieDuan){\r\n\t\t\t\t\tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t\tif(!isAuth){\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else this.jieDuan = true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchooseReEv(index){\r\n\t\t\t\tif(!this.jieDuan){\r\n\t\t\t\t\tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t\tif(!isAuth){\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pagesB/searchPage/searchPage?keyWorld='+this.fwList[index].title\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else this.jieDuan = true\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<style>\r\n\r\n</style>\r\n"],"sourceRoot":""}