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

1 line
22 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":["createPage","Page"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;kDAAA;AACA;AACA,4G;AACAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC2ExtB,qE;AACA;AACA;AACA,sBADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,8DADA;AAEA,gDAFA;AAGA,mBAHA,EAGA;AACA,oDAJA,EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA,OALA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,OAfA;AAuBA,iBAvBA,EAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AALA,OAxBA;AA+BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,OA/BA;AA2CA,oBA3CA;AA4CA,mBA5CA;AA6CA,aA7CA;AA8CA,cA9CA;AA+CA,eA/CA,EA+CA;AACA,kBAhDA;AAiDA,kBAjDA;AAkDA,sBAlDA;AAmDA,mBAnDA;AAoDA,mBApDA,EAoDA;AACA,iBArDA,EAqDA;AACA,gBAtDA;AAuDA,gBAvDA;AAwDA,kBAxDA;;AA0DA,GA/DA;AAgEA,cAhEA,wBAgEA,CAhEA,EAgEA;AACA;AACA,GAlEA;AAmEA,eAnEA,2BAmEA;AACA;AACA;AACA,qBAFA,CAEA;AACA,KAHA,MAGA;AACA;AACA;AACA;AACA,GA3EA;AA4EA,QA5EA,oBA4EA;AACA;AACA,UADA,EACA;AACA,6BAFA,CAEA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA,GAtFA;AAuFA,QAvFA,oBAuFA;AACA;AACA;AACA;AACA;AACA;AACA,KAJA,EAIA,IAJA;AAKA;AACA;AACA;AACA,yCAVA,CAUA;AACA,GAlGA;AAmGA;AACA,aADA,qBACA,KADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA,mBADA;;AAGA,KATA;AAUA,YAVA,sBAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA;AAIA;AACA;AACA,OAVA,EAUA,mBAVA;AAWA,KAtBA;AAuBA,cAvBA,wBAuBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CADA;AAEA,gCAFA;AAGA,kCAHA;;AAKA;AACA,eAPA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,uDADA;AAEA,+DAFA;;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,yDADA;AAEA,wCAFA;;AAIA;AACA,yDADA;AAEA,wCAFA;;AAIA;AACA,yDADA;AAEA,wCAFA;;AAIA;AACA;AACA;AACA,OA9DA,EA8DA,mBA9DA;AA+DA,KAvFA;AAwFA,WAxFA,qBAwFA;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;AACA,6CADA,EACA;AACA,2BAFA;AAGA,+CAHA,EAGA;AACA,uCAJA,EAIA;AACA,iCALA,EAKA;AACA,mDANA,EAMA;AACA,gDAPA,EAOA;AACA,iCARA,EAQA;AACA,sCATA,EASA;AACA,mDAVA,EAUA;AACA,4BAXA,EAWA;AACA,gCAZA,CAYA;AAZA;AAcA;AACA,aAnBA;AAoBA;AACA;AACA;AACA,OA1CA,EA0CA,mBA1CA;AA2CA,KAzIA;AA0IA,cA1IA,sBA0IA,CA1IA,EA0IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAjJA;AAkJA,aAlJA,qBAkJA,CAlJA,EAkJA;AACA;AACA;AACA;AACA;AACA,KAvJA;AAwJA,aAxJA,qBAwJA,KAxJA,EAwJA;AACA;AACA;AACA,wCADA;;AAGA,OAJA,MAIA;AACA;AACA;AACA,KAhKA;AAiKA,gBAjKA,wBAiKA,CAjKA,EAiKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAxKA;AAyKA,WAzKA,qBAyKA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KA9KA;AA+KA,YA/KA,sBA+KA;AACA;AACA;AACA,uEADA;;AAGA,KApLA;AAqLA,cArLA,sBAqLA,KArLA,EAqLA;AACA;AACA,iFADA;;AAGA,KAzLA,EAnGA,E","file":"pages/tabbar/pagehome/pagehome.js","sourcesContent":["import 'uni-pages';\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;\">首页</view>\r\n\t\t </view>\r\n\t\t</view>\r\n\t\t<!-- <status-nav :titleVal=\"'首页'\" :backgroudColor=\"publicColor\" :tabcolor=\"'#FFFFFF'\" :statusBack=\"false\" :statusTitle=\"true\"></status-nav> -->\r\n\t\t<!-- 输入框 -->\r\n\t\t<view class=\"input-box posiszy\" :style=\"{top: statusHNH+'px',background:publicColor}\" style=\"height: 50px;display: flex;align-items: center;\">\r\n\t\t\t<view class=\"disac width100\">\r\n\t\t\t\t<image class=\"searchImg flexs\" src=\"/static/public/search.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t<!-- 输入框 -->\r\n\t\t\t\t<input class=\"width100 fon28\" type=\"text\" v-model=\"searchVal\" placeholder=\"请输入问题/病种/医生姓名\"/>\r\n\t\t\t\t<!-- 竖线 -->\r\n\t\t\t\t<view class=\"linev\"></view>\r\n\t\t\t\t<!-- 搜索 -->\r\n\t\t\t\t<view @tap=\"searchEv\" class=\"searchT flexs\" :style=\"{color:publicColor}\">搜索</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"mar-s10 pad-x180\">\r\n\t\t\t<!-- 自定义轮播 -->\r\n\t\t\t<view :style=\"{marginTop: (statusHNH+60)+'px'}\">\r\n\t\t\t\t<swiper-pu></swiper-pu>\r\n\t\t\t</view>\r\n\t\t\t<!-- 宫格 -->\r\n\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<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<view class=\"img-box\">\r\n\t\t\t\t\t\t<image :src=\"itemgg.src\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"fon24\">{{itemgg.title}}</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 发问 -->\r\n\t\t\t<view class=\"mar-zy30 mar-sx20 disjb\">\r\n\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<view class=\"disjb fc width100\">\r\n\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<image class=\"radius30 width100 fawen-itemImg\" @tap=\"tapChoose(2)\" :src=\"gaothree.imgSrc\" mode=\"\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 热门搜索 -->\r\n\t\t\t<view v-if=\"isLoading\" class=\"mar-zy30 mar-s50\">\r\n\t\t\t\t<view class=\"col2c fon36 bold mar-x36\">热门搜索</view>\r\n\t\t\t\t<view class=\"bacf fon24 disac fw radius20 pad-zy20 pad-s20\">\r\n\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<image src=\"/static/public/hot.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t<view>{{itemf.title}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 恒美小课堂 -->\r\n\t\t\t<view v-if=\"isLoading\" class=\"mar-zy30 mar-s40\">\r\n\t\t\t\t<view class=\"col2c fon36 bold\">恒美小课堂</view>\r\n\t\t\t\t<!-- 自定义二级分类 -->\r\n\t\t\t\t<view class=\"mar-s50 mar-x30\">\r\n\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</view>\r\n\t\t\t\t<!-- 列表 -->\r\n\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"dataList\"></list-pu>\r\n\t\t\t</view>\r\n\t\t</view>\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</view>\r\n</template>\r\n\r\n<script>\r\n\timport swiperPu from '@/components/swiper-pu.vue';\r\n\timport {collectionEV,cancleCollectionEV} 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:uni.getStorageSync('publicColor'),//主题颜色\r\n\t\t\t\tgonggList:[//九宫格列表\r\n\t\t\t\t\t// {src:'/static/public/tuof.png',title:'脱发'},\r\n\t\t\t\t\t// {src:'/static/public/zhif.png',title:'植发'},\r\n\t\t\t\t\t// {src:'/static/public/toub.png',title:'头发百科'},\r\n\t\t\t\t\t// {src:'/static/public/tous.png',title:'头发视频'},\r\n\t\t\t\t\t// {src:'/static/public/zhir.png',title:'植发日记'},\r\n\t\t\t\t\t// {src:'/static/public/zhij.png',title:'植发价格'},\r\n\t\t\t\t\t// {src:'/static/public/zhis.png',title:'植发医生'},\r\n\t\t\t\t\t// {src:'/static/public/gengd.png',title:'更多'},\r\n\t\t\t\t],\r\n\t\t\t\tfwList:[//热搜关键词\r\n\t\t\t\t\t// {title:'植发需要多少钱'},\r\n\t\t\t\t\t// {title:'疤痕植发'},\r\n\t\t\t\t\t// {title:'眉毛种植'},\r\n\t\t\t\t\t// {title:'胡须种植'},\r\n\t\t\t\t\t// {title:'我为什么会脱发'},\r\n\t\t\t\t\t// {title:'头发如何保养'},\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\t// {title:'发际线'},\r\n\t\t\t\t\t// {title:'秃顶种植'},\r\n\t\t\t\t\t// {title:'胡须种植'},\r\n\t\t\t\t\t// {title:'眉毛种植'},\r\n\t\t\t\t\t// {title:'头发种植'},\r\n\t\t\t\t],\r\n\t\t\t\tdataList:[//小课堂数据列表\r\n\t\t\t\t\t// {\r\n\t\t\t\t\t// \tstatus:false,\r\n\t\t\t\t\t// \tmain_img:'/static/public/main_img.png',\r\n\t\t\t\t\t// \ttitle:'恒美小课堂',\r\n\t\t\t\t\t// \tcontent:'饺子会吃肉?',\r\n\t\t\t\t\t// \thead_img:'/static/public/like.png',\r\n\t\t\t\t\t// \tname:'吃肉的饺子',\r\n\t\t\t\t\t// \tisCate:0,\r\n\t\t\t\t\t// \tisVideo:false\r\n\t\t\t\t\t// },\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}\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\tonShow() {\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},\r\n\t\tonLoad() {\r\n\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\tquery.select('.statusHNH').boundingClientRect((rect) => {\r\n\t\t\t\t// console.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.checkKT()\r\n\t\t\tthis.checkBCate()\r\n\t\t\tthis.checkKey()\r\n\t\t\tthis.$toolAll.tools.buriedPointAll()//查询需要埋点的事件id\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\ttapChoose(index){//宫格下的,三张图点击事件\r\n\t\t\t\tlet newUrl = ''\r\n\t\t\t\tif(index==0) newUrl = this.gaoone.url\r\n\t\t\t\tif(index==1) newUrl = this.gaotwo.url\r\n\t\t\t\tif(index==2) newUrl = this.gaothree.url\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:newUrl\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// console.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// console.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}\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// console.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 num = item.video.search(\".mp4\")\r\n\t\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\t\tif(num!='-1') isVideo = true\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:'/static/public/logo.png',//用户头像\r\n\t\t\t\t\t\t\t\t\tname:'恒美植发',//用户昵称\r\n\t\t\t\t\t\t\t\t\tisVideo:isVideo//是否是视频\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\tchooseGon(index){//宫格事件\r\n\t\t\t\tif(index==(this.gonggList.length-1)){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pages/tabbar/cate/cate'\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.navigateTo({url:this.gonggList[index].url})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchoosecateEv(e){//恒美小课堂选择事件\r\n\t\t\t\t// console.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// console.log(this.searchVal);\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesB/searchPage/searchPage?keyWorld='+this.searchVal\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tchooseReEv(index){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pagesB/searchPage/searchPage?keyWorld='+this.fwList[index].title\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":""}