1 line
33 KiB
Plaintext
1 line
33 KiB
Plaintext
{"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":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":"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CA,uCAJA,EAIA;AACA,2CALA,EAKA;AACA,+BANA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,aAfA;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wCADA;AAEA,qBAFA;AAGA,4BAHA;AAIA,wBAJA;;AAMA;AACA;AACA,WATA;AAUA;AACA;AACA;AACA,6CADA;AAEA,sDAFA;AAGA,2BAHA;AAIA,wBAJA;;AAMA;AACA;AACA;AACA;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,oDANA,EAMA;AACA,iDAPA,EAOA;AACA,mCARA,EAQA;AACA,wCATA,EASA;AACA,+DAVA,EAUA;AACA,mDAXA,EAWA;AACA,sDAZA,EAYA;AACA,mCAbA,EAaA;AACA,yCAdA,CAcA;AAdA;AAgBA;AACA;AACA;AACA,eAxBA;AAyBA;AACA,WA5BA,MA4BA;AACA;AACA;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,SAlHA,MAkHA;AACA,OAxHA,EAwHA,6DAxHA;AAyHA,KAxKA;AAyKA,YAzKA,sBAyKA;AACA;AACA,uDADA;AAEA,mBAFA;AAGA,uBAHA;AAIA,uBAJA;AAKA,UALA,CAKA;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,EAYA;AACA,iCAbA,EAaA;AACA,uCAdA,CAcA;AAdA;AAgBA;AACA;AACA;AACA,aAvBA;AAwBA;AACA,SA3BA,MA2BA;AACA,OAlCA,EAkCA,KAlCA,CAkCA,0DAlCA;AAmCA,KA7MA;AA8MA,gBA9MA,wBA8MA,CA9MA,EA8MA;AACA;AACA;AACA;AACA,KAlNA;AAmNA,aAnNA,qBAmNA,CAnNA,EAmNA;AACA;AACA,wCADA;AAEA,mBAFA;AAGA,uBAHA;AAIA,uBAJA;AAKA,UALA,CAKA;AACA;AACA;AACA;AACA;AACA;AACA,0BADA;AAEA,yBAFA;;AAIA;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,gCAZA,EAYA;AACA,iCAbA,EAaA;AACA,uCAdA,CAcA;AAdA;AAgBA;AACA;AACA;AACA,aA1BA;AA2BA;AACA;AACA,SAvCA,MAuCA;AACA,OA/CA,EA+CA,8DA/CA;AAgDA,KApQA;AAqQA,YArQA,oBAqQA,CArQA,EAqQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KA7QA;AA8QA;AACA,cA/QA,sBA+QA,CA/QA,EA+QA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAvRA;AAwRA,WAxRA,qBAwRA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,MAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,qCAFA;;AAIA;AAJA,WAKA;AACA,2BADA;AAEA,uCAFA;;AAIA,KA7SA;AA8SA,kBA9SA,4BA8SA;AACA;AACA;AACA;AACA,yBADA;AAEA,qCAFA;;AAIA;AAJA,WAKA;AACA,2BADA;AAEA,uCAFA;;AAIA;AACA,KA3TA;AA4TA,WA5TA,qBA4TA;AACA;AACA,oBADA;AAEA,qBAFA;;AAIA,KAjUA;AAkUA,UAlUA,oBAkUA;AACA;AACA,KApUA,EA/GA,E","file":"pagesB/problemDetail/problemDetail.js","sourcesContent":["import 'uni-pages';wx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\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}\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\t<view :style=\"{height:statusBarHeight+'px'}\"></view>\r\n\t\t\t<view class=\"status-nav\">\r\n\t\t\t\t<!-- 标题 -->\r\n\t\t\t\t<view class=\"tab-title tcenter\" style=\"color: #000000;\">分类</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<!-- 列表 -->\r\n\t\t<view :style=\"{top: statusHeight+'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\"\r\n\t\t\t\t\t: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: (statusHeight+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 v-if=\"ifSwiper\" :browseP=\"true\" :isplay=\"isAutoPlay\" :bannerList=\"bannerList\" :newHeight=\"newHeight\"\r\n\t\t\t\t\t\t\t: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 lazy-load class=\"flexs\" :src=\"fabImg || '/static/public/logo.png'\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"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}}发布\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 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\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"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\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"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 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\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"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\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"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\"\r\n\t\t\t\t\t\t\t\t\t\tstyle=\"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\">\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\" @praise=\"praisexgEv\" @comfirmev=\"comfirmevx\" :list=\"xgList\"></list-pu>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"tc fon28 bold\" style=\"color: #fff;background-color: #3875f6;padding: 20rpx;\" @tap=\"gopage(cateCurrent)\">更多{{contentVal}}>></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</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-if=\"cateCurrent!=isNum\">\r\n\t\t\t\t\t<view v-if=\"allList.length!=0\" class=\"pad-zy20\">\r\n\t\t\t\t\t\t<list-pu @chooseLike=\"chooseLike\" @praise=\"praiseEv\" @comfirmev=\"comfirmev\" :list=\"allList\"></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<!-- 返回顶部 -->\r\n\t\t\t<!-- <back-top :showTop=\"showTop\" @backTop=\"backTop\"></back-top> -->\r\n\t\t\t<!-- 用户信息授权,手机号授权 -->\r\n\t\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\r\n\t\t\t<!-- 底部导航 -->\r\n\t\t\t<view class=\"posixzy\">\r\n\t\t\t\t<bottom-tab></bottom-tab>\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 bottomTab from '@/components/bottom-tab.vue';\r\n\timport {\r\n\t\tcollectionEV,\r\n\t\tcancleCollectionEV\r\n\t} from '@/jsFile/publicAPI.js';\r\n\texport default {\r\n\t\tcomponents: {\r\n\t\t\tlistDoctor,\r\n\t\t\tswiperPu,\r\n\t\t\tbottomTab,\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\tcateCurrent: 0,\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\tshare_id: 0,\r\n\t\t\t\tinvite_code: '',\r\n\t\t\t\tisAutoPlay: false,\r\n\t\t\t\tfabImg: '' ,//发布者头像\r\n\t\t\t\tallArr:[],\r\n\t\t\t\tpage:1,\r\n\t\t\t\tsize:20,\r\n\t\t\t\ttotal:0,\r\n\t\t\t\tisZanw:true,\r\n\t\t\t\tallList:[],\r\n\t\t\t\tcontentVal:'',\r\n\t\t\t\tnewHeight:'450',\r\n\t\t\t\tifSwiper:0,//是否显示swiper\r\n\t\t\t}\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\t// 主题颜色\r\n\t\t\tpublicColor() {\r\n\t\t\t\treturn this.$store.state.publicColor\r\n\t\t\t},\r\n\t\t\tstatusHeight() {\r\n\t\t\t\treturn this.$store.state.statusHeight\r\n\t\t\t}\r\n\t\t},\r\n\t\tonPageScroll(e) {\r\n\t\t\te.scrollTop > 360 ? this.showTop = true : this.showTop = false\r\n\t\t},\r\n\t\tonReachBottom() { //触底事件\r\n\t\t\tif(this.cateCurrent!=this.isNum){\r\n\t\t\t\tif(this.total!=this.allList.length){\r\n\t\t\t\t\tthis.page++\r\n\t\t\t\t\tthis.checkList(this.cateCurrent)//调用自主预约列表事件\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(this.isZanw) this.$toolAll.tools.showToast('暂无更多列表','none',1000)\r\n\t\t\t\t\tthis.isZanw = false\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tonShareAppMessage(res) {\r\n\t\t\tvar ya = this;\r\n\t\t\tthis.$requst.post('user/record', {\r\n\t\t\t\ttype: 'content',\r\n\t\t\t\taction: 'share',\r\n\t\t\t\tid: this.detailObj.id\r\n\t\t\t}).then(res => {\r\n\t\t\t\tconsole.log('分享成功:', res);\r\n\t\t\t}, error => {})\r\n\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\tthis.$toolAll.tools.plantPoint(4,this.detailObj.id);\r\n\t\t\tconsole.log(`/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\tvar shareObj = {\r\n\t\t\t\ttitle: `${ya.detailObj.title}`, // 默认是小程序的名称(可以写slogan等)\r\n\t\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\t\timageUrl: `${ya.$http}${ya.detailObj.share_img || ya.detailObj.cover}` //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4\r\n\t\t\t};\r\n\t\t\treturn shareObj;\r\n\t\t},\r\n\t\tonShow() {\r\n\t\t\tthis.isAutoPlay = true;\r\n\t\t},\r\n\t\tonHide() {\r\n\t\t\tthis.isAutoPlay = false;\r\n\t\t},\r\n\t\tonUnload() {\r\n\t\t\tthis.isAutoPlay = false;\r\n\t\t},\r\n\t\tonLoad(options) {\r\n\t\t\tif(uni.getStorageSync('phone_active')!=0 && uni.getStorageSync('is_active')!=0){\r\n\t\t\t\tif (options.category_id != undefined) {\r\n\t\t\t\t\tthis.category_id = options.category_id\r\n\t\t\t\t\tif(options.invite_code!=undefined){this.invite_code = options.invite_code;} \r\n\t\t\t\t\tif (options.share_id != undefined){this.share_id = options.share_id;} \r\n\t\t\t\t\tthis.checkDetail(options.id);\r\n\t\t\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\t\t\tthis.$toolAll.tools.plantPoint(1,options.id);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 去更多列表页\r\n\t\t\tgopage(index){\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pagesB/problemList/problemList?title=${this.cateList[index].title}&category_id=${this.cateList[index].id}`\r\n\t\t\t\t})\r\n\t\t\t},\r\n\t\t\tchooseLike(e) { //收藏事件\r\n\t\t\t\t// console.log(this.dataList[e].is_collected);\r\n\t\t\t\tif (this.allList[e].is_collected == 0) {\r\n\t\t\t\t\tthis.allList[e].is_collected = 1\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({\r\n\t\t\t\t\t\taction: 'collect',\r\n\t\t\t\t\t\tarchive_id: this.allList[e].id\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcomfirmev(e) { //确认取消收藏事件\r\n\t\t\t\tthis.allList[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({\r\n\t\t\t\t\taction: 'collect',\r\n\t\t\t\t\tarchive_id: this.allList[e].id\r\n\t\t\t\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({\r\n\t\t\t\t\t\taction: 'collect',\r\n\t\t\t\t\t\tarchive_id: this.xgList[e].id\r\n\t\t\t\t\t})\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({\r\n\t\t\t\t\taction: 'collect',\r\n\t\t\t\t\tarchive_id: this.xgList[e].id\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', {\r\n\t\t\t\t\tid: newId,\r\n\t\t\t\t\tshare_id: this.share_id\r\n\t\t\t\t}).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\tthis.allArr.push([]);\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.contentVal = this.cateList[this.cateCurrent].title.slice(2);\r\n\t\t\t\t\t\t\tif(this.cateList[this.cateCurrent].title== '毛发百科' || this.cateList[this.cateCurrent].title== '科普视频') {\r\n\t\t\t\t\t\t\t\tthis.newHeight = '200';\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\tthis.detailObj = res.data.detail;\r\n\t\t\t\t\t\t// 是否显示swiper\r\n\t\t\t\t\t\tthis.ifSwiper = this.detailObj.images_show;\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\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(this.cateList[this.cateCurrent].title=='日记分享') {\r\n\t\t\t\t\t\t\tif (res.data.diary.length != 0) {\r\n\t\t\t\t\t\t\t\tres.data.diary.forEach(item => {\r\n\t\t\t\t\t\t\t\t\tlet fabImg = '';\r\n\t\t\t\t\t\t\t\t\tif (item.published_headimgurl != '' && item.published_headimgurl != null) {\r\n\t\t\t\t\t\t\t\t\t\tfabImg = this.$http + item.published_headimgurl\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tlet tObj = {\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: fabImg || '/static/public/logo.png', //发布者头像\r\n\t\t\t\t\t\t\t\t\t\tname: item.published_by || '恒美植发', //发布者昵称\r\n\t\t\t\t\t\t\t\t\t\tisVideo: item.video.includes(\".mp4\"), //是否是视频\r\n\t\t\t\t\t\t\t\t\t\tlikes:item.likes,//点赞数量\r\n\t\t\t\t\t\t\t\t\t\tis_liked:item.is_liked//是否已点赞\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tif (item.cover != '' && item.video == '') {\r\n\t\t\t\t\t\t\t\t\t\tthis.xgList.push(tObj)\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} else {\r\n\t\t\t\t\t\t\tthis.relevant();\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} else this.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t}, error => {this.$toolAll.tools.showToast(error.msg);})\r\n\t\t\t},\r\n\t\t\trelevant(){\r\n\t\t\t\tthis.$requst.post('archives/category', {\r\n\t\t\t\t\tcategory_id: this.cateList[this.cateCurrent].id,\r\n\t\t\t\t\tkeyword: '',\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tif(res.code==0){\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 fabImg = '';\r\n\t\t\t\t\t\t\t\tif (item.published_headimgurl != '' && item.published_headimgurl != null)\r\n\t\t\t\t\t\t\t\t\tfabImg = this.$http + item.published_headimgurl\r\n\t\t\t\t\t\t\t\tlet tObj = {\r\n\t\t\t\t\t\t\t\t\tcategory_id: item.category_id, //栏目ID\r\n\t\t\t\t\t\t\t\t\tid: item.id,\r\n\t\t\t\t\t\t\t\t\tis_collected: item.is_collected, //是否已收藏\r\n\t\t\t\t\t\t\t\t\tcollects: item.collects, //收藏量\r\n\t\t\t\t\t\t\t\t\tviews: item.views, //查看量\r\n\t\t\t\t\t\t\t\t\tmain_img: this.$http + item.cover, //封面图\r\n\t\t\t\t\t\t\t\t\tvideo: this.$http + item.video, //视频地址\r\n\t\t\t\t\t\t\t\t\ttitle: item.title, //标题\r\n\t\t\t\t\t\t\t\t\tcontent: item.subtitle, //副标题\r\n\t\t\t\t\t\t\t\t\thead_img: fabImg || '/static/public/logo.png', //发布者头像\r\n\t\t\t\t\t\t\t\t\tname: item.published_by || '恒美植发', //发布者昵称\r\n\t\t\t\t\t\t\t\t\tisVideo: item.video.includes(\".mp4\"), //是否是视频\r\n\t\t\t\t\t\t\t\t\tlikes:item.likes,//点赞数量\r\n\t\t\t\t\t\t\t\t\tis_liked:item.is_liked//是否已点赞\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\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} else this.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t}).catch(err=>{this.$toolAll.tools.showToast(err.msg);})\r\n\t\t\t},\r\n\t\t\tchoosecateEv(e) {\r\n\t\t\t\tthis.page = 1;\r\n\t\t\t\tthis.isZanw = true;\r\n\t\t\t\tthis.checkList(e);\r\n\t\t\t},\r\n\t\t\tcheckList(e){\r\n\t\t\t\tthis.$requst.post('archives/category', {\r\n\t\t\t\t\tcategory_id: this.cateList[e].id,\r\n\t\t\t\t\tkeyword: '',\r\n\t\t\t\t\tpage:this.page,\r\n\t\t\t\t\tsize:this.size\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\t// console.log('该分类下的列表:',res);\r\n\t\t\t\t\tif (res.code == 0) {\r\n\t\t\t\t\t\tif(this.page==1) {\r\n\t\t\t\t\t\t\tif(this.active != e) this.allList = [];\r\n\t\t\t\t\t\t\tuni.pageScrollTo({\r\n\t\t\t\t\t\t\t\tscrollTop:0,\r\n\t\t\t\t\t\t\t\tduration:0\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthis.total = res.data.list.total;\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 fabImg = '';\r\n\t\t\t\t\t\t\t\tif (item.published_headimgurl != '' && item.published_headimgurl != null)\r\n\t\t\t\t\t\t\t\t\tfabImg = this.$http + item.published_headimgurl\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: 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: isVideo ,//是否是视频\r\n\t\t\t\t\t\t\t\t\tlikes:item.likes,//点赞数量\r\n\t\t\t\t\t\t\t\t\tis_liked:item.is_liked // 是否已点赞\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (item.cover != '') {\r\n\t\t\t\t\t\t\t\t\tthis.allList.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\tthis.cateCurrent = e;\r\n\t\t\t\t\t} else this.$toolAll.tools.showToast(res.msg);\r\n\t\t\t\t}, error => {this.$toolAll.tools.showToast(error.msg);})\r\n\t\t\t},\r\n\t\t\tpraiseEv(e){ // 点赞事件\r\n\t\t\t\tif(this.allList[e].is_liked==0){\r\n\t\t\t\t\tthis.allList[e].is_liked = 1;\r\n\t\t\t\t\tthis.allList[e].likes++;\r\n\t\t\t\t\tif(this.allList[e].likes>1000) this.allList[e].likes = '999+'\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({action:'like',archive_id:this.allList[e].id})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t// 相关列表的点赞事件\r\n\t\t\tpraisexgEv(e){\r\n\t\t\t\tif(this.xgList[e].is_liked==0){\r\n\t\t\t\t\tthis.xgList[e].is_liked = 1;\r\n\t\t\t\t\tthis.xgList[e].likes++;\r\n\t\t\t\t\tif(this.xgList[e].likes>1000) this.xgList[e].likes = '999+'\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tcollectionEV({action:'like',archive_id:this.xgList[e].id})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\ttapLike() { //喜欢、不喜欢事件\r\n\t\t\t\tthis.isDetailLike = !this.isDetailLike\r\n\t\t\t\tif (this.isDetailLike) {\r\n\t\t\t\t\tthis.detailObj.likes++\r\n\t\t\t\t\tthis.likeCon = this.detailObj.likes\r\n\t\t\t\t\tif (this.likeCon >= 1000) this.likeCon = '999+'\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.detailObj.likes--\r\n\t\t\t\t\tthis.likeCon = '喜欢'\r\n\t\t\t\t}\r\n\t\t\t\tlet isLikeCon = 'like'\r\n\t\t\t\t//调用点赞事件\r\n\t\t\t\tif (this.isDetailLike) collectionEV({\r\n\t\t\t\t\taction: isLikeCon,\r\n\t\t\t\t\tarchive_id: this.detailObj.id\r\n\t\t\t\t})\r\n\t\t\t\t//调用取消点赞事件\r\n\t\t\t\telse cancleCollectionEV({\r\n\t\t\t\t\taction: isLikeCon,\r\n\t\t\t\t\tarchive_id: this.detailObj.id\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// 调用收藏事件\r\n\t\t\t\tif (!this.isDetailConllection) collectionEV({\r\n\t\t\t\t\taction: isLikeCon,\r\n\t\t\t\t\tarchive_id: this.detailObj.id\r\n\t\t\t\t})\r\n\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\telse cancleCollectionEV({\r\n\t\t\t\t\taction: isLikeCon,\r\n\t\t\t\t\tarchive_id: this.detailObj.id\r\n\t\t\t\t})\r\n\t\t\t\tthis.isDetailConllection = !this.isDetailConllection\r\n\t\t\t},\r\n\t\t\tbackTop() { //回到顶部事件\r\n\t\t\t\tuni.pageScrollTo({\r\n\t\t\t\t\tscrollTop: 0,\r\n\t\t\t\t\tduration: 300\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\tbackEv(){\r\n\t\t\t\tuni.navigateBack({delta:1})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style>\r\n\r\n</style>\n"],"sourceRoot":""} |