businessDistrictDetail.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. <template>
  2. <div class="mainBox">
  3. <!--搜索功能 end------------------------------------------------------------>
  4. <!--表格内容 start------------------------------------------------------------>
  5. <div class="layerBox">
  6. <tableTitle :name="tableDivTitle" />
  7. <el-row>
  8. <template>
  9. <!-- 在此位置下面写 -->
  10. <div class="article-detail">
  11. <div class="article-card">
  12. <div class="article-title">
  13. 高都市周山镇开展渔业安全生产应急演练活动
  14. <el-tag type="info" class="article-tag">科普</el-tag>
  15. </div>
  16. <div class="article-meta">
  17. <span class="article-meta-item1">发布自</span>
  18. <span class="article-meta-item2">发布自发布自发布自发布自发布自发布自发布自发布自发布自发布自发布自</span>
  19. <el-button class="top-button" type="primary">查看群聊</el-button>
  20. </div>
  21. <el-divider></el-divider>
  22. <div class="background-color">
  23. <div class="article-content">
  24. 总有一些小故事被藏在社会安全的背后。会稍随意,这种不牢靠的能被流动,导致被拉打了。<br/>
  25. ...(此处省略正文,按实际内1111111容填充)...
  26. </div>
  27. <div class="article-author">
  28. <div class="article_box">
  29. <div class="article_panel" :class="{'dot1': !isExpanded}">
  30. 总有一些小坏蛋教唆着让大家全网找图、全网搬运,这种不负责任的低端玩法,早就过
  31. 时了。 我们是通过AI工具+商用图软件,生成独一无二的商用图片/矢量图/视频,2025
  32. 年,千万不要低估AI工具的力量,它让一个人干10个人的活,不是不可能。 按照我们
  33. 的方法,普通人一天可生成上百张各类的商用图片/矢量图/视频,而且100%符合海外图
  34. 库平台像素、尺寸、分辨率要求。 更让我们踏实的是:我们做的每一个作品上传成功
  35. 到海外图库平台都能申请到自己的的独立版权。只要我们电子版权在手,平台不倒,
  36. 我们的作品一直会被下载
  37. 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处
  38. </div>
  39. <span class="article_panel_btn" @click="toggleExpand">
  40. 阅读全文
  41. <i class="el-icon-arrow-down" v-if="!isExpanded"></i>
  42. <i class="el-icon-arrow-up" v-else></i>
  43. </span>
  44. </div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="comment-section">
  49. <div class="box_1 clearfix">
  50. <div class="box_in">评论:</div>
  51. </div>
  52. <div class="comment-list">
  53. <div class="comment_li" v-for="(per_obj,per_index) in 4" :key="per_obj">
  54. <el-avatar
  55. class="comment_li_img"
  56. src="https://img.zcool.cn/community/01b8c95d5b2e5fa801216518a8b7c6.jpg"
  57. />
  58. <div class="comment_li_name">林夏:</div>
  59. <div class="comment_li_text">
  60. 辣椒青菜辣椒青菜辣椒青菜辣椒青菜辣椒青菜辣椒青菜辣椒青菜辣椒青菜
  61. </div>
  62. <div class="comment_li_time">2019-09-09</div>
  63. </div>
  64. </div>
  65. <div class="alignBox">
  66. <el-row>
  67. <el-col :span="24">
  68. <el-pagination :current-page="getApiData.page" @size-change="handleSizeChange"
  69. @current-change="handleCurrentChange" :page-size="10" layout="total, prev, pager, next, jumper"
  70. :total="allCount"></el-pagination>
  71. </el-col>
  72. </el-row>
  73. </div>
  74. <div class="comment-actions">
  75. <el-button>返回</el-button>
  76. <el-button type="primary">查看群聊</el-button>
  77. </div>
  78. </div>
  79. </div>
  80. </template>
  81. </el-row>
  82. </div>
  83. </div>
  84. </template>
  85. <script>
  86. //表格标题
  87. import tableTitle from './components/tableTitle';
  88. //引入公用样式
  89. import '@/styles/global.less';
  90. import InputTag from '@/components/InputTag'
  91. export default {
  92. components: {
  93. tableTitle,//表格标题
  94. InputTag
  95. },
  96. data() {
  97. let self = this;
  98. //0.全局操�� end ------------------------------------------------------------>
  99. return {
  100. isExpanded: false, // btn添加展开状态
  101. //1.列表和分页相关 start ------------------------------------------------------------>
  102. tableDivTitle: "商圈详情",
  103. getApiData: {
  104. keyword: "",//网站名称查询
  105. website_column_id: [],//使用网系id查询
  106. city_id: [],//使用城市id查询
  107. page: 1,//当前是第几页
  108. pageSize: 10,//一共多少条
  109. },
  110. allCount: 0,//总条数
  111. //弹出框设置 start ------------------------------------------------------------>
  112. //3.弹出框中的表单设置 start ------------------------------------------------------------>
  113. //3.1 表单收集的数据
  114. form: {
  115. },
  116. //3.2 表单验证规则
  117. formRules: {
  118. },
  119. }
  120. },
  121. methods: {
  122. handleSizeChange(){
  123. },
  124. handleCurrentChange(){
  125. },
  126. toggleExpand() { // 添加切换方法
  127. this.isExpanded = !this.isExpanded
  128. }
  129. },
  130. mounted() {
  131. }
  132. }
  133. </script>
  134. <style scoped lang="less">
  135. .article-detail {
  136. // padding: 24px;
  137. // background: #f5f7fa;
  138. min-height: 100vh;
  139. .article-card {
  140. margin-bottom: 24px;
  141. padding: 24px 0px;
  142. background: #fff;
  143. // border-radius: 8px;
  144. // box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  145. .article-title {
  146. font-family: Microsoft YaHei, Microsoft YaHei;
  147. font-weight: bold;
  148. font-size: 28px;
  149. color: #333333;
  150. display: flex;
  151. align-items: center;
  152. .article-tag {
  153. background: rgba(85,112,241,0.16) !important;
  154. border-radius: 3px 3px 3px 3px !important;
  155. margin-left: 12px;
  156. font-size: 14px;
  157. height: 22px;
  158. line-height: 22px;
  159. padding: 0 10px;
  160. border-radius: 4px;
  161. font-weight: 400;
  162. font-size: 14px;
  163. color: #5570F1;
  164. }
  165. }
  166. .article-meta {
  167. margin-top: 31px;
  168. color: #888;
  169. font-size: 16px;
  170. display: flex;
  171. align-items: center;
  172. .article-link {
  173. margin-left: 12px;
  174. }
  175. }
  176. .article-content {
  177. // margin: 18px 0 12px 0;
  178. color: #444;
  179. font-size: 15px;
  180. line-height: 1.8;
  181. word-break: break-all;
  182. }
  183. .article-author {
  184. margin-top: 12px;
  185. color: #999;
  186. font-size: 18px;
  187. span {
  188. margin-right: 16px;
  189. display:block;
  190. line-height:30px;
  191. }
  192. }
  193. }
  194. .comment-section {
  195. // padding: 24px 32px;
  196. background: #fff;
  197. border-radius: 8px;
  198. .comment-title {
  199. font-weight: bold;
  200. font-size: 22px;
  201. color: #5570F1;
  202. // font-size: 16px;
  203. // font-weight: bold;
  204. // color: #333;
  205. margin-bottom: 8px;
  206. text-align: left;
  207. }
  208. // 蓝色短分割线,宽度10%,居中
  209. .el-divider {
  210. margin: 8px auto 16px auto;
  211. border: none;
  212. height: 0;
  213. width: 10%;
  214. min-width: 40px;
  215. max-width: 100px;
  216. border-top: 2px solid #5570F1;
  217. border-radius: 2px;
  218. background: transparent;
  219. }
  220. .comment-list {
  221. margin-top:40px;
  222. .comment_li{background:#FAFAFA;border:solid 1px #E1E1E1;overflow:hidden;margin-bottom:20px;}
  223. .comment_li_img{float:left;width:52px;height:52px;border-radius:50%;margin:30px 0px 30px 30px;}
  224. .comment_li_name{float:left;margin:44px 0px 44px 20px;color:#333;font-size:16px;line-height:24px;}
  225. .comment_li_text{float:left;margin:45px 0px 11px 20px;color:#333;font-size:16px;line-height:24px;
  226. font-weight:bold;width:1000px; }
  227. .comment_li_time{float:right;margin:44px 30px 44px 0px;color:#999;font-size:16px;line-height:24px; }
  228. margin-bottom: 16px;
  229. .comment-item {
  230. display: flex;
  231. align-items: center;
  232. padding: 12px 0;
  233. border-bottom: 1px solid #f0f0f0;
  234. &:last-child {
  235. border-bottom: none;
  236. }
  237. .comment-avatar {
  238. width: 36px;
  239. height: 36px;
  240. margin-right: 12px;
  241. }
  242. .comment-content {
  243. .comment-user {
  244. font-size: 15px;
  245. color: #555;
  246. font-weight: 500;
  247. }
  248. .comment-time {
  249. font-size: 12px;
  250. color: #aaa;
  251. margin-top: 2px;
  252. }
  253. }
  254. }
  255. }
  256. .comment-actions {
  257. display: flex;
  258. justify-content: center;
  259. gap: 16px;
  260. margin-top: 12px;
  261. }
  262. }
  263. .article-meta-item1 {
  264. position: relative;
  265. padding-left: 27px;
  266. &::before {
  267. content: '';
  268. display: inline-block;
  269. width: 20px;
  270. height: 20px;
  271. background: url('http://img.bjzxtw.org.cn/master/www/admin/renwu.png') no-repeat center center;
  272. background-size: contain;
  273. position: absolute;
  274. left: 0;
  275. top: 50%;
  276. transform: translateY(-50%);
  277. margin-right: 4px;
  278. }
  279. }
  280. .article-meta-item2 {
  281. position: relative;
  282. padding-left: 27px;
  283. margin-left:40px;
  284. &::before {
  285. content: '';
  286. display: inline-block;
  287. width: 20px;
  288. height: 20px;
  289. background: url('http://img.bjzxtw.org.cn/master/www/admin/wechat.png') no-repeat center center;
  290. background-size: contain;
  291. position: absolute;
  292. left: 0;
  293. top: 50%;
  294. transform: translateY(-50%);
  295. margin-right: 4px;
  296. }
  297. }
  298. .top-button{
  299. margin-left: 30px;
  300. }
  301. .background-color{
  302. background: #f0f2f5;
  303. padding: 30px 20px;
  304. }
  305. .clearfix::after{
  306. content:'';
  307. display: block;height: 0;
  308. visibility: hidden;
  309. clear: both;
  310. }
  311. .box_1{
  312. border-bottom:solid 1px #E9EDF7;
  313. box-sizing:border-box;
  314. }
  315. .box_in{
  316. font-weight: bold;
  317. float:left;
  318. font-size:22px;
  319. color:#5570F1;
  320. height:33px;
  321. line-height:33px;
  322. border-bottom:solid 2px #5570F1;
  323. margin-bottom:-1px;
  324. }
  325. }
  326. .article_box{margin-top:11;overflow:hidden;}
  327. .article_panel{float:left;width:800px;font-size:18px;line-height:30px;}
  328. .article_panel_btn{float:left;color: #6A82F3;cursor:pointer;}
  329. .dot1{word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  330. }
  331. </style>