1 line
32 KiB
Plaintext
1 line
32 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":"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A;AACA;AACA,0DALA,CAKA;AACA;AACA;AACA,qCADA;AAEA,uCAFA;AAGA,kBAHA,CAGA,iBAHA;AAIA;AACA;AACA;AACA;AACA,WAfA,EAeA,mBAfA;AAgBA,SAzBA;;AA2BA,KA7BA;AA8BA,UA9BA,oBA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OANA;AAOA,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;AACA,YAjEA,sBAiEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CADA;AAEA,2BAFA;AAGA,8BAHA;AAIA,6CAJA;;AAMA;AACA,WAVA;AAWA;AACA,OAdA;AAeA,KAjFA;AAkFA,YAlFA,sBAkFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WARA,MAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAlBA;;AAoBA,KAvGA;AAwGA,WAxGA,qBAwGA;AACA;AACA;AACA;AACA,OAFA,EAEA,IAFA;AAGA,KA7GA;AA8GA,SA9GA,mBA8GA;AACA;AACA,KAhHA;AAiHA,aAjHA,qBAiHA,KAjHA,EAiHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qBADA;;AAGA;AACA,KA3HA;AA4HA,YA5HA,sBA4HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAHA;AAIA;AACA;AACA,OAVA,EAUA,mBAVA;AAWA,KAxIA;AAyIA,cAzIA,wBAyIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CADA;AAEA,8BAFA;AAGA,gCAHA;;AAKA;AACA,aAPA;AAQA;AACA;AACA;AACA;AACA,wDADA;AAEA,sCAFA;;AAIA;AACA,wDADA;AAEA,sCAFA;;AAIA;AACA,wDADA;AAEA,sCAFA;;AAIA;AACA;AACA,OA7BA;AA8BA,KAxKA;AAyKA,WAzKA,qBAyKA;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,EAcA;AACA,qCAfA;;AAiBA;AACA,WArBA;AAsBA;AACA;AACA,OA1CA;AA2CA,KA1NA;AA2NA,YA3NA,oBA2NA,CA3NA,EA2NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAnOA;AAoOA,cApOA,sBAoOA,CApOA,EAoOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA5OA;AA6OA,aA7OA,qBA6OA,CA7OA,EA6OA;AACA;AACA;AACA;AACA;AACA;AACA,KAnPA;AAoPA,aApPA,qBAoPA,KApPA,EAoPA;AACA;AACA;AACA;AACA,kDADA;;AAGA,SAJA,MAIA;AACA;AACA;AACA;AACA;AACA,WAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,KArQA;AAsQA,gBAtQA,wBAsQA,CAtQA,EAsQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA7QA;AA8QA,WA9QA,qBA8QA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KAnRA;AAoRA,YApRA,sBAoRA;AACA;AACA;AACA;AACA;AACA;AACA,8CADA;;AAGA,WAJA,MAIA;AACA;AACA,gFADA;;AAGA;AACA,SAVA;AAWA;AACA,KAnSA;AAoSA,cApSA,sBAoSA,KApSA,EAoSA;AACA;AACA;AACA,mFADA;;AAGA;AACA,KA1SA;AA2SA;AACA,cA5SA,wBA4SA;AACA;AACA,iCADA;;AAGA,KAhTA,EArKA,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\" style=\"opacity: 0;\"></status-nav>\r\n\t\t\t<!-- 输入框 -->\r\n\t\t\t<view class=\"input-box posiszy\" :style=\"{top: statusHeight+'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: (statusHeight+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\tsearchVal:'',//输入框的值\r\n\t\t\t\t//九宫格列表\r\n\t\t\t\tgonggList:[],\r\n\t\t\t\t//热搜关键词\r\n\t\t\t\tfwList:[],\r\n\t\t\t\tkcurrent:0,//默认选中第一项\r\n\t\t\t\t//恒美小课堂\r\n\t\t\t\tktList:[],\r\n\t\t\t\t//小课堂数据列表\r\n\t\t\t\tdataList:[],\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\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\tpagePath:'',\r\n\t\t\t\tshareData:[]\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t// 底部标题\r\n\t\t\ttitleList() {\r\n\t\t\t\treturn this.$store.state.titleList \r\n\t\t\t},\r\n\t\t\t// 底部图标\r\n\t\t\timgList() {\r\n\t\t\t\treturn this.$store.state.imgList\r\n\t\t\t},\r\n\t\t\t// 主题颜色\r\n\t\t\tpublicColor() {\r\n\t\t\t\treturn this.$store.state.publicColor\r\n\t\t\t},\r\n\t\t\tstatusHeight() {\r\n\t\t\t\treturn this.$store.state.statusHeight\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\tif(`${this.shareData.archives_share_img}` !== ''){\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttitle: '', // 默认是小程序的名称(可以写slogan等)\r\n\t\t\t\t\tpath: `/pages/tabbar/pagehome/pagehome?invite_code=${uni.getStorageSync('invite_code')}` ,// 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t\t\t\timageUrl: `${this.$http}${this.shareData.archives_share_img}`//自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\treturn {\r\n\t\t\t\t\ttitle: '', // 默认是小程序的名称(可以写slogan等)\r\n\t\t\t\t\tpath: `/pages/tabbar/pagehome/pagehome?invite_code=${uni.getStorageSync('invite_code')}` ,// 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t\t\t}\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\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\t\r\n\t\t\tthis.$requst.post('index/base-config').then(res=>{\r\n\t\t\t\tthis.shareData = res.data;\r\n\t\t\t},error => {})\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\t// 转发进入:获取页面路径\r\n\t\t\tlet pages = getCurrentPages(); //获取加载的页面\r\n\t\t\tlet currentPage = pages[pages.length - 1]; //获取当前页面的对象\r\n\t\t\tthis.pagePath = currentPage.$page.fullPath;\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\tthis.$requst.post('user/login',params,false).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\tthis.$requst.post('user/unusual-enter',{\r\n\t\t\t\t\t\t\t\tpath:this.pagePath,\r\n\t\t\t\t\t\t\t\topenid:res.data.openid\r\n\t\t\t\t\t\t\t}).then(res=>{})\r\n\t\t\t\t\t\t\tif(res.data.is_active==0 || res.data.phone_active==0) {\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/first-enter',{openid:res.data.openid,path:this.pagePath}).then(res=>{})\r\n\t\t\t\t\t\t\t}\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\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,false).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\tif(option.invite_code){\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/unusual-enter',{\r\n\t\t\t\t\t\t\t\t\tpath:this.pagePath,\r\n\t\t\t\t\t\t\t\t\topenid:res.data.openid\r\n\t\t\t\t\t\t\t\t}).then(res=>{})\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(res.data.is_active==0 || res.data.phone_active==0) {\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/first-enter',{openid:res.data.openid,path:this.pagePath}).then(res=>{})\r\n\t\t\t\t\t\t\t}\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',{},false).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} 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',{},false).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.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}\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,false).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\ttag_text:item.tag_text,\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\t// if(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":""} |