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

1 line
36 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","webpack:///D:/chenq/chen/hengmei/hengmei/pagesB/problemDetail/problemDetail.vue?3aab","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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC6J9sB,qE;;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;;AAmCA,GA1CA;AA2CA,cA3CA,wBA2CA,CA3CA,EA2CA;AACA;AACA,GA7CA;AA8CA,eA9CA,2BA8CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAjEA;AAkEA,iBAlEA,6BAkEA,EAlEA;AAmEA,mBAnEA,6BAmEA,GAnEA,EAmEA;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,GAlFA;AAmFA,QAnFA,oBAmFA;AACA,GApFA;AAqFA,QArFA,kBAqFA,OArFA,EAqFA;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,GAtHA;AAuHA;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,yCADA,CACA;AACA;AACA;AACA,cADA,EACA;AACA,iCAFA,CAEA;AAFA;AAIA;AACA;AACA;AACA;AACA,KA9GA;AA+GA,WA/GA,qBA+GA;AACA;AACA;AACA;AACA,KAnHA;AAoHA,eApHA,uBAoHA,KApHA,EAoHA;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,aAJA,EAIA,IAJA;AAKA;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,6CADA,EACA;AACA,2BAFA;AAGA,+CAHA,EAGA;AACA,uCAJA,EAIA;AACA,iCALA,EAKA;AACA,mDANA,EAMA;AACA,gDAPA,EAOA;AACA,iCARA,EAQA;AACA,sCATA,EASA;AACA,mDAVA,EAUA;AACA,4BAXA,EAWA;AACA,oDAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA,aAlBA;AAmBA;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,OA/GA,EA+GA,mBA/GA;AAgHA,KArOA;AAsOA,gBAtOA,wBAsOA,CAtOA,EAsOA;AACA;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,mDAVA,EAUA;AACA,4BAXA,EAWA;AACA,gCAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA,aAxBA;AAyBA;AACA;AACA,OAnCA,EAmCA,mBAnCA;AAoCA,KA5QA;AA6QA,WA7QA,qBA6QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,MAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA,WAEA;AACA;AACA;AACA,KAjSA;AAkSA,kBAlSA,4BAkSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA,WAEA;AACA;AACA;AACA;AACA,KA9SA;AA+SA,WA/SA,qBA+SA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KApTA,EAvHA,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\" :bannerList=\"bannerList\" :newHeight=\"'250'\" :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=\"/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\">恒美植发</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\" 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\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</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\" open-type=\"share\" style=\"top: 0;right: 0;left: 0;bottom: 0;opacity: 0;\">分享</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}\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},\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},\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.$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}\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\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 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:'/static/public/logo.png',//发布者头像\r\n\t\t\t\t\t\t\t\t\tname:'恒美植发',//发布者昵称\r\n\t\t\t\t\t\t\t\t\tisVideo: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.$requst.post('archives/category',{category_id:this.cateList[e].id,keyword:''}).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(e==0 && this.active!=e) this.listArrone = []\r\n\t\t\t\t\t\tif(e==1 && this.active!=e) this.listArrtwo = []\r\n\t\t\t\t\t\tif(e==2 && this.active!=e) this.listArrthree = []\r\n\t\t\t\t\t\tif(e==3 && this.active!=e) this.listArrfour = []\r\n\t\t\t\t\t\tif(res.data.list.list.length!=0){\r\n\t\t\t\t\t\t\tres.data.list.list.forEach(item=>{\r\n\t\t\t\t\t\t\t\tlet num = item.video.search(\".mp4\")\r\n\t\t\t\t\t\t\t\tlet isVideo = false\r\n\t\t\t\t\t\t\t\tif(num!='-1') isVideo = true\r\n\t\t\t\t\t\t\t\tlet arrObj = {\r\n\t\t\t\t\t\t\t\t\tcategory_id:item.category_id,//栏目ID\r\n\t\t\t\t\t\t\t\t\tid:item.id,\r\n\t\t\t\t\t\t\t\t\tis_collected:item.is_collected,//是否已收藏\r\n\t\t\t\t\t\t\t\t\tcollects:item.collects,//收藏量\r\n\t\t\t\t\t\t\t\t\tviews:item.views,//查看量\r\n\t\t\t\t\t\t\t\t\tmain_img:this.$http + item.cover,//封面图\r\n\t\t\t\t\t\t\t\t\tvideo:this.$http + item.video,//视频地址\r\n\t\t\t\t\t\t\t\t\ttitle:item.title,//标题\r\n\t\t\t\t\t\t\t\t\tcontent:item.subtitle,//副标题\r\n\t\t\t\t\t\t\t\t\thead_img:'/static/public/logo.png',//发布者头像\r\n\t\t\t\t\t\t\t\t\tname:'恒美植发',//发布者昵称\r\n\t\t\t\t\t\t\t\t\tisVideo:isVideo//是否是视频\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif(item.cover!=''){\r\n\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\tif(e==1 && this.active!=e) this.listArrtwo.push(arrObj)\r\n\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\tif(e==3 && this.active!=e) this.listArrfour.push(arrObj)\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},error=>{})\r\n\t\t\t},\r\n\t\t\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\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":""}