| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048 |
- <template>
- <!-- 页面头部 -->
- <HomePageHead></HomePageHead>
- <!-- 导航栏 -->
- <HomePageNavigation></HomePageNavigation>
- <!-- 面包屑导航 -->
- <div class="breadcrumb-box">
- <div class="inner">
- <span class="location">当前位置:</span>
- <el-breadcrumb :separator-icon="ArrowRight">
- <el-breadcrumb-item>
- <NuxtLink to="/">首页</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`/${parent_pinyin}/index.html`"> {{ parent_name }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item>
- <NuxtLink :to="`list-1.html`"> {{ routLevelTitle }}</NuxtLink>
- </el-breadcrumb-item>
- <el-breadcrumb-item class="phone_breadcrumb_text">
- {{ routeNewsTtitle }}
- </el-breadcrumb-item>
- </el-breadcrumb>
- </div>
- </div>
- <!-- 资讯列表 -->
- <div class="newsDetail">
- <div class="inner">
- <div class="innerLeft">
- <div class="LeftTop">
- <h1>{{ newsDetail.title }}</h1>
- <p class="pc_none">
- <span>时间:{{ time }}</span>
- <span>来源:{{ newsDetail.copyfrom }}</span>
- <span>作者:{{ newsDetail.author }}</span>
- </p>
- </div>
- <div
- class="leftBottom"
- v-html="newsDetail.content"
- v-if="newsDetail.content"
- @click="openPreview">
- </div>
- <div v-if="previewVisible" class="preview-modal" @click="closePreview">
- <img :src="selectedImage" alt="Preview">
- </div>
- <!-- 免责声明: -->
- <div class="disclaimer" v-if="newsDetail.copyfrom!='本网'">
- <p>原文链接:{{ newsDetail.fromurl }}</p>
- <p>[免责声明]本文来源于网络转载,仅供学习交流使用,不构成商业目的。 版权归原作者所有,如涉及作品内容,版权和其他问题,请在30日与本网联系,我们将第一时间处理。</p>
- </div>
- <div v-if="articleChoice">
- <!--投票-->
- <div class="index_3_box_vote" v-if="articleChoice">
- <div class="voteTitle">投票区</div>
- <div class="inquire">
- <p v-if="voteList.length>0">{{voteList[0].survey_name}}</p>
- <div class="radioBox">
- <!--投票选项-->
- <div v-if="!isDisabled">
- <div class="radio" v-if="isRadio">
- <el-radio-group v-model="radio1" @change="handleRadioChange">
- <el-radio v-for="item in voteList" :key="item.id" :value="item.id" size="large">
- <span v-if="item.is_other == 0">{{item.choice_name}}</span>
- <span v-else>其他</span>
- </el-radio>
- </el-radio-group>
- <el-input
- v-if="showUserChoice"
- v-model="userChoice"
- :rows="2"
- type="textarea"
- resize="none"
- placeholder="请输入.."
- />
- </div>
- <div class="checkInputBox" v-else>
- <el-checkbox-group v-model="check1" @change="handleCheckboxChange">
- <span v-for="item in voteList" :key="item.id">
- <span v-if="item.is_other == 0">
- <el-checkbox size="large" :label="item.choice_name" :value="item.id"/>
- </span>
- <span v-else>
- <el-checkbox size="large" label="其他" :value="item.id"/>
- </span>
- </span>
- </el-checkbox-group>
- <el-input
- v-if="showUserChoice"
- v-model="userChoice"
- :rows="2"
- type="textarea"
- resize="none"
- placeholder="请输入.."
- />
- </div>
- </div>
- <!--投票结果-->
- <div class="inquireData" v-else>
- <div v-for="item in websiteSurveyData.data" :key="item.id">
- <div class="inquireDataItem active" v-if="item.status == 1">
- <div class="inquireDataItemTitle">
- <span v-if="item.choice_name == ''">其他</span>
- <span v-else>{{item.choice_name}}</span>
- </div>
- <div class="inquireDataItemNum">{{item.results}}票</div>
- </div>
- <div class="inquireDataItem" v-else>
- <div class="inquireDataItemTitle">
- <span v-if="item.choice_name == ''">其他</span>
- <span v-else>{{item.choice_name}}</span>
- </div>
- <div class="inquireDataItemNum">{{item.results}}票</div>
- </div>
- </div>
- </div>
- </div>
- <div class="btn">
- <button class="voting" @click="addWebsiteSurvey" :disabled="isDisabled" v-if="!isDisabled">投票</button>
- </div>
- </div>
- </div>
- </div>
- <!--推荐阅读-->
- <div class="recommendRead" v-if="newsDetail.commendArticle != false">
- <div class="recommendReadTitle">
- <span class="read_title">
- 推荐阅读
- </span>
- </div>
- <div class="recommendReadList">
- <div class="recommendReadListTitle" v-for="(item, index) in newsDetail.commendArticle"
- :key="item.id">
- <a :href="`/${item.alias_pinyin}/${item.id}.html`" v-if="index < 3">
- {{ item.title }}
- </a>
- </div>
- </div>
- </div>
- <!--上一篇 下一篇-->
- <div class="prevNext">
- <NuxtLink to="/">上一篇:李强签署国务院令 公布《行政执法监督条例》</NuxtLink>
- <NuxtLink to="/">下一篇:没有了</NuxtLink>
- </div>
- </div>
- <div class="innerRight">
- <!-- 热点资讯1 -->
- <!-- <div class="hotList1">
- <DetailHotNews></DetailHotNews>
- </div> -->
- <!-- 热点资讯2 -->
- <div class="hotList2">
- <DetailHotNews2></DetailHotNews2>
- </div>
- </div>
- </div>
- </div>
- <!-- 页面底部 -->
- <HomeFoot></HomeFoot>
- </template>
- <script setup>
- //1.页面依赖 start ---------------------------------------->
- import { onMounted } from 'vue'
- import { ElBreadcrumb, ElBreadcrumbItem,ElRadio, ElRadioGroup,ElCheckbox,ElCheckboxGroup,ElMessage,ElInput } from 'element-plus'
- import { ArrowRight } from '@element-plus/icons-vue'
- const nuxtApp = useNuxtApp();
- const axios = nuxtApp.$axios;
- //1.1 获得跳转过来的id
- const route = useRoute();
- const articleId = parseInt(route.params.id); //获得该页面的id
- //1.2 获得父级栏目的名称、id
- //获得当前的完整路径
- const fullPath = route.path;
- // //拆分,取出来中间这一段,然后提取数字部分
- // const segments = fullPath.split('/');
- // const targetSegment = segments[1];
- const targetSegment = getRoutePath(1);
- const targetSegment1 = getRoutePath(2);
- const targetSegment2 = getRoutePath(3);
- // const numberPart = targetSegment.match(/\d+$/)?.[0];
- // const routeId = numberPart;
- let routeId;
- //通过导航路径反向查询导航id
- const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
- method: 'GET',
- query: {
- 'pinyin': targetSegment+'/'+targetSegment1,
- },
- });
- if(getRouteId.code == 200){
- routeId = getRouteId.data.category_id
- }else{
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:通过url路径查询导航池id")
- console.log("后端错误反馈:",getRouteId.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //面包屑导航
- const parent_name = ref("");
- const parent_id = ref("");
- const parent_pinyin = ref("");
- let getParentNav = async () => {
- const listData = await requestDataPromise('/web/getOneWebsiteCategory', {
- method: 'GET',
- query: {
- 'catid': routeId
- },
- });
- console.log("获取面包屑导航",listData);
- if (listData.code == 200) {
- parent_name.value = listData.data.parent_name;
- parent_id.value = listData.data.parent_id;
- parent_pinyin.value = listData.data.parent_pinyin;
- } else {
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:获取面包屑导航")
- console.log("后端错误反馈:", listData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- //获得父级栏目详情
- getParentNav();
- //1.页面依赖 end ---------------------------------------->
- //2.页面数据 start ---------------------------------------->
- //2.1 资讯详情
- const newsDetail = ref({})
- const routeNewsTtitle = ref("");
- //2.2 发布日期
- const time = ref("");
- //2.3 路径
- const routLevelTitle = ref("");
- const routLevelId = ref("");
- //是否展示投票
- const articleChoice = ref(false);
- //2.4获取详情
- async function getPageData() {
- const mkdata = await requestDataPromise('/web/selectWebsiteArticleInfo', {
- method: 'GET',
- query: {
- 'articleid': articleId
- },
- });
- if(mkdata.code==200){
- //判断是否显示投票
- if(mkdata.data.is_survey==1){
- console.log("本篇文章含有投票!")
- articleChoice.value = true;
- getVoteList();
- }
- //获取内容
- newsDetail.value = mkdata.data;
- //获取路径
- routLevelTitle.value = newsDetail.value.cat_name;
- routLevelId.value = newsDetail.value.category_id;
- //获取发布时间
- time.value = newsDetail.value.updated_at.split(' ')[0];
- //修正标题长度
- if (newsDetail.value.title.length >= 30) {
- routeNewsTtitle.value = newsDetail.value.title.substr(0, 5) + "...";
-
- } else {
- routeNewsTtitle.value = newsDetail.value.title
- }
- }else{
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:获取详情内容")
- // console.log("后端错误反馈:",mkdata.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- getPageData();
- //2.5 获得广告
- //广告列表
- let adImg1 = ref([]);
- onMounted(async () => {
- const { $webUrl, $CwebUrl } = useNuxtApp();
- //广告1
- let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_detail_0001`
- const responseAd1 = await fetch(url, {
- headers: {
- 'Content-Type': 'application/json',
- 'Userurl': $CwebUrl,
- 'Origin': $CwebUrl
- }
- });
- const resultAd1 = await responseAd1.json();
- adImg1.value = resultAd1.data[0];
- })
- //2.页面数据 end ---------------------------------------->
- //3.设置seo信息 start---------------------------------------->
- //3.1 设置seo信息
- const setData = await requestDataPromise('/web/selectWebsiteArticleInfo', {
- method: 'GET',
- query: {
- 'articleid': articleId
- },
- });
- if(setData.code==200){
- let seoTitle = setData.data.title;
- let seoDescription = setData.data.introduce;
- let seoKeywords = setData.data.keyword;
- let seoSuffix = setData.data.suffix;
- let seoName = setData.data.website_name;
- useSeoMeta({
- title: seoTitle + "_" + seoName + "_" + seoSuffix,
- meta: [
- { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
- { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix , tagPriority: 10 },
- { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
- ]
- });
- }else{
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- // console.log("错误位置:设置详情页面SEO数据")
- // console.log("后端错误反馈:",setData.message)
- // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- //3.设置seo信息 end---------------------------------------->
- //4.投票 start---------------------------------------->
- const radio1 = ref(''); //单选
- const check1 = ref([]); //多选
- const isDisabled = ref(false);//是否禁用提交按钮
- const isRadio = ref(true);//是否渲染单选
- const userSurId = ref('');//投票属于哪一篇文章
- const userChoice = ref('');//用于判断用户选择了其他选项以后,输入的值
- const userIsChoice = ref('');//用于判断其他选项目前是什么值
- const showUserChoice = ref(false);//是否显示其他输入框
- const websiteSurveyData = ref([]);//投票结果
- //3.2获得投票列表
- let voteList = ref([]);
- async function getVoteList(){
- const voteData = await requestHome('/web/getWebsiteSurvey',{method:'GET',query:{'art_id':articleId}});
- console.log(778899)
- console.log(voteData)
- if(voteData.code == 200){
- voteList.value = voteData.data;
- console.log(voteList.value)
- //判断显示单选还是多选
- //survey_type 0是单选 1是多选
- if(voteData.data[0].survey_type == 0){
- isRadio.value = true;
- console.log("1111")
- }else{
- isRadio.value = false;
- }
- //把最后一个的值拿出来 用于判断用户是否选择了其他
- for(let item of voteData.data){
- //如果含有其他
- if(item.is_other==1){
- userIsChoice.value = item.id;
- }
- }
- //用户投票属于哪一篇文章
- userSurId.value = voteData.data[0].sur_id;
- }else{
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- console.log("错误位置:首页投票")
- console.log("后端错误反馈:",voteData.message)
- console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
- }
- }
- //3.2当用户选择了选项,判断是否展示其他输入框
- const handleRadioChange = (value) => {
- if(value == userIsChoice.value){
- showUserChoice.value = true;
- }else{
- showUserChoice.value = false;
- }
- }
- const handleCheckboxChange = (value) => {
- if (value.includes(userIsChoice.value)) {
- showUserChoice.value = true;
- } else {
- showUserChoice.value = false;
- }
- }
- //3.2发起投票
- async function addWebsiteSurvey(){
- //判断当前是单选还是多选
- console.log(isRadio.value)
- if(isRadio.value){
- console.log("用户单选!")
- if(radio1.value!=''){
- //先判断一下是否使用了其他选项
- if(showUserChoice.value){
- if(userChoice.value!=''){
- //文章id
- // console.log(userSurId.value)
- // 用户输入的值
- // console.log(userChoice.value)
- //如果使用了其他,其他的选项需要增加进去
- const ChoiceData = await requestHome('/web/addWebsiteSurveyOption',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,//投票的新闻id
- 'choice_name':userChoice.value,//投票的选项id
- }
- });
- if(ChoiceData.code == 200){
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestHome('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':ChoiceData.data
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error(mkData.message)
- }
- }else{
- ElMessage.error('其他投票失败!')
- }
- }else{
- ElMessage.error('请输入选项内容!')
- }
- }else{
- //如果没选择其他,直接提交选择的内容
- const mkData = await requestHome('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':radio1.value
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error('投票失败!')
- }
- }
- }else{
- ElMessage.error('请选择一个选项')
- }
- }else{
- console.log("多选!")
- //多选
- if(check1.value!=[]){
- //先判断一下是否使用了其他选项
- if(showUserChoice.value){
- if(userChoice.value!=''){
- //判断用户是否只选择了一个其他
- if(check1.value.length == 1){
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,//投票的新闻id
- 'choice_name':userChoice.value,//用户输入的其他选项文字
- }
- });
- if(ChoiceData.code == 200){
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':ChoiceData.data
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error(mkData.message)
- }
- }else{
- ElMessage.error('其他投票失败!')
- }
- }else{
- //用户选择了除了其他以外,还包括别的选项
- const ChoiceData = await requestDataPromise('/web/addWebsiteSurveyOption',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,//投票的新闻id
- 'choice_name':userChoice.value,//用户输入的其他选项文字
- }
- });
- if(ChoiceData.code == 200){
- let data = check1.value;
- //找到多选的数组,把其他默认值给替换掉
- for (let i = 0; i < data.length; i++) {
- if (data[i] == userIsChoice.value) {
- data[i] = ChoiceData.data;
- }
- }
- let jsonArray = JSON.stringify(data);
- //提交完其他选项以后,再正式发起投票
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':jsonArray
- }
- });
-
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- //console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error(mkData.message)
- }
- }else{
- ElMessage.error('其他投票失败!')
- }
- }
- }else{
- ElMessage.error('请输入选项内容!')
- }
- }else{
- let jsonArray = JSON.stringify(check1.value);
- //如果没选择其他,直接提交选择的内容
- const mkData = await requestDataPromise('/web/addWebsiteSurveyVote',{
- method:'GET',
- query:{
- 'sur_id':userSurId.value,
- 'choice_id':jsonArray
- }
- });
- if(mkData.code == 200){
- ElMessage.success('投票成功!')
- //把投票结果显示到页面上 禁用投票按钮
- isDisabled.value = true;
- websiteSurveyData.value = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- let data = mkData.data;
- //遍历一下,把用户选中的那个设置status为1
- for(let item of data.data){
- for(let i of data.choice){
- if(item.id == i){
- console.log(item.id)
- item.status = 1;
- }
- }
- }
- websiteSurveyData.value = data;
- }else{
- ElMessage.error('投票失败!')
- }
- }
- }else{
- ElMessage.error('请选择一个选项')
- }
- }
- }
- //4.投票 end---------------------------------------->
- //5.页面图片放大 start---------------------------------------->
- const previewVisible = ref(false)
- const selectedImage = ref(' ')
- const openPreview = (event) => {
- if (event.target.tagName === 'IMG') {
- selectedImage.value = event.target.src;
- previewVisible.value = true;
- }
- }
- const closePreview = () => {
- previewVisible.value = false;
- }
- //5.页面图片放大 end---------------------------------------->
- </script>
- <style lang="less" scoped>
- //@import url('@/assets/css/article/pc.less');
- //@import url('@/assets/css/article/yd.less');
- //面包屑
- .breadcrumb-box {
- width: 1400px;
- margin: 0 auto;
- .inner {
- width: 100%;
- height: 22px;
- margin-top: 20px;
- margin-bottom: 20px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 20px;
- color: #666666;
- line-height: 23px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- display: flex;
- align-items: center;
- border-bottom: 1px dashed #ccc;
- margin-bottom: 10px;
- padding: 20px 20px 20px 0;
- box-sizing: border-box;
- a {
- font-size: 16px;
- color: #000;
- line-height: 20px;
- }
- span {
- font-size: 16px;
- color: #000;
- line-height: 20px;
- &.location {
- line-height: 20px;
- }
- }
- }
- }
- //资讯详情
- .newsDetail {
- width: 100%;
- margin-bottom: 10px;
- .inner {
- width: 1400px;
- overflow: hidden;
- font-size: 16px;
- .innerLeft {
- width: 1030px;
- .LeftTop {
- margin-top: 20px;
- border-bottom: 1px dashed #ccc;
- padding-bottom: 20px;
- >h1 {
- line-height: 40px;
- margin-bottom: 20px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: bold;
- font-size: 24px;
- color: #333333;
- text-align: center;
- }
- >p {
- height: 18px;
- line-height: 18px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-weight: 400;
- font-size: 14px;
- color: #999999;
- text-align: center;
- span {
- margin-right: 40px;
- }
- }
- >img {
- width: 680px;
- height: 382px;
- padding: 50px 0px 60px 55px;
- }
- }
- .leftBottom {
- margin-top: 20px;
- font-size: 20px;
- line-height: 38px;
- margin-bottom: 30px;
- word-break:break-all;
- ul>li img {
- width: 790px;
- height: 382px;
- }
- img {
- width: 790px;
- height: 382px;
- }
- p.tinymce-material {
- img {
- width: 790px;
- }
- }
- >h3,
- >p {
- text-indent: 2em;
- width: 790px;
- font-family: Microsoft YaHei, Microsoft YaHei;
- font-size: 20px;
- color: #333333;
- line-height: 38px;
- padding-bottom: 30px;
- img {
- width: 790px;
- }
- }
- >h3 {
- font-weight: 600px;
- }
- >p {
- font-weight: 400;
- }
- }
- .disclaimer {
- width: 790px;
- overflow: hidden;
- border-top: 1px solid #e6e6e6;
- padding: 30px 0px;
- color: #999999;
- font-size: 17px;
- p {
- width: 790px;
- line-height: 30px;
- }
- }
- .recommendRead {
- width: 100%;
- margin: 30px 0px 20px 0;
- .recommendReadTitle {
- font-size: 18px;
- color: #001996;
- height: 42px;
- line-height: 35px;
- letter-spacing: 1px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- border-bottom: 1px solid #D9D9D9;
- .read_title {
- display: inline-block;
- text-align: center;
- width: 94px;
- height: 40px;
- border-bottom: 2px solid #158d91;
- }
- }
- .recommendReadList {
- min-height: 155px;
- margin-top: 20px;
- padding-bottom: 10px;
- font-size: 16px;
- border-bottom: 1px solid #D9D9D9;
- .recommendReadListTitle {
- margin-top: 18px;
- a {
- &:hover {
- color: #158d91;
- }
- color: #333333;
- }
- }
- .recommendReadListTitle:nth-child(1)::after {
- content: "热";
- margin-left: 13px;
- background: #FF8A37;
- color: #fff;
- font-size: 14px;
- padding: 0px 2px;
- }
- .recommendReadListTitle:hover a {
- color: #158d91;
- }
- }
- }
- }
- .innerRight {
- width: 315px;
- overflow: hidden;
- border-top: 1px solid #139602;
- .hotList1 {
- margin-bottom: 50px;
- }
- }
- }
- }
- .leftBottom::v-deep p img,
- .leftBottom::v-deep img,
- .leftBottom::v-deep video {
- max-width: 700px;
- }
- .leftBottom::v-deep h1,
- .leftBottom::v-deep h2,
- .leftBottom::v-deep h3,
- .leftBottom::v-deep h4,
- .leftBottom::v-deep h5,
- .leftBottom::v-deep h6 {
- font-size: 20px;
- font-weight: 500;
- }
- //投票
- .index_3_box_vote {
- .voteTitle {
- font-size: 20px;
- height: 40px;
- line-height: 40px;
- color: #333333;
- padding-left: 20px;
- width: 100%;
- border-bottom: 1px solid #E7E7E7;
- border-top: 1px solid #139602;
- box-sizing: border-box;
- }
- width:100%;
- box-sizing:border-box;
- border:solid 1px #FBFBFB;
- background: #FBFBFB;
- .inquire {
- height: 394px;
- margin-top: 20px;
- border-radius: 6px 6px 6px 6px;
- padding: 4px 40px 4px 6px;
- box-sizing: border-box;
- p {
- font-weight: bold;
- height: 69px;
- font-family: PingFang SC, PingFang SC;
- font-size: 20px;
- color: #333333;
- line-height: 21px;
- text-align: left;
- font-style: normal;
- text-transform: none;
- padding: 12px 20px 0 32px;
- }
- .radioBox {
- height: 250px;
- padding-left: 30px;
- overflow-y: auto;
- box-sizing: border-box;
- padding-bottom: 20px;
- }
- .radio {
- /deep/.el-radio {
- --el-radio-input-border-color-hover: #27881a;
- }
- /deep/.el-radio-group {
- align-items: center;
- display: inline-flex;
- flex-wrap: wrap;
- font-size: 0;
- //padding-left: 35px;
- }
- /deep/.el-radio.el-radio--large {
- width: 100%;
- height: 29px;
- margin-bottom: 15px;
- }
- /deep/.el-radio.el-radio--large .el-radio__label {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #333333;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 300px;
- }
- /deep/.el-radio.el-radio--large .el-radio__inner {
- height: 16px;
- width: 16px;
- }
- /deep/.el-radio__input.is-checked+.el-radio__label {
- color: #27881a;
- }
- /deep/.el-radio__input.is-checked .el-radio__inner {
- background: #33b023;
- border-color: #27881a;
- }
- }
- .checkInputBox {
- /deep/.el-checkbox {
- --el-radio-input-border-color-hover: #27881a;
- }
- /deep/.el-checkbox-group {
- align-items: center;
- display: inline-flex;
- flex-wrap: wrap;
- font-size: 0;
- //padding-left: 35px;
- }
- /deep/.el-checkbox.el-checkbox--large {
- width: 330px;
- height: 29px;
- margin-bottom: 15px;
- }
- /deep/.el-checkbox.el-checkbox--large .el-checkbox__label {
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #333333;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 300px;
- }
- /deep/.el-checkbox.el-checkbox--large .el-checkbox__inner {
- height: 16px;
- width: 16px;
- }
- /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
- color: #27881a;
- }
- /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
- background: #33b023;
- border-color: #27881a;
- }
- }
- .btn {
- padding-left: 30px;
- button {
- width: 78px;
- height: 37px;
- line-height: 37px;
- border-radius: 6px;
- border: none;
- font-family: PingFang SC, PingFang SC;
- font-weight: 400;
- font-size: 16px;
- color: #999999;
- }
- .voting {
- background-color: #49A769;
- color: #fff;
- margin-right: 44px;
- cursor: pointer;
- }
- .look {
- cursor: pointer;
- }
- }
- }
- .inquireData {
- .inquireDataItem {
- width: 100%;
- height: 38px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background: #F3F3F3;
- border: 1px solid #D2D2D2;
- margin-bottom: 10px;
- border-radius: 6px;
- padding: 0 15px;
- box-sizing: border-box;
- color: #999999;
- .inquireDataItemTitle {
- width: 290px;
- height: 38px;
- font-size: 16px;
- line-height: 38px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .inquireDataItemNum {
- font-size: 16px;
- }
- }
- .active {
- color: #49A769;
- background: #dff7e8;
- border: 1px solid #49A769;
- }
- }
- }
- //放大图片
- .preview-modal {
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background: rgba(0, 0, 0, 0.8);
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 1000;
- }
- .preview-modal img {
- max-width: 100%;
- max-height: 100%;
- cursor: pointer;
- }
- //上一篇 下一篇
- .prevNext {
- border-bottom: 1px solid #ccc;
- padding-bottom: 10px;
- a {
- display: block;
- color: #333;
- font-size: 15px;
- display: block;
- height: 40px;
- line-height: 40px;
- &:hover {
- color: #0071B7;
- }
- }
- }
- </style>
|