1.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738
  1. <template>
  2. <div class="articleMainBox">
  3. <div class="articleTitle">{{templateData.title}}</div>
  4. <div class="articleInfo">
  5. <div>来源:{{templateData.copyfrom}}</div>
  6. <div>作者:{{templateData.author}}</div>
  7. <div>时间:{{templateData.updated_at}}</div>
  8. </div>
  9. <div class="articleContent" v-html="templateData.content" @click="openPreview"></div>
  10. <div v-if="previewVisible" class="preview-modal" @click="closePreview">
  11. <img :src="selectedImage" alt="Preview">
  12. </div>
  13. <div class="statementBox" v-if="templateData.copyfrom != '本网'">
  14. <div class="statementBoxLeft">
  15. <div>原文链接:http://nmyj.xlgl.gov.cn/xzxk/zsyz/202112/t20211201_2771045.html</div>
  16. <div>[免责声明] 本文来源于网络转载,仅供学习交流使用,不构成商业目的。版权归原作者所有,如涉及作品内容、版权和其它问题,请在30日内与本网联系,我们将在第一时间处理。</div>
  17. </div>
  18. </div>
  19. <div v-if="is_survey==1">
  20. <div :class="['index_3_box_vote', 'voteStyle' + skinId]">
  21. <div class="voteTitle">投票区</div>
  22. <div class="inquire">
  23. <p v-if="voteList.length > 0">{{ voteList[0].survey_name }}</p>
  24. <div class="radioBox">
  25. <div v-if="!isDisabled">
  26. <div class="radio" v-if="isRadio">
  27. <el-radio-group v-model="radio1" @change="handleRadioChange">
  28. <el-radio
  29. v-for="item in voteList"
  30. :key="item.id"
  31. :value="item.id"
  32. size="large"
  33. >
  34. <span v-if="item.is_other == 0">
  35. {{ item.choice_name }}
  36. </span>
  37. <span v-else>其他</span>
  38. </el-radio>
  39. </el-radio-group>
  40. <el-input v-if="showUserChoice" v-model="userChoice" :rows="2" type="textarea" resize="none" placeholder="请输入.." />
  41. </div>
  42. <div class="checkInputBox" v-else>
  43. <el-checkbox-group v-model="check1" @change="handleCheckboxChange">
  44. <span v-for="item in voteList" :key="item.id">
  45. <span v-if="item.is_other == 0">
  46. <el-checkbox size="large" :label="item.choice_name"
  47. :value="item.id" />
  48. </span>
  49. <span v-else>
  50. <el-checkbox size="large" label="其他" :value="item.id" />
  51. </span>
  52. </span>
  53. </el-checkbox-group>
  54. <el-input v-if="showUserChoice" v-model="userChoice" :rows="2" type="textarea"
  55. resize="none" placeholder="请输入.." />
  56. </div>
  57. </div>
  58. <div class="inquireData" v-else>
  59. <div v-for="item in websiteSurveyData.data" :key="item.id">
  60. <div class="inquireDataItem active" v-if="item.status == 1">
  61. <div class="inquireDataItemTitle">
  62. <span v-if="item.choice_name == ''">其他</span>
  63. <span v-else>{{ item.choice_name }}</span>
  64. </div>
  65. <div class="inquireDataItemNum">{{ item.results }}票</div>
  66. </div>
  67. <div class="inquireDataItem" v-else>
  68. <div class="inquireDataItemTitle">
  69. <span v-if="item.choice_name == ''">其他</span>
  70. <span v-else>{{ item.choice_name }}</span>
  71. </div>
  72. <div class="inquireDataItemNum">{{ item.results }}票</div>
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. <div class="btn">
  78. <button :class="['voting', 'votingStyle' + skinId]" @click="addWebsiteSurvey" :disabled="isDisabled" v-if="!isDisabled">投票</button>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. </template>
  85. <script setup lang="ts">
  86. import type { IArticleDetail,ISurveyResult,ISurveyResultData } from '@/utils/dataInterface';
  87. import { ElRadio, ElRadioGroup, ElCheckbox, ElCheckboxGroup, ElMessage, ElInput } from 'element-plus'
  88. const props:any = defineProps<{
  89. templateData: IArticleDetail;
  90. skinId: number;
  91. }>();
  92. //1.投票功能 start ---------------------------------------->
  93. const is_survey = ref<number>(0);//是否显示投票
  94. //1.1查询投票
  95. const route:any = useRoute();
  96. const articleId:number = parseInt(route.params.id);
  97. getVoteList();
  98. //1.2投票选项
  99. const radio1 = ref<string>(''); //单选
  100. const check1 = ref<string[]>([]); //多选
  101. const isDisabled = ref<boolean>(false);//是否禁用提交按钮
  102. const isRadio = ref<boolean>(true);//是否渲染单选
  103. const userSurId = ref<string>('');//投票属于哪一篇文章
  104. const userChoice = ref<string>('');//用于判断用户选择了其他选项以后,输入的值
  105. const userIsChoice = ref<string>('');//用于判断其他选项目前是什么值
  106. const showUserChoice = ref<boolean>(false);//是否显示其他输入框
  107. const websiteSurveyData = ref<ISurveyResult>({//投票结果
  108. choice:[],
  109. data:[]
  110. });
  111. //1.3.获得投票列表
  112. let voteList = ref<ISurveyResultData[]>([]);
  113. async function getVoteList() {
  114. const voteData:any = await requestDataPromise('/web/getWebsiteSurvey', {method:'GET',query:{'art_id':articleId}});
  115. if (voteData.code == 200) {
  116. is_survey.value = 1;
  117. voteList.value = voteData.data;
  118. console.log(voteList.value)
  119. //判断显示单选还是多选
  120. //survey_type 0是单选 1是多选
  121. if (voteData.data[0].survey_type == 0) {
  122. isRadio.value = true;
  123. } else {
  124. isRadio.value = false;
  125. }
  126. //把最后一个的值拿出来 用于判断用户是否选择了其他
  127. for (let item of voteData.data) {
  128. //如果含有其他
  129. if (item.is_other == 1) {
  130. userIsChoice.value = item.id;
  131. }
  132. }
  133. //用户投票属于哪一篇文章
  134. userSurId.value = voteData.data[0].sur_id;
  135. } else {
  136. is_survey.value = 0;
  137. }
  138. }
  139. //1.4当用户选择了选项,判断是否展示其他输入框
  140. const handleRadioChange = (value:any) => {
  141. if (value == userIsChoice.value) {
  142. showUserChoice.value = true;
  143. } else {
  144. showUserChoice.value = false;
  145. }
  146. }
  147. const handleCheckboxChange = (value:string[]) => {
  148. if (value.includes(userIsChoice.value)) {
  149. showUserChoice.value = true;
  150. } else {
  151. showUserChoice.value = false;
  152. }
  153. }
  154. //1.5发起投票
  155. async function addWebsiteSurvey() {
  156. //判断当前是单选还是多选
  157. console.log(isRadio.value)
  158. if (isRadio.value) {
  159. console.log("用户单选!")
  160. if (radio1.value != '') {
  161. //先判断一下是否使用了其他选项
  162. if (showUserChoice.value) {
  163. if (userChoice.value != '') {
  164. //文章id
  165. // console.log(userSurId.value)
  166. // 用户输入的值
  167. // console.log(userChoice.value)
  168. //如果使用了其他,其他的选项需要增加进去
  169. const ChoiceData = await requestHome('/web/addWebsiteSurveyOption', {
  170. method: 'GET',
  171. query: {
  172. 'sur_id': userSurId.value,//投票的新闻id
  173. 'choice_name': userChoice.value,//投票的选项id
  174. }
  175. });
  176. if (ChoiceData.code == 200) {
  177. //提交完其他选项以后,再正式发起投票
  178. const mkData:any = await requestHome('/web/addWebsiteSurveyVote', {
  179. method: 'GET',
  180. query: {
  181. 'sur_id': userSurId.value,
  182. 'choice_id': ChoiceData.data
  183. }
  184. });
  185. if (mkData.code == 200) {
  186. ElMessage.success('投票成功!')
  187. //把投票结果显示到页面上 禁用投票按钮
  188. isDisabled.value = true;
  189. //websiteSurveyData.value = mkData.data;
  190. //遍历一下,把用户选中的那个设置status为1
  191. let data:any = mkData.data;
  192. //遍历一下,把用户选中的那个设置status为1
  193. for (let item of data.data) {
  194. for (let i of data.choice) {
  195. if (item.id == i) {
  196. console.log(item.id)
  197. item.status = 1;
  198. }
  199. }
  200. }
  201. websiteSurveyData.value = data;
  202. } else {
  203. ElMessage.error(mkData.message)
  204. }
  205. } else {
  206. ElMessage.error('其他投票失败!')
  207. }
  208. } else {
  209. ElMessage.error('请输入选项内容!')
  210. }
  211. } else {
  212. //如果没选择其他,直接提交选择的内容
  213. const mkData:any = await requestHome('/web/addWebsiteSurveyVote', {
  214. method: 'GET',
  215. query: {
  216. 'sur_id': userSurId.value,
  217. 'choice_id': radio1.value
  218. }
  219. });
  220. if (mkData.code == 200) {
  221. ElMessage.success('投票成功!')
  222. //把投票结果显示到页面上 禁用投票按钮
  223. isDisabled.value = true;
  224. let data:any = mkData.data;
  225. //遍历一下,把用户选中的那个设置status为1
  226. for (let item of data.data) {
  227. for (let i of data.choice) {
  228. if (item.id == i) {
  229. item.status = 1;
  230. }
  231. }
  232. }
  233. websiteSurveyData.value = data;
  234. } else {
  235. ElMessage.error('投票失败!')
  236. }
  237. }
  238. } else {
  239. ElMessage.error('请选择一个选项')
  240. }
  241. } else {
  242. console.log("多选!")
  243. //多选
  244. if (check1.value.length > 0) {
  245. //先判断一下是否使用了其他选项
  246. if (showUserChoice.value) {
  247. if (userChoice.value != '') {
  248. //判断用户是否只选择了一个其他
  249. if (check1.value.length == 1) {
  250. const ChoiceData:any = await requestDataPromise('/web/addWebsiteSurveyOption', {
  251. method: 'GET',
  252. query: {
  253. 'sur_id': userSurId.value,//投票的新闻id
  254. 'choice_name': userChoice.value,//用户输入的其他选项文字
  255. }
  256. });
  257. if (ChoiceData.code == 200) {
  258. //提交完其他选项以后,再正式发起投票
  259. const mkData:any = await requestDataPromise('/web/addWebsiteSurveyVote', {
  260. method: 'GET',
  261. query: {
  262. 'sur_id': userSurId.value,
  263. 'choice_id': ChoiceData.data
  264. }
  265. });
  266. if (mkData.code == 200) {
  267. ElMessage.success('投票成功!')
  268. //把投票结果显示到页面上 禁用投票按钮
  269. isDisabled.value = true;
  270. websiteSurveyData.value = mkData.data;
  271. //遍历一下,把用户选中的那个设置status为1
  272. let data = mkData.data;
  273. //遍历一下,把用户选中的那个设置status为1
  274. for (let item of data.data) {
  275. for (let i of data.choice) {
  276. if (item.id == i) {
  277. console.log(item.id)
  278. item.status = 1;
  279. }
  280. }
  281. }
  282. websiteSurveyData.value = data;
  283. } else {
  284. ElMessage.error(mkData.message)
  285. }
  286. } else {
  287. ElMessage.error('其他投票失败!')
  288. }
  289. } else {
  290. //用户选择了除了其他以外,还包括别的选项
  291. const ChoiceData:any = await requestDataPromise('/web/addWebsiteSurveyOption', {
  292. method: 'GET',
  293. query: {
  294. 'sur_id': userSurId.value,//投票的新闻id
  295. 'choice_name': userChoice.value,//用户输入的其他选项文字
  296. }
  297. });
  298. if (ChoiceData.code == 200) {
  299. let data:any = check1.value;
  300. //找到多选的数组,把其他默认值给替换掉
  301. for (let i = 0; i < data.length; i++) {
  302. if (data[i] == userIsChoice.value) {
  303. data[i] = ChoiceData.data;
  304. }
  305. }
  306. let jsonArray = JSON.stringify(data);
  307. //提交完其他选项以后,再正式发起投票
  308. const mkData:any = await requestDataPromise('/web/addWebsiteSurveyVote', {
  309. method: 'GET',
  310. query: {
  311. 'sur_id': userSurId.value,
  312. 'choice_id': jsonArray
  313. }
  314. });
  315. if (mkData.code == 200) {
  316. ElMessage.success('投票成功!')
  317. //把投票结果显示到页面上 禁用投票按钮
  318. isDisabled.value = true;
  319. websiteSurveyData.value = mkData.data;
  320. //遍历一下,把用户选中的那个设置status为1
  321. let data = mkData.data;
  322. //遍历一下,把用户选中的那个设置status为1
  323. for (let item of data.data) {
  324. for (let i of data.choice) {
  325. if (item.id == i) {
  326. //console.log(item.id)
  327. item.status = 1;
  328. }
  329. }
  330. }
  331. websiteSurveyData.value = data;
  332. } else {
  333. ElMessage.error(mkData.message)
  334. }
  335. } else {
  336. ElMessage.error('其他投票失败!')
  337. }
  338. }
  339. } else {
  340. ElMessage.error('请输入选项内容!')
  341. }
  342. } else {
  343. let jsonArray = JSON.stringify(check1.value);
  344. //如果没选择其他,直接提交选择的内容
  345. const mkData:any = await requestDataPromise('/web/addWebsiteSurveyVote', {
  346. method: 'GET',
  347. query: {
  348. 'sur_id': userSurId.value,
  349. 'choice_id': jsonArray
  350. }
  351. });
  352. if (mkData.code == 200) {
  353. ElMessage.success('投票成功!')
  354. //把投票结果显示到页面上 禁用投票按钮
  355. isDisabled.value = true;
  356. websiteSurveyData.value = mkData.data;
  357. //遍历一下,把用户选中的那个设置status为1
  358. let data = mkData.data;
  359. //遍历一下,把用户选中的那个设置status为1
  360. for (let item of data.data) {
  361. for (let i of data.choice) {
  362. if (item.id == i) {
  363. console.log(item.id)
  364. item.status = 1;
  365. }
  366. }
  367. }
  368. websiteSurveyData.value = data;
  369. } else {
  370. ElMessage.error('投票失败!')
  371. }
  372. }
  373. } else {
  374. ElMessage.error('请选择一个选项')
  375. }
  376. }
  377. }
  378. //是否展示投票 end ---------------------------------------->
  379. //页面图片放大 start---------------------------------------->
  380. const previewVisible = ref<boolean>(false)
  381. const selectedImage = ref<string>(' ')
  382. const openPreview = (event:any) => {
  383. if (event.target.tagName === 'IMG') {
  384. selectedImage.value = event.target.src;
  385. previewVisible.value = true;
  386. }
  387. }
  388. const closePreview = () => {
  389. previewVisible.value = false;
  390. }
  391. //页面图片放大 end---------------------------------------->
  392. </script>
  393. <style lang="less" scoped>
  394. .articleMainBox {
  395. width: 900px;
  396. margin: 0 auto;
  397. display: block;
  398. .articleTitle {
  399. width: 900px;
  400. font-size:30px;
  401. color:#333333;
  402. font-weight:bold;
  403. }
  404. .articleInfo {
  405. width: 900px;
  406. color:#999999;
  407. font-size:14px;
  408. display: flex;
  409. justify-content: flex-start;
  410. align-items: center;
  411. margin-top: 30px;
  412. div{
  413. margin-right: 40px;
  414. }
  415. }
  416. .articleContent {
  417. width: 900px;
  418. padding-top:60px;
  419. font-size:20px;
  420. margin-bottom: 60px;
  421. img{
  422. display: block;
  423. margin: 0 auto;
  424. margin-bottom: 60px;
  425. }
  426. .fontBold {
  427. font-weight:bold;
  428. }
  429. div {
  430. text-indent: 2em;
  431. margin-bottom: 28px;
  432. }
  433. }
  434. .statementBox {
  435. width: 900px;
  436. height: 143px;
  437. border-top: 1px solid #D9D9D9;
  438. .statementBoxLeft {
  439. width: 900px;
  440. height: 143px;
  441. padding-top: 40px;
  442. text-align: left;
  443. box-sizing: border-box;
  444. font-size:20px;
  445. color:#999999;
  446. }
  447. }
  448. }
  449. //投票 start ---------------------------------------->
  450. .index_3_box_vote {
  451. .voteTitle {
  452. font-size: 20px;
  453. height: 40px;
  454. line-height: 40px;
  455. color: #333333;
  456. padding-left: 20px;
  457. width: 100%;
  458. border-bottom: 1px solid #E7E7E7;
  459. border-top: 1px solid #333;
  460. box-sizing: border-box;
  461. }
  462. width:100%;
  463. box-sizing:border-box;
  464. border:solid 1px #FBFBFB;
  465. background: #FBFBFB;
  466. .inquire {
  467. height: 394px;
  468. margin-top: 20px;
  469. border-radius: 6px 6px 6px 6px;
  470. padding: 4px 40px 4px 6px;
  471. box-sizing: border-box;
  472. p {
  473. font-weight: bold;
  474. height: 69px;
  475. font-family: PingFang SC, PingFang SC;
  476. font-size: 20px;
  477. color: #333333;
  478. line-height: 21px;
  479. text-align: left;
  480. font-style: normal;
  481. text-transform: none;
  482. padding: 12px 20px 0 32px;
  483. }
  484. .radioBox {
  485. height: 250px;
  486. padding-left: 30px;
  487. overflow-y: auto;
  488. box-sizing: border-box;
  489. padding-bottom: 20px;
  490. }
  491. .radio {
  492. /deep/.el-radio {
  493. --el-radio-input-border-color-hover: #dd7d18;
  494. }
  495. /deep/.el-radio-group {
  496. align-items: center;
  497. display: inline-flex;
  498. flex-wrap: wrap;
  499. font-size: 0;
  500. //padding-left: 35px;
  501. }
  502. /deep/.el-radio.el-radio--large {
  503. width: 100%;
  504. height: 29px;
  505. margin-bottom: 15px;
  506. }
  507. /deep/.el-radio.el-radio--large .el-radio__label {
  508. font-family: PingFang SC, PingFang SC;
  509. font-weight: 400;
  510. font-size: 16px;
  511. color: #333333;
  512. white-space: nowrap;
  513. overflow: hidden;
  514. text-overflow: ellipsis;
  515. width: 300px;
  516. }
  517. /deep/.el-radio.el-radio--large .el-radio__inner {
  518. height: 16px;
  519. width: 16px;
  520. }
  521. /deep/.el-radio__input.is-checked+.el-radio__label {
  522. color: #333;
  523. }
  524. /deep/.el-radio__input.is-checked .el-radio__inner {
  525. background: #333;
  526. border-color: #333;
  527. }
  528. }
  529. .checkInputBox {
  530. /deep/.el-checkbox {
  531. --el-radio-input-border-color-hover: #333;
  532. }
  533. /deep/.el-checkbox-group {
  534. align-items: center;
  535. display: inline-flex;
  536. flex-wrap: wrap;
  537. font-size: 0;
  538. }
  539. /deep/.el-checkbox.el-checkbox--large {
  540. width: 330px;
  541. height: 29px;
  542. margin-bottom: 15px;
  543. }
  544. /deep/.el-checkbox.el-checkbox--large .el-checkbox__label {
  545. font-family: PingFang SC, PingFang SC;
  546. font-weight: 400;
  547. font-size: 16px;
  548. color: #333333;
  549. white-space: nowrap;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. width: 300px;
  553. }
  554. /deep/.el-checkbox.el-checkbox--large .el-checkbox__inner {
  555. height: 16px;
  556. width: 16px;
  557. }
  558. /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
  559. color: #333;
  560. }
  561. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  562. background: #333;
  563. border-color: #333;
  564. }
  565. }
  566. .btn {
  567. padding-left: 30px;
  568. button {
  569. width: 78px;
  570. height: 37px;
  571. line-height: 37px;
  572. border-radius: 6px;
  573. border: none;
  574. font-family: PingFang SC, PingFang SC;
  575. font-weight: 400;
  576. font-size: 16px;
  577. color: #999999;
  578. }
  579. .voting {
  580. //background-color: #dd7d18;
  581. color: #fff;
  582. margin-right: 44px;
  583. cursor: pointer;
  584. }
  585. .look {
  586. cursor: pointer;
  587. }
  588. }
  589. }
  590. .inquireData {
  591. .inquireDataItem {
  592. width: 100%;
  593. height: 38px;
  594. display: flex;
  595. align-items: center;
  596. justify-content: space-between;
  597. background: #F3F3F3;
  598. border: 1px solid #D2D2D2;
  599. margin-bottom: 10px;
  600. border-radius: 6px;
  601. padding: 0 15px;
  602. box-sizing: border-box;
  603. color: #999999;
  604. .inquireDataItemTitle {
  605. width: 290px;
  606. height: 38px;
  607. font-size: 16px;
  608. line-height: 38px;
  609. white-space: nowrap;
  610. overflow: hidden;
  611. text-overflow: ellipsis;
  612. }
  613. .inquireDataItemNum {
  614. font-size: 16px;
  615. }
  616. }
  617. .active {
  618. color: #dd7d18;
  619. background: #f3e9de;
  620. border: 1px solid #dd7d18;
  621. }
  622. }
  623. }
  624. //样式1
  625. .voteStyle1 {
  626. .voteTitle {
  627. border-bottom: 1px solid #E7E7E7;
  628. border-top: 1px solid #1C5468;
  629. }
  630. border:solid 1px #FBFBFB;
  631. background: #FBFBFB;
  632. .inquire {
  633. .radio {
  634. /deep/.el-radio__input.is-checked+.el-radio__label {
  635. color: #1C5468;
  636. }
  637. /deep/.el-radio__input.is-checked .el-radio__inner {
  638. background: #1C5468;
  639. border-color: #1C5468;
  640. }
  641. }
  642. .checkInputBox {
  643. /deep/.el-checkbox {
  644. --el-radio-input-border-color-hover: #1C5468;
  645. }
  646. /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
  647. color: #1C5468;
  648. }
  649. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  650. background: #1C5468;
  651. border-color: #1C5468;
  652. }
  653. }
  654. }
  655. .inquireData {
  656. .active {
  657. color: #1C5468;
  658. background: #f3e9de;
  659. border: 1px solid #1C5468;
  660. }
  661. }
  662. }
  663. .votingStyle1 {
  664. background-color: #1C5468;
  665. }
  666. //样式2
  667. .voteStyle2 {
  668. .voteTitle {
  669. border-bottom: 1px solid #E7E7E7;
  670. border-top: 1px solid #A91B33;
  671. }
  672. border:solid 1px #FBFBFB;
  673. background: #FBFBFB;
  674. .inquire {
  675. .radio {
  676. /deep/.el-radio__input.is-checked+.el-radio__label {
  677. color: #A91B33;
  678. }
  679. /deep/.el-radio__input.is-checked .el-radio__inner {
  680. background: #A91B33;
  681. border-color: #A91B33;
  682. }
  683. }
  684. .checkInputBox {
  685. /deep/.el-checkbox {
  686. --el-radio-input-border-color-hover: #A91B33;
  687. }
  688. /deep/.el-checkbox__input.is-checked+.el-checkbox__label {
  689. color: #A91B33;
  690. }
  691. /deep/.el-checkbox__input.is-checked .el-checkbox__inner {
  692. background: #A91B33;
  693. border-color: #A91B33;
  694. }
  695. }
  696. }
  697. .inquireData {
  698. .active {
  699. color: #A91B33;
  700. background: #f3e9de;
  701. border: 1px solid #A91B33;
  702. }
  703. }
  704. }
  705. .votingStyle2 {
  706. background-color: #A91B33;
  707. }
  708. //投票 end ---------------------------------------->
  709. //放大图片
  710. .preview-modal {
  711. position: fixed;
  712. top: 0;
  713. left: 0;
  714. width: 100%;
  715. height: 100%;
  716. background: rgba(0, 0, 0, 0.8);
  717. display: flex;
  718. justify-content: center;
  719. align-items: center;
  720. z-index: 1000;
  721. }
  722. .preview-modal img {
  723. max-width: 100%;
  724. max-height: 100%;
  725. cursor: pointer;
  726. /* 关闭按钮样式 */
  727. }
  728. </style>