hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/pagesB/problemDetail/problemDetail.js.map

1 line
49 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

{"version":3,"sources":["uni-app:///main.js",null,"webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/problemDetail/problemDetail.vue?e8e3","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/problemDetail/problemDetail.vue?2204","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/problemDetail/problemDetail.vue?8852","uni-app:///pagesB/problemDetail/problemDetail.vue"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,sH;AACAA,UAAU,CAACC,sBAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAA0H;AAC1H;AACiE;AACL;;;AAG5D;AACmL;AACnL,gBAAgB,uLAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,wFAAM;AACR,EAAE,iGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4FAAU;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;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACbA;AAAA;AAAA;AAAA;AAA0rB,CAAgB,yqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACgP9sB,sE;;AAEA;AACA;AACA,0BADA;AAEA,sBAFA;AAGA,oBAHA,EADA;;AAMA,MANA,kBAMA;AACA;AACA,8DADA;AAEA,sBAFA;AAGA,mBAHA;AAIA,gDAJA;AAKA,iEALA,EAKA;AACA,oBANA;AAOA,mBAPA;AAQA,kBARA;AASA,oBATA,EASA;AACA;AAAA,OAVA;AAYA;AAAA,OAZA;AAcA,oBAdA;AAeA,yBAfA,EAeA;AACA,mBAhBA;AAiBA,gCAjBA,EAiBA;AACA,cAlBA;AAmBA,oBAnBA,EAmBA;AACA;AAAA,OApBA;AAsBA;AAAA,OAtBA;AAwBA;AAAA,OAxBA;AA0BA,mBA1BA,EA0BA;AACA,oBA3BA,EA2BA;AACA,qBA5BA,EA4BA;AACA,gBA7BA,EA6BA;AACA;AACA,iBA/BA;AAgCA,qBAhCA;AAiCA,oBAjCA;AAkCA,gBAlCA;AAmCA,sBAnCA;AAoCA,kBApCA;AAqCA,kBArCA;AAsCA,uBAtCA;AAuCA,gBAvCA;;AAyCA,GAhDA;AAiDA,cAjDA,wBAiDA,CAjDA,EAiDA;AACA;AACA,GAnDA;AAoDA,eApDA,2BAoDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAvEA;AAwEA,iBAxEA,6BAwEA,EAxEA;AAyEA,mBAzEA,6BAyEA,GAzEA,EAyEA;AACA;AACA;AACA;AACA,UADA,EACA;AACA,8BAFA;AAGA,6BAHA,CAGA;AAHA;AAKA;AACA;AACA,0CADA,EACA;AACA,uOAFA,EAEA;AACA,iDAHA,CAGA;AAHA;AAKA;AACA,GAxFA;AAyFA,QAzFA,oBAyFA;AACA;AACA,GA3FA;AA4FA,UA5FA,sBA4FA;AACA;AACA,GA9FA;AA+FA,QA/FA,oBA+FA;AACA;AACA,GAjGA;AAkGA,QAlGA,kBAkGA,OAlGA,EAkGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BADA;AAEA;AACA;AACA;AACA,8BADA;AAEA,8CAFA,CAEA;AAFA;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAPA,EAOA,mBAPA;AAQA;AACA,WAjBA;;AAmBA,OApBA,MAoBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UADA,EACA;AACA,uBAFA;AAGA,6BAHA,CAGA;AAHA;AAKA;AACA,GAzIA;AA0IA;AACA,cADA,wBACA;AACA;AACA,KAHA;AAIA,kBAJA,0BAIA,CAJA,EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SANA,EAMA,mBANA;AAOA,OARA,MAQA;AACA;AACA;AACA,KAhBA;AAiBA,cAjBA,sBAiBA,CAjBA,EAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA1CA;AA2CA,aA3CA,qBA2CA,CA3CA,EA2CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAhEA;AAiEA,eAjEA,uBAiEA,CAjEA,EAiEA;AACA;AACA;AACA;AACA;AACA;AACA,KAvEA;AAwEA,cAxEA,sBAwEA,CAxEA,EAwEA;AACA;AACA;AACA;AACA;AACA,KA7EA;AA8EA,WA9EA,mBA8EA,CA9EA,EA8EA;AACA;AACA;AACA;AACA;AACA;AACA,KApFA;AAqFA,YArFA,oBAqFA,CArFA,EAqFA;AACA;AACA,KAvFA;AAwFA,YAxFA,sBAwFA;AACA;AACA,8CADA;;AAGA,KA5FA;AA6FA,SA7FA,mBA6FA;AACA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA,yCAFA,CAEA;AACA;AACA;AACA,cADA,EACA;AACA,iCAFA,CAEA;AAFA;AAIA;AACA;AACA;AACA;AACA,KA/GA;AAgHA,WAhHA,qBAgHA;AACA;AACA;AACA;AACA,KApHA;AAqHA,eArHA,uBAqHA,KArHA,EAqHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BADA,EACA;AACA,iCAFA,EAEA;AACA,mCAHA,EAGA;AACA,uCAJA,EAIA;AACA,2CALA,EAKA;AACA,+BANA;;AAQA;AACA;AACA;AACA;AACA;AACA,aAdA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAJA,EAIA,IAJA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBADA,EACA;AACA,sCAFA;AAGA,mCAHA,CAGA;AAHA;AAKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yCADA;AAEA,qBAFA;AAGA,4BAHA;AAIA,wBAJA;;AAMA;AACA;AACA,WATA;AAUA;AACA;AACA;AACA,8CADA;AAEA,wDAFA;AAGA,2BAHA;AAIA,wBAJA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6CADA,EACA;AACA,2BAFA;AAGA,+CAHA,EAGA;AACA,uCAJA,EAIA;AACA,iCALA,EAKA;AACA,mDANA,EAMA;AACA,gDAPA,EAOA;AACA,iCARA,EAQA;AACA,sCATA,EASA;AACA,6DAVA,EAUA;AACA,iDAXA,EAWA;AACA,oDAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA,aApBA;AAqBA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA,gEAFA;AAGA,+BAHA;AAIA,iDAJA;AAKA,oCALA;AAMA,8BANA;AAOA,qCAPA;AAQA,6CARA;;AAUA;AACA,aAZA;AAaA;AACA;AACA;AACA,OArHA,EAqHA,mBArHA;AAsHA,KA5OA;AA6OA,gBA7OA,wBA6OA,CA7OA,EA6OA;AACA;AACA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,+CADA,EACA;AACA,6BAFA;AAGA,iDAHA,EAGA;AACA,yCAJA,EAIA;AACA,mCALA,EAKA;AACA,qDANA,EAMA;AACA,kDAPA,EAOA;AACA,mCARA,EAQA;AACA,wCATA,EASA;AACA,qDAVA,EAUA;AACA,8BAXA,EAWA;AACA,kCAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA,eAxBA;AAyBA;AACA;AACA,SAnCA,EAmCA,mBAnCA;AAoCA;AACA,KAxRA;AAyRA,WAzRA,qBAyRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,MAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA,WAEA;AACA;AACA;AACA,KA7SA;AA8SA,kBA9SA,4BA8SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA,WAEA;AACA;AACA;AACA;AACA,KA1TA;AA2TA,gBA3TA,0BA2TA;AACA;AACA;AACA,eADA;AAEA,kBAFA;AAGA,iBAHA;;AAKA;AACA,qDADA;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,KA1ZA;AA2ZA,UA3ZA,kBA2ZA,EA3ZA,EA2ZA,KA3ZA,EA2ZA;AACA;AACA,uHADA;;AAGA,KA/ZA;AAgaA,WAhaA,qBAgaA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KAraA,EA1IA,E","file":"pagesB/problemDetail/problemDetail.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pagesB/problemDetail/problemDetail.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./problemDetail.vue?vue&type=template&id=81745f64&\"\nvar renderjs\nimport script from \"./problemDetail.vue?vue&type=script&lang=js&\"\nexport * from \"./problemDetail.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 = \"pagesB/problemDetail/problemDetail.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!./problemDetail.vue?vue&type=template&id=81745f64&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.isShowP = false\n }\n }\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!./problemDetail.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!./problemDetail.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<!-- 状态栏 -->\r\n\t\t<status-nav v-if=\"invite_code==''\" :titleVal=\"'分类'\" :statusTitle=\"true\"></status-nav>\r\n\t\t<view v-if=\"invite_code!=''\" class=\"status-box statusHNH\" style=\"background-color: #FFFFFF;\">\r\n\t\t <view :style=\"{height:statusBarHeight+'px'}\"></view>\r\n\t\t <view class=\"status-nav\">\r\n\t\t <!-- 标题 -->\r\n\t\t\t\t<view class=\"tab-title tcenter\" style=\"color: #000000;\">分类</view>\r\n\t\t </view>\r\n\t\t</view>\r\n\t\t<!-- 列表 -->\r\n\t\t<view :style=\"{top: statusHNH+'px'}\" class=\"posiszy\" style=\"height: 50px;\">\r\n\t\t\t<view class=\"bacf pad-zy32 pad-sx20\">\r\n\t\t\t\t<cate-pu @choosecateEv=\"choosecateEv\" :activeb=\"invite_code!=''?'#3875F6':publicColor\" :newCurrent=\"cateCurrent*1\" :newbmo=\"'#F2F2F2'\" :isCenter=\"false\" :newcateList=\"cateList\"></cate-pu>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"pad-x180\" :style=\"{paddingTop: (statusHNH+50)+'px'}\">\r\n\t\t\t<view v-if=\"isLoading\" class=\"pad-s30\">\r\n\t\t\t\t<view v-show=\"cateCurrent==isNum\">\r\n\t\t\t\t\t<view class=\"pad-zy32\">\r\n\t\t\t\t\t\t<!-- 自定义轮播 -->\r\n\t\t\t\t\t\t<swiper-pu :browseP=\"true\" :isplay=\"isAutoPlay\" :bannerList=\"bannerList\" :newHeight=\"'450'\" :newRadius=\"'10'\" :newBottom=\"'5'\"></swiper-pu>\r\n\t\t\t\t\t\t<!-- 标题 -->\r\n\t\t\t\t\t\t<view class=\"fon36 col3 bold mar-sx20 clips2\" style=\"line-height: 50rpx;\">{{detailObj.title}}</view>\r\n\t\t\t\t\t\t<view class=\"disjbac\">\r\n\t\t\t\t\t\t\t<view class=\"disac\">\r\n\t\t\t\t\t\t\t\t<!-- 发布者头像 -->\r\n\t\t\t\t\t\t\t\t<image class=\"flexs\" :src=\"fabImg || '/static/public/logo.png'\" style=\"width: 60rpx;height: 60rpx;border-radius: 100%;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t\t\t<view class=\"mar-z10\">\r\n\t\t\t\t\t\t\t\t\t<!-- 发布者昵称 -->\r\n\t\t\t\t\t\t\t\t\t<view class=\"fon28 col3 clips1\">{{detailObj.published_by || '恒美植发'}}</view>\r\n\t\t\t\t\t\t\t\t\t<!-- 发布时间 -->\r\n\t\t\t\t\t\t\t\t\t<view class=\"fon20 col9\" style=\"margin-top: 6rpx;\">{{detailObj.published_at}}发布</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 class=\"disac flexs\">\r\n\t\t\t\t\t\t\t\t<view class=\"disac fc\" @tap=\"tapLike\" style=\"width: 60rpx;\">\r\n\t\t\t\t\t\t\t\t\t<image v-if=\"isDetailLike\" src=\"/static/public/detail-like.png\" style=\"width: 42rpx;height: 42rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t<image v-else src=\"/static/public/detail-nlike.png\" style=\"width: 42rpx;height: 42rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t<view class=\"fon24 col9 tc\">{{likeCon}}</view>\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view @tap=\"shareEv\" class=\"disac fc mar-zy36 posir\">\r\n\t\t\t\t\t\t\t\t\t<image src=\"/static/public/weix.png\" style=\"width: 42rpx;height: 42rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t<view class=\"fon24 col9\">分享</view>\r\n\t\t\t\t\t\t\t\t\t<button class=\"posia-op\" open-type=\"share\">分享</button>\r\n\t\t\t\t\t\t\t\t\t<!-- <button v-if=\"haveImg\" class=\"posia\" open-type=\"share\" style=\"top: 0;right: 0;left: 0;bottom: 0;opacity: 0;\">分享</button> -->\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t\t<view class=\"disac fc\" @tap=\"tapConllection\">\r\n\t\t\t\t\t\t\t\t\t<image v-if=\"isDetailConllection\" src=\"/static/public/yconllection.png\" style=\"width: 44rpx;height: 44rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t<image v-else src=\"/static/public/conllection.png\" style=\"width: 44rpx;height: 44rpx;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t\t\t<view class=\"fon24 col9\">收藏</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</view>\r\n\t\t\t\t\t\t<!-- 内容详情 -->\r\n\t\t\t\t\t\t<view class=\"fon28 mar-s20\" style=\"color: #1A1A1A; line-height: 40rpx;\">\r\n\t\t\t\t\t\t\t<rich-text :nodes=\"detailInfo\"></rich-text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"pad-zy20\" v-show=\"cateCurrent==1\">\r\n\t\t\t\t\t\t<view class=\"fon30 bold tc mar-sx40\" :style=\"{color:publicColor}\">相关推荐</view>\r\n\t\t\t\t\t\t<!-- 相关推荐列表 -->\r\n\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLikex\" @comfirmev=\"comfirmevx\" :list=\"xgList\"></list-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"pad-zy20\">\r\n\t\t\t\t\t\t<view class=\"fon30 bold tc mar-sx40\" :style=\"{color:publicColor}\">推荐医生</view>\r\n\t\t\t\t\t\t<!-- 推荐医生列表 -->\r\n\t\t\t\t\t\t<list-doctor v-if=\"dataList.length!=0\" :list=\"dataList\"></list-doctor>\r\n\t\t\t\t\t\t<view v-if=\"dataList.length==0\" class=\"disjcac fc\" style=\"margin-top: 10%;\">\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</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<!-- 案例日记 -->\r\n\t\t\t\t<view v-show=\"cateCurrent==0 && isNum!=0\" class=\"pad-zy20\">\r\n\t\t\t\t\t<view v-if=\"listArrone.length!=0\">\r\n\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"listArrone\"></list-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 40%;\">\r\n\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<view class=\"fon24 col3\">暂无内容</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-show=\"cateCurrent==1 && isNum!=1\" class=\"pad-zy20\">\r\n\t\t\t\t\t<view v-if=\"listArrtwo.length!=0\">\r\n\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"listArrtwo\"></list-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 40%;\">\r\n\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<view class=\"fon24 col3\">暂无内容</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-show=\"cateCurrent==2 && isNum!=2\" class=\"pad-zy20\">\r\n\t\t\t\t\t<view v-if=\"listArrthree.length!=0\">\r\n\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"listArrthree\"></list-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 40%;\">\r\n\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<view class=\"fon24 col3\">暂无内容</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-show=\"cateCurrent==3 && isNum!=3\" class=\"pad-zy20\">\r\n\t\t\t\t\t<view v-if=\"listArrfour.length!=0\">\r\n\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @comfirmev=\"comfirmev\" :list=\"listArrfour\"></list-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-else class=\"disjcac fc\" style=\"margin-top: 40%;\">\r\n\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<view class=\"fon24 col3\">暂无内容</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<block v-if=\"isHot\">\r\n\t\t\t\t\t<view v-if=\"dataShopList.length!=0\" style=\"margin-top: -20rpx;\">\r\n\t\t\t\t\t\t<view class=\"pad20\">\r\n\t\t\t\t\t\t\t<view style=\"width: 48.6%;float: left;\">\r\n\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<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<view class=\"pad-zy20 pad-s10 pad-x30\">\r\n\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<view class=\"disac fon20 mar-sx20\" v-if=\"!item1.isIntegral\">\r\n\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<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<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<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</view>\r\n\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<view class=\"fon28 bold\" style=\"color: #F85050;margin-right: 8rpx;\">\r\n\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<view>积分:{{item1.integral}}</view>\r\n\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<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<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</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-else>\r\n\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<span v-if=\"item1.isXian\">促销价</span>\r\n\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</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\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</view>\r\n\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<view class=\"fon24 col80\">已拼团{{item1.activity_group_num}}组</view>\r\n\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<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</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\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</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 style=\"width: 48.6%;float: right;\">\r\n\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<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<view class=\"pad-zy20 pad-s10 pad-x30\">\r\n\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<view class=\"disac fon20 mar-sx20\" v-if=\"!item1.isIntegral\">\r\n\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<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<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<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</view>\r\n\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<view class=\"fon28 bold\" style=\"color: #F85050;margin-right: 8rpx;\">\r\n\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<view>积分:{{item1.integral}}</view>\r\n\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<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<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</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-else>\r\n\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<span v-if=\"item1.isXian\">促销价</span>\r\n\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</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\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</view>\r\n\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<view class=\"fon24 col80\">已拼团{{item1.activity_group_num}}组</view>\r\n\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<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</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\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</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</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- <nothing-page v-if=\"dataShopList.length==0\" :content=\"`暂无更多商品列表`\"></nothing-page> -->\r\n\t\t\t\t</block>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"posixzy disjbac bacf pad-zy32 btnBKS\">\r\n\t\t\t\t<view class=\"posir\">\r\n\t\t\t\t\t<image @tap=\"backHome\" class=\"posia backH\" src=\"/static/public/back-home.png\" mode=\"aspectFill\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"disac fon26 colf\">\r\n\t\t\t\t\t<view @tap=\"lianK\" class=\"disac posir lianShare\" style=\"background-color: #3875F6; border-top-left-radius: 51rpx;border-bottom-left-radius: 51rpx;\">\r\n\t\t\t\t\t\t<image src=\"/static/public/bottom-customer.png\" class=\"mar-zy20\" style=\"width: 47rpx;height: 47rpx;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t<view>联系客服</view>\r\n\t\t\t\t\t\t<button v-if=\"haveImg\" class=\"fon24 posia\" style=\"opacity: 0;top: 0;left: 0;right: 0;bottom: 0;\" open-type=\"contact\">客服</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view @tap=\"shareEv\" class=\"disac posir lianShare\" style=\"background-color: #38CE51;border-top-right-radius: 51rpx;border-bottom-right-radius: 51rpx;\">\r\n\t\t\t\t\t\t<image src=\"/static/public/bottom-shear.png\" style=\"width: 47rpx;height: 47rpx;margin-left: 15rpx;margin-right: 8rpx;\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t<view>分享给好友</view>\r\n\t\t\t\t\t\t<button v-if=\"haveImg\" class=\"posia-op\" open-type=\"share\">分享</button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<!-- 返回顶部 -->\r\n\t\t\t<!-- <back-top :showTop=\"showTop\" @backTop=\"backTop\"></back-top> -->\r\n\t\t\t<!-- 弹框授权 -->\r\n\t\t\t<empower @buttonH=\"buttonH\" :vision=\"vision\" :isWhere=\"2\" @cancleEv=\"cancleEv\"></empower>\r\n\t\t\t<!-- 弹框 -->\r\n\t\t\t<view v-if=\"isShowP\" @touchmove.stop.prevent=\"moveHandle\" class=\"disjcac posAll\">\r\n\t\t\t\t<view class=\"bacf radius20 width100 tank-box\">\r\n\t\t\t\t\t<view class=\"tc tank-box-itemone\">请授权绑定手机号</view>\r\n\t\t\t\t\t<view class=\"fon28 colf pad-x30 pad-zy30 tc disjb\">\r\n\t\t\t\t\t\t<view @tap=\"isShowP=false\" class=\"pad-sx10 radius10 tank-btn\" style=\"background-color: rgba(230, 230, 230,1);color: #000000;\">暂不绑定</view>\r\n\t\t\t\t\t\t<view class=\"pad-sx10 radius10 tank-btn posir pbackc\">\r\n\t\t\t\t\t\t\t立即绑定\r\n\t\t\t\t\t\t\t<button open-type=\"getPhoneNumber\" @getphonenumber=\"getphonenumber\" class=\"posia syxzo\">立即绑定</button>\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</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\timport listDoctor from '@/components/list-doctor.vue';\r\n\timport swiperPu from '@/components/swiper-pu.vue';\r\n\timport {collectionEV,cancleCollectionEV} from '@/jsFile/publicAPI.js';\r\n\timport empower from '@/components/empower.vue';\r\n\texport default {\r\n\t\tcomponents:{\r\n\t\t\tlistDoctor,\r\n\t\t\tswiperPu,\r\n\t\t\tempower\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\tisLoading:false,\r\n\t\t\t\tvision:false,\r\n\t\t\t\tstatusHNH:uni.getStorageSync('statusHNH'),\r\n\t\t\t\tpublicColor:uni.getStorageSync('publicColor') || '#3875F6',//主题颜色\r\n\t\t\t\tcateCurrent:0,\r\n\t\t\t\thaveImg:true,\r\n\t\t\t\tcateList:[],\r\n\t\t\t\tbannerList:[],//轮播\r\n\t\t\t\txgList:[//相关推荐\r\n\t\t\t\t],\r\n\t\t\t\tdataList:[//推荐医生\r\n\t\t\t\t],\r\n\t\t\t\tshowTop:false,\r\n\t\t\t\tisDetailLike:false,//是否喜欢\r\n\t\t\t\tlikeCon:'点赞',\r\n\t\t\t\tisDetailConllection:false,//是否已收藏\r\n\t\t\t\tisNum:0,\r\n\t\t\t\tlistArrone:[],//问题\r\n\t\t\t\tlistArrtwo:[//案例日记\r\n\t\t\t\t],\r\n\t\t\t\tlistArrthree:[//效果模拟\r\n\t\t\t\t],\r\n\t\t\t\tlistArrfour:[//科普视频\r\n\t\t\t\t],\r\n\t\t\t\tdetailObj:{},//详情\r\n\t\t\t\tdetailInfo:'',//富文本\r\n\t\t\t\tcategory_id:'',//栏目ID\r\n\t\t\t\tactive:'',//是否是详情页\r\n\t\t\t\t// jieDuan:false,\r\n\t\t\t\tshare_id:0,\r\n\t\t\t\tinvite_code:'',\r\n\t\t\t\tisShowP:false,\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\tfabImg:''\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\t// for (let i = 0; i < 4; i++) {\r\n\t\t\t// \tif(this.cateCurrent==0) {\r\n\t\t\t// \t\tlet obj = {status:false,main_img:'',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:0}\r\n\t\t\t// \t\tthis.listArrone.push(obj)\r\n\t\t\t// \t}\r\n\t\t\t// \tif(this.cateCurrent==1) {\r\n\t\t\t// \t\tlet obj = {status:false,main_img:'',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:1}\r\n\t\t\t// \t\tthis.listArrtwo.push(obj)\r\n\t\t\t// \t}\r\n\t\t\t// \tif(this.cateCurrent==2) {\r\n\t\t\t// \t\tlet obj = {status:false,main_img:'',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:2}\r\n\t\t\t// \t\tthis.listArrthree.push(obj)\r\n\t\t\t// \t}\r\n\t\t\t// \tif(this.cateCurrent==3) {\r\n\t\t\t// \t\tlet obj = {status:false,main_img:'',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:3}\r\n\t\t\t// \t\tthis.listArrfour.push(obj)\r\n\t\t\t// \t}\r\n\t\t\t// }\r\n\t\t},\r\n\t\tonShareTimeline() {},\r\n\t\tonShareAppMessage(res) {\r\n\t\t var ya = this;\r\n\t\t\tthis.$requst.post('user/record',{type:'content',action:'share',id:this.detailObj.id}).then(res=>{console.log('分享成功:',res);},error=>{})\r\n\t\t\tlet maiOjb = {\r\n\t\t\t\te:4,//内容分享\r\n\t\t\t\tc:this.detailObj.id*1,\r\n\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t}\r\n\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t\tvar shareObj = {\r\n\t\t    \ttitle: `${ya.detailObj.title}`, // 默认是小程序的名称(可以写slogan等)\r\n\t\t    \tpath: `/pagesB/problemDetail/problemDetail?id=${this.detailObj.id}&category_id=${this.category_id}&share_id=${uni.getStorageSync('userId')}&invite_code=${uni.getStorageSync('invite_code')}`, // 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t    \timageUrl: ya.$http + ya.detailObj.share_img//自定义图片路径可以是本地文件路径、代码包文件路径或者网络图片路径支持PNG及JPG不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4\r\n\t\t \t};\r\n\t\t  return shareObj;\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.isAutoPlay = true;\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.category_id!=undefined) {\r\n\t\t\t\tthis.category_id = options.category_id\r\n\t\t\t\tthis.conid = options.id\r\n\t\t\t\tthis.invite_code = options.invite_code\r\n\t\t\t\tuni.setStorageSync('ninvite_code',this.invite_code)\r\n\t\t\t\tif(this.invite_code!='' && this.invite_code!=undefined){\r\n\t\t\t\t\tuni.login({\r\n\t\t\t\t\t\tprovider: 'weixin',\r\n\t\t\t\t\t\tsuccess: (res)=> {\r\n\t\t\t\t\t\t\tif (res.code) {\r\n\t\t\t\t\t\t\t\tvar params = {\r\n\t\t\t\t\t\t\t\t\tcode:res.code,\r\n\t\t\t\t\t\t\t\t\tinvite_code:this.invite_code,//用户邀请码\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.$requst.post('user/login',params).then(res => {\r\n\t\t\t\t\t\t\t\t\tif(res.data.token!=''){\r\n\t\t\t\t\t\t\t\t\t\tif(res.data.is_active==0) {\r\n\t\t\t\t\t\t\t\t\t\t\tthis.haveImg = false\r\n\t\t\t\t\t\t\t\t\t\t\tthis.vision = true\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},error => {})\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} else {\r\n\t\t\t\t\tthis.$toolAll.tools.overdue()\r\n\t\t\t\t\tthis.$toolAll.tools.isLogin()\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.checkDetail(this.conid)\r\n\t\t\tif(options.share_id!=undefined) this.share_id = options.share_id\r\n\t\t\tlet maiOjb = {\r\n\t\t\t\te:4,//内容分享\r\n\t\t\t\tc:this.conid*1,\r\n\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t}\r\n\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tmoveHandle(){//禁止底层滑动\r\n\t\t\t\treturn false\r\n\t\t\t},\r\n\t\t\tgetphonenumber(e){//授权绑定手机号\r\n\t\t\t\tif(e.detail.errMsg==\"getPhoneNumber:ok\"){\r\n\t\t\t\t\tthis.$requst.post('user/bind-phone',{iv:e.detail.iv,encryptedData:e.detail.encryptedData}).then(res=>{\r\n\t\t\t\t\t\t// console.log('手机号信息:',res);\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tthis.isShowP = false\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('手机号绑定成功','success')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},error=>{})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.isShowP = false\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\tlet cateId = ''\r\n\t\t\t\tlet newArr = []\r\n\t\t\t\tif(this.cateCurrent==0) {\r\n\t\t\t\t\tnewArr = this.listArrone\r\n\t\t\t\t\tcateId = newArr[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(this.cateCurrent==1) {\r\n\t\t\t\t\tnewArr = this.listArrtwo\r\n\t\t\t\t\tcateId = newArr[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(this.cateCurrent==2) {\r\n\t\t\t\t\tnewArr = this.listArrthree\r\n\t\t\t\t\tcateId = newArr[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(this.cateCurrent==3) {\r\n\t\t\t\t\tnewArr = this.listArrfour\r\n\t\t\t\t\tcateId = newArr[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(newArr[e].is_collected==0){\r\n\t\t\t\t\tnewArr[e].is_collected = 1\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({action:'collect',archive_id:cateId})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcomfirmev(e){//确认取消收藏事件\r\n\t\t\t\tlet cateId = ''\r\n\t\t\t\tif(this.cateCurrent==0) {\r\n\t\t\t\t\tthis.listArrone[e].is_collected = 0\r\n\t\t\t\t\tcateId = this.listArrone[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(this.cateCurrent==1) {\r\n\t\t\t\t\tthis.listArrtwo[e].is_collected = 0\r\n\t\t\t\t\tcateId = this.listArrtwo[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(this.cateCurrent==2) {\r\n\t\t\t\t\tthis.listArrthree[e].is_collected = 0\r\n\t\t\t\t\tcateId = this.listArrthree[e].id\r\n\t\t\t\t} \r\n\t\t\t\tif(this.cateCurrent==3) {\r\n\t\t\t\t\tthis.listArrfour[e].is_collected = 0\r\n\t\t\t\t\tcateId = this.listArrfour[e].id\r\n\t\t\t\t} \r\n\t\t\t\tthis.$toolAll.tools.showToast('正在取消...','loading')\r\n\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\tcancleCollectionEV({action:'collect',archive_id:cateId})\t\r\n\t\t\t},\r\n\t\t\tchooseLikex(e){//收藏事件\r\n\t\t\t\tif(this.xgList[e].is_collected==0){\r\n\t\t\t\t\tthis.xgList[e].is_collected = 1\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({action:'collect',archive_id:this.xgList[e].id})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcomfirmevx(e){//确认取消收藏事件\r\n\t\t\t\tthis.xgList[e].is_collected = 0\r\n\t\t\t\tthis.$toolAll.tools.showToast('正在取消...','loading')\r\n\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\tcancleCollectionEV({action:'collect',archive_id:this.xgList[e].id})\t\r\n\t\t\t},\r\n\t\t\tbuttonH(e){//授权成功\r\n\t\t\t\tthis.haveImg = e\r\n\t\t\t\tif(e) {\r\n\t\t\t\t\tthis.vision = false\r\n\t\t\t\t\tthis.isShowP = true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcancleEv(e){//取消授权\r\n\t\t\t\tif(e==0) this.vision = false\r\n\t\t\t},\r\n\t\t\tbackHome(){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:'/pages/tabbar/pagehome/pagehome'\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tlianK(){//客服\r\n\t\t\t\t// if(!this.jieDuan){\r\n\t\t\t\t// \tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t// \tif(!isAuth){\r\n\t\t\t\t\tif(this.haveImg == false) {\r\n\t\t\t\t\t\tthis.vision = true\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthis.$requst.post('user/rand-bind-service').then(res=>{})\r\n\t\t\t\t\t\tthis.$toolAll.tools.closeTimer()//清空埋点倒计时\r\n\t\t\t\t\t\tthis.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})\r\n\t\t\t\t\t\tlet maiOjb = {\r\n\t\t\t\t\t\t\te:5,//内容咨询\r\n\t\t\t\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t\t\t\t}\r\n\t\t\t\t// \t} else this.jieDuan = true\r\n\t\t\t\t// }\r\n\t\t\t},\r\n\t\t\tshareEv(){\r\n\t\t\t\tif(this.haveImg == false) {\r\n\t\t\t\t\tthis.vision = true\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcheckDetail(newId){\r\n\t\t\t\tthis.$requst.post('archives/detail',{id:newId,share_id:this.share_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.isLoading=true\r\n\t\t\t\t\t\t// 栏目类别\r\n\t\t\t\t\t\tif(res.data.category.length!=0){\r\n\t\t\t\t\t\t\tres.data.category.forEach((item,index)=>{\r\n\t\t\t\t\t\t\t\tlet cateObj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,//栏目ID \r\n\t\t\t\t\t\t\t\t\ttitle:item.title,//栏目名称\r\n\t\t\t\t\t\t\t\t\tactive:item.active,//是否选中\r\n\t\t\t\t\t\t\t\t\tmodel_id:item.model_id,//模型ID\r\n\t\t\t\t\t\t\t\t\tmodel_name:item.model_name,//模型标识\r\n\t\t\t\t\t\t\t\t\tsort:item.sort\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.cateList.push(cateObj)\r\n\t\t\t\t\t\t\t\t// 默认选中的栏目\r\n\t\t\t\t\t\t\t\tif(item.active==1) this.active = this.cateCurrent = index\r\n\t\t\t\t\t\t\t\t// 默认展示栏目详情\r\n\t\t\t\t\t\t\t\tif(this.category_id==item.id) this.isNum = index\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tthis.cateList.push({title:'热门商品'})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(this.invite_code!='' && this.invite_code!=undefined){\r\n\t\t\t\t\t\t\tconst query = wx.createSelectorQuery()\r\n\t\t\t\t\t\t\tquery.select('.statusHNH').boundingClientRect((rect) => {\r\n\t\t\t\t\t\t\t\t// console.log('状态栏+标题栏:',rect);\r\n\t\t\t\t\t\t\t\tthis.statusHNH = rect.height\r\n\t\t\t\t\t\t\t\t// console.log(this.statusHNH );\r\n\t\t\t\t\t\t\t}).exec()\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// 详情\r\n\t\t\t\t\t\tthis.detailObj = res.data.detail;\r\n\t\t\t\t\t\tif(this.detailObj.published_headimgurl!=''){\r\n\t\t\t\t\t\t\tthis.fabImg = this.$http + this.detailObj.published_headimgurl;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlet maiOjb = {\r\n\t\t\t\t\t\t\te:1,//内容访问\r\n\t\t\t\t\t\t\tc:this.detailObj.id*1,\r\n\t\t\t\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t\t\t\t\tif(this.detailObj.is_liked==1) {\r\n\t\t\t\t\t\t\tif(this.detailObj.likes >= 1000) this.likeCon = '999+'\r\n\t\t\t\t\t\t\telse this.likeCon = this.detailObj.likes\r\n\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\tlet arrImg = this.detailObj.images.split(',')\r\n\t\t\t\t\t\tarrImg.forEach(item=>{\r\n\t\t\t\t\t\t\tlet newImgObj = {\r\n\t\t\t\t\t\t\t\timgSrc:this.$http + item,\r\n\t\t\t\t\t\t\t\turl:'',\r\n\t\t\t\t\t\t\t\tisVideo:false,\r\n\t\t\t\t\t\t\t\tposter:'',\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// 存图片\r\n\t\t\t\t\t\t\tthis.bannerList.push(newImgObj)\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.detailObj.video!=''){\r\n\t\t\t\t\t\t\tthis.bannerList[0] = {\r\n\t\t\t\t\t\t\t\timgSrc:this.$http + arrImg[0],\r\n\t\t\t\t\t\t\t\turl:this.$http + this.detailObj.video,\r\n\t\t\t\t\t\t\t\tisVideo:true,\r\n\t\t\t\t\t\t\t\tposter:'',\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.detailObj.is_collected==0) this.isDetailConllection = false\r\n\t\t\t\t\t\tif(this.detailObj.is_collected==1) this.isDetailConllection = true\r\n\t\t\t\t\t\tif(this.detailObj.is_liked==0) this.isDetailLike = false\r\n\t\t\t\t\t\tif(this.detailObj.is_liked==1) this.isDetailLike = true\r\n\t\t\t\t\t\t// 富文本\r\n\t\t\t\t\t\tthis.detailInfo = this.$toolAll.tools.escape2Html(this.detailObj.content)\r\n\t\t\t\t\t\t// 相关推荐xgList\r\n\t\t\t\t\t\tif(res.data.diary.length!=0){\r\n\t\t\t\t\t\t\tres.data.diary.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}\r\n\t\t\t\t\t\t\t\tif(item.cover!='' && item.video==''){\r\n\t\t\t\t\t\t\t\t\tthis.xgList.push(tObj)\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\t// 推荐医生\r\n\t\t\t\t\t\tif(res.data.doctor.length!=0){\r\n\t\t\t\t\t\t\tres.data.doctor.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet doObj = {\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\timgSrc: item.headimg!=null ? item.headimg : '',\r\n\t\t\t\t\t\t\t\t\tname:item.name,\r\n\t\t\t\t\t\t\t\t\tcyear:parseFloat(item.work_time),\r\n\t\t\t\t\t\t\t\t\tbmen:item.dept_name,\r\n\t\t\t\t\t\t\t\t\tzcheng:'主任医师',\r\n\t\t\t\t\t\t\t\t\tgoodAt:item.diseases,\r\n\t\t\t\t\t\t\t\t\tshow_detail:item.show_detail\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tthis.dataList.push(doObj)\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.choosecateEv(this.cateCurrent)\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\tchoosecateEv(e){\r\n\t\t\t\tthis.cateCurrent = e\r\n\t\t\t\tthis.isHot = false;\r\n\t\t\t\tif(this.cateList[e].title=='热门商品'){\r\n\t\t\t\t\tthis.checkSotList();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$requst.post('archives/category',{category_id:this.cateList[e].id,keyword:''}).then(res=>{\r\n\t\t\t\t\t\t// console.log('该分类下的列表:',res);\r\n\t\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t\tif(e==0 && this.active!=e) this.listArrone = []\r\n\t\t\t\t\t\t\tif(e==1 && this.active!=e) this.listArrtwo = []\r\n\t\t\t\t\t\t\tif(e==2 && this.active!=e) this.listArrthree = []\r\n\t\t\t\t\t\t\tif(e==3 && this.active!=e) this.listArrfour = []\r\n\t\t\t\t\t\t\tif(res.data.list.list.length!=0){\r\n\t\t\t\t\t\t\t\tres.data.list.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\t\tlet num = item.video.search(\".mp4\")\r\n\t\t\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\t\t\tif(num!='-1') isVideo = true\r\n\t\t\t\t\t\t\t\t\tlet arrObj = {\r\n\t\t\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\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\tis_collected:item.is_collected,//是否已收藏\r\n\t\t\t\t\t\t\t\t\t\tcollects:item.collects,//收藏量\r\n\t\t\t\t\t\t\t\t\t\tviews:item.views,//查看量\r\n\t\t\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\r\n\t\t\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\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\tcontent:item.subtitle,//副标题\r\n\t\t\t\t\t\t\t\t\t\thead_img:'/static/public/logo.png',//发布者头像\r\n\t\t\t\t\t\t\t\t\t\tname:'恒美植发',//发布者昵称\r\n\t\t\t\t\t\t\t\t\t\tisVideo:isVideo//是否是视频\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif(item.cover!=''){\r\n\t\t\t\t\t\t\t\t\t\tif(e==0 && this.active!=e) this.listArrone.push(arrObj)\r\n\t\t\t\t\t\t\t\t\t\tif(e==1 && this.active!=e) this.listArrtwo.push(arrObj)\r\n\t\t\t\t\t\t\t\t\t\tif(e==2 && this.active!=e) this.listArrthree.push(arrObj)\r\n\t\t\t\t\t\t\t\t\t\tif(e==3 && this.active!=e) this.listArrfour.push(arrObj)\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}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},error=>{})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttapLike(){//喜欢、不喜欢事件\r\n\t\t\t\t// if(!this.jieDuan){\r\n\t\t\t\t// \tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t// \tif(!isAuth){\r\n\t\t\t\t\t\tthis.isDetailLike = !this.isDetailLike\r\n\t\t\t\t\t\tif(this.isDetailLike){\r\n\t\t\t\t\t\t\tthis.detailObj.likes++\r\n\t\t\t\t\t\t\tthis.likeCon = this.detailObj.likes\r\n\t\t\t\t\t\t\tif(this.likeCon >= 1000) this.likeCon = '999+'\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthis.detailObj.likes--\r\n\t\t\t\t\t\t\tthis.likeCon = '喜欢'\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tlet isLikeCon = 'like'\r\n\t\t\t\t\t\t//调用点赞事件\r\n\t\t\t\t\t\tif(this.isDetailLike) collectionEV({action:isLikeCon,archive_id:this.detailObj.id})\r\n\t\t\t\t\t\t//调用取消点赞事件\r\n\t\t\t\t\t\telse cancleCollectionEV({action:isLikeCon,archive_id:this.detailObj.id})\r\n\t\t\t\t// \t} else this.jieDuan = true\r\n\t\t\t\t// }\r\n\t\t\t},\r\n\t\t\ttapConllection(){//收藏、取消收藏事件\r\n\t\t\t\tlet isLikeCon = 'collect'\r\n\t\t\t\t// if(!this.jieDuan){\r\n\t\t\t\t// \tlet isAuth = this.$toolAll.tools.returnAuth()\r\n\t\t\t\t// \tif(!isAuth){\r\n\t\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\t\tif(!this.isDetailConllection) collectionEV({action:isLikeCon,archive_id:this.detailObj.id})\r\n\t\t\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\t\t\telse cancleCollectionEV({action:isLikeCon,archive_id:this.detailObj.id})\t\r\n\t\t\t\t\t\tthis.isDetailConllection = !this.isDetailConllection\r\n\t\t\t\t// \t} else this.jieDuan = true\r\n\t\t\t\t// }\r\n\t\t\t},\r\n\t\t\tcheckSotList(){//查询热门商品\r\n\t\t\t\tthis.isHot = true;\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:'https://hengmei.scdxtc.cn/api/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</style>\r\n"],"sourceRoot":""}