index.vue 23 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019
  1. <script setup>
  2. import {
  3. ref
  4. } from "vue";
  5. import {
  6. onLoad,
  7. onPullDownRefresh,
  8. onReachBottom,
  9. onPageScroll
  10. } from "@dcloudio/uni-app";
  11. import {
  12. getProjectInfoList,
  13. } from "@/api/work/projectInfo.js";
  14. import {
  15. getPolicyList,
  16. } from "@/api/work/policy.js";
  17. import {
  18. getContactList,
  19. } from "@/api/work/contact.js";
  20. import {
  21. addFocus,
  22. cancelFocus
  23. } from "@/api/work/focus.js";
  24. // 搜索项目
  25. const searchTabs = [{
  26. name: '项目'
  27. }, {
  28. name: '文件'
  29. }, {
  30. name: '通信'
  31. }];
  32. const activeTabs = ref('项目');
  33. const searchTabsClick = function(e) {
  34. activeTabs.value = e.name;
  35. searchPlaceholder.value = searchPlaceholderObj[e.name];
  36. reSearch(e.name);
  37. };
  38. // 搜索输入
  39. let searchPlaceholderObj = {
  40. "项目": "请输入项目名称",
  41. "文件": "请输入文件名称",
  42. "通信": "行业单位名称/责任人姓名/领导姓名",
  43. }
  44. let searchPlaceholder = ref('请输入项目名称');
  45. let searchContent = ref(null);
  46. const searchClean = function() {
  47. searchContent.value = null;
  48. };
  49. // 搜索功能
  50. let searchInfo = ref({
  51. pageNo: 1,
  52. pageSize: 10,
  53. });
  54. let paramsObj = {
  55. "项目": "subName",
  56. "文件": "title",
  57. "通信": "name",
  58. };
  59. const getList = function(type) {
  60. let params = Object.assign({}, searchInfo.value);
  61. params[paramsObj[type]] = searchContent.value;
  62. if (type === "项目") {
  63. getProjectInfoList(params).then(res => {
  64. itemList.value = itemList.value.concat(res.data.list);
  65. listTotal.value = res.data.total;
  66. if (res.data.total == searchInfo.value.pageNo * searchInfo.value.pageSize - (10 - res.data.list
  67. .length))
  68. moreListFlag = false;
  69. })
  70. }
  71. if (type === "文件") {
  72. getPolicyList(params).then(res => {
  73. itemList.value = itemList.value.concat(res.data.list);
  74. listTotal.value = res.data.total;
  75. if (res.data.total == searchInfo.value.pageNo * searchInfo.value.pageSize - (10 - res.data.list
  76. .length))
  77. moreListFlag = false;
  78. })
  79. }
  80. if (type === "通信") {
  81. getContactList(params).then(res => {
  82. itemList.value = res.data.list;
  83. listTotal.value = res.data.list.length;
  84. moreListFlag = false;
  85. })
  86. }
  87. }
  88. const reSearch = function(type) {
  89. searchInfo.value.pageNo = 1;
  90. moreListFlag = true;
  91. itemList.value = [];
  92. listTotal.value = 0;
  93. getList(type);
  94. };
  95. // 搜索结果
  96. let itemList = ref([]);
  97. let listTotal = ref(0);
  98. // 折叠/展开
  99. const changeFoldItem = (status, id) => {
  100. let item = itemList.value.find(item => item.id === id);
  101. item.unfold = status;
  102. }
  103. const projectDetail = function(id, subName) {
  104. uni.navigateTo({
  105. url: `/pages/projectInfo/detail/index?id=${id}&subName=${subName}`
  106. })
  107. }
  108. const fileDetail = function(title, id) {
  109. uni.navigateTo({
  110. url: `/pages/policy/detail/index?title=${title}&id=${id}`,
  111. });
  112. }
  113. let popupShow = ref(false);
  114. let popupTitle = ref(null);
  115. let callShow = ref(false);
  116. const showPopup = function(text) {
  117. callShow.value = true;
  118. popupTitle.value = text
  119. popupShow.value = true
  120. }
  121. const hidePopup = function() {
  122. popupShow.value = false
  123. callShow.value = false
  124. }
  125. const pasteItem = function() {
  126. uni.setClipboardData({
  127. data: popupTitle.value
  128. });
  129. }
  130. const callItem = function() {
  131. plus.device.dial(popupTitle.value, true);
  132. }
  133. onLoad(() => {
  134. getList("项目")
  135. })
  136. onPullDownRefresh(() => {
  137. try {
  138. reSearch(activeTabs.value);
  139. } finally {
  140. uni.stopPullDownRefresh()
  141. }
  142. })
  143. let moreListFlag = true;
  144. let noEmpty = ref(false)
  145. onReachBottom(() => {
  146. if (!moreListFlag) {
  147. noEmpty.value = true
  148. }
  149. searchInfo.value.pageNo++;
  150. getList(activeTabs.value);
  151. })
  152. function goToReport(type, subId, subName) {
  153. if (type === 'wtdb') {
  154. uni.navigateTo({
  155. url: `/pages/problemSupervision/index?type=${type}&subId=${subId}&subName=${subName}`
  156. })
  157. } else if (type === 'qtldjbm') {
  158. uni.navigateTo({
  159. url: `/pages/leadersList/index?type=${type}&subId=${subId}&subName=${subName}`
  160. })
  161. } else if (type === 'xcyx') {
  162. uni.navigateTo({
  163. url: `/pages/projectImageAndVideo/index?type=${type}&subId=${subId}&subName=${subName}`
  164. })
  165. } else if (type === 'more') {
  166. uni.navigateTo({
  167. url: `/pages/morePage/index?type=${type}&subId=${subId}&subName=${subName}`
  168. })
  169. } else {
  170. uni.navigateTo({
  171. url: `/pages/projectInfo/report/index?type=${type}&subId=${subId}&subName=${subName}`
  172. })
  173. }
  174. }
  175. function goToDetail(id, subName) {
  176. uni.navigateTo({
  177. url: `/pages/projectInfo/detail/index?id=${id}&subName=${subName}`
  178. })
  179. }
  180. // 收藏/取消
  181. function changeFocus(id, status) {
  182. let item = itemList.value.find(item => item.id === id);
  183. if (status) {
  184. cancelFocus({
  185. subId: id
  186. }).then(res => {
  187. if (res.code === 200) {
  188. item.isAttention = 0;
  189. }
  190. }).catch(() => {
  191. uni.showToast({
  192. title: "更改收藏状态失败。",
  193. icon: "none",
  194. duration: 2000
  195. })
  196. })
  197. } else {
  198. addFocus({
  199. subId: id
  200. }).then(res => {
  201. if (res.code === 200) {
  202. item.isAttention = 1;
  203. }
  204. }).catch(() => {
  205. uni.showToast({
  206. title: "更改收藏状态失败。",
  207. icon: "none",
  208. duration: 2000
  209. })
  210. })
  211. }
  212. }
  213. let itemIndex = ref(-1);
  214. function openFold(index) {
  215. if (itemIndex.value == index) {
  216. itemIndex.value = -1;
  217. } else {
  218. itemIndex.value = index;
  219. }
  220. }
  221. let scrollTop = ref(0);
  222. onPageScroll((e) => {
  223. scrollTop.value = e.scrollTop
  224. })
  225. </script>
  226. <template>
  227. <view class="container">
  228. <page-title>搜索</page-title>
  229. <view class="search-box">
  230. <!-- 搜索 -->
  231. <view class="search">
  232. <view class="search-input">
  233. <view class="search-icon"></view>
  234. <input :placeholder='searchPlaceholder' v-model="searchContent"
  235. placeholder-style="color: #D8D8D8;font-size:24rpx" />
  236. </view>
  237. <view class="search-clean" :class="searchContent?.length>0?'':'search-hide'" @click="searchClean()">
  238. </view>
  239. <view class="search-btn" @click="reSearch(activeTabs)">
  240. <view class="search-line">
  241. </view>
  242. 确认
  243. </view>
  244. </view>
  245. <view class="">
  246. <u-tabs :list="searchTabs" @click="searchTabsClick"
  247. inactiveStyle="color: rgba(255,255,255,0.6);font-weight: 500;font-size: 32rpx;white-space:nowrap;width:10%;"
  248. activeStyle="color: #FFFFFF;font-weight: 500;font-size: 32rpx;white-space:nowrap;border:none;width:10%;"></u-tabs>
  249. </view>
  250. </view>
  251. <!-- 列表 -->
  252. <view v-if="activeTabs === '项目'" class="cards-list">
  253. <view class="items-list" v-for="(item,index) in itemList" :key="index">
  254. <!-- 未折叠卡片 -->
  255. <view class="card">
  256. <!-- 项目名称 -->
  257. <view class="project-layer">
  258. <text class="card-name-num">{{(index+1<10?'0'+(index+1):index+1)}}</text>
  259. <view class="name">{{item.subName ?? "--"}}</view>
  260. <view class="card-status" @click="openFold(index)">
  261. <image class="status-light" src="@/static/images/red.svg" mode=""
  262. v-if="item.status_fgw=='2'"></image>
  263. <image class="status-light" src="@/static/images/green.svg" mode=""
  264. v-if="item.status_fgw=='0'||item.status_fgw==null"></image>
  265. <image class="status-light" src="@/static/images/yellow.svg" mode=""
  266. v-if="item.status_fgw=='1'">
  267. </image>
  268. <view class="status-name">
  269. {{item.status ?? "--"}}
  270. </view>
  271. <image class="status-switch" src="@/static/images/liaghtUp.svg" mode=""
  272. :class="item.isOpen ?'card-status-icon-change' :''">
  273. </image>
  274. </view>
  275. </view>
  276. <view class="card-content-box" :style="itemIndex==index ? {height:'300rpx'} :''">
  277. <view class="line" style="margin-top: 0;margin-bottom: 20rpx;">
  278. </view>
  279. <!-- 总投资(万元) -->
  280. <view class="card-item">
  281. <view class="card-item-name">总投资(万元)</view>
  282. <view class="card-item-content">{{item.amtTotal ?? "--"}}</view>
  283. </view>
  284. <!-- 年度计划投资-申报单位(万元) -->
  285. <view class="card-item">
  286. <view class="card-item-name">年度计划投资</view>
  287. <view class="card-item-content">{{item.yearAmt ?? "--"}}</view>
  288. </view>
  289. <!-- 已完成投资(万元)-->
  290. <view class="card-item">
  291. <view class="card-item-name">年度完成投资</view>
  292. <view class="card-item-content">{{item.yearAmtSj ?? "--"}}</view>
  293. </view>
  294. <!-- 当前状态 -->
  295. <view class="card-item">
  296. <view class="card-item-name">当前状态</view>
  297. <view class="card-item-content red">{{item.status ?? "--"}}</view>
  298. </view>
  299. <view class="card-btn-list" >
  300. <view class="button" @click="goToReport('weekly',item.id,item.subName)">
  301. 周报
  302. </view>
  303. <view class="button" @click="goToReport('monthly',item.id,item.subName)">
  304. 月报
  305. </view>
  306. <view class="button" v-if="!item.isAttention"
  307. @click="changeFocus(item.id,item.isAttention)">
  308. 关注
  309. </view>
  310. <view class="button" @click="changeFocus(item.id,item.isAttention)" v-else>
  311. 取消关注
  312. </view>
  313. <view class="button" v-if="item.usersub == 1" @click="goToDetail(item.id,item.subName)">
  314. 项目详情
  315. </view>
  316. <view class="button" v-else @click="goToDetail(item.id,item.subName)">
  317. 查看
  318. </view>
  319. <view class="button" @click="goToReport('more',item.id,item.subName)">
  320. 更多
  321. </view>
  322. </view>
  323. </view>
  324. </view>
  325. </view>
  326. <view class="empty-btn" v-if="noEmpty&&itemList.length!==0">
  327. 无更多内容
  328. </view>
  329. </view>
  330. <view v-if="activeTabs === '文件'" class="cards-list">
  331. <view class="card wenjian-card card-only" v-for="(item,index) in itemList" :key="index"
  332. style="padding-top: 20rpx !important;padding-bottom: 20rpx !important;">
  333. <!-- <card-title :numerator="index+1" :denominator="listTotal"></card-title> -->
  334. <view class="card-item wenjian-item">
  335. <view class=" name-content">
  336. <view class="card-item-name">分类</view>
  337. <view class="card-item-content"
  338. style="display: flex;justify-content: space-between;align-items: center;">
  339. {{item.columnName?? "--"}}
  340. <!-- <view class="card-item" style="justify-content: flex-end;"> -->
  341. <view class="card-btn fat-btn" style="width: 20%;" @click="fileDetail(item.title,item.id)">
  342. 查看</view>
  343. <!-- </view> -->
  344. </view>
  345. </view>
  346. <view class="name-content">
  347. <view class="card-item-name">名称</view>
  348. <view class="card-item-content">{{item.title??"--"}}</view>
  349. </view>
  350. </view>
  351. <!-- <view class="card-item">
  352. <view class="card-item-name">时间</view>
  353. <view class="card-item-content">{{item.rptDate??"--"}}</view>
  354. </view> -->
  355. </view>
  356. <view class="empty-btn" v-if="noEmpty&&itemList.length!==0">
  357. 无更多内容
  358. </view>
  359. </view>
  360. <view v-if="activeTabs === '通信'" class="cards-list">
  361. <view class="card card-only" v-for="(item,index) in itemList" :key="index"
  362. style="padding-top: 20rpx !important;padding-bottom: 20rpx !important;">
  363. <!-- <card-title :numerator="index+1" :denominator="listTotal"></card-title> -->
  364. <view class="one-only-card">
  365. <text class="card-name-num">{{(index+1<10?'0'+(index+1):index+1)}}</text>
  366. <view class="card-item ">
  367. <!-- <view class="card-item-name">行业单位</view> -->
  368. <view class="card-item-content only-item">{{item.unitName || "--"}}</view>
  369. </view>
  370. <view class="card-item spe-item" v-if="item.departName">
  371. <!-- <view class="card-item-name">科室</view> -->
  372. <view class="card-item-content spe-item-content">{{item.departName || "--"}}</view>
  373. </view>
  374. </view>
  375. <view class="line"></view>
  376. <view class="card-item" v-if="item.zrrName || item.zrrTel">
  377. <view class="card-item-name">项目负责人</view>
  378. <view class="card-item-content">{{item.zrrName || "--"}}</view>
  379. </view>
  380. <view class="card-item" @click="showPopup(item.zrrTel)" v-if="item.zrrName || item.zrrTel">
  381. <view class="card-item-name">联系人电话</view>
  382. <view class="card-item-content zrrTel">{{item.zrrTel || "--"}}</view>
  383. </view>
  384. <view class="line" v-if="item.leadName || item.leadTel"></view>
  385. <view class="card-item" v-if="item.leadName || item.leadTel">
  386. <view class="card-item-name">分管领导人</view>
  387. <view class="card-item-content">{{item.leadName || "--"}}</view>
  388. </view>
  389. <view class="card-item" @click="showPopup(item.leadTel)" v-if="item.leadName || item.leadTel">
  390. <view class="card-item-name">联系人电话</view>
  391. <view class="card-item-content zrrTel">{{item.leadTel || "--"}}</view>
  392. </view>
  393. <view class="line" v-if="item.ptName || item.telPt"></view>
  394. <view class="card-item" v-if="item.ptName || item.telPt">
  395. <view class="card-item-name">平台管理人</view>
  396. <view class="card-item-content">{{item.ptName || "--"}}</view>
  397. </view>
  398. <view class="card-item" @click="showPopup(item.telPt)" v-if="item.ptName || item.telPt">
  399. <view class="card-item-name">联系人电话</view>
  400. <view class="card-item-content zrrTel">{{item.telPt || "--"}}</view>
  401. </view>
  402. </view>
  403. <view class="empty-btn" v-if="noEmpty&&itemList.length!==0">
  404. 无更多内容
  405. </view>
  406. </view>
  407. <u-back-top :scroll-top="scrollTop"></u-back-top>
  408. <u-popup :show="popupShow" @close="hidePopup()" mode="bottom" :round="20" closeOnClickOverlay>
  409. <view class="popup-content">
  410. <view class="popup-item popup-title">{{popupTitle}}</view>
  411. <view class="popup-item" @click="pasteItem()">复制</view>
  412. <view class="popup-item" v-show="callShow" @click="callItem()">拨打</view>
  413. <view class="popup-item popup-close" @click="hidePopup()">关闭</view>
  414. </view>
  415. </u-popup>
  416. </view>
  417. </template>
  418. <style lang="scss" scoped>
  419. :deep(.u-tabs__wrapper__nav) {
  420. justify-content: flex-start;
  421. }
  422. :deep(.u-tabs__wrapper__nav__line) {
  423. background-color: transparent !important;
  424. }
  425. :deep(.u-tabs__wrapper__scroll-view-wrapper),
  426. :ddep(.uni-scroll-view) {
  427. overflow: visible !important;
  428. }
  429. :deep(.u-tabs__wrapper__nav__item) {
  430. width: 30%;
  431. }
  432. .red {
  433. color: #E02020 !important;
  434. }
  435. .search-box {
  436. position: fixed;
  437. top: calc(var(--status-bar-height) + 50px);
  438. display: flex;
  439. flex-direction: row;
  440. justify-content: center;
  441. align-items: center;
  442. // margin-top: calc(var(--status-bar-height) + 50px);
  443. width: 100%;
  444. height: 120rpx;
  445. // padding: 0 28rpx;
  446. background-color: #002F69;
  447. // background-color: #fff;
  448. z-index: 99;
  449. }
  450. .empty-btn {
  451. width: 100%;
  452. line-height: 60rpx;
  453. display: flex;
  454. align-items: center;
  455. justify-content: center;
  456. color: #B5B5B5;
  457. }
  458. .zrrTel {
  459. color: #1763E7 !important;
  460. }
  461. .leadTel {
  462. color: #16AD49 !important;
  463. }
  464. .ptTel {
  465. color: #FF530F !important;
  466. }
  467. .blue {
  468. color: #1763E7 !important;
  469. }
  470. .card {
  471. width: 90%;
  472. margin: 0 auto;
  473. .card-name {
  474. min-height: 30rpx;
  475. }
  476. }
  477. .cards-list {
  478. display: flex;
  479. flex-direction: column !important;
  480. gap: 20rpx;
  481. }
  482. .card-btn {
  483. display: flex;
  484. justify-content: center;
  485. align-items: center;
  486. width: 200rpx;
  487. height: 48rpx;
  488. background: #D6ECFF;
  489. border-radius: 30rpx;
  490. font-weight: 500;
  491. font-size: 28rpx;
  492. color: #002F69;
  493. }
  494. .line {
  495. width: 100%;
  496. height: 1px;
  497. border-top: 1px dashed #DDDDDD;
  498. margin: 10rpx auto;
  499. }
  500. .search-line {
  501. margin-right: 24rpx;
  502. width: 0;
  503. height: 28rpx;
  504. border-left: 2rpx solid #EBEBEB;
  505. }
  506. .wenjian-card {
  507. padding: 24rpx 20rpx;
  508. display: flex;
  509. flex-direction: column;
  510. justify-content: space-between;
  511. .wenjian-item {
  512. display: flex;
  513. flex-direction: column;
  514. justify-content: flex-start;
  515. width: 100%;
  516. .name-content {
  517. display: flex;
  518. flex-direction: row !important;
  519. justify-content: flex-start;
  520. width: 100%;
  521. gap: 16rpx;
  522. }
  523. }
  524. }
  525. .card-item .card-item-name {
  526. // width: 200rpx;
  527. white-space: nowrap;
  528. font-size: 28rpx !important;
  529. }
  530. .card-item .card-item-content {
  531. width: 94%;
  532. display: -webkit-box;
  533. /* 使用旧版的弹性盒子布局 */
  534. -webkit-box-orient: vertical;
  535. /* 设置为垂直方向排列 */
  536. overflow: hidden;
  537. /* 隐藏溢出内容 */
  538. text-overflow: ellipsis;
  539. /* 使用省略号表示溢出内容 */
  540. -webkit-line-clamp: 2;
  541. /* 显示的行数 */
  542. }
  543. .policy-item {
  544. width: 696rpx;
  545. // height: 44px;
  546. background: #FFFFFF;
  547. box-shadow: 0px 0px 8rpx 0px #D8EEFF;
  548. border-radius: 10rpx;
  549. margin: 0 auto;
  550. // height: 188rpx;
  551. display: flex;
  552. flex-direction: column;
  553. align-items: center;
  554. padding-right: 16rpx;
  555. padding-left: 10rpx;
  556. .un-fold {
  557. display: flex;
  558. flex-direction: row;
  559. align-items: center;
  560. height: 128rpx;
  561. // padding: 0 8rpx;
  562. width: 100%;
  563. .search-item-icon {
  564. width: 96rpx;
  565. height: 78rpx;
  566. margin: 38rpx auto 40rpx;
  567. background-image: url('@/static/policy-file.png');
  568. background-size: 100% 100%;
  569. }
  570. }
  571. .fold {
  572. width: 100%;
  573. padding-bottom: 24rpx;
  574. transition: all .3s;
  575. height: 270rpx;
  576. .card-item {
  577. width: 100%;
  578. display: flex;
  579. flex-direction: row;
  580. line-height: 44rpx;
  581. .card-item-name {
  582. font-weight: 500;
  583. font-size: 24rpx;
  584. color: #B5B5B5;
  585. line-height: 44rpx;
  586. // margin-right: 16rpx;
  587. // width: 400rpx;
  588. }
  589. .card-item-content {
  590. font-weight: 500;
  591. font-size: 28rpx;
  592. color: #333333;
  593. line-height: 44rpx;
  594. }
  595. }
  596. .item-special {
  597. width: 634rpx;
  598. height: 56rpx;
  599. border-radius: 30rpx;
  600. border: 2rpx solid #EBEBEB;
  601. margin: 0 auto;
  602. line-height: 56rpx;
  603. margin-bottom: 24rpx;
  604. .name-special,
  605. .content-special {
  606. font-weight: 500;
  607. font-size: 24rpx;
  608. color: #7A85E0;
  609. }
  610. }
  611. }
  612. .search-item-text {
  613. width: 420rpx;
  614. // max-width: 146rpx;
  615. // min-height: 40rpx;
  616. // margin: 0 auto;
  617. text-align: center;
  618. line-height: 40rpx;
  619. font-weight: 500;
  620. font-size: 28rpx;
  621. color: #222222;
  622. // background: #E2ECFF;
  623. border-radius: 8rpx;
  624. display: flex;
  625. justify-content: flex-start;
  626. text-align: left;
  627. }
  628. .detail-fold {
  629. display: flex;
  630. flex-direction: row;
  631. align-items: center;
  632. width: 160rpx;
  633. white-space: nowrap;
  634. image {
  635. width: 32rpx;
  636. height: 32rpx;
  637. min-width: 32rpx;
  638. // margin-left: 16rpx;
  639. }
  640. }
  641. }
  642. .project-btn {
  643. width: 48% !important;
  644. background: #1869F6;
  645. }
  646. .focus-btn {
  647. width: 48% !important;
  648. background-color: #fff;
  649. border-radius: 16rpx 16rpx 16rpx 16rpx;
  650. border: 3rpx solid #1869F6;
  651. color: #1869F6;
  652. }
  653. .focus-btn-no {
  654. width: 48% !important;
  655. background-color: #fff;
  656. border-radius: 16rpx 16rpx 16rpx 16rpx;
  657. border: 3rpx solid #FF2D2D;
  658. color: #FF2D2D;
  659. }
  660. .more-btn {
  661. background-color: #fff;
  662. color: #1869F6;
  663. font-size: 32rpx;
  664. }
  665. .switch {
  666. position: absolute;
  667. // top: 112%;
  668. left: 4%;
  669. width: 92%;
  670. height: 110rpx;
  671. padding-top: 30rpx;
  672. margin: 0 auto 32rpx;
  673. background-color: #fff;
  674. border-radius: 28rpx;
  675. }
  676. .search {
  677. // position: absolute;
  678. // top: calc(var(--status-bar-height) + 280rpx);
  679. // left: 4%;
  680. display: flex;
  681. align-items: center;
  682. justify-content: space-between;
  683. width: 50%;
  684. height: 68rpx;
  685. padding-left: 10rpx;
  686. box-sizing: border-box;
  687. background-color: #fff;
  688. border-radius: 16rpx;
  689. .search-input {
  690. display: flex;
  691. align-items: center;
  692. input {
  693. width: 70%;
  694. }
  695. .search-icon {
  696. width: 28rpx;
  697. height: 32rpx;
  698. margin-right: 26rpx;
  699. background-image: url('@/static/search-black.png');
  700. background-size: 100% 100%;
  701. }
  702. }
  703. .search-clean {
  704. width: 30rpx;
  705. height: 30rpx;
  706. background-image: url('@/static/search-clean.png');
  707. background-size: 100% 100%;
  708. }
  709. .search-hide {
  710. background: none;
  711. }
  712. }
  713. .search-btn {
  714. // position: absolute;
  715. // top: calc(var(--status-bar-height) + 280rpx);
  716. // right: 4%;
  717. margin-right: 18rpx;
  718. display: flex;
  719. align-items: center;
  720. justify-content: center;
  721. width: 10%;
  722. height: 68rpx;
  723. padding: 0 30rpx;
  724. box-sizing: border-box;
  725. // background-color: #1763E7;
  726. font-size: 24rpx;
  727. color: #002F69;
  728. // border-radius: 34rpx;
  729. white-space: nowrap;
  730. // border-left: 2rpx solid #EBEBEB;
  731. }
  732. .cards-list {
  733. width: 100% !important;
  734. position: absolute;
  735. top: calc(var(--status-bar-height) + 250rpx);
  736. .phone {
  737. color: #1763E7;
  738. }
  739. .leader-phone {
  740. color: #06BC43;
  741. }
  742. }
  743. .popup-content {
  744. text-align: center;
  745. border-radius: 20rpx 20rpx 0 0;
  746. background-color: #f3f3f3;
  747. .popup-item {
  748. height: 100rpx;
  749. line-height: 100rpx;
  750. color: #343437;
  751. font-size: 32rpx;
  752. background-color: #fff;
  753. border-bottom: 2rpx solid #EAF0FA;
  754. }
  755. .popup-title {
  756. color: #9E9E9E;
  757. border-radius: 20rpx 20rpx 0 0;
  758. }
  759. .popup-close {
  760. margin-top: 20rpx;
  761. border-top: 2rpx solid #EAF0FA;
  762. }
  763. }
  764. .card-padding {
  765. padding: 16rpx 40rpx 60rpx;
  766. // overflow: hidden;
  767. }
  768. .card-fold {
  769. position: relative;
  770. width: 100%;
  771. min-height: 152rpx;
  772. margin-bottom: 20rpx;
  773. padding: 24rpx 30rpx 52rpx;
  774. box-sizing: border-box;
  775. background: #FFFFFF;
  776. border-radius: 40rpx;
  777. overflow: hidden;
  778. }
  779. .card-fold-option {
  780. position: absolute;
  781. display: flex;
  782. justify-content: space-between;
  783. align-items: center;
  784. left: 0;
  785. bottom: 0;
  786. width: 100%;
  787. height: 38rpx;
  788. padding: 0 40rpx;
  789. box-sizing: border-box;
  790. background: linear-gradient(270deg, #CADDFF 4%, rgba(219, 232, 255, 0) 100%);
  791. z-index: 999;
  792. .card-fold-count {
  793. flex: 1;
  794. font-size: 28rpx;
  795. color: #1869F6;
  796. }
  797. .card-fold-center {
  798. flex: 1;
  799. .card-fold-btn {
  800. width: 32rpx;
  801. height: 20rpx;
  802. margin: 0 auto;
  803. background-image: url("@/static/icon-fold.png");
  804. background-size: 100% 100%;
  805. }
  806. .card-unfold-btn {
  807. transform: rotate(180deg);
  808. }
  809. }
  810. .card-fold-chaos {
  811. flex: 1;
  812. }
  813. }
  814. .card-fold-red {
  815. background: linear-gradient(270deg, #FF8080 0%, rgba(219, 232, 255, 0) 100%);
  816. .card-fold-count {
  817. color: #FF0000;
  818. }
  819. .card-fold-center {
  820. .card-fold-btn {
  821. background-image: url("@/static/icon-fold-red.png");
  822. }
  823. }
  824. }
  825. .card-fold-yellow {
  826. background: linear-gradient(270deg, #FFAA00 4%, rgba(219, 232, 255, 0) 100%);
  827. .card-fold-count {
  828. color: #E19703;
  829. }
  830. .card-fold-center {
  831. .card-fold-btn {
  832. background-image: url("@/static/icon-fold-yellow.png");
  833. }
  834. }
  835. }
  836. .card-name-num {
  837. width: 64rpx;
  838. height: 64rpx;
  839. border-radius: 4rpx;
  840. border: 2rpx solid #F4F4F4;
  841. font-size: 24rpx;
  842. color: #B5B5B5;
  843. display: flex;
  844. align-items: center;
  845. justify-content: center;
  846. }
  847. .card .project-layer {
  848. justify-content: flex-start;
  849. .name {
  850. font-weight: 500;
  851. font-size: 28rpx;
  852. color: #222222;
  853. }
  854. }
  855. .status-light {
  856. width: 60rpx !important;
  857. height: 60rpx !important;
  858. position: absolute !important;
  859. right: 0;
  860. top: -46rpx !important;
  861. }
  862. .one-only-card {
  863. width: 100%;
  864. display: flex;
  865. justify-content: space-between;
  866. .only-item {
  867. font-weight: 500 !important;
  868. font-size: 28rpx !important;
  869. color: #002F69 !important;
  870. }
  871. .spe-item {
  872. text-align: right;
  873. .spe-item-content {
  874. font-weight: 500 !important;
  875. font-size: 28rpx !important;
  876. color: #6C90C1 !important;
  877. }
  878. }
  879. }
  880. </style>