1 line
31 KiB
Plaintext
1 line
31 KiB
Plaintext
{"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyFxtB,sE;AACA;AACA;AACA,sBADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,8DADA;AAEA,gDAFA;AAGA,mBAHA,EAGA;AACA,qBAJA,EAIA;AACA;AAAA,OALA;AAOA;AAAA,OAPA;AASA,iBATA,EASA;AACA;AAAA,OAVA;AAYA;AAAA,OAZA;AAcA,oBAdA;AAeA,mBAfA;AAgBA,aAhBA;AAiBA,cAjBA;AAkBA,eAlBA,EAkBA;AACA,kBAnBA;AAoBA,kBApBA;AAqBA,sBArBA;AAsBA,mBAtBA;AAuBA,mBAvBA,EAuBA;AACA,iBAxBA,EAwBA;AACA,gBAzBA;AA0BA,gBA1BA;AA2BA,kBA3BA;AA4BA,iBA5BA;AA6BA,sBA7BA;AA8BA,iBA9BA;AA+BA,cA/BA;AAgCA,oBAhCA,EAgCA;AACA,uBAjCA;AAkCA,4BAlCA,EAkCA;AACA,0CAnCA;AAoCA,4CApCA;;AAsCA,GA3CA;AA4CA,cA5CA,wBA4CA,CA5CA,EA4CA;AACA;AACA,GA9CA;AA+CA,eA/CA,2BA+CA;AACA;AACA;AACA,qBAFA,CAEA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GAvDA;AAwDA,QAxDA,oBAwDA;AACA;AACA,GA1DA;AA2DA,UA3DA,sBA2DA;AACA;AACA,GA7DA;AA8DA,mBA9DA,6BA8DA,GA9DA,EA8DA;AACA;AACA;AACA;AACA;AACA,eADA,EACA;AACA,oGAFA,CAEA;AAFA;AAIA,GAtEA;AAuEA,QAvEA,oBAuEA;AACA;AACA;AACA;AACA;AACA;AACA,mBANA,CAMA;AACA;AACA;AACA;AACA,GAjFA;AAkFA,QAlFA,kBAkFA,OAlFA,EAkFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BADA;AAEA;AACA;AACA,0BADA;AAEA,kCAFA,EAEA;AACA,8BAHA;AAIA,uCAJA;;AAMA;AACA;AACA;AACA;AACA,gEAHA,CAGA;AACA;AACA,0DALA,CAKA;AACA,WANA,EAMA,mBANA;AAOA,SAjBA;;AAmBA,KAjCA,MAiCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAJA,EAIA,IAJA;AAKA,sBA3CA,CA2CA;AACA,oBA5CA,CA4CA;AACA,oBA7CA,CA6CA;AACA;AACA,yCA/CA,CA+CA;AACA;AACA;AACA;AACA;AACA,KAHA,EAGA,IAHA;AAIA,GAvIA;AAwIA;AACA,WADA,mBACA,MADA,EACA;AACA;AACA,0BADA;AAEA;AACA;AACA,0BADA;AAEA,iDAFA,EAEA;AACA,iDAHA;AAIA,yCAJA;;AAMA;AACA;AACA;AACA,gEAHA,CAGA;AACA;AACA,0DALA,CAKA;AACA,WANA,EAMA,mBANA;AAOA,SAhBA;;AAkBA,KApBA;AAqBA,UArBA,oBAqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OANA;AAOA,KA7BA;AA8BA,aA9BA,uBA8BA;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,KAlDA;AAmDA,WAnDA,qBAmDA;AACA;AACA;AACA,KAtDA;AAuDA;AACA,YAxDA,sBAwDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CADA;AAEA,2BAFA;AAGA,8BAHA;AAIA,6CAJA;;AAMA;AACA,WAVA;AAWA;AACA,OAdA;AAeA,KAxEA;AAyEA,YAzEA,sBAyEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WATA,MASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAnBA;;AAqBA,KA/FA;AAgGA,WAhGA,qBAgGA;AACA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KArGA;AAsGA,SAtGA,mBAsGA;AACA;AACA,KAxGA;AAyGA,aAzGA,qBAyGA,KAzGA,EAyGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;;AAGA;AACA,KAnHA;AAoHA,YApHA,sBAoHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA;AAIA;AACA;AACA,OAVA,EAUA,mBAVA;AAWA,KAhIA;AAiIA,cAjIA,wBAiIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CADA;AAEA,8BAFA;AAGA,gCAHA;;AAKA;AACA,aAPA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,qDADA;AAEA,6DAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aA1BA;AA2BA;AACA;AACA;AACA;AACA;AACA,uDADA;AAEA,sCAFA;;AAIA;AACA,uDADA;AAEA,sCAFA;;AAIA;AACA,uDADA;AAEA,sCAFA;;AAIA;AACA;AACA;AACA;AACA,OA9DA;AA+DA,KAjMA;AAkMA,WAlMA,qBAkMA;AACA;AACA,iCADA,EACA;AACA,uBAFA;AAGA,uBAHA;;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,+BAFA;AAGA,iCAHA;;AAKA;AACA,WAPA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CADA,EACA;AACA,yBAFA;AAGA,6CAHA,EAGA;AACA,qCAJA,EAIA;AACA,+BALA,EAKA;AACA,kDANA,EAMA;AACA,+CAPA,EAOA;AACA,+BARA,EAQA;AACA,oCATA,EASA;AACA,2DAVA,EAUA;AACA,+CAXA,EAWA;AACA,kDAZA,EAYA;AACA,+BAbA,EAaA;AACA,qCAdA,CAcA;AAdA;AAgBA;AACA,WApBA;AAqBA;AACA;AACA,OAzCA;AA0CA,KAlPA;AAmPA,YAnPA,oBAmPA,CAnPA,EAmPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA3PA;AA4PA,cA5PA,sBA4PA,CA5PA,EA4PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KApQA;AAqQA,aArQA,qBAqQA,CArQA,EAqQA;AACA;AACA;AACA;AACA;AACA;AACA,KA3QA;AA4QA,aA5QA,qBA4QA,KA5QA,EA4QA;AACA;AACA;AACA;AACA,kDADA;;AAGA,SAJA,MAIA;AACA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,KA7RA;AA8RA,gBA9RA,wBA8RA,CA9RA,EA8RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KArSA;AAsSA,WAtSA,qBAsSA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KA3SA;AA4SA,YA5SA,sBA4SA;AACA;AACA;AACA;AACA;AACA;AACA,8CADA;;AAGA,WAJA,MAIA;AACA;AACA,gFADA;;AAGA;AACA,SAVA;AAWA;AACA,KA3TA;AA4TA,cA5TA,sBA4TA,KA5TA,EA4TA;AACA;AACA;AACA,mFADA;;AAGA;AACA,KAlUA;AAmUA;AACA,cApUA,wBAoUA;AACA;AACA,iCADA;;AAGA,KAxUA,EAxIA,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<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" @praise=\"praiseEv\" :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\timport swiperPu from '@/components/swiper-pu.vue';\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},\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\tisAutoPlay: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}\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\tonShareAppMessage(res) {\r\n\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\tthis.$toolAll.tools.plantPoint(6);\r\n\t\t\tconsole.log(`/pages/tabbar/pagehome/pagehome?invite_code=${uni.getStorageSync('invite_code')}`,156);\r\n\t\t\treturn {\r\n\t\t\t\ttitle: '', // 默认是小程序的名称(可以写slogan等)\r\n\t\t\t\tpath: `/pages/tabbar/pagehome/pagehome?invite_code=${uni.getStorageSync('invite_code')}` // 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\t// 调用网络检测事件\r\n\t\t\tthis.checkNet();\r\n\t\t\tthis.$toolAll.tools.isLogin();\r\n\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\tthis.$toolAll.tools.plantPoint(6);\r\n\t\t\tthis.checkKT();//恒美课堂列表\r\n\t\t\tthis.isAutoPlay = true;\r\n\t\t\t// 进入首页修改全局判断是否是分享进来的\r\n\t\t\tgetApp().globalData.outside = false;\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tif(options.q!=undefined){\r\n\t\t\t\t// 解码一:unescape(\"http%3A//www.baidu.com%3Fname%3Dzhang@xiao@jie%26order%3D1\");\r\n\t\t\t\t// 解码二:decodeURIComponent(\"http%3A%2F%2Fwww.baidu.com%3Fname%3Dzhang%40xiao%40jie%26order%3D1\")\r\n\t\t\t\tlet str = unescape(options.q);\r\n\t\t\t\t// console.log(str);\r\n\t\t\t\tlet len1 = str.indexOf('invite_code=');\r\n\t\t\t\tlet len2 = str.indexOf('channel=');\r\n\t\t\t\tlet len3 = str.indexOf('source_code=');\r\n\t\t\t\tlet newInvite = '';\r\n\t\t\t\tlet newChanel = '';\r\n\t\t\t\tlet newsource_code = '';\r\n\t\t\t\tif(len1!=-1) newInvite = str.slice((len1+12),(len1+12+32));\r\n\t\t\t\tif(len2!=-1) newChanel = str.slice((len2+8),(len2+8+8));\r\n\t\t\t\tif(len3!=-1) newsource_code = str.slice((len3+12),(len3+12+32));\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\tchannel:newChanel,\r\n\t\t\t\t\t\t\tsource_code:newsource_code\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// console.log(params);\r\n\t\t\t\t\t\tthis.$requst.post('user/login',params).then(res => {\r\n\t\t\t\t\t\t\tuni.setStorageSync('phone_active',res.data.phone_active);\r\n\t\t\t\t\t\t\tuni.setStorageSync('invite_code',res.data.invite_code);\r\n\t\t\t\t\t\t\tuni.setStorageSync('is_active',res.data.is_active)//是否第一次授权\r\n\t\t\t\t\t\t\tuni.setStorageSync('token',res.data.token);\r\n\t\t\t\t\t\t\tuni.setStorageSync('openid',res.data.openid)//缓存openid\r\n\t\t\t\t\t\t},error => {})\r\n\t\t\t\t\t},\r\n\t\t\t\t});\r\n\t\t\t} else if(uni.getStorageSync('token')=='' || uni.getStorageSync('phone_active')==0 && uni.getStorageSync('is_active')!=0){\r\n\t\t\t\tthis.loginEv(options);\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},\r\n\t\tmethods: {\r\n\t\t\tloginEv(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\tthis.$requst.post('user/login',params).then(res => {\r\n\t\t\t\t\t\t\tuni.setStorageSync('phone_active',res.data.phone_active);\r\n\t\t\t\t\t\t\tuni.setStorageSync('invite_code',res.data.invite_code);\r\n\t\t\t\t\t\t\tuni.setStorageSync('is_active',res.data.is_active)//是否第一次授权\r\n\t\t\t\t\t\t\tuni.setStorageSync('token',res.data.token);\r\n\t\t\t\t\t\t\tuni.setStorageSync('openid',res.data.openid)//缓存openid\r\n\t\t\t\t\t\t},error => {})\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.data.has_coupon==1){\r\n\t\t\t\t\t\tthis.isQuan = true;\r\n\t\t\t\t\t\tthis.quanImg = this.$http + res.data.home_coupon.cover;\r\n\t\t\t\t\t\tthis.quanId = res.data.home_coupon.id;\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\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.data.length!=0){\r\n\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\tif(item.type!='img') isVideo = true\r\n\t\t\t\t\t\t\tlet banObj = {\r\n\t\t\t\t\t\t\t\timgSrc:this.$http + item.src,\r\n\t\t\t\t\t\t\t\turl:item.url,\r\n\t\t\t\t\t\t\t\tisVideo:isVideo,\r\n\t\t\t\t\t\t\t\tposter:this.$http + item.src,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.bannerList.push(banObj)\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.$toolAll.tools.judgeAuth()){\r\n\t\t\t\t\tlet newUrl = ''\r\n\t\t\t\t\tif(index==0) newUrl = this.gaoone.url\r\n\t\t\t\t\tif(index==1) newUrl = this.gaotwo.url\r\n\t\t\t\t\tif(index==2) newUrl = this.gaothree.url\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:newUrl\r\n\t\t\t\t\t})\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.data.length!=0){\r\n\t\t\t\t\t\tif(res.data.recommend.length!=0){//宫格\r\n\t\t\t\t\t\t\tres.data.recommend.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet bcObj = {\r\n\t\t\t\t\t\t\t\t\tsrc:this.$http + item.icon,\r\n\t\t\t\t\t\t\t\t\turl:item.link,\r\n\t\t\t\t\t\t\t\t\ttitle:item.name\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.gonggList.push(bcObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tthis.gonggList.push({src:this.$http + res.data.recommendMore,title:'更多'})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(res.data.footBar.length!=0){//底部导航\r\n\t\t\t\t\t\t\tres.data.footBar.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet newName = item.name\r\n\t\t\t\t\t\t\t\tlet newObj = {\r\n\t\t\t\t\t\t\t\t\ticonPath:this.$http + item.icon[0],\r\n\t\t\t\t\t\t\t\t\tselectedIconPath:this.$http + item.icon[1],\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"home\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[0] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[0] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"category\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[1] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[1] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"service\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[2] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[2] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"shop\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[3] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[3] = newName\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.key==\"my\"){\r\n\t\t\t\t\t\t\t\t\tthis.imgList[4] = newObj\r\n\t\t\t\t\t\t\t\t\tthis.titleList[4] = newName\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\tuni.setStorageSync('footTitle',this.titleList)\r\n\t\t\t\t\t\t\tuni.setStorageSync('footimg',this.imgList)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(res.data.ad.length!=0){//三张图\r\n\t\t\t\t\t\t\tthis.gaoone = {\r\n\t\t\t\t\t\t\t\timgSrc:this.$http + res.data.ad[0].img,\r\n\t\t\t\t\t\t\t\turl:res.data.ad[0].link,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.gaotwo = {\r\n\t\t\t\t\t\t\t\timgSrc:this.$http + res.data.ad[1].img,\r\n\t\t\t\t\t\t\t\turl:res.data.ad[1].link,\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.gaothree = {\r\n\t\t\t\t\t\t\t\timgSrc:this.$http + res.data.ad[2].img,\r\n\t\t\t\t\t\t\t\turl:res.data.ad[2].link,\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// this.publicColor = res.data.mainColor\r\n\t\t\t\t\t\tthis.publicColor = uni.getStorageSync('publicColor')\r\n\t\t\t\t\t}\r\n\t\t\t\t})\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\t// 课堂栏目\r\n\t\t\t\t\tif(res.data.course.length!=0){\r\n\t\t\t\t\t\tthis.ktList = []\r\n\t\t\t\t\t\tres.data.course.forEach(item=>{\r\n\t\t\t\t\t\t\tlet lObj = {\r\n\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\ttitle:item.title,\r\n\t\t\t\t\t\t\t\tactive:item.active\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.ktList.push(lObj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// 课堂列表\r\n\t\t\t\t\tif(this.page==1) this.dataList = []\r\n\t\t\t\t\tif(res.data.list.list.length!=0){\r\n\t\t\t\t\t\tthis.total = res.data.list.total\r\n\t\t\t\t\t\tres.data.list.list.forEach(item=>{\r\n\t\t\t\t\t\t\tlet fabImg = '';\r\n\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\tlet ktObj = {\r\n\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\r\n\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\tis_collected:item.is_collected,//是否已收藏\r\n\t\t\t\t\t\t\t\tcollects:item.collects,//收藏数量\r\n\t\t\t\t\t\t\t\tviews:item.views,//查看量\r\n\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\r\n\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\r\n\t\t\t\t\t\t\t\ttitle:item.title,//内容标题\r\n\t\t\t\t\t\t\t\tcontent:item.subtitle,//副标题\r\n\t\t\t\t\t\t\t\thead_img: fabImg || '/static/public/logo.png',//发布者头像\r\n\t\t\t\t\t\t\t\tname:item.published_by || '恒美植发',//发布者昵称\r\n\t\t\t\t\t\t\t\tisVideo:item.video.includes(\".mp4\"),//是否是视频\r\n\t\t\t\t\t\t\t\tlikes:item.likes,//点赞数量\r\n\t\t\t\t\t\t\t\tis_liked:item.is_liked//是否已点赞\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.dataList.push(ktObj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.isLoading = true\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tpraiseEv(e){ // 点赞事件\r\n\t\t\t\t// console.log(this.dataList[e].is_collected);\r\n\t\t\t\tif(this.dataList[e].is_liked==0){\r\n\t\t\t\t\tthis.dataList[e].is_liked = 1;\r\n\t\t\t\t\tthis.dataList[e].likes++;\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({action:'like',archive_id:this.dataList[e].id})\r\n\t\t\t\t}\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\tthis.dataList[e].collects++;\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\tthis.dataList[e].collects--;\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\tchooseGon(index){//宫格事件\r\n\t\t\t\tif(this.$toolAll.tools.judgeAuth()){\r\n\t\t\t\t\tif(index==(this.gonggList.length-1)){\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pages/tabbar/cate/cate?index=0'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlet existfx = this.gonggList[index].url.indexOf('/');\r\n\t\t\t\t\t\tlet newUrl = '';\r\n\t\t\t\t\t\tif(existfx!=0) {\r\n\t\t\t\t\t\t\tnewUrl = `/${this.gonggList[index].url}`;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnewUrl = this.gonggList[index].url;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tuni.navigateTo({url:newUrl})\r\n\t\t\t\t\t}\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.$toolAll.tools.judgeAuth()){\r\n\t\t\t\t\tthis.$requst.post('archives/keyword-check',{keyword:this.searchVal}).then(res=>{\r\n\t\t\t\t\t\tif(res.data.has) {\r\n\t\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\t\turl:`/${res.data.target}`\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({\r\n\t\t\t\t\t\t\t\turl:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal\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\tchooseReEv(index){\r\n\t\t\t\tif(this.$toolAll.tools.judgeAuth()){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pagesB/searchPage/searchPage?keyWorld='+this.fwList[index].title\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 前往授权页\r\n\t\t\tgoAuthPage(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pages/login/login'\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":""} |