1 line
39 KiB
Plaintext
1 line
39 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/cate/cate.vue?44ee","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/cate/cate.vue?82af","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/cate/cate.vue?5900","webpack:///D:/chenq/chen/hengmei/hengmei/pages/tabbar/cate/cate.vue?0078","uni-app:///pages/tabbar/cate/cate.vue"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,gG,6FAFmBA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC;AAGnBC,UAAU,CAACC,aAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAiH;AACjH;AACwD;AACL;;;AAGnD;AACsL;AACtL,gBAAgB,uLAAU;AAC1B,EAAE,0EAAM;AACR,EAAE,+EAAM;AACR,EAAE,wFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,mFAAU;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;AAAgsB,CAAgB,gqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiJptB,sE;AACA;AACA;AACA,sBADA;AAEA,kBAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,0DADA;AAEA,oDAFA;AAGA,iBAHA;AAIA,kBAJA;AAKA;AAAA,OALA;;AAQA;AAAA,OARA;;AAWA,oBAXA,EAWA;AACA,gBAZA;AAaA,mBAbA;AAcA,eAdA,EAcA;AACA,sBAfA;AAgBA,aAhBA;AAiBA,cAjBA;AAkBA,eAlBA,EAkBA;AACA,kBAnBA;AAoBA,qBApBA,EAoBA;AACA,oBArBA,EAqBA;AACA,oBAtBA;AAuBA,mBAvBA;AAwBA,iBAxBA;AAyBA,gBAzBA;AA0BA,sBA1BA;AA2BA,kBA3BA;AA4BA,kBA5BA;AA6BA,uBA7BA;;AA+BA,GArCA;AAsCA,cAtCA,wBAsCA,CAtCA,EAsCA;AACA;AACA,GAxCA;AAyCA,eAzCA,2BAyCA;AACA;AACA;AACA;AACA,yCADA,CACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAPA,MAOA;AACA;AACA;AACA;AACA,GArDA;AAsDA,UAtDA,sBAsDA;AACA;AACA,GAxDA;AAyDA,QAzDA,oBAyDA;AACA;AACA,GA3DA;AA4DA,QA5DA,kBA4DA,OA5DA,EA4DA;AACA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,GArEA;AAsEA,QAtEA,oBAsEA;AACA;AACA;AACA;AACA,qBADA,CACA;AACA;AACA,qEADA,CACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sDADA;AAEA,8DAFA;;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;AACA;AACA,OAvCA,EAuCA,mBAvCA;AAwCA;AACA,GAvHA;AAwHA;AACA,YADA,sBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CADA;AAEA,6BAFA;AAGA,gCAHA;AAIA,+CAJA;;AAMA;AACA,aAVA;AAWA;AACA;AACA;AACA,OAjBA;AAkBA,KApBA;AAqBA,cArBA,sBAqBA,CArBA,EAqBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA7BA;AA8BA,YA9BA,oBA8BA,CA9BA,EA8BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAvCA;AAwCA,aAxCA,qBAwCA,CAxCA,EAwCA;AACA;AACA;AACA;AACA;AACA;AACA,KA9CA;AA+CA,WA/CA,qBA+CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,8BAFA;AAGA,2BAHA;AAIA,6BAJA;AAKA,qCALA;;AAOA;AACA,WATA;AAUA;AACA,qCADA;AAEA,yBAFA;AAGA,uCAHA;AAIA,yCAJA;;AAMA;AACA;AACA,iDADA,CACA;AACA,WAFA,MAEA;AACA;AACA;AACA,8EADA,CACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAHA,EAGA,IAHA;AAIA,aANA,EAMA,GANA;AAOA;AACA;AACA;AACA,OAxCA;AAyCA,KAzFA;AA0FA,aA1FA,qBA0FA,WA1FA,EA0FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,mCAFA;AAGA,yCAHA;AAIA,iCAJA;AAKA,mCALA;;AAOA;AACA,eATA;AAUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BADA;AAEA,yBAFA;;AAIA;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,6DAVA,EAUA;AACA,iDAXA,EAWA;AACA,oDAZA,EAYA;AACA,iCAbA,EAaA;AACA,uCAdA,CAcA;AAdA;AAgBA;AACA,aApBA;AAqBA;AACA;AACA,OAtDA,EAsDA,mBAtDA;AAuDA,KApJA;AAqJA,aArJA,qBAqJA,UArJA,EAqJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kDADA;AAEA,wCAFA;AAGA,gCAHA;AAIA,gDAJA,EAIA;AACA,8DALA,EAKA;AACA,4CANA,CAMA;AANA;AAQA;AACA,iBAVA;AAWA;AACA;AACA,gCADA;AAEA,uBAFA;AAGA;AACA;AACA;AACA;AACA;AACA;AARA;AAUA;AACA,aA1BA;AA2BA;AACA;AACA,OAlCA,EAkCA,mBAlCA;AAmCA,KAzLA;AA0LA,cA1LA,sBA0LA,KA1LA,EA0LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,8BAFA;;AAIA;AACA,WANA;AAOA;AACA;AACA;AACA,SAZA,MAYA;AACA;AACA;AACA;AACA,OAlBA,MAkBA;AACA;AACA;AACA;AACA;AACA,KArNA;AAsNA,WAtNA,mBAsNA,EAtNA,EAsNA;AACA;AACA;AACA;AACA;AACA;AACA,wBADA;AAEA,uBAFA;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CADA,EACA;AACA,yBAFA;AAGA,6CAHA,EAGA;AACA,qCAJA,EAIA;AACA,+BALA,EAKA;AACA,iDANA,EAMA;AACA,8CAPA,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,SAvBA,MAuBA;AACA;AACA;AACA,OAnCA;AAoCA,KA3PA;AA4PA,aA5PA,qBA4PA,KA5PA,EA4PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CADA;;AAGA,OAJA,MAIA;AACA;AACA;AACA,OAHA,MAGA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA;AACA,KAjRA;AAkRA,gBAlRA,0BAkRA;AACA;AACA;AACA,eADA;AAEA,kBAFA;AAGA,iBAHA;;AAKA;AACA,iEADA;AAEA,oBAFA;AAGA,sBAHA;AAIA;AACA,2DADA;AAEA,2EAFA,EAJA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBAFA;AAGA;AACA;AACA,6BADA;AAEA,mDAFA;AAGA,kCAHA;AAIA,4CAJA;AAKA,sDALA;AAMA,8BANA;AAOA,8BAPA,EAOA;AACA,8BARA,EAQA;AACA,8BATA,EASA;AACA,sCAVA,EAUA;AACA,2BAXA;AAYA,iDAZA,EAYA;AACA,8CAbA,EAaA;AACA,uDAdA,EAcA;AACA,mDAfA,EAeA;AACA,6DAhBA,CAgBA;AAhBA;AAkBA;AACA,eA9BA;AA+BA;AACA;AACA;AACA,+BADA;AAEA,iDAFA;AAGA,8CAHA;AAIA,iCAJA;;AAMA;AACA;AACA,eAVA;AAWA;AACA;AACA;AACA;AACA;AACA;AACA,sFADA,CACA;AACA,2HAFA,CAEA;AACA;AACA;AACA,yBAFA,MAEA;AACA;AACA;AACA;AACA;AACA,qBAXA;AAYA;AACA,iBAfA,EAeA,IAfA;AAgBA;AACA;AACA,iBAFA,EAEA,IAFA;AAGA,eArBA,MAqBA;AACA;AACA;AACA;AACA;AACA,SAtFA;;AAwFA,KAjXA;AAkXA,UAlXA,kBAkXA,EAlXA,EAkXA,KAlXA,EAkXA;AACA;AACA,uHADA;;AAGA,KAtXA;AAuXA,WAvXA,qBAuXA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KA5XA,EAxHA,E","file":"pages/tabbar/cate/cate.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/tabbar/cate/cate.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./cate.vue?vue&type=template&id=70658717&\"\nvar renderjs\nimport script from \"./cate.vue?vue&type=script&lang=js&\"\nexport * from \"./cate.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/cate/cate.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!./cate.vue?vue&type=template&id=70658717&\"","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!./cate.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!./cate.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav :statusBack=\"false\" :titleVal=\"'分类'\" :statusTitle=\"true\"></status-nav>\r\n\t\t<view class=\"disje mar-zy20\" :style=\"{paddingTop: (statusHNH+10)+'px'}\">\r\n\t\t\t<template v-if=\"cateList.length!=0\">\r\n\t\t\t\t<view class=\"cate-box\" :style=\"{paddingTop:statusHNH+'px'}\" style=\"overflow: hidden;overflow-y: scroll;\">\r\n\t\t\t\t\t<view class=\"fon26\">\r\n\t\t\t\t\t\t<view class=\"mar-s20 flexs\" :style=\"{color : ccurrent==indexc ? publicColor:''}\" \r\n\t\t\t\t\t\t:class=\"ccurrent==indexc?'bold cateActive':'catemo'\" \r\n\t\t\t\t\t\tv-for=\"(itemc,indexc) in cateList\" :key=\"indexc\"\r\n\t\t\t\t\t\t@tap=\"chooseCate(indexc)\">{{itemc.title}}</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view :style=\"{width:cateW+'px'}\" class=\"flexs\" style=\"height: 10px;\"></view>\r\n\t\t\t\t<view v-show=\"isLoading\" class=\"pad-x260\" style=\"width: 74%;\">\r\n\t\t\t\t\t<!-- 热门推荐 --> \r\n\t\t\t\t\t<template>\r\n\t\t\t\t\t\t<!-- 自定义轮播 --> \r\n\t\t\t\t\t\t<swiper-pu :bannerList=\"bannerList\" :isplay=\"isAutoPlay\" :newHeight=\"'154'\" :newRadius=\"'10'\" :newBottom=\"'10'\"></swiper-pu>\r\n\t\t\t\t\t\t<!-- 自定义二级分类 -->\r\n\t\t\t\t\t\t<view class=\"mar-x20 mar-s40\">\r\n\t\t\t\t\t\t\t<cate-pu :newCurrent=\"newCurrent*1\" :activeb=\"publicColor\" @choosecateEv=\"chooseTwo\" :newcateList=\"cateListTwo\"></cate-pu>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<!-- 列表 -->\r\n\t\t\t\t\t\t<block v-if=\"!isHot\">\r\n\t\t\t\t\t\t\t<view v-if=\"dataList.length!=0\">\r\n\t\t\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @praise=\"praiseEv\" @comfirmev=\"comfirmev\" :nFon=\"'14'\" :radiu=\"true\" :nmarz=\"'6'\" :nWidth=\"'90'\" :nHeight=\"'90'\" :list=\"dataList\"></list-pu>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view v-else style=\"padding-top: 150rpx;\">\r\n\t\t\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @praise=\"praiseEv\" @comfirmev=\"comfirmev\" :list=\"dataList\"></list-pu>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</block>\r\n\t\t\t\t\t\t<block v-else>\r\n\t\t\t\t\t\t\t<view v-if=\"dataShopList.length!=0\" style=\"margin-top: -20rpx;\">\r\n\t\t\t\t\t\t\t\t<view class=\"pad-sx20\">\r\n\t\t\t\t\t\t\t\t\t<view style=\"width: 48.6%;float: left;\">\r\n\t\t\t\t\t\t\t\t\t\t<view v-if=\"index1%2==0\" v-for=\"(item1,index1) in dataShopList\" :key=\"index1\" class=\"bacf radius15 mar-x20 animated fadeIn posir\" @tap=\"goPage(item1.id,index1)\">\r\n\t\t\t\t\t\t\t\t\t\t\t<image :src=\"item1.imgSrc\" mode=\"aspectFill\" style=\"width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;\"></image>\r\n\t\t\t\t\t\t\t\t\t\t\t<view class=\"pad-zy20 pad-s10 pad-x30\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold col3 clips2\">{{item1.title}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac fon20 mar-sx20\" v-if=\"!item1.isIntegral\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf mar-y10\" style=\"padding: 6rpx 10rpx;\" :style=\"{background:publicColor}\">{{item1.disease_name}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf\" v-if=\"item1.isTuan\" style=\"padding: 6rpx 10rpx;background: #F85050;\">团购</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf\" v-if=\"item1.isPing\" style=\"padding: 6rpx 10rpx;background: #F85050;\">拼团活动</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf\" v-if=\"item1.isXian\" style=\"padding: 6rpx 10rpx;background: #F85050;\">限时促销</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold\" style=\"color: #F85050;margin-right: 8rpx;\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isIntegral\" class=\"mar-s20\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view>积分:{{item1.integral}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac mar-s20\" v-if=\"item1.grade!=0\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<image src=\"/static/public/huiy.png\" style=\"width: 40rpx;height: 33rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon24 col3 mar-z10\">{{item1.level_text}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-else>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isPing\">拼团价</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isXian\">促销价</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t¥{{item1.zhePrice}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isXian || item1.isPing || item1.isTuan\" class=\"fon24\" style=\"text-decoration: line-through;color: #C7C7C7;\">¥{{item1.yuanPrice}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isPing\" class=\"disjbac mar-s20\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon24 col80\">已拼团{{item1.activity_group_num}}组</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<image v-for=\"(itemm,indexm) in item1.activity_group_cover\" :key=\"indexm\" :src=\"itemm\" mode=\"\" style=\"width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;\"></image>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isXian || item1.isPing || item1.isTuan\" class=\"fon24 col80 mar-s20\">结束时间:{{item1.activity_end_at}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t<view style=\"width: 48.6%;float: right;\">\r\n\t\t\t\t\t\t\t\t\t\t<view v-if=\"index1%2!=0\" v-for=\"(item1,index1) in dataShopList\" :key=\"index1\" class=\"bacf radius15 mar-x20 animated fadeIn posir\" @tap=\"goPage(item1.id,index1)\">\r\n\t\t\t\t\t\t\t\t\t\t\t<image :src=\"item1.imgSrc\" mode=\"aspectFill\" style=\"width: 100%;border-top-left-radius: 15rpx;border-top-right-radius: 15rpx;height: 325rpx;\"></image>\r\n\t\t\t\t\t\t\t\t\t\t\t<view class=\"pad-zy20 pad-s10 pad-x30\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold col3 clips2\">{{item1.title}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac fon20 mar-sx20\" v-if=\"!item1.isIntegral\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf mar-y10\" style=\"padding: 6rpx 10rpx;\" :style=\"{background:publicColor}\">{{item1.disease_name}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf\" v-if=\"item1.isTuan\" style=\"padding: 6rpx 10rpx;background: #F85050;\">团购</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf\" v-if=\"item1.isPing\" style=\"padding: 6rpx 10rpx;background: #F85050;\">拼团活动</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"radius10 colf\" v-if=\"item1.isXian\" style=\"padding: 6rpx 10rpx;background: #F85050;\">限时促销</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold\" style=\"color: #F85050;margin-right: 8rpx;\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isIntegral\" class=\"mar-s20\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view>积分:{{item1.integral}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac mar-s20\" v-if=\"item1.grade!=0\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<image src=\"/static/public/huiy.png\" style=\"width: 40rpx;height: 33rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon24 col3 mar-z10\">{{item1.level_text}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-else>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isPing\">拼团价</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isXian\">促销价</span>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t¥{{item1.zhePrice}}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isTuan || item1.isPing || item1.isXian\" class=\"fon24\" style=\"text-decoration: line-through;color: #C7C7C7;\">¥{{item1.yuanPrice}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isPing\" class=\"disjbac mar-s20\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon24 col80\">已拼团{{item1.activity_group_num}}组</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<image v-for=\"(itemm,indexm) in item1.activity_group_cover\" :key=\"indexm\" :src=\"itemm\" mode=\"\" style=\"width: 40rpx;height: 40rpx;border-radius: 100%;margin-left: -20rpx;\"></image>\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isXian || item1.isPing || item1.isTuan\" class=\"fon24 col80 mar-s20\">结束时间:{{item1.activity_end_at}}</view>\r\n\t\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 34%;\">\r\n\t\t\t\t\t\t\t\t<image class=\"zanw-img\" src=\"/static/public/nothing.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t\t\t<view class=\"fon24 col3\">暂无内容</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</block>\r\n\t\t\t\t\t</template>\r\n\t\t\t\t\t<!-- 秃顶种植 -->\r\n\t\t\t\t\t<!-- <template v-if=\"ccurrent!=0\">\r\n\t\t\t\t\t\t<view v-if=\"tuList.length!=0\">\r\n\t\t\t\t\t\t\t<cate-tu :isDetail=\"true\" :list=\"tuList\"></cate-tu>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 60%;\">\r\n\t\t\t\t\t\t\t<image class=\"zanw-img\" src=\"/static/public/nothing.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t\t<view class=\"fon24 col3\">暂无内容</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</template> -->\r\n\t\t\t\t</view>\r\n\t\t\t</template>\r\n\t\t</view>\r\n\t\t<!-- 底部tab -->\r\n\t\t<foot-tab :titleList=\"titleList\" :imgList=\"imgList\" :newcurrent='1'></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<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport swiperPu from '@/components/swiper-pu.vue';\r\n\timport cateTu from '@/components/cate-items/cate-tu.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\tcateTu\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tstatusHNH:uni.getStorageSync('electric_nav_height'),\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor'),\r\n\t\t\t\tccurrent:0,\r\n\t\t\t\tcateList:[],\r\n\t\t\t\tcateListTwo:[//二级分类\r\n\t\t\t\t\t\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],\r\n\t\t\t\tshowTop:false,//是否显示返回顶部\r\n\t\t\t\ttuList:[],\r\n\t\t\t\tnewCurrent:0,\r\n\t\t\t\tcateW:'',//分类宽度\r\n\t\t\t\tisLoading:false,\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\tcategory_id:'',//栏目ID\r\n\t\t\t\tdisease_id:'',//一级病种ID 可不填\r\n\t\t\t\tbannerList:[],\r\n\t\t\t\ttitleList:[],\r\n\t\t\t\timgList:[],\r\n\t\t\t\tzanArr:[],\r\n\t\t\t\tdataShopList:[],\r\n\t\t\t\ttimeList:[],\r\n\t\t\t\tisHot:false,\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\tif(this.ccurrent==0){\r\n\t\t\t\t\tthis.checkCate(this.category_id)//调用自主预约列表事件\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.otherEv(this.cateList[this.ccurrent].children[this.newCurrent].id)\r\n\t\t\t\t}\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\tonUnload() {\r\n\t\t\tthis.isAutoPlay = false;\r\n\t\t},\r\n\t\tonHide() {\r\n\t\t\tthis.isAutoPlay = false;\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tif(options.index==undefined) {\r\n\t\t\t\tthis.ccurrent = 0;\r\n\t\t\t} else {\r\n\t\t\t\tthis.ccurrent = options.index*1;\r\n\t\t\t}\r\n\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\tthis.$toolAll.tools.plantPoint(7);\r\n\t\t\tthis.checkSwi()\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.$toolAll.tools.isLogin();\r\n\t\t\tthis.isAutoPlay = true;\r\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){\r\n\t\t\t\tthis.checkBZ()//调用病种列表事件\r\n\t\t\t\tif(this.ccurrent==0) {\r\n\t\t\t\t\tif(this.category_id!='') this.checkCate(this.category_id)//调用左侧列表点击事件\r\n\t\t\t\t}\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.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\tthis.titleList = uni.getStorageSync('footTitle')\r\n\t\t\t\t\t\t\t\tthis.imgList = uni.getStorageSync('footimg')\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},\r\n\t\tmethods: {\r\n\t\t\tcheckSwi(){\r\n\t\t\t\tcheckBanner({position:'category-hot-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\t// \r\n\t\t\t\t\t}\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\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\tif(this.dataList[e].likes>1000) this.dataList[e].likes = '999+'\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\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\tcheckBZ(){//病种列表\r\n\t\t\t\tthis.$requst.post('archives/disease').then(res=>{\r\n\t\t\t\t\t// console.log('病种列表:',res);\r\n\t\t\t\t\tif(res.code==0 && res.data.length!=0){\r\n\t\t\t\t\t\tthis.cateList=[]\r\n\t\t\t\t\t\tres.data.forEach(item=>{\r\n\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\ttitle:item.name,\r\n\t\t\t\t\t\t\t\tpid:item.pid,\r\n\t\t\t\t\t\t\t\tsort:item.sort,\r\n\t\t\t\t\t\t\t\tchildren: item.children\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.cateList.push(obj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tlet reObj = {\r\n\t\t\t\t\t\t\tid:this.cateList[0].id,\r\n\t\t\t\t\t\t\ttitle:'热门推荐',\r\n\t\t\t\t\t\t\tpid:this.cateList[0].pid,\r\n\t\t\t\t\t\t\tsort:this.cateList[0].sort\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.cateList.unshift(reObj)\r\n\t\t\t\t\t\tif(this.ccurrent==0){\r\n\t\t\t\t\t\t\tthis.checkCate(this.category_id)//调用热门分类列表事件\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthis.chooseCate(this.ccurrent);\r\n\t\t\t\t\t\t\tif(this.cateList[this.ccurrent].length) {\r\n\t\t\t\t\t\t\t\tthis.otherEv(this.cateList[this.ccurrent].children[0].id);//调用其他分类列表事件\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(this.cateList.length!=0){\r\n\t\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\t\t\t\t\t\tquery.select('.cate-box').boundingClientRect((rect) => {\r\n\t\t\t\t\t\t\t\t\t// console.log('分类宽度:',rect.width);\r\n\t\t\t\t\t\t\t\t\tthis.cateW = rect.width\r\n\t\t\t\t\t\t\t\t}).exec()\r\n\t\t\t\t\t\t\t},300)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tsetTimeout(()=>{this.isLoading = true},500)\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tcheckCate(category_id){//分类列表事件\r\n\t\t\t\tthis.dataShopList = [];\r\n\t\t\t\t// this.$toolAll.tools.showToast('加载中...')\r\n\t\t\t\tthis.$requst.post('archives/hot',{category_id:category_id,page:this.page,size:this.size}).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(this.category_id==''){\r\n\t\t\t\t\t\t\tif(res.data.category.length!=0){\r\n\t\t\t\t\t\t\t\tthis.cateListTwo = []\r\n\t\t\t\t\t\t\t\tres.data.category.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet cateObj = {\r\n\t\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\t\tmodel:item.model,\r\n\t\t\t\t\t\t\t\t\t\tmodel_id:item.model_id,\r\n\t\t\t\t\t\t\t\t\t\tsort:item.sort,\r\n\t\t\t\t\t\t\t\t\t\ttitle:item.title\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tthis.cateListTwo.push(cateObj)\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tthis.cateListTwo.push({title:'热门商品'})\r\n\t\t\t\t\t\t\t\tthis.cateListTwo.push({title:'筛选'})\r\n\t\t\t\t\t\t\t\tthis.category_id = this.cateListTwo[0].id\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) {\r\n\t\t\t\t\t\t\tthis.dataList = [];\r\n\t\t\t\t\t\t\tuni.pageScrollTo({\r\n\t\t\t\t\t\t\t\tscrollTop:0,\r\n\t\t\t\t\t\t\t\tduration:0\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t} \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 tObj = {\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\tlikes:item.likes,//点赞数量\r\n\t\t\t\t\t\t\t\t\tis_liked:item.is_liked//是否已点赞\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.dataList.push(tObj);\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\tcheckData(disease_id){//一级病种列表事件\r\n\t\t\t\tthis.$requst.post('archives/disease-question',{disease_id:disease_id}).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\tthis.tuList = []\r\n\t\t\t\t\t\tif(res.data.list.length!=0){\r\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet arr = []\r\n\t\t\t\t\t\t\t\tif(item.children.length!=0){\r\n\t\t\t\t\t\t\t\t\titem.children.forEach(itemt=>{\r\n\t\t\t\t\t\t\t\t\t\tlet objt = {\r\n\t\t\t\t\t\t\t\t\t\t\tcategory_id:itemt.category_id,\r\n\t\t\t\t\t\t\t\t\t\t\tcontent:itemt.title,\r\n\t\t\t\t\t\t\t\t\t\t\tid:itemt.id,\r\n\t\t\t\t\t\t\t\t\t\t\tdisease_id:itemt.disease_id,//一级病种ID 1\r\n\t\t\t\t\t\t\t\t\t\t\tdisease_second_id:itemt.disease_second_id,//二级病种ID 12\r\n\t\t\t\t\t\t\t\t\t\t\tsubtitle:itemt.subtitle//内容副标题\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tarr.push(objt)\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\tlet obj = {\r\n\t\t\t\t\t\t\t\t\ttitle:item.name,\r\n\t\t\t\t\t\t\t\t\tsrc:'',\r\n\t\t\t\t\t\t\t\t\tlist:arr\r\n\t\t\t\t\t\t\t\t\t// \t{content:'秃顶种植保养周期'},\r\n\t\t\t\t\t\t\t\t\t// \t{content:'秃顶种植保养手册'},\r\n\t\t\t\t\t\t\t\t\t// \t{content:'秃顶种植保养项目'},\r\n\t\t\t\t\t\t\t\t\t// \t{content:'那些人需要保养'},\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\tthis.tuList.push(obj)\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\tchooseCate(index){//分类选中事件\r\n\t\t\t\tthis.page = 1;\r\n\t\t\t\tthis.ccurrent = index;\r\n\t\t\t\tthis.newCurrent = 0;\r\n\t\t\t\tif(this.ccurrent!=0){\r\n\t\t\t\t\t// this.checkData(this.cateList[index].id);\r\n\t\t\t\t\tif(this.cateList[index].children.length){\r\n\t\t\t\t\t\tthis.cateListTwo = []\r\n\t\t\t\t\t\tthis.cateList[index].children.forEach(item=>{\r\n\t\t\t\t\t\t\tlet cateObj = {\r\n\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\ttitle:item.name\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tthis.cateListTwo.push(cateObj)\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tthis.cateListTwo.push({title:'筛选'})\r\n\t\t\t\t\t\tthis.category_id = this.cateListTwo[0].id\r\n\t\t\t\t\t\tthis.otherEv(this.cateList[index].children[0].id);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.cateListTwo = [];\r\n\t\t\t\t\t\tthis.dataList = [];\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.category_id = '';\r\n\t\t\t\t\tthis.checkCate('');\r\n\t\t\t\t}\r\n\t\t\t\t// console.log('分类选中:',index);\r\n\t\t\t},\r\n\t\t\totherEv(id){\r\n\t\t\t\tthis.$requst.post('archives/disease-second-question',{disease_second_id:id,page:this.page,size:this.size}).then(res=>{\r\n\t\t\t\t\t// 获取列表\r\n\t\t\t\t\tif(this.page==1) {\r\n\t\t\t\t\t\tthis.dataList = [];\r\n\t\t\t\t\t\tuni.pageScrollTo({\r\n\t\t\t\t\t\t\tscrollTop:0,\r\n\t\t\t\t\t\t\tduration:0\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} \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 tObj = {\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(tObj);\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.dataList = [];\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tchooseTwo(index){//二级分类选择\r\n\t\t\t\tthis.newCurrent = index\r\n\t\t\t\tthis.isZanw = true;\r\n\t\t\t\tthis.isHot = false;\r\n\t\t\t\tthis.page = 1\r\n\t\t\t\tthis.category_id = this.cateListTwo[index].id\r\n\t\t\t\t// console.log('二级分类:',this.cateListTwo[index].title);\r\n\t\t\t\tif(this.cateListTwo[index].title=='筛选'){\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:'/pagesB/searchPage/searchPage'\r\n\t\t\t\t\t})\r\n\t\t\t\t} else if(this.cateListTwo[index].title=='热门商品'){\r\n\t\t\t\t\tthis.isHot = true;\r\n\t\t\t\t\tthis.checkSotList()\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(this.ccurrent==0){\r\n\t\t\t\t\t\tthis.checkCate(this.cateListTwo[index].id)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.otherEv(this.cateListTwo[index].id);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcheckSotList(){\r\n\t\t\t\tthis.dataList = [];\r\n\t\t\t\tlet params = {\r\n\t\t\t\t\tpage:1,\r\n\t\t\t\t\tsize:2000,\r\n\t\t\t\t\tis_hot:1\r\n\t\t\t\t}\r\n\t\t\t\tuni.request({\r\n\t\t\t\t\turl:`${uni.getStorageSync('hostapi')}spu/list`,\r\n\t\t\t\t\tdata:params,\r\n\t\t\t\t\tmethod:'post',\r\n\t\t\t\t\theader:{\r\n\t\t\t\t\t\t'Content-Type': 'application/json; charset=UTF-8',\r\n\t\t\t\t\t\t'Authorization': 'Bearer '+uni.getStorageSync('token') || ''\r\n\t\t\t\t\t},\r\n\t\t\t\t\tsuccess: (res) => {\r\n\t\t\t\t\t\tif(res.data.code==0){\r\n\t\t\t\t\t\t\tclearInterval(this.timer);\r\n\t\t\t\t\t\t\t// if(this.page==1) {\r\n\t\t\t\t\t\t\t\tthis.zanArr = [];\r\n\t\t\t\t\t\t\t\tthis.dataShopList = [];\r\n\t\t\t\t\t\t\t\tthis.timeList = [];\r\n\t\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\tthis.total = res.data.total;\r\n\t\t\t\t\t\t\tif(res.data.data.list.length!=0){\r\n\t\t\t\t\t\t\t\tres.data.data.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet tuan = false,ping = false,xian = false,integral = false;\r\n\t\t\t\t\t\t\t\t\tif(item.activity_type=='group_make') ping = true;\r\n\t\t\t\t\t\t\t\t\tif(item.activity_type=='group_buy') tuan = true;\r\n\t\t\t\t\t\t\t\t\tif(item.activity_type=='limit_time') xian = true;\r\n\t\t\t\t\t\t\t\t\tlet group_cover = [];\r\n\t\t\t\t\t\t\t\t\tif(item.activity_group_cover.length!=0) {\r\n\t\t\t\t\t\t\t\t\t\titem.activity_group_cover.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\t\t\tgroup_cover.push(this.$http + item)\r\n\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\t\timgSrc: this.$http + item.cover,\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\tzhePrice:item.price/100,\r\n\t\t\t\t\t\t\t\t\t\tyuanPrice:item.original_price/100,\r\n\t\t\t\t\t\t\t\t\t\tintegral:'',\r\n\t\t\t\t\t\t\t\t\t\tisTuan:tuan,//是否是团购\r\n\t\t\t\t\t\t\t\t\t\tisPing:ping,//是否是拼团活动\r\n\t\t\t\t\t\t\t\t\t\tisXian:xian,//是否是限时活动\r\n\t\t\t\t\t\t\t\t\t\tisIntegral:integral,//是否是积分\r\n\t\t\t\t\t\t\t\t\t\tgrade:'',\r\n\t\t\t\t\t\t\t\t\t\tdisease_name:item.disease_name,//病种名称\r\n\t\t\t\t\t\t\t\t\t\treponseTime:res.header.Date,//接口响应时间\r\n\t\t\t\t\t\t\t\t\t\tactivity_end_at:item.activity_end_at,//限时结束时间\r\n\t\t\t\t\t\t\t\t\t\tactivity_group_cover:group_cover,//参团人的头像\r\n\t\t\t\t\t\t\t\t\t\tactivity_group_num:item.activity_group_num,//已经参团人数\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tthis.zanArr.push(obj)\r\n\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\tthis.zanArr.forEach((item,index)=>{\r\n\t\t\t\t\t\t\t\t\tif(item.activity_end_at!='') {\r\n\t\t\t\t\t\t\t\t\t\tlet obj = {\r\n\t\t\t\t\t\t\t\t\t\t\tid:item.id, \r\n\t\t\t\t\t\t\t\t\t\t\treponseTime:item.reponseTime,\r\n\t\t\t\t\t\t\t\t\t\t\ttime:item.activity_end_at,\r\n\t\t\t\t\t\t\t\t\t\t\tnIndex:index\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tthis.timeList.push(obj);\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\tif(this.timeList!=0){\r\n\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('加载中...')\r\n\t\t\t\t\t\t\t\t\tthis.timer = setInterval(()=>{//定时器\r\n\t\t\t\t\t\t\t\t\t\tif(this.timeList.length!=0){\r\n\t\t\t\t\t\t\t\t\t\t\tthis.timeList.forEach((item,index)=>{\r\n\t\t\t\t\t\t\t\t\t\t\t\tif(item.id==this.zanArr[item.nIndex].id){\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet endTime = new Date(this.timeList[index].time).getTime();//把结束时间转时间戳\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.timeList[index].reponseTime = new Date(this.timeList[index].reponseTime).getTime() + 1000;//请求接口的时间递增,即:开始时间\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(this.timeList[index].reponseTime - endTime >=0) {//如果开始时间的时间戳 - 结束时间的时间戳 >= 0 活动结束\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.zanArr[item.nIndex].activity_end_at = \"活动已结束\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 继续进行倒计时\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.zanArr[item.nIndex].activity_end_at = this.$toolAll.tools.dayTime(this.timeList[index].time,this.timeList[index].reponseTime);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\t\t\t\t\tthis.dataShopList = this.zanArr;\r\n\t\t\t\t\t\t\t\t\t},1000)\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tthis.dataShopList = this.zanArr;\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})\r\n\t\t\t},\r\n\t\t\tgoPage(id,index){//进入商品详情事件\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pagesB/shopDetail/shopDetail?id=${id}&isIntegral=${this.dataShopList[index].isIntegral}`\r\n\t\t\t\t})\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}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\r\n</style>\r\n"],"sourceRoot":""} |