1 line
35 KiB
Plaintext
1 line
35 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":["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;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA0rB,CAAgB,yqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC8I9sB,qE;;AAEA;AACA;AACA,0BADA;AAEA,sBAFA;AAGA,oBAHA,EADA;;AAMA,MANA,kBAMA;AACA;AACA,sBADA;AAEA,mBAFA;AAGA,gDAHA;AAIA,oDAJA,EAIA;AACA,oBALA;AAMA,mBANA;AAOA,kBAPA;AAQA,oBARA,EAQA;AACA;AAAA,OATA;AAWA;AACA;AADA,OAXA;AAcA,oBAdA;AAeA,yBAfA,EAeA;AACA,mBAhBA;AAiBA,gCAjBA,EAiBA;AACA,cAlBA;AAmBA,oBAnBA,EAmBA;AACA;AACA;AADA,OApBA;AAuBA;AACA;AADA,OAvBA;AA0BA;AACA;AADA,OA1BA;AA6BA,mBA7BA,EA6BA;AACA,oBA9BA,EA8BA;AACA,qBA/BA,EA+BA;AACA,gBAhCA,CAgCA;AAhCA;AAkCA,GAzCA;AA0CA,cA1CA,wBA0CA,CA1CA,EA0CA;AACA;AACA,GA5CA;AA6CA,eA7CA,2BA6CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAhEA;AAiEA,mBAjEA,6BAiEA,OAjEA,EAiEA;AACA;AACA;AACA,+BADA,EACA;AACA,yHAFA,EAEA;AACA,kBAHA,EAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBADA,EACA;AACA,oCAFA;AAGA,mCAHA,CAGA;AAHA;AAKA;AACA;AACA,OAhBA;AAiBA;AACA;AACA;AACA;AACA,SAFA,MAEA;AACA;AACA;AACA,OAxBA;;AA0BA;AACA,GA9FA;AA+FA,QA/FA,kBA+FA,OA/FA,EA+FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UADA,EACA;AACA,6BAFA;AAGA,6BAHA,CAGA;AAHA;AAKA;AACA;AACA,GA5GA;AA6GA;AACA,cADA,sBACA,CADA,EACA;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,KA1BA;AA2BA,aA3BA,qBA2BA,CA3BA,EA2BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAhDA;AAiDA,eAjDA,uBAiDA,CAjDA,EAiDA;AACA;AACA;AACA;AACA;AACA;AACA,KAvDA;AAwDA,cAxDA,sBAwDA,CAxDA,EAwDA;AACA;AACA;AACA;AACA;AACA,KA7DA;AA8DA,YA9DA,oBA8DA,CA9DA,EA8DA;AACA;AACA,KAhEA;AAiEA,YAjEA,sBAiEA;AACA;AACA,8CADA;;AAGA,KArEA;AAsEA,SAtEA,mBAsEA;AACA;AACA;AACA;AACA;AACA,qCADA;;AAGA,SAJA,EAIA,IAJA;AAKA,OAPA,MAOA;AACA,yCADA,CACA;AACA;AACA;AACA,cADA,EACA;AACA,iCAFA,CAEA;AAFA;AAIA;AACA;AACA,KAvFA;AAwFA,WAxFA,mBAwFA,CAxFA,EAwFA;AACA;AACA,KA1FA;AA2FA,GA3FA,EA2FA;AACA;AACA,GA7FA;AA8FA;AACA;AACA;AACA;AACA;AACA,mCADA;;AAGA,OAJA,EAIA,IAJA;AAKA,KAPA,MAOA;AACA,GAvGA;AAwGA,OAxGA,EAwGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA,EACA;AACA,+BAFA,EAEA;AACA,iCAHA,EAGA;AACA,qCAJA,EAIA;AACA,yCALA,EAKA;AACA,6BANA;;AAQA;AACA;AACA;AACA;AACA;AACA,WAdA;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDADA;AAEA,oDAFA;AAGA,yBAHA;AAIA,sBAJA,EADA;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA,sCADA;AAEA,mBAFA;AAGA,0BAHA;AAIA,sBAJA;;AAMA;AACA;AACA,SAVA;;AAYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CADA,EACA;AACA,yBAFA;AAGA,6CAHA,EAGA;AACA,qCAJA,EAIA;AACA,+BALA,EAKA;AACA,gDANA,EAMA;AACA,6CAPA,EAOA;AACA,+BARA,EAQA;AACA,oCATA,EASA;AACA,iDAVA,EAUA;AACA,0BAXA,EAWA;AACA,8BAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA,WArBA;AAsBA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,4EAFA;AAGA,6BAHA;AAIA,mCAJA;AAKA,kCALA;AAMA,4BANA;AAOA,mCAPA;AAQA,2CARA;;AAUA;AACA,WAZA;AAaA;AACA;AACA,KAvGA,EAuGA,mBAvGA;AAwGA,GAjNA;AAkNA,GAlNA,EAkNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2CADA,EACA;AACA,yBAFA;AAGA,6CAHA,EAGA;AACA,qCAJA,EAIA;AACA,+BALA,EAKA;AACA,iDANA,EAMA;AACA,8CAPA,EAOA;AACA,+BARA,EAQA;AACA,oCATA,EASA;AACA,iDAVA,EAUA;AACA,0BAXA,EAWA;AACA,8BAZA,CAYA;AAZA;AAcA;AACA;AACA;AACA;AACA;AACA;AACA,WAxBA;AAyBA;AACA;AACA,KAnCA,EAmCA,mBAnCA;AAoCA,GAxPA;AAyPA;AACA;AACA;AACA;AACA;AACA,mCADA;;AAGA,OAJA,EAIA,IAJA;AAKA,KAPA,MAOA;AACA;AACA;AACA;AACA;AACA;AACA,OAJA,MAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AADA,WAEA;AACA;AACA,GAjRA;AAkRA;AACA;AACA;AACA;AACA;AACA;AACA,mCADA;;AAGA,OAJA,EAIA,IAJA;AAKA,KAPA,MAOA;AACA;AACA;AACA;AADA,WAEA;AACA;AACA;AACA,GAlSA;AAmSA;AACA;AACA,kBADA;AAEA,mBAFA;;AAIA,GAxSA,YA7GA,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}\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 :titleVal=\"'分类'\" :statusTitle=\"true\"></status-nav>\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\" :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=\"\" :style=\"{paddingTop: (statusHNH+50)+'px'}\" style=\"padding-bottom: 118rpx;\">\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 :bannerList=\"bannerList\" :newHeight=\"'200'\" :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 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\t<!-- <image class=\"mar-x20\" src=\"/static/public/banner.png\" style=\"height: 400rpx;width: 100%;\" mode=\"\"></image>\r\n\t\t\t\t\t\t\t<view style=\"margin-bottom:50rpx;\">屋基寨位于阿坝茂县松坪沟,是典型的羌族聚居区,有着鲜明的价值观和民族文化屋基寨美景屋基寨美景。</view>\r\n\t\t\t\t\t\t\t<view style=\"margin-bottom:50rpx;\">山寨海拔3000米以上,有川西独特的自然景色,但是海拔高、地势陡,各类资源匮乏,居民收入单一屋基寨地貌屋基寨地貌。</view>\r\n\t\t\t\t\t\t\t<view style=\"margin-bottom:50rpx;\">成都恒美毛发医疗美容总经理徐军挺,了解到当地居民希望发展旅游增加收入时,便立即驱车前往屋基寨村民着盛装迎接恒美一行村民着盛装迎接恒美一行。</view>\r\n\t\t\t\t\t\t\t<view style=\"margin-bottom:50rpx;\">徐军挺总经理建议:做强乡村旅游,要完善基础设施,同时要保持乡村建筑风貌和地域文化特色;还要完善服务标准,提升消防安全水平;</view>\r\n\t\t\t\t\t\t\t<view style=\"margin-bottom:50rpx;\">打造乡村旅游品牌,形成示范带动作用参观了解村民居住环境参观了解村民居住环境了解村民们的生活习俗风土人情了解村民们的生活习俗风土人情。</view> -->\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<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 style=\"height: 98rpx;\" class=\"posixzy disjbac bacf pad-zy32\">\r\n\t\t\t\t<view class=\"posir\">\r\n\t\t\t\t\t<image @tap=\"backHome\" class=\"posia\" src=\"/static/public/back-home.png\" style=\"width: 155rpx;height: 155rpx;top: -98rpx;\" 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\" :style=\"{background:publicColor}\" style=\"height: 70rpx;width: 220rpx;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\" style=\"height: 70rpx;width: 220rpx;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</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\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'),//主题颜色\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\t// {imgSrc:'/static/public/doctor.png',name:'廖恒利医生',cyear:'16',bmen:'美容门诊部',zcheng:'主任医师',goodAt:'毛发种植'},\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\t// {status:false,main_img:'/static/public/main_four.png',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:1},\r\n\t\t\t\t],\r\n\t\t\t\tlistArrthree:[//效果模拟\r\n\t\t\t\t\t// {status:false,main_img:'/static/public/main_two.png',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:2},\r\n\t\t\t\t],\r\n\t\t\t\tlistArrfour:[//科普视频\r\n\t\t\t\t\t// {status:false,main_img:'/static/public/main_three.png',title:'恒美小课堂',content:'饺子会吃肉?',head_img:'/static/public/like.png',name:'吃肉的饺子',isCate:3},\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}\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\tonShareAppMessage(options) {\r\n\t\t var ya = this;\r\n\t\t\tvar shareObj = {\r\n\t\t title: ya.detailObj.title, // 默认是小程序的名称(可以写slogan等)\r\n\t\t path: `/pagesB/problemDetail/problemDetail?id=${this.detailObj.id}&category_id=${this.category_id}`, // 默认是当前页面,必须是以‘/’开头的完整路径\r\n\t\t imageUrl: '', //自定义图片路径,可以是本地文件路径、代码包文件路径或者网络图片路径,支持PNG及JPG,不传入 imageUrl 则使用默认截图。显示图片长宽比是 5:4\r\n\t\t success: function(res){\r\n\t\t // 转发成功之后的回调\r\n\t\t if(res.errMsg == 'shareAppMessage:ok'){\r\n\t\t\t\t\t\t// user/record\r\n\t\t\t\t\t\tthis.$requst.post('user/record',{type:'content',action:'share',id:this.detailObj.id}).then(res=>{},error=>{})\r\n\t\t\t\t\t\tlet maiOjb = {\r\n\t\t\t\t\t\t\te:4,//内容分享\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 }\r\n\t\t },\r\n\t\t fail: function(res){\r\n\t\t // 转发失败之后的回调\r\n\t\t if(res.errMsg == 'shareAppMessage:fail cancel'){\r\n\t\t // 用户取消转发\r\n\t\t }else if(res.errMsg == 'shareAppMessage:fail'){\r\n\t\t // 转发失败,其中 detail message 为详细失败信息\r\n\t\t }\r\n\t\t }\r\n\t\t };\r\n\t\t return shareObj;\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}\r\n\t\t\tthis.checkDetail(options.id)\r\n\t\t\tlet maiOjb = {\r\n\t\t\t\te:1,//内容访问\r\n\t\t\t\tc:this.category_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\tif(uni.getStorageSync('headImg')=='') this.haveImg = false\r\n\t\t},\r\n\t\tmethods: {\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\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\tif(uni.getStorageSync('headImg')=='') {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您当前是游客,请授权登录')\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},1500)\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.$toolAll.tools.closeTimer()//清空埋点倒计时\r\n\t\t\t\t\tthis.$requst.post('user/record',{type:'other',action:'ask',id:0}).then(res=>{},error=>{})\r\n\t\t\t\t\tlet maiOjb = {\r\n\t\t\t\t\t\te:5,//内容咨询\r\n\t\t\t\t\t\tt:new Date().getTime()//当前时间戳\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthis.$toolAll.tools.maiDian(maiOjb)\r\n\t\t\t\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},\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\tshareEv(){\r\n\t\t\t\tif(uni.getStorageSync('headImg')=='') {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您当前是游客,请授权登录')\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},1500)\r\n\t\t\t\t} else {this.haveImg=true}\r\n\t\t\t},\r\n\t\t\tcheckDetail(newId){\r\n\t\t\t\tthis.$requst.post('archives/detail',{id:newId}).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\t// 详情\r\n\t\t\t\t\t\tthis.detailObj = res.data.detail\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\tif(this.detailObj.video!=''){\r\n\t\t\t\t\t\t\tthis.bannerList = [\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\timgSrc:this.$http + this.detailObj.cover,\r\n\t\t\t\t\t\t\t\t\turl:this.$http + this.detailObj.video,\r\n\t\t\t\t\t\t\t\t\tisVideo:true,\r\n\t\t\t\t\t\t\t\t\tposter:'',\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\tlet arrImg = this.detailObj.images.split(',')\r\n\t\t\t\t\t\tarrImg.forEach(item=>{\r\n\t\t\t\t\t\t\tconsole.log(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\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 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 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:isVideo//是否是视频\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 ? this.$http + 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: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}\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\tif(uni.getStorageSync('headImg')=='') {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您当前是游客,请授权登录')\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},1500)\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.isDetailLike = !this.isDetailLike\r\n\t\t\t\t\tif(this.isDetailLike){\r\n\t\t\t\t\t\tthis.detailObj.likes++\r\n\t\t\t\t\t\tthis.likeCon = this.detailObj.likes\r\n\t\t\t\t\t\tif(this.likeCon >= 1000) this.likeCon = '999+'\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthis.detailObj.likes--\r\n\t\t\t\t\t\tthis.likeCon = '喜欢'\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlet isLikeCon = 'like'\r\n\t\t\t\t\t//调用点赞事件\r\n\t\t\t\t\tif(this.isDetailLike) collectionEV({action:isLikeCon,archive_id:this.detailObj.id})\r\n\t\t\t\t\t//调用取消点赞事件\r\n\t\t\t\t\telse cancleCollectionEV({action:isLikeCon,archive_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\tif(uni.getStorageSync('headImg')=='') {\r\n\t\t\t\t\tthis.$toolAll.tools.showToast('您当前是游客,请授权登录')\r\n\t\t\t\t\tsetTimeout(()=>{\r\n\t\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\t\turl:'/pages/login/login'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t},1500)\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// 调用收藏事件\r\n\t\t\t\t\tif(!this.isDetailConllection) collectionEV({action:isLikeCon,archive_id:this.detailObj.id})\r\n\t\t\t\t\t// 调用取消收藏事件\r\n\t\t\t\t\telse cancleCollectionEV({action:isLikeCon,archive_id:this.detailObj.id})\t\r\n\t\t\t\t\tthis.isDetailConllection = !this.isDetailConllection\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":""} |