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

1 line
39 KiB
Plaintext
Raw Permalink 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":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","components","listDoctor","swiperPu","bottomTab","data","statusBarHeight","isLoading","cateCurrent","cateList","bannerList","xgList","dataList","showTop","isDetailLike","likeCon","isDetailConllection","isNum","listArrone","listArrtwo","listArrthree","listArrfour","detailObj","detailInfo","category_id","active","share_id","invite_code","isAutoPlay","fabImg","allArr","page","size","total","isZanw","allList","contentVal","newHeight","ifSwiper","shareFlag","ifNeedAuth","shareImg","computed","publicColor","statusHeight","onPageScroll","e","onReachBottom","onShareAppMessage","type","action","id","console","title","path","imageUrl","onShow","onHide","onUnload","onLoad","uni","provider","success","code","source_code","channel","url","method","methods","getShareImg","shareImgEv","fail","gopage","chooseLike","archive_id","comfirmev","chooseLikex","comfirmevx","checkDetail","res","model_id","model_name","sort","arrImg","imgSrc","isVideo","poster","is_collected","collects","views","main_img","video","content","head_img","name","likes","is_liked","tag_text","cyear","bmen","zcheng","goodAt","show_detail","relevant","keyword","choosecateEv","checkList","scrollTop","duration","praiseEv","praisexgEv","tapLike","tapConllection","backTop","backEv","delta"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,sBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;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;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA0rB,CAAgB,yqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;ACyH9sB;AAIA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA;EAAA;IAAA;EAAA;AAAA;AAAA,eACA;EACAC;IACAC;IACAC;IACAC;EACA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MAAA,CACA;MACAC;MAAA,CACA;MACAC;MACAC;MAAA;MACAC;MACAC;MAAA;MACAC;MACAC;MAAA;MACAC;MAAA,CACA;MACAC;MAAA,CACA;MACAC;MAAA,CACA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MAAA;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MAAA;MACAC;MACAC;MAAA;MACAC;IACA;EACA;EACAC;IACA;IACAC;MACA;IACA;IACAC;MACA;IACA;EACA;EACAC;IACAC;EACA;EACAC;IAAA;IACA;MACA;QACA;QACA;MACA;QACA;QACA;MACA;IACA;EACA;EACAC;IACA;IACA;MACAC;MACAC;MACAC;IACA;MACAC;IACA;;IAEA;IACA;IACA;MACAC;MAAA;MACAC;MAAA;MACA;MACAC;IACA;;IACA;EACA;EACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IACA;EACA;EACAC;IAAA;IACAP;IACA;MACA;QACA;QACA;UAAA;QAAA;QACA;UAAA;QAAA;QACA;QACA;QACA;MACA;IACA;MACA;MACA;MACA;MACA;QACA;QACA;UACA,mCAEA;QACA;QACAQ;UACAC;UACAC;YACA;cACA;gBACAC;gBACApC;gBAAA;gBACAqC;gBAAA;gBACAC;cACA;cACAL;gBACAM;gBACAC;gBACA9D;gBACAyD;kBACA;oBACAF;oBACAA;oBACAA;oBACAA;oBACAA;oBACA;oBACA;kBACA;gBACA;cACA;YACA;UACA;QACA;QACA;QACA;MACA;IACA;EACA;EACAQ;IACA;IACAC;MAAA;MACA;QAAAlB;MAAA;QACA;UACA;UACA;YACA;UACA;QACA;MACA;IACA;IACA;IACAmB;MAAA;MACA;MACA;QACA;QACA;UAAAnB;QAAA;UACA;YACAS;YACA;YACAhE;cACA0D;cACAQ;gBACA;gBACA;kBACAb;kBACAC;kBACAC;gBACA;kBACAC;gBACA;gBACA;gBACA;cACA;cACAmB;gBACA;cACA;YACA;UACA;QACA;MACA;QAAA;MAAA;IACA;IACA;IACAC;MACAZ;QACAM;MACA;IACA;IACAO;MAAA;MACA;MACA;QACA;QACA;QACA;UACAvB;UACAwB;QACA;MACA;IACA;IACAC;MAAA;MACA;MACA;MACA;MACA;QACAzB;QACAwB;MACA;IACA;IACAE;MAAA;MACA;QACA;QACA;QACA;UACA1B;UACAwB;QACA;MACA;IACA;IACAG;MAAA;MACA;MACA;MACA;MACA;QACA3B;QACAwB;MACA;IACA;IACAI;MAAA;MACA;MACA;QACA3B;QACAzB;MACA;QACA;QACA;UACA;UACA;YACAqD;cACA;gBACA5B;gBAAA;gBACAE;gBAAA;gBACA5B;gBAAA;gBACAuD;gBAAA;gBACAC;gBAAA;gBACAC;cACA;cACA;cACA;cACA;cACA;cACA;cACA;YACA;YACA;YACA;cACA;YACA;UACA;UACA;UACA;UACA;YACA;cACA;cACA;YACA;cACA;YACA;UACA;YACA;UACA;;UAEA;UACA;UACA;YACA;UACA;UACA;YACA,iEACA;UACA;UACA;UACA;UACA;UACAC;YACA;cACAC;cACAlB;cACAmB;cACAC;YACA;YACA;YACA;UACA;UACA;UACA;YACA;cACAF;cACAlB;cACAmB;cACAC;YACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;YACA;cACAP;gBACA;gBACA;kBACAlD;gBACA;gBACA;kBACAL;kBAAA;kBACA2B;kBACAoC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAtC;kBAAA;kBACAuC;kBAAA;kBACAC;kBAAA;kBACAC;kBAAA;kBACAT;kBAAA;kBACAU;kBAAA;kBACAC;kBAAA;kBACAC;gBAEA;gBACA;kBACA;gBACA;cACA;YACA;UACA;YACA;UACA;UACA;UACA;YACAlB;cACA;gBACA5B;gBACAiC;gBACAU;gBACAI;gBACAC;gBACAC;gBACAC;gBACAC;cACA;cACA;YACA;UACA;UACA;QACA;MACA;QAAA;MAAA;IACA;IACAC;MAAA;MACA;QACA/E;QACAgF;QACAzE;QACAC;MACA;QACA;UACA;YACA+C;cACA;cACA,0EACAlD;cACA;gBACAL;gBAAA;gBACA2B;gBACAoC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAtC;gBAAA;gBACAuC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAT;gBAAA;gBACAU;gBAAA;gBACAC;gBAAA;gBACAC;cACA;cACA;gBACA;cACA;YACA;UACA;QACA;MACA;QAAA;MAAA;IACA;IACAQ;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA;QACAlF;QACAgF;QACAzE;QACAC;MACA;QACA;QACA;UACA;YACA;YACA4B;cACA+C;cACAC;YACA;UACA;UACA;UACA;YACA7B;cACA;cACA;cACA;cACA;cACA,0EACAlD;cACA;gBACAL;gBAAA;gBACA2B;gBACAoC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAtC;gBAAA;gBACAuC;gBAAA;gBACAC;gBAAA;gBACAC;gBAAA;gBACAT;gBAAA;gBACAU;gBAAA;gBACAC;gBAAA;gBACAC;cACA;cACA;gBACA;cACA;YACA;UACA;UACA;QACA;MACA;QAAA;MAAA;IACA;IACAY;MAAA;MACA;MACA;MACA;MACA;MACA;MACA;QAAA3D;QAAAwB;MAAA;MACA;IACA;IACA;IACAoC;MACA;MACA;MACA;MACA;MACA;MACA;QAAA5D;QAAAwB;MAAA;MACA;IACA;IACAqC;MAAA;MACA;MACA;MACA;QACA;QACA;QACA;MACA;QACA;QACA;MACA;MACA;MACA;MACA;MACA;QACA7D;QACAwB;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAsC;MAAA;MACA;MACA;MACA;QACA9D;QACAwB;MACA;MACA;MAAA,KACA;QACAxB;QACAwB;MACA;MACA;QACA;MACA;QACA;MACA;MACA;IACA;IACAuC;MAAA;MACArD;QACA+C;QACAC;MACA;IACA;IACAM;MACAtD;QAAAuD;MAAA;IACA;EACA;AACA;AAAA,2B","file":"pagesB/problemDetail/problemDetail.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__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 src=\"/static/public/looks.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\">{{detailObj.views}}</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\" @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\">{{detailObj.likes}}</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\">{{detailObj.collects>1000?'999+':detailObj.collects}}</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}\" v-if=\"detailObj.diary_id>0\">日记合集</view>\r\n\t\t\t\t\t\t<view class=\"fon30 bold tc mar-sx40\" :style=\"{color:publicColor}\" v-else>相关推荐</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<view @tap=\"shareImgEv\" class=\"detail-cart-box\" style=\"display: flex;justify-content: center;align-items: center;width: 112rpx;height: 112rpx;border-radius: 100%;background-color: #0fac29;bottom: 160rpx;color: #FFFFFF;\">\r\n\t\t\t\t<image class=\"zanw-img\" src=\"/static/public/share-pyq.png\" mode=\"aspectFill\" style=\"width: 64rpx;height: 81rpx;\"></image>\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<view v-if=\"ifNeedAuth\">\r\n\t\t\t\t<auth-userInfo-mobileInfo></auth-userInfo-mobileInfo>\r\n\t\t\t</view>\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\timport { base64ToPath } from '@/jsFile/base64-src.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\tshareFlag:true,\r\n\t\t\t\tifNeedAuth:false,//是否需要授权\r\n\t\t\t\tshareImg:''\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\r\n\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\tthis.$toolAll.tools.plantPoint(4,this.detailObj.id);\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\t// imageUrl: `${ya.$http}${ya.detailObj.share_img || ya.detailObj.cover}` //自定义图片路径可以是本地文件路径、代码包文件路径或者网络图片路径支持PNG及JPG不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4\r\n\t\t\t\timageUrl: this.shareImg //自定义图片路径可以是本地文件路径、代码包文件路径或者网络图片路径支持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\tconsole.log(uni.getStorageSync('phone_active'),uni.getStorageSync('is_active'));\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} else {\r\n\t\t\t\tlet pages = getCurrentPages(); //获取加载的页面\r\n\t\t\t\tlet currentPage = pages[pages.length - 1]; //获取当前页面的对象\r\n\t\t\t\tlet data = currentPage.options;\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\tthis.timer = setInterval(()=>{\r\n\t\t\t\t\t\tif(uni.getStorageSync('userId')){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},200)\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: data.invite_code || '', // 用户邀请码\r\n\t\t\t\t\t\t\t\t\tsource_code: data.source_code || '', // 渠道\r\n\t\t\t\t\t\t\t\t\tchannel: data.channel || ''\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tuni.request({\r\n\t\t\t\t\t\t\t\t\turl: `${uni.getStorageSync('hostapi')}user/login`,\r\n\t\t\t\t\t\t\t\t\tmethod: 'GET',\r\n\t\t\t\t\t\t\t\t\tdata: params,\r\n\t\t\t\t\t\t\t\t\tsuccess: result => { \r\n\t\t\t\t\t\t\t\t\t\tif(result.data.data.token!=''){\r\n\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('token',result.data.data.token); // 缓存token\r\n\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('userId',result.data.data.account_id)//缓存用户id\r\n\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('expire',result.data.data.expire); // 缓存失效时间(时间戳格式)\r\n\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('phone_active',result.data.data.phone_active); // 是否绑定手机号\r\n\t\t\t\t\t\t\t\t\t\t\tuni.setStorageSync('is_active',result.data.data.is_active)//是否第一次授权\r\n\t\t\t\t\t\t\t\t\t\t\tthis.share_id = result.data.data.account_id;\r\n\t\t\t\t\t\t\t\t\t\t\tthis.checkDetail(options.id);\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})\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\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\tgetShareImg(id){\r\n\t\t\t\tthis.$requst.get('archives/detail-share',{id}).then(res=>{\r\n\t\t\t\t\tif(res.code==0){\r\n\t\t\t\t\t\t// this.shareImg = res.data.src;\r\n\t\t\t\t\t\tbase64ToPath(res.data.share_img).then(path=>{\r\n\t\t\t\t\t\t\tthis.shareImg = path;\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\t// 分享图分享\r\n\t\t\tshareImgEv(){\r\n\t\t\t\tthis.$toolAll.tools.showToast('分享图生成中...','none',10000);\r\n\t\t\t\tif(this.shareFlag){\r\n\t\t\t\t\tthis.shareFlag = false;\r\n\t\t\t\t\tthis.$requst.post('archives/share',{id:this.detailObj.id}).then(res=>{\r\n\t\t\t\t\t\tbase64ToPath(res.data.share_img).then(path=>{\r\n\t\t\t\t\t\t\tuni.hideToast();\r\n\t\t\t\t\t\t\tthis.$toolAll.tools.showToast('正在调起分享...');\r\n\t\t\t\t\t\t\twx.showShareImageMenu({\r\n\t\t\t\t\t\t\t\tpath: path,\r\n\t\t\t\t\t\t\t\tsuccess:(res=>{\r\n\t\t\t\t\t\t\t\t\tthis.shareFlag = true;\r\n\t\t\t\t\t\t\t\t\tthis.$requst.post('user/record', {\r\n\t\t\t\t\t\t\t\t\t\ttype: 'content',\r\n\t\t\t\t\t\t\t\t\t\taction: 'share',\r\n\t\t\t\t\t\t\t\t\t\tid: this.detailObj.id\r\n\t\t\t\t\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log('分享成功:', res);\r\n\t\t\t\t\t\t\t\t\t}, error => {})\r\n\t\t\t\t\t\t\t\t\t// 调用tools.js中的种植埋点事件\r\n\t\t\t\t\t\t\t\t\tthis.$toolAll.tools.plantPoint(4);\r\n\t\t\t\t\t\t\t\t}),\r\n\t\t\t\t\t\t\t\tfail:(err=>{\r\n\t\t\t\t\t\t\t\t\tthis.shareFlag = true;\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} else {this.$toolAll.tools.showToast('请勿重复点击');}\r\n\t\t\t},\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.getShareImg(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\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\tif(uni.getStorageSync('authorization')==1){\r\n\t\t\t\t\t\t\tif(uni.getStorageSync('phone_active')!=1){\r\n\t\t\t\t\t\t\t\tthis.ifNeedAuth = this.detailObj.need_permission ? true : false;\r\n\t\t\t\t\t\t\t\tthis.isLoading = this.detailObj.need_permission ? false : true;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tthis.isLoading = true;\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.isLoading = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\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\ttag_text:item.tag_text,\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\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\ttag_text:item.tag_text,\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\ttag_text:item.tag_text,\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\t// if(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\t// if(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\t// if(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\t// if(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\t// this.isDetailLike = !this.isDetailLike\r\n\t\t\t\tthis.isDetailLike = true;\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\t// if (this.isDetailLike) \r\n\t\t\t\tcollectionEV({\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\t// else 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\tif(!this.isDetailConllection){\r\n\t\t\t\t\tthis.detailObj.collects++\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.detailObj.collects--\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>\r\n"],"sourceRoot":""}