bidding.vue 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <template>
  2. <view class="content">
  3. <view class="navbar">
  4. <u-navbar title="招标" @leftClick="leftClick" bgColor="rgba(0,0,0,0)" :placeholder="true" :autoBack="true">
  5. </u-navbar>
  6. <view class="search">
  7. <u-input v-model="serach_value" type="text" :border="true" placeholder="热搜关键词" shape="circle"
  8. prefixIcon="search" prefixIconStyle="font-size: 22px;color: #909399">
  9. <template slot="suffix">
  10. <view>搜索</view>
  11. </template>
  12. </u-input>
  13. </view>
  14. </view>
  15. <view class="box">
  16. <view class="hflex acenter jbetween">
  17. <view class="hflex acenter jbetween tabs">
  18. <block v-for="(item,index) in tabs" :key="index">
  19. <view class="tabs_item hflex acenter" @click="changeTab(item.index)" :class="tab_active == item.index ? 'tab_active' : ''">
  20. {{item.name}}
  21. <block v-if="index != 0">
  22. <u-icon name="arrow-down-fill" color="#666666" size="6" v-if="tab_active != item.index"></u-icon>
  23. <u-icon name="arrow-up-fill" color="#506DFF" size="6" v-if="tab_active == item.index"></u-icon>
  24. </block>
  25. </view>
  26. </block>
  27. </view>
  28. <view class="hflex acenter " @click="screen">
  29. <view class="tabs_item" :class="screen_show? 'tab_active' : ''">筛选</view>
  30. <image src="/static/images/comment/screen.png" class="screen_icon" v-show="!screen_show"></image>
  31. <image src="/static/images/comment/screen_active.png" class="screen_icon" v-show="screen_show"></image>
  32. </view>
  33. </view>
  34. <view class="drop" v-show="screen_show">
  35. <view class="drop_bg">
  36. <view class="drop_list">
  37. <view class="hflex acenter jbetween">
  38. <view class="drop_title">披露方式</view>
  39. <view class="hflex acenter" @click="expend('mode')">
  40. <view class="drop_right">{{mode?'':'展开'}}</view>
  41. <u-icon name="arrow-down-fill" color="#666666" size="6" v-if="!mode"></u-icon>
  42. <u-icon name="arrow-up-fill" color="#666666" size="6" v-else></u-icon>
  43. </view>
  44. </view>
  45. <view class="hflex acenter fwrap" :class="mode?'':'hide'">
  46. <block v-for="(item,index) in modeList" :key="index">
  47. <view class="drop_item" :class="mode_active == index?'drop_active':''" @click="selectMode(index)">{{item.name}}</view>
  48. </block>
  49. </view>
  50. </view>
  51. <view class="drop_list">
  52. <view class="hflex acenter jbetween">
  53. <view class="drop_title">转让底价</view>
  54. <view class="hflex acenter" @click="expend('price')">
  55. <view class="drop_right">{{price?'':'展开'}}</view>
  56. <u-icon name="arrow-down-fill" color="#666666" size="6" v-if="!price"></u-icon>
  57. <u-icon name="arrow-up-fill" color="#666666" size="6" v-else></u-icon>
  58. </view>
  59. </view>
  60. <view class="hflex acenter fwrap" :class="price?'':'hide'">
  61. <block v-for="(item,index) in priceList" :key="index">
  62. <view class="drop_item" :class="price_active == index?'drop_active':''" @click="selectPrice(index)">{{item.name}}</view>
  63. </block>
  64. </view>
  65. </view>
  66. <view class="drop_list">
  67. <view class="hflex acenter jbetween">
  68. <view class="drop_title">交易类型</view>
  69. <view class="hflex acenter" @click="expend('type')">
  70. <view class="drop_right">{{type?'':'展开'}}</view>
  71. <u-icon name="arrow-down-fill" color="#666666" size="6" v-if="!type"></u-icon>
  72. <u-icon name="arrow-up-fill" color="#666666" size="6" v-else></u-icon>
  73. </view>
  74. </view>
  75. <view class="hflex acenter fwrap" :class="type?'':'hide'">
  76. <block v-for="(item,index) in typeList" :key="index">
  77. <view class="drop_item" :class="type_active.indexOf(index) == -1?'':'drop_active'" @click="selectType(index)">{{item.name}}</view>
  78. </block>
  79. </view>
  80. </view>
  81. <view class="drop_list">
  82. <view class="hflex acenter jbetween">
  83. <view class="drop_title">所在地区</view>
  84. <view class="hflex acenter" @click="expend('region')">
  85. <view class="drop_right">{{region?'':'展开'}}</view>
  86. <u-icon name="arrow-down-fill" color="#666666" size="6" v-if="!region"></u-icon>
  87. <u-icon name="arrow-up-fill" color="#666666" size="6" v-else></u-icon>
  88. </view>
  89. </view>
  90. <view class="hflex acenter fwrap" :class="region?'':'hide'">
  91. <block v-for="(item,index) in regionList" :key="index">
  92. <view class="drop_item" :class="region_active == index?'drop_active':''" @click="selectRegion(index)">{{item.name}}</view>
  93. </block>
  94. </view>
  95. </view>
  96. <view class="drop_list">
  97. <view class="hflex acenter jbetween">
  98. <view class="drop_title">披露截止时间</view>
  99. <view class="hflex acenter" @click="expend('time')">
  100. <view class="drop_right">{{time?'':'展开'}}</view>
  101. <u-icon name="arrow-down-fill" color="#666666" size="6" v-if="!time"></u-icon>
  102. <u-icon name="arrow-up-fill" color="#666666" size="6" v-else></u-icon>
  103. </view>
  104. </view>
  105. <view class="hflex acenter fwrap" :class="time?'':'hide'">
  106. <block v-for="(item,index) in timeList" :key="index">
  107. <view class="drop_item" :class="time_active == index?'drop_active':''" @click="selectTime(index)">{{item.name}}</view>
  108. </block>
  109. </view>
  110. </view>
  111. <view class="drop_bottom hflex acenter jbetween">
  112. <view class="left" @click="reset">清空</view>
  113. <view class="right" @click="confirm">确定</view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="list">
  118. <block v-for="(item,index) in pageList" :key="index">
  119. <view class="list_item" @click="toDetail(item.id)">
  120. <view class="top">
  121. <view v-if="item.type == 0" class="top_icon">已中标</view>
  122. <view v-if="item.type == 1" class="top_icon1">招标中</view>
  123. <view class="item_name">{{item.name}}</view>
  124. </view>
  125. <view class="hflex acenter cell">
  126. <image src="/static/images/comment/company.png" class="item_icon"></image>
  127. <view class="text_style1">招标单位</view>
  128. <view class="text_style1">{{item.company}}</view>
  129. </view>
  130. <view class="hflex acenter cell">
  131. <u-icon name="clock-fill" color="#888888" size="14"></u-icon>
  132. <view class="text_style1">发布时间</view>
  133. <view class="text_style1">{{item.date}}</view>
  134. </view>
  135. </view>
  136. </block>
  137. </view>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. import $api from '@/static/js/api.js'
  143. var that = ''
  144. export default {
  145. data() {
  146. return {
  147. serach_value: '',
  148. tabs: [
  149. {
  150. index: 0,
  151. name: '默认',
  152. },
  153. {
  154. index: 1,
  155. name: '披露起始时间',
  156. },
  157. {
  158. index: 2,
  159. name: '披露截止时间',
  160. }
  161. ],
  162. tab_active: 0,
  163. screen_show: false,
  164. pageList: [
  165. {
  166. id: 1,
  167. type: 0,
  168. name: '珠海兴业绿色建筑科技有限公司2022年密封胶材料供应商年度框架招标项目',
  169. company: '中铁大桥局第七工程有限公司',
  170. date: '2022-07-12',
  171. },
  172. {
  173. id: 1,
  174. type: 1,
  175. name: '珠海兴业绿色建筑科技有限公司2022年密封胶材料供应商年度框架招标项目',
  176. company: '中铁大桥局第七工程有限公司',
  177. date: '2022-07-12',
  178. },
  179. {
  180. id: 1,
  181. type: 0,
  182. name: '珠海兴业绿色建筑科技有限公司2022年密封胶材料供应商年度框架招标项目',
  183. company: '中铁大桥局第七工程有限公司',
  184. date: '2022-07-12',
  185. },
  186. ],
  187. type: false,
  188. type_active: [],
  189. typeList: [
  190. {
  191. name: '全部'
  192. },
  193. {
  194. name: '制造加工类'
  195. },
  196. {
  197. name: '采购商品类'
  198. },
  199. {
  200. name: '资产转让类'
  201. },
  202. {
  203. name: '交通运费类'
  204. },
  205. {
  206. name: '船舶转让类'
  207. },
  208. {
  209. name: '工程招标类'
  210. }
  211. ],
  212. mode: false,
  213. mode_active: -1,
  214. modeList: [
  215. {
  216. name: '全部',
  217. },
  218. {
  219. name: '预披露',
  220. },
  221. {
  222. name: '正式披露',
  223. }
  224. ],
  225. price: false,
  226. price_active: -1,
  227. priceList: [
  228. {
  229. name: '全部',
  230. },
  231. {
  232. name: '100万以下',
  233. },
  234. {
  235. name: '100万-500万',
  236. }
  237. ],
  238. region: false,
  239. region_active: -1,
  240. regionList: [
  241. {
  242. name: '全国',
  243. },
  244. {
  245. name: '北京市',
  246. },
  247. {
  248. name: '天津市',
  249. }
  250. ],
  251. time: false,
  252. time_active: -1,
  253. timeList: [
  254. {
  255. name: '全部',
  256. },
  257. {
  258. name: '三天内',
  259. },
  260. {
  261. name: '十天内',
  262. }
  263. ],
  264. }
  265. },
  266. onLoad() {
  267. that = this
  268. },
  269. methods: {
  270. // 返回
  271. leftClick() {
  272. $api.jump(-1)
  273. },
  274. // 切换tabs
  275. changeTab(index) {
  276. that.tab_active = index
  277. },
  278. // 筛选
  279. screen() {
  280. that.screen_show = !that.screen_show
  281. },
  282. // 查看详情
  283. toDetail(id) {
  284. $api.jump('/page_index/pages/bidding/bidDetail?id=' + id)
  285. },
  286. expend(e) {
  287. if(e == 'type') {
  288. that.type = !that.type
  289. }
  290. if(e == 'mode') {
  291. that.mode = !that.mode
  292. }
  293. if(e == 'price') {
  294. that.price = !that.price
  295. }
  296. if(e == 'region') {
  297. that.region = !that.region
  298. }
  299. if(e == 'time') {
  300. that.time = !that.time
  301. }
  302. },
  303. selectMode(index) {
  304. that.mode_active = index
  305. },
  306. selectPrice(index) {
  307. that.price_active = index
  308. },
  309. selectType(index) {
  310. if(that.type_active.length == 0) {
  311. that.type_active.push(index)
  312. } else {
  313. for(var i=0;i<that.type_active.length;i++) {
  314. if(that.type_active[i] == index) {
  315. that.type_active.splice(i,1)
  316. return
  317. }
  318. }
  319. that.type_active.push(index)
  320. }
  321. },
  322. selectRegion(index) {
  323. that.region_active = index
  324. },
  325. selectTime(index) {
  326. that.time_active = index
  327. },
  328. reset() {
  329. that.mode_active = -1
  330. that.price_active = -1
  331. that.type_active = []
  332. that.region_active = -1
  333. that.time_active = -1
  334. },
  335. confirm() {
  336. that.screen_show = false
  337. },
  338. },
  339. }
  340. </script>
  341. <style lang="scss" scoped>
  342. .content::v-deep {
  343. background-color: #e8eff5;
  344. .navbar {
  345. .search {
  346. // background: #fff;
  347. width: 100%;
  348. height: 88rpx;
  349. box-sizing: border-box;
  350. padding: 12rpx 30rpx;
  351. .u-input {
  352. background-color: #fff;
  353. height: 64rpx;
  354. padding: 0 0 0 18rpx !important;
  355. border: 1rpx solid #506Dff;
  356. margin-bottom: 12rpx;
  357. }
  358. .u-input__content__subfix-icon {
  359. width: 128rpx;
  360. height: 64rpx;
  361. background-color: #506Dff;
  362. border-radius: 32rpx;
  363. color: #fff;
  364. font-size: 28rpx;
  365. text-align: center;
  366. line-height: 64rpx;
  367. }
  368. }
  369. }
  370. .box {
  371. margin-top: 24rpx;
  372. width: 100%;
  373. min-height: calc(100vh - 296rpx);
  374. background: linear-gradient(180deg, #FFFFFF 0%, #F5F5F5 100%);
  375. border-radius: 40rpx 40rpx 0px 0px;
  376. box-sizing: border-box;
  377. padding: 30rpx;
  378. .tabs {
  379. width: 526rpx;
  380. }
  381. .tabs_item {
  382. font-size: 26rpx;
  383. font-weight: 400;
  384. color: #666666;
  385. line-height: 36rpx;
  386. padding-right: 8rpx;
  387. .u-icon{
  388. padding-left: 8rpx;
  389. }
  390. }
  391. .tab_active {
  392. color: #506DFF;
  393. }
  394. .screen_icon {
  395. width: 24rpx;
  396. height: 24rpx;
  397. }
  398. .drop {
  399. position: absolute;
  400. left: 0;
  401. top: 345rpx;
  402. width: 750rpx;
  403. z-index: 9;
  404. min-height: calc(100vh - 345rpx);
  405. background: rgba(0,0,0,0.5);
  406. backdrop-filter: blur(5px);
  407. .drop_bg {
  408. width: 100%;
  409. background-color: #fff;
  410. .drop_list {
  411. box-sizing: border-box;
  412. padding: 0 30rpx;
  413. .drop_title {
  414. margin: 24rpx 0 20rpx;
  415. font-size: 28rpx;
  416. font-weight: 400;
  417. color: #3D4249;
  418. line-height: 40rpx;
  419. }
  420. .drop_right {
  421. font-size: 20rpx;
  422. font-weight: 400;
  423. color: #555555;
  424. line-height: 28rpx;
  425. padding-right: 8rpx;
  426. }
  427. .hide {
  428. width: 100%;
  429. height: 80rpx;
  430. overflow: hidden;
  431. }
  432. .drop_item {
  433. width: 208rpx;
  434. height: 76rpx;
  435. background: #F4F8FB;
  436. border-radius: 4rpx;
  437. font-size: 28rpx;
  438. text-align: center;
  439. font-weight: 400;
  440. color: #555555;
  441. line-height: 76rpx;
  442. margin: 0 34rpx 20rpx 0;
  443. }
  444. .drop_item:nth-child(3n+3) {
  445. margin: 0 0 20rpx;
  446. }
  447. .drop_active {
  448. background: #E8F2FF;
  449. font-weight: 500;
  450. color: #506DFF;
  451. }
  452. }
  453. .drop_bottom {
  454. margin-top: 32rpx;
  455. width: 100%;
  456. height: 100rpx;
  457. background: #FFFFFF;
  458. box-shadow: 0px -1px 2px 0px rgba(0,0,0,0.05);
  459. .left {
  460. width: 50%;
  461. height: 100%;
  462. font-size: 36rpx;
  463. font-weight: 400;
  464. color: #BDBDBD;
  465. line-height: 100rpx;
  466. text-align: center;
  467. }
  468. .right {
  469. width: 50%;
  470. height: 100%;
  471. font-size: 36rpx;
  472. font-weight: 400;
  473. color: #FFFFFF;
  474. line-height: 100rpx;
  475. text-align: center;
  476. background: #506DFF;
  477. }
  478. }
  479. }
  480. }
  481. .list {
  482. margin-bottom: 60rpx;
  483. .list_item {
  484. margin: 20rpx auto 0;
  485. width: 690rpx;
  486. background: #FFFFFF;
  487. border-radius: 10px;
  488. box-sizing: border-box;
  489. padding: 20rpx;
  490. .cell {
  491. padding: 12rpx 0;
  492. }
  493. .top {
  494. vertical-align:middle;
  495. .item_name {
  496. // width: calc(100% - 74rpx);
  497. font-size: 30rpx;
  498. font-weight: 400;
  499. color: #222222;
  500. // float: right;
  501. line-height: 42rpx;
  502. }
  503. .top_icon {
  504. width: 64rpx;
  505. height: 28rpx;
  506. float: left;
  507. margin: 7rpx 10rpx 0 0;
  508. background: url('/static/images/comment/green_bg.png') no-repeat;
  509. background-size: 100%;
  510. font-size: 16rpx;
  511. font-weight: normal;
  512. color: #FFFFFF;
  513. line-height: 28rpx;
  514. text-align: center;
  515. }
  516. .top_icon1 {
  517. width: 64rpx;
  518. height: 28rpx;
  519. float: left;
  520. margin: 7rpx 10rpx 0 0;
  521. background: url('/static/images/comment/blue_bg.png') no-repeat;
  522. background-size: 100%;
  523. font-size: 16rpx;
  524. font-weight: normal;
  525. color: #FFFFFF;
  526. line-height: 28rpx;
  527. text-align: center;
  528. }
  529. }
  530. .text_style1 {
  531. font-size: 22rpx;
  532. font-weight: 400;
  533. color: #585F6A;
  534. line-height: 32rpx;
  535. padding-left: 12rpx;
  536. }
  537. .item_icon {
  538. width: 28rpx;
  539. height: 28rpx;
  540. }
  541. }
  542. }
  543. }
  544. }
  545. </style>