1 line
37 KiB
Plaintext
1 line
37 KiB
Plaintext
{"version":3,"sources":["uni-app:///main.js","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pages/tabbar/cate/cate.vue?377a","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pages/tabbar/cate/cate.vue?b5da","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pages/tabbar/cate/cate.vue?e7bc","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/pages/tabbar/cate/cate.vue?ba0f","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;AACsN;AACtN,gBAAgB,iNAAU;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;AAAg2B,CAAgB,kyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiJp3B,sE;AACA;AACA;AACA,sBADA;AAEA,kBAFA,EADA;;AAKA,MALA,kBAKA;AACA;AACA,iBADA;AAEA,kBAFA;AAGA;AAAA,OAHA;;AAMA;AAAA,OANA;;AASA,oBATA,EASA;AACA,gBAVA;AAWA,mBAXA;AAYA,eAZA,EAYA;AACA,sBAbA;AAcA,aAdA;AAeA,cAfA;AAgBA,eAhBA,EAgBA;AACA,kBAjBA;AAkBA,qBAlBA,EAkBA;AACA,oBAnBA,EAmBA;AACA,oBApBA;AAqBA,gBArBA;AAsBA,sBAtBA;AAuBA,kBAvBA;AAwBA,kBAxBA;AAyBA,uBAzBA;;AA2BA,GAjCA;AAkCA;AACA;AACA,aAFA,uBAEA;AACA;AACA,KAJA;AAKA;AACA,WANA,qBAMA;AACA;AACA,KARA;AASA;AACA,eAVA,yBAUA;AACA;AACA,KAZA;AAaA,gBAbA,0BAaA;AACA;AACA,KAfA,EAlCA;;AAmDA,cAnDA,wBAmDA,CAnDA,EAmDA;AACA;AACA,GArDA;AAsDA,eAtDA,2BAsDA;AACA;AACA;AACA;AACA;AACA,2CADA,CACA;AACA;AACA,OAJA,MAIA;AACA;AACA;AACA,KATA,MASA;AACA;AACA;AACA;AACA,GApEA;AAqEA,UArEA,sBAqEA;AACA;AACA,GAvEA;AAwEA,QAxEA,oBAwEA;AACA;AACA,GA1EA;AA2EA,QA3EA,kBA2EA,OA3EA,EA2EA;AACA;AACA;AACA,KAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA,GApFA;AAqFA,QArFA,oBAqFA;AACA;AACA;AACA,qBADA,CACA;AACA;AACA,qEADA,CACA;AACA;AACA;AACA,GA7FA;AA8FA;AACA,YADA,sBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8CADA;AAEA,6BAFA;AAGA,gCAHA;AAIA,8CAJA;;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;AACA,mBAHA;AAIA;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,eA/BA;AAgCA;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,SAvFA;;AAyFA,KAlXA;AAmXA,UAnXA,kBAmXA,EAnXA,EAmXA,KAnXA,EAmXA;AACA;AACA,uHADA;;AAGA,KAvXA;AAwXA,WAxXA,qBAwXA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KA7XA,EA9FA,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 \"!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./cate.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<!-- 状态栏 -->\n\t\t<status-nav :statusBack=\"false\" :titleVal=\"'分类'\" :statusTitle=\"true\"></status-nav>\n\t\t<view class=\"disje mar-zy20\" :style=\"{paddingTop: (statusHeight+10)+'px'}\">\n\t\t\t<template v-if=\"cateList.length!=0\">\n\t\t\t\t<view class=\"cate-box\" :style=\"{paddingTop:statusHeight+'px'}\" style=\"overflow: hidden;overflow-y: scroll;\">\n\t\t\t\t\t<view class=\"fon26\">\n\t\t\t\t\t\t<view class=\"mar-s20 flexs\" :style=\"{color : ccurrent==indexc ? publicColor:''}\" \n\t\t\t\t\t\t:class=\"ccurrent==indexc?'bold cateActive':'catemo'\" \n\t\t\t\t\t\tv-for=\"(itemc,indexc) in cateList\" :key=\"indexc\"\n\t\t\t\t\t\t@tap=\"chooseCate(indexc)\">{{itemc.title}}</view>\n\t\t\t\t\t</view>\n\t\t\t\t</view>\n\t\t\t\t<view :style=\"{width:cateW+'px'}\" class=\"flexs\" style=\"height: 10px;\"></view>\n\t\t\t\t<view v-show=\"isLoading\" class=\"pad-x260\" style=\"width: 74%;\">\n\t\t\t\t\t<!-- 热门推荐 --> \n\t\t\t\t\t<template>\n\t\t\t\t\t\t<!-- 自定义轮播 --> \n\t\t\t\t\t\t<swiper-pu :bannerList=\"bannerList\" :isplay=\"isAutoPlay\" :newHeight=\"'154'\" :newRadius=\"'10'\" :newBottom=\"'10'\"></swiper-pu>\n\t\t\t\t\t\t<!-- 自定义二级分类 -->\n\t\t\t\t\t\t<view class=\"mar-x20 mar-s40\">\n\t\t\t\t\t\t\t<cate-pu :newCurrent=\"newCurrent*1\" :activeb=\"publicColor\" @choosecateEv=\"chooseTwo\" :newcateList=\"cateListTwo\"></cate-pu>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<!-- 列表 -->\n\t\t\t\t\t\t<block v-if=\"!isHot\">\n\t\t\t\t\t\t\t<view v-if=\"dataList.length!=0\">\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>\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t<view v-else style=\"padding-top: 150rpx;\">\n\t\t\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @praise=\"praiseEv\" @comfirmev=\"comfirmev\" :list=\"dataList\"></list-pu>\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t</block>\n\t\t\t\t\t\t<block v-else>\n\t\t\t\t\t\t\t<view v-if=\"dataShopList.length!=0\" style=\"margin-top: -20rpx;\">\n\t\t\t\t\t\t\t\t<view class=\"pad-sx20\">\n\t\t\t\t\t\t\t\t\t<view style=\"width: 48.6%;float: left;\">\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)\">\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>\n\t\t\t\t\t\t\t\t\t\t\t<view class=\"pad-zy20 pad-s10 pad-x30\">\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold col3 clips2\">{{item1.title}}</view>\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac fon20 mar-sx20\" v-if=\"!item1.isIntegral\">\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>\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>\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>\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>\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold\" style=\"color: #F85050;margin-right: 8rpx;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isIntegral\" class=\"mar-s20\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view>积分:{{item1.integral}}</view>\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\">\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>\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>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-else>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isPing\">拼团价</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isXian\">促销价</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t¥{{item1.zhePrice}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\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>\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isPing\" class=\"disjbac mar-s20\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon24 col80\">已拼团{{item1.activity_group_num}}组</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\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>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\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>\n\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t<view style=\"width: 48.6%;float: right;\">\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)\">\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>\n\t\t\t\t\t\t\t\t\t\t\t<view class=\"pad-zy20 pad-s10 pad-x30\">\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold col3 clips2\">{{item1.title}}</view>\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac fon20 mar-sx20\" v-if=\"!item1.isIntegral\">\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>\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>\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>\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>\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon28 bold\" style=\"color: #F85050;margin-right: 8rpx;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isIntegral\" class=\"mar-s20\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view>积分:{{item1.integral}}</view>\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\">\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>\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>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<view v-else>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isPing\">拼团价</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"item1.isXian\">促销价</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t¥{{item1.zhePrice}}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\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>\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t<view v-if=\"item1.isPing\" class=\"disjbac mar-s20\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"fon24 col80\">已拼团{{item1.activity_group_num}}组</view>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<view class=\"disac\">\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>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t\t\t</view>\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>\n\t\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 34%;\">\n\t\t\t\t\t\t\t\t<image class=\"zanw-img\" src=\"/static/public/nothing.png\" mode=\"aspectFill\"></image>\n\t\t\t\t\t\t\t\t<view class=\"fon24 col3\">暂无内容</view>\n\t\t\t\t\t\t\t</view>\n\t\t\t\t\t\t</block>\n\t\t\t\t\t</template>\n\t\t\t\t\t<!-- 秃顶种植 -->\n\t\t\t\t\t<!-- <template v-if=\"ccurrent!=0\">\n\t\t\t\t\t\t<view v-if=\"tuList.length!=0\">\n\t\t\t\t\t\t\t<cate-tu :isDetail=\"true\" :list=\"tuList\"></cate-tu>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 60%;\">\n\t\t\t\t\t\t\t<image class=\"zanw-img\" src=\"/static/public/nothing.png\" mode=\"aspectFill\"></image>\n\t\t\t\t\t\t\t<view class=\"fon24 col3\">暂无内容</view>\n\t\t\t\t\t\t</view>\n\t\t\t\t\t</template> -->\n\t\t\t\t</view>\n\t\t\t</template>\n\t\t</view>\n\t\t<!-- 底部tab -->\n\t\t<foot-tab :titleList=\"titleList\" :imgList=\"imgList\" :newcurrent='1'></foot-tab>\n\t\t<!-- 返回顶部 -->\n\t\t<!-- <back-top :showTop=\"showTop\" @backTop=\"backTop\"></back-top> -->\n\t\t<!-- 用户信息授权,手机号授权 -->\n\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\n\t</view>\n</template>\n\n<script>\n\timport swiperPu from '@/components/swiper-pu.vue';\n\timport cateTu from '@/components/cate-items/cate-tu.vue';\n\timport {collectionEV,cancleCollectionEV,checkBanner} from '@/jsFile/publicAPI.js';\n\texport default {\n\t\tcomponents:{\n\t\t\tswiperPu,\n\t\t\tcateTu\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tccurrent:0,\n\t\t\t\tcateList:[],\n\t\t\t\tcateListTwo:[//二级分类\n\t\t\t\t\t\n\t\t\t\t],\n\t\t\t\tdataList:[//小课堂数据列表\n\t\t\t\t\t\n\t\t\t\t],\n\t\t\t\tshowTop:false,//是否显示返回顶部\n\t\t\t\ttuList:[],\n\t\t\t\tnewCurrent:0,\n\t\t\t\tcateW:'',//分类宽度\n\t\t\t\tisLoading:false,\n\t\t\t\tpage:1,\n\t\t\t\tsize:10,\n\t\t\t\ttotal:'',//总数\n\t\t\t\tisZanw:true,\n\t\t\t\tcategory_id:'',//栏目ID\n\t\t\t\tdisease_id:'',//一级病种ID 可不填\n\t\t\t\tbannerList:[],\n\t\t\t\tzanArr:[],\n\t\t\t\tdataShopList:[],\n\t\t\t\ttimeList:[],\n\t\t\t\tisHot:false,\n\t\t\t\tisAutoPlay:false,\n\t\t\t}\n\t\t},\n\t\tcomputed: {\n\t\t\t// 底部标题\n\t\t\ttitleList() {\n\t\t\t\treturn this.$store.state.titleList \n\t\t\t},\n\t\t\t// 底部图标\n\t\t\timgList() {\n\t\t\t\treturn this.$store.state.imgList\n\t\t\t},\n\t\t\t// 主题颜色\n\t\t\tpublicColor() {\n\t\t\t\treturn this.$store.state.publicColor\n\t\t\t},\n\t\t\tstatusHeight() {\n\t\t\t\treturn this.$store.state.statusHeight\n\t\t\t}\n\t\t},\n\t\tonPageScroll(e) {\n\t\t e.scrollTop > 360 ? this.showTop = true : this.showTop = false\n\t\t},\n\t\tonReachBottom() {//触底事件\n\t\t\tif(this.total!=this.dataList.length){\n\t\t\t\tthis.page++\n\t\t\t\tif(this.ccurrent==0){\n\t\t\t\t\tif(this.cateListTwo[this.newCurrent].title!='热门商品') {\n\t\t\t\t\t\tthis.checkCate(this.category_id)//调用分类列表事件\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.otherEv(this.cateList[this.ccurrent].children[this.newCurrent].id)\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)\n\t\t\t\tthis.isZanw = false\n\t\t\t}\n\t\t},\n\t\tonUnload() {\n\t\t\tthis.isAutoPlay = false;\n\t\t},\n\t\tonHide() {\n\t\t\tthis.isAutoPlay = false;\n\t\t},\n\t\tonLoad(options) {\n\t\t\tif(options.index==undefined) {\n\t\t\t\tthis.ccurrent = 0;\n\t\t\t} else {\n\t\t\t\tthis.ccurrent = options.index*1;\n\t\t\t}\n\t\t\t// 调用tools.js中的种植埋点事件\n\t\t\tthis.$toolAll.tools.plantPoint(7);\n\t\t\tthis.checkSwi()\n\t\t},\n\t\tonShow() {\n\t\t\tthis.isAutoPlay = true;\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){\n\t\t\t\tthis.checkBZ()//调用病种列表事件\n\t\t\t\tif(this.ccurrent==0) {\n\t\t\t\t\tif(this.category_id!='') this.checkCate(this.category_id)//调用左侧列表点击事件\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\tmethods: {\n\t\t\tcheckSwi(){\n\t\t\t\tcheckBanner({position:'category-hot-banner'}).then(res=>{\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tif(res.data.length!=0){\n\t\t\t\t\t\t\tres.data.forEach(item=>{\n\t\t\t\t\t\t\t\tlet isVideo = false\n\t\t\t\t\t\t\t\tif(item.type!='img') isVideo = true\n\t\t\t\t\t\t\t\tlet banObj = {\n\t\t\t\t\t\t\t\t\timgSrc:this.$http + item.src,\n\t\t\t\t\t\t\t\t\turl:item.url,\n\t\t\t\t\t\t\t\t\tisVideo:isVideo,\n\t\t\t\t\t\t\t\t\tposter:this.$http + item.src,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthis.bannerList.push(banObj)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// \n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tchooseLike(e){//收藏事件\n\t\t\t\t// console.log(this.dataList[e].is_collected);\n\t\t\t\tif(this.dataList[e].is_collected==0){\n\t\t\t\t\tthis.dataList[e].is_collected = 1\n\t\t\t\t\tthis.dataList[e].collects++;\n\t\t\t\t\t// 调用收藏事件\n\t\t\t\t\tcollectionEV({action:'collect',archive_id:this.dataList[e].id})\n\t\t\t\t}\n\t\t\t},\n\t\t\tpraiseEv(e){ // 点赞事件\n\t\t\t\t// console.log(this.dataList[e].is_collected);\n\t\t\t\tif(this.dataList[e].is_liked==0){\n\t\t\t\t\tthis.dataList[e].is_liked = 1;\n\t\t\t\t\tthis.dataList[e].likes++;\n\t\t\t\t\tif(this.dataList[e].likes>1000) this.dataList[e].likes = '999+'\n\t\t\t\t\t// 调用收藏事件\n\t\t\t\t\tcollectionEV({action:'like',archive_id:this.dataList[e].id})\n\t\t\t\t}\n\t\t\t},\n\t\t\tcomfirmev(e){//确认取消收藏事件\n\t\t\t\tthis.dataList[e].is_collected = 0\n\t\t\t\tthis.$toolAll.tools.showToast('正在取消...','loading')\n\t\t\t\tthis.dataList[e].collects--;\n\t\t\t\t// 调用取消收藏事件\n\t\t\t\tcancleCollectionEV({action:'collect',archive_id:this.dataList[e].id})\t\n\t\t\t},\n\t\t\tcheckBZ(){//病种列表\n\t\t\t\tthis.$requst.post('archives/disease').then(res=>{\n\t\t\t\t\t// console.log('病种列表:',res);\n\t\t\t\t\tif(res.code==0 && res.data.length!=0){\n\t\t\t\t\t\tthis.cateList=[]\n\t\t\t\t\t\tres.data.forEach(item=>{\n\t\t\t\t\t\t\tlet obj = {\n\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\ttitle:item.name,\n\t\t\t\t\t\t\t\tpid:item.pid,\n\t\t\t\t\t\t\t\tsort:item.sort,\n\t\t\t\t\t\t\t\tchildren: item.children\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.cateList.push(obj)\n\t\t\t\t\t\t})\n\t\t\t\t\t\tlet reObj = {\n\t\t\t\t\t\t\tid:this.cateList[0].id,\n\t\t\t\t\t\t\ttitle:'热门推荐',\n\t\t\t\t\t\t\tpid:this.cateList[0].pid,\n\t\t\t\t\t\t\tsort:this.cateList[0].sort\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthis.cateList.unshift(reObj)\n\t\t\t\t\t\tif(this.ccurrent==0){\n\t\t\t\t\t\t\tthis.checkCate(this.category_id)//调用热门分类列表事件\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.chooseCate(this.ccurrent);\n\t\t\t\t\t\t\tif(this.cateList[this.ccurrent].length) {\n\t\t\t\t\t\t\t\tthis.otherEv(this.cateList[this.ccurrent].children[0].id);//调用其他分类列表事件\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.cateList.length!=0){\n\t\t\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\t\t\tconst query = wx.createSelectorQuery()\n\t\t\t\t\t\t\t\tquery.select('.cate-box').boundingClientRect((rect) => {\n\t\t\t\t\t\t\t\t\t// console.log('分类宽度:',rect.width);\n\t\t\t\t\t\t\t\t\tthis.cateW = rect.width\n\t\t\t\t\t\t\t\t}).exec()\n\t\t\t\t\t\t\t},300)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetTimeout(()=>{this.isLoading = true},500)\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tcheckCate(category_id){//分类列表事件\n\t\t\t\tthis.dataShopList = [];\n\t\t\t\t// this.$toolAll.tools.showToast('加载中...')\n\t\t\t\tthis.$requst.post('archives/hot',{category_id:category_id,page:this.page,size:this.size}).then(res=>{\n\t\t\t\t\t// console.log('分类列表:',res);\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tif(this.category_id==''){\n\t\t\t\t\t\t\tif(res.data.category.length!=0){\n\t\t\t\t\t\t\t\tthis.cateListTwo = []\n\t\t\t\t\t\t\t\tres.data.category.forEach(item=>{\n\t\t\t\t\t\t\t\t\tlet cateObj = {\n\t\t\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\t\t\tmodel:item.model,\n\t\t\t\t\t\t\t\t\t\tmodel_id:item.model_id,\n\t\t\t\t\t\t\t\t\t\tsort:item.sort,\n\t\t\t\t\t\t\t\t\t\ttitle:item.title\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.cateListTwo.push(cateObj)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.cateListTwo.push({title:'热门商品'})\n\t\t\t\t\t\t\t\tthis.cateListTwo.push({title:'筛选'})\n\t\t\t\t\t\t\t\tthis.category_id = this.cateListTwo[0].id\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// 获取列表\n\t\t\t\t\t\tif(this.page==1) {\n\t\t\t\t\t\t\tthis.dataList = [];\n\t\t\t\t\t\t\tuni.pageScrollTo({\n\t\t\t\t\t\t\t\tscrollTop:0,\n\t\t\t\t\t\t\t\tduration:0\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t} \n\t\t\t\t\t\tif(res.data.list.list.length!=0){\n\t\t\t\t\t\t\tthis.total = res.data.list.total\n\t\t\t\t\t\t\tres.data.list.list.forEach(item=>{\n\t\t\t\t\t\t\t\tlet fabImg = '';\n\t\t\t\t\t\t\t\tif(item.published_headimgurl!='' && item.published_headimgurl!=null) fabImg = this.$http + item.published_headimgurl;\n\t\t\t\t\t\t\t\tlet tObj = {\n\t\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\n\t\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\t\tis_collected:item.is_collected,//是否已收藏\n\t\t\t\t\t\t\t\t\tcollects:item.collects,//收藏量\n\t\t\t\t\t\t\t\t\tviews:item.views,//查看量\n\t\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\n\t\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\n\t\t\t\t\t\t\t\t\ttitle:item.title,//标题\n\t\t\t\t\t\t\t\t\tcontent:item.subtitle,//副标题\n\t\t\t\t\t\t\t\t\thead_img: fabImg || '/static/public/logo.png',//发布者头像\n\t\t\t\t\t\t\t\t\tname:item.published_by || '恒美植发',//发布者昵称\n\t\t\t\t\t\t\t\t\tisVideo:item.video.includes(\".mp4\"),//是否是视频\n\t\t\t\t\t\t\t\t\tlikes:item.likes,//点赞数量\n\t\t\t\t\t\t\t\t\tis_liked:item.is_liked//是否已点赞\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthis.dataList.push(tObj);\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},error=>{})\n\t\t\t},\n\t\t\tcheckData(disease_id){//一级病种列表事件\n\t\t\t\tthis.$requst.post('archives/disease-question',{disease_id:disease_id}).then(res=>{\n\t\t\t\t\t// console.log('一级病种列表内容:',res);\n\t\t\t\t\tif(res.code==0){\n\t\t\t\t\t\tthis.tuList = []\n\t\t\t\t\t\tif(res.data.list.length!=0){\n\t\t\t\t\t\t\tres.data.list.forEach(item=>{\n\t\t\t\t\t\t\t\tlet arr = []\n\t\t\t\t\t\t\t\tif(item.children.length!=0){\n\t\t\t\t\t\t\t\t\titem.children.forEach(itemt=>{\n\t\t\t\t\t\t\t\t\t\tlet objt = {\n\t\t\t\t\t\t\t\t\t\t\tcategory_id:itemt.category_id,\n\t\t\t\t\t\t\t\t\t\t\tcontent:itemt.title,\n\t\t\t\t\t\t\t\t\t\t\tid:itemt.id,\n\t\t\t\t\t\t\t\t\t\t\tdisease_id:itemt.disease_id,//一级病种ID 1\n\t\t\t\t\t\t\t\t\t\t\tdisease_second_id:itemt.disease_second_id,//二级病种ID 12\n\t\t\t\t\t\t\t\t\t\t\tsubtitle:itemt.subtitle//内容副标题\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tarr.push(objt)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlet obj = {\n\t\t\t\t\t\t\t\t\ttitle:item.name,\n\t\t\t\t\t\t\t\t\tsrc:'',\n\t\t\t\t\t\t\t\t\tlist:arr\n\t\t\t\t\t\t\t\t\t// \t{content:'秃顶种植保养周期'},\n\t\t\t\t\t\t\t\t\t// \t{content:'秃顶种植保养手册'},\n\t\t\t\t\t\t\t\t\t// \t{content:'秃顶种植保养项目'},\n\t\t\t\t\t\t\t\t\t// \t{content:'那些人需要保养'},\n\t\t\t\t\t\t\t\t\t// ]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tthis.tuList.push(obj)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},error=>{})\n\t\t\t},\n\t\t\tchooseCate(index){//分类选中事件\n\t\t\t\tthis.page = 1;\n\t\t\t\tthis.ccurrent = index;\n\t\t\t\tthis.newCurrent = 0;\n\t\t\t\tif(this.ccurrent!=0){\n\t\t\t\t\t// this.checkData(this.cateList[index].id);\n\t\t\t\t\tif(this.cateList[index].children.length){\n\t\t\t\t\t\tthis.cateListTwo = []\n\t\t\t\t\t\tthis.cateList[index].children.forEach(item=>{\n\t\t\t\t\t\t\tlet cateObj = {\n\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\ttitle:item.name\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.cateListTwo.push(cateObj)\n\t\t\t\t\t\t})\n\t\t\t\t\t\tthis.cateListTwo.push({title:'筛选'})\n\t\t\t\t\t\tthis.category_id = this.cateListTwo[0].id\n\t\t\t\t\t\tthis.otherEv(this.cateList[index].children[0].id);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.cateListTwo = [];\n\t\t\t\t\t\tthis.dataList = [];\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tthis.category_id = '';\n\t\t\t\t\tthis.checkCate('');\n\t\t\t\t}\n\t\t\t\t// console.log('分类选中:',index);\n\t\t\t},\n\t\t\totherEv(id){\n\t\t\t\tthis.$requst.post('archives/disease-second-question',{disease_second_id:id,page:this.page,size:this.size}).then(res=>{\n\t\t\t\t\t// 获取列表\n\t\t\t\t\tif(this.page==1) {\n\t\t\t\t\t\tthis.dataList = [];\n\t\t\t\t\t\tuni.pageScrollTo({\n\t\t\t\t\t\t\tscrollTop:0,\n\t\t\t\t\t\t\tduration:0\n\t\t\t\t\t\t})\n\t\t\t\t\t} \n\t\t\t\t\tif(res.data.list.list.length!=0){\n\t\t\t\t\t\tthis.total = res.data.list.total\n\t\t\t\t\t\tres.data.list.list.forEach(item=>{\n\t\t\t\t\t\t\tlet fabImg = '';\n\t\t\t\t\t\t\tif(item.published_headimgurl!='' && item.published_headimgurl!=null) fabImg = this.$http + item.published_headimgurl;\n\t\t\t\t\t\t\tlet tObj = {\n\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\n\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\tis_collected:item.is_collected,//是否已收藏\n\t\t\t\t\t\t\t\tcollects:item.collects,//收藏量\n\t\t\t\t\t\t\t\tviews:item.views,//查看量\n\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\n\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\n\t\t\t\t\t\t\t\ttitle:item.title,//标题\n\t\t\t\t\t\t\t\tcontent:item.subtitle,//副标题\n\t\t\t\t\t\t\t\thead_img: fabImg || '/static/public/logo.png',//发布者头像\n\t\t\t\t\t\t\t\tname:item.published_by || '恒美植发',//发布者昵称\n\t\t\t\t\t\t\t\tisVideo:item.video.includes(\".mp4\"),//是否是视频\n\t\t\t\t\t\t\t\tlikes:item.likes,//点赞数量\n\t\t\t\t\t\t\t\tis_liked:item.is_liked//是否已点赞\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.dataList.push(tObj);\n\t\t\t\t\t\t})\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.dataList = [];\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tchooseTwo(index){//二级分类选择\n\t\t\t\tthis.newCurrent = index\n\t\t\t\tthis.isZanw = true;\n\t\t\t\tthis.isHot = false;\n\t\t\t\tthis.page = 1\n\t\t\t\tthis.category_id = this.cateListTwo[index].id\n\t\t\t\t// console.log('二级分类:',this.cateListTwo[index].title);\n\t\t\t\tif(this.cateListTwo[index].title=='筛选'){\n\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\turl:'/pagesB/searchPage/searchPage'\n\t\t\t\t\t})\n\t\t\t\t} else if(this.cateListTwo[index].title=='热门商品'){\n\t\t\t\t\tthis.isHot = true;\n\t\t\t\t\tthis.checkSotList()\n\t\t\t\t} else {\n\t\t\t\t\tif(this.ccurrent==0){\n\t\t\t\t\t\tthis.checkCate(this.cateListTwo[index].id)\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.otherEv(this.cateListTwo[index].id);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\tcheckSotList(){\n\t\t\t\tthis.dataList = [];\n\t\t\t\tlet params = {\n\t\t\t\t\tpage:1,\n\t\t\t\t\tsize:2000,\n\t\t\t\t\tis_hot:1\n\t\t\t\t}\n\t\t\t\tuni.request({\n\t\t\t\t\turl:`${uni.getStorageSync('hostapi')}spu/list`,\n\t\t\t\t\tdata:params,\n\t\t\t\t\tmethod:'post',\n\t\t\t\t\theader:{\n\t\t\t\t\t\t'Content-Type': 'application/json; charset=UTF-8',\n\t\t\t\t\t\t'Authorization': 'Bearer '+uni.getStorageSync('token') || ''\n\t\t\t\t\t},\n\t\t\t\t\tsuccess: (res) => {\n\t\t\t\t\t\tif(res.data.code==0){\n\t\t\t\t\t\t\tclearInterval(this.timer);\n\t\t\t\t\t\t\t// if(this.page==1) {\n\t\t\t\t\t\t\t\tthis.zanArr = [];\n\t\t\t\t\t\t\t\tthis.dataShopList = [];\n\t\t\t\t\t\t\t\tthis.timeList = [];\n\t\t\t\t\t\t\t// }\n\t\t\t\t\t\t\tthis.total = res.data.total;\n\t\t\t\t\t\t\tif(res.data.data.list.length!=0){\n\t\t\t\t\t\t\t\tres.data.data.list.forEach(item=>{\n\t\t\t\t\t\t\t\t\tlet tuan = false,ping = false,xian = false,integral = false;\n\t\t\t\t\t\t\t\t\tif(item.activity_type=='group_make') ping = true;\n\t\t\t\t\t\t\t\t\tif(item.activity_type=='group_buy') tuan = true;\n\t\t\t\t\t\t\t\t\tif(item.activity_type=='limit_time') xian = true;\n\t\t\t\t\t\t\t\t\tlet group_cover = [];\n\t\t\t\t\t\t\t\t\tif(item.activity_group_cover.length!=0) {\n\t\t\t\t\t\t\t\t\t\titem.activity_group_cover.forEach(item=>{\n\t\t\t\t\t\t\t\t\t\t\t// group_cover.push(this.$http + item)\n\t\t\t\t\t\t\t\t\t\t\tgroup_cover.push(item)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tlet obj = {\n\t\t\t\t\t\t\t\t\t\tid:item.id,\n\t\t\t\t\t\t\t\t\t\timgSrc: this.$http + item.cover,\n\t\t\t\t\t\t\t\t\t\ttitle: item.name,\n\t\t\t\t\t\t\t\t\t\tzhePrice:item.price/100,\n\t\t\t\t\t\t\t\t\t\tyuanPrice:item.original_price/100,\n\t\t\t\t\t\t\t\t\t\tintegral:'',\n\t\t\t\t\t\t\t\t\t\tisTuan:tuan,//是否是团购\n\t\t\t\t\t\t\t\t\t\tisPing:ping,//是否是拼团活动\n\t\t\t\t\t\t\t\t\t\tisXian:xian,//是否是限时活动\n\t\t\t\t\t\t\t\t\t\tisIntegral:integral,//是否是积分\n\t\t\t\t\t\t\t\t\t\tgrade:'',\n\t\t\t\t\t\t\t\t\t\tdisease_name:item.disease_name,//病种名称\n\t\t\t\t\t\t\t\t\t\treponseTime:res.header.Date,//接口响应时间\n\t\t\t\t\t\t\t\t\t\tactivity_end_at:item.activity_end_at,//限时结束时间\n\t\t\t\t\t\t\t\t\t\tactivity_group_cover:group_cover,//参团人的头像\n\t\t\t\t\t\t\t\t\t\tactivity_group_num:item.activity_group_num,//已经参团人数\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.zanArr.push(obj)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tthis.zanArr.forEach((item,index)=>{\n\t\t\t\t\t\t\t\t\tif(item.activity_end_at!='') {\n\t\t\t\t\t\t\t\t\t\tlet obj = {\n\t\t\t\t\t\t\t\t\t\t\tid:item.id, \n\t\t\t\t\t\t\t\t\t\t\treponseTime:item.reponseTime,\n\t\t\t\t\t\t\t\t\t\t\ttime:item.activity_end_at,\n\t\t\t\t\t\t\t\t\t\t\tnIndex:index\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tthis.timeList.push(obj);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\tif(this.timeList!=0){\n\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('加载中...')\n\t\t\t\t\t\t\t\t\tthis.timer = setInterval(()=>{//定时器\n\t\t\t\t\t\t\t\t\t\tif(this.timeList.length!=0){\n\t\t\t\t\t\t\t\t\t\t\tthis.timeList.forEach((item,index)=>{\n\t\t\t\t\t\t\t\t\t\t\t\tif(item.id==this.zanArr[item.nIndex].id){\n\t\t\t\t\t\t\t\t\t\t\t\t\tlet endTime = new Date(this.timeList[index].time).getTime();//把结束时间转时间戳\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;//请求接口的时间递增,即:开始时间\n\t\t\t\t\t\t\t\t\t\t\t\t\tif(this.timeList[index].reponseTime - endTime >=0) {//如果开始时间的时间戳 - 结束时间的时间戳 >= 0 活动结束\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis.zanArr[item.nIndex].activity_end_at = \"活动已结束\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 继续进行倒计时\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);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t},1000)\n\t\t\t\t\t\t\t\t\tsetTimeout(()=>{\n\t\t\t\t\t\t\t\t\t\tthis.dataShopList = this.zanArr;\n\t\t\t\t\t\t\t\t\t},1000)\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tthis.dataShopList = this.zanArr;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t},\n\t\t\tgoPage(id,index){//进入商品详情事件\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:`/pagesB/shopDetail/shopDetail?id=${id}&isIntegral=${this.dataShopList[index].isIntegral}`\n\t\t\t\t})\n\t\t\t},\n\t\t\tbackTop(){//回到顶部事件\n\t\t\t uni.pageScrollTo({\n\t\t\t scrollTop: 0,\n\t\t\t duration: 300\n\t\t\t });\n\t\t\t},\n\t\t}\n\t}\n</script>\n\n<style>\n\n</style>\n"],"sourceRoot":""} |