ApplyInfo.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  1. <template>
  2. <div class="apply-info">
  3. <div class="apply-info-title">
  4. <p>最新求购信息</p>
  5. <span>海量求购,一网打尽</span>
  6. <div>
  7. <input type="text" class="form-control" v-model="keyWord" @keyup.13="searchList" placeholder="型号/品牌" />
  8. <span @click="searchList">查询</span>
  9. </div>
  10. </div>
  11. <div class="apply-info-list">
  12. <p>
  13. <span>发布时间
  14. <a href="javascript:void(0)" @click="sortListByParam('releaseDate')">
  15. <!--<i class=" fa fa-long-arrow-up" :class="{active: sorting.releaseDate == 'ASC'}"></i>-->
  16. <!--<i class=" fa fa-long-arrow-down" :class="{active: sorting.releaseDate == 'DESC'}"></i>-->
  17. </a>
  18. </span>
  19. <span>买家</span>
  20. <span>型号</span>
  21. <span>品牌</span>
  22. <span>截止时间
  23. <a href="javascript:void(0)" @click="sortListByParam('deadline')">
  24. <!--<i class=" fa fa-long-arrow-up" :class="{active: sorting.deadline == 'ASC'}"></i>-->
  25. <!--<i class=" fa fa-long-arrow-down" :class="{active: sorting.deadline == 'DESC'}"></i>-->
  26. </a>
  27. </span>
  28. <span>已报价
  29. <a href="javascript:void(0)" @click="sortListByParam('offerAmount')">
  30. <!--<i class=" fa fa-long-arrow-up" :class="{active: sorting.offerAmount == 'ASC'}"></i>-->
  31. <!--<i class=" fa fa-long-arrow-down" :class="{active: sorting.offerAmount == 'DESC'}"></i>-->
  32. </a>
  33. </span>
  34. <span>操作</span>
  35. </p>
  36. <ul v-if="purchaseManList.content && purchaseManList.content.length">
  37. <li v-for="(purchaseMan, index) in purchaseManList.content" :class="{'active': purchaseMan.active}">
  38. <div>{{purchaseMan.date| date}}</div>
  39. <div v-if="purchaseMan.inquiry.enterprise && purchaseMan.inquiry.enterprise.enName">{{purchaseMan.inquiry.enterprise.enName | enterpriseFilter}}</div>
  40. <div v-else>{{purchaseMan.userName | userNameFilter}}</div>
  41. <div :title="purchaseMan.cmpCode">{{purchaseMan.cmpCode || '-'}}</div>
  42. <div :title="purchaseMan.inbrand">{{purchaseMan.inbrand || '-'}}</div>
  43. <div class="date-content">
  44. <div v-if="purchaseMan.remainingTime > 0">
  45. <span>剩余&nbsp;</span>
  46. <span v-if="getDay(purchaseMan.remainingTime) > 0" v-text="getDay(purchaseMan.remainingTime)"></span>
  47. <i v-if="getDay(purchaseMan.remainingTime) > 0">&nbsp;天&nbsp;</i>
  48. <span v-if="getDay(purchaseMan.remainingTime) <= 0" v-text="getHours(purchaseMan.remainingTime)"></span>
  49. <i v-if="getDay(purchaseMan.remainingTime) <= 0" >&nbsp;小时</i>
  50. </div>
  51. <span v-if="!purchaseMan.remainingTime || purchaseMan.remainingTime <= 0">已截止</span>
  52. </div>
  53. <div class="number-content"><img src="/images/applyPurchase/hot-fire.png" alt="" v-if="purchaseMan.offerAmount > 10"><span :style="purchaseMan.offerAmount > 10 ? 'color: #ff9a00': ''">{{purchaseMan.offerAmount || 0}}</span>&nbsp;条</div>
  54. <div class="btn-content">
  55. <!--<a @click="setLinkBoxIndex(index)">联系买家</a>-->
  56. <!--判断该求购是自己的-->
  57. <div class="is-say-price" v-if="purchaseMan.remainingTime > 0 && purchaseMan.quoted == 1">已报价 <img src="/images/applyPurchase/green-check.png" alt=""></div>
  58. <div v-else>
  59. <a title="此为贵公司的求购" v-if="purchaseMan.remainingTime > 0 && (!purchaseMan.quoted || purchaseMan.quoted != 1) && (user.logged && ((purchaseMan.inquiry.enterprise && user.data.enterprise && (purchaseMan.inquiry.enterprise.uu === user.data.enterprise.uu)) || (!user.data.enterprise.uu && purchaseMan.userUU == user.data.userUU && !purchaseMan.inquiry.enterprise)))" style="background: #cccbcb;">我要报价</a>
  60. <a v-if="purchaseMan.remainingTime > 0 && (!purchaseMan.quoted || purchaseMan.quoted != 1) && !(user.logged && ((purchaseMan.inquiry.enterprise && user.data.enterprise && (purchaseMan.inquiry.enterprise.uu === user.data.enterprise.uu)) || (!user.data.enterprise.uu && purchaseMan.userUU == user.data.userUU && !purchaseMan.inquiry.enterprise)))" @click="sayPrice(purchaseMan, index)">我要报价</a>
  61. </div>
  62. </div>
  63. <div class="expand-content">
  64. <div>
  65. 封装:{{purchaseMan.encapsulation || '-'}}
  66. </div>
  67. <div>
  68. 采购数量:<span>{{purchaseMan.needquantity || '-'}}</span><span v-if="purchaseMan.needquantity">个</span>
  69. </div>
  70. <div>
  71. 单价预算:<span>{{purchaseMan.unitPrice ? (purchaseMan.currency == 'RMB' ? '¥' : '$') + purchaseMan.unitPrice : '-'}}</span>
  72. </div>
  73. <div>
  74. 生产日期:{{purchaseMan.produceDate || '-'}}
  75. </div>
  76. </div>
  77. <!--<div class="say-price">
  78. <div>报价</div>
  79. <div>
  80. <i>*</i>单价
  81. <select v-if="!purchaseMan.currency" v-model="sayPriceObj.currency">
  82. <option value="RMB">¥</option>
  83. <option value="USD">$</option>
  84. </select>
  85. <div v-if="purchaseMan.currency" v-text="purchaseMan.currency == 'RMB' ? '¥' : '$'"></div>
  86. <input type="number" v-model="sayPriceObj.unitPrice" class="form-control" @blur="onUnitPriceBlur" @input="onUnitPriceChange">
  87. </div>
  88. <div>
  89. <i>*</i>交期&nbsp;
  90. <input type="number" v-model="sayPriceObj.minDay" @blur="onMinDayInput" @input="onMinDayChange" class="form-control">&nbsp;-&nbsp;<input type="number" v-model="sayPriceObj.maxDay" @blur="onMaxDayInput" @input="onMaxDayChange" class="form-control">&nbsp;天
  91. </div>
  92. <div>
  93. 生产日期&nbsp;<input v-model="sayPriceObj.produceDate" @input="onProduceDateChange" type="text" class="form-control">
  94. </div>
  95. <div>
  96. <span @click="cancelSayPrice(purchaseMan)">取消</span>
  97. <span @click="commitSayPrice(purchaseMan)">提交</span>
  98. </div>
  99. </div>-->
  100. </li>
  101. </ul>
  102. <div class="empty" v-else>
  103. <img src="/images/all/empty-cart.png">
  104. <span>暂无搜索结果</span>
  105. </div>
  106. </div>
  107. <say-price :current="currentSayPriceIndex"
  108. :purchase="purchaseManList"
  109. @cancelSayPriceAction="cancelSayPrice"
  110. @resetListAction="resetList"
  111. @sayPriceIndexAction="setIndex(index)"
  112. ></say-price>
  113. <page :total="totalCount" :page-size="pageSize"
  114. :current="nowPage" v-on:childEvent="listenPage"></page>
  115. <div class="com-del-box link-saler-box" v-if="linkBoxIndex > -1">
  116. <div class="title">
  117. <i @click="setLinkBoxIndex(-1)"></i>
  118. </div>
  119. <div class="content">
  120. <p><i class="fa fa-exclamation-circle"></i>抱歉,暂时无法与买家在线沟通!</p>
  121. <p>买家联系电话:<span v-text="purchaseManList.content[linkBoxIndex].userTel"></span></p>
  122. <div>
  123. <a @click="setLinkBoxIndex(-1)">我知道了</a>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. </template>
  129. <script>
  130. import Page from '~components/common/page/pageComponent.vue'
  131. import SayPrice from './SayPrice.vue'
  132. export default {
  133. data () {
  134. return {
  135. pageSize: 10,
  136. nowPage: 1,
  137. keyWord: '',
  138. sorting: {},
  139. currentSayPriceIndex: -1,
  140. linkBoxIndex: -1
  141. }
  142. },
  143. components: {
  144. Page,
  145. SayPrice
  146. },
  147. filters: {
  148. date: function (date) {
  149. const d = new Date(Number(date))
  150. const year = d.getFullYear()
  151. const monthTemp = d.getMonth() + 1
  152. const month = monthTemp < 10 ? '0' + monthTemp : '' + monthTemp
  153. const hour = d.getHours() < 10 ? '0' + d.getHours() : '' + d.getHours()
  154. const minutes = d.getMinutes() < 10 ? '0' + d.getMinutes() : '' + d.getMinutes() + ' '
  155. const day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate() + ' '
  156. return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes
  157. },
  158. phone: function (str) {
  159. return str ? (str.substring(0, 3) + '****' + str.substring(7, 11)) : '-'
  160. },
  161. enterpriseFilter (str) {
  162. return str ? str.length > 4 ? str.substring(0, 2) + '**' + str.substring(str.length - 2, str.length) : str : '-'
  163. },
  164. userNameFilter (str) {
  165. return str ? (str.substring(0, 1) + '**') : '-'
  166. }
  167. },
  168. computed: {
  169. purchaseManList () {
  170. return this.$store.state.applyPurchase.purchaseManList.purchaseManList.data
  171. },
  172. totalCount () {
  173. return this.purchaseManList.totalElements
  174. },
  175. user () {
  176. return this.$store.state.option.user
  177. }
  178. },
  179. methods: {
  180. setIndex: function (index) {
  181. this.currentSayPriceIndex = index
  182. },
  183. getDay: function (timeStamp) {
  184. return Math.floor(timeStamp / (1000 * 60 * 60 * 24))
  185. },
  186. getHours: function (timeStamp) {
  187. return Math.floor((timeStamp / (1000 * 60 * 60)) % 24)
  188. },
  189. listenPage: function (page) {
  190. this.nowPage = page
  191. this.resetList()
  192. },
  193. sayPrice: function (purchaseMan, index) {
  194. // let _this = this
  195. // for (let i = 0; i < this.purchaseManList.content.length; i++) {
  196. // _this.purchaseManList.content[i].active = false
  197. // }
  198. if (this.user.logged) {
  199. if (this.user.data.enterprise.uu) {
  200. if (this.user.data.enterprise.isVendor && this.user.data.enterprise.isVendor !== '1690') {
  201. // this.resetSayPrice()
  202. purchaseMan.active = true
  203. this.currentSayPriceIndex = index
  204. } else {
  205. this.$message.error('抱歉,您需开通卖家功能才可报价')
  206. }
  207. } else {
  208. this.$message.error('个人账户暂不可报价')
  209. }
  210. } else {
  211. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  212. }
  213. },
  214. cancelSayPrice: function () {
  215. this.purchaseManList.content[this.currentSayPriceIndex].active = false
  216. this.currentSayPriceIndex = -1
  217. },
  218. resetList: function () {
  219. this.currentSayPriceIndex = -1
  220. this.$store.dispatch('applyPurchase/loadPurchaseManList', {pageNumber: this.nowPage, pageSize: this.pageSize, keyword: this.keyWord, sorting: !this.sorting || JSON.stringify(this.sorting) === '{}' ? {releaseDate: 'DESC'} : this.sorting, enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null})
  221. },
  222. searchList: function () {
  223. this.nowPage = 1
  224. this.resetList()
  225. },
  226. sortListByParam: function (param) {
  227. if (this.sorting[param]) {
  228. if (this.sorting[param] === 'ASC') {
  229. this.$set(this.sorting, param, 'DESC')
  230. } else {
  231. this.$delete(this.sorting, param)
  232. }
  233. } else {
  234. this.sorting = {}
  235. this.$set(this.sorting, param, 'ASC')
  236. }
  237. this.nowPage = 1
  238. this.resetList()
  239. },
  240. setLinkBoxIndex: function (index) {
  241. if (!this.user.logged) {
  242. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  243. } else {
  244. this.linkBoxIndex = index
  245. }
  246. }
  247. }
  248. }
  249. </script>
  250. <style lang="scss" scoped>
  251. .apply-info {
  252. width: 1190px;
  253. margin: 0 auto;
  254. .apply-info-title {
  255. border-bottom: 1px solid #3975f4;
  256. >p {
  257. display: inline-block;
  258. width: 156px;
  259. height: 33px;
  260. line-height: 33px;
  261. color: #fff;
  262. background: #3975f4;
  263. font-size: 18px;
  264. text-align: center;
  265. border: {
  266. top-left-radius: 3px;
  267. top-right-radius: 3px;
  268. }
  269. margin: 0;
  270. }
  271. >span {
  272. color: #999;
  273. margin-left: 16px;
  274. }
  275. >div {
  276. float: right;
  277. height: 32px;
  278. line-height: 32px;
  279. >input {
  280. width: 241px;
  281. height: 32px;
  282. line-height: 32px;
  283. font-size: 13px;
  284. border: {
  285. top-right-radius: 0;
  286. bottom-right-radius: 0;
  287. }
  288. }
  289. >span {
  290. display: inline-block;
  291. width: 69px;
  292. color: #fff;
  293. background: #3975f4;
  294. text-align: center;
  295. margin: 0 6px 0 -1px;
  296. /*vertical-align: middle;*/
  297. border: {
  298. top-right-radius: 3px;
  299. bottom-right-radius: 3px;
  300. }
  301. cursor: pointer;
  302. }
  303. >a {
  304. background: #ffa200;
  305. color: #fff;
  306. width: 79px;
  307. border-radius: 3px;
  308. text-align: center;
  309. display: inline-block;
  310. }
  311. }
  312. }
  313. .apply-info-list {
  314. >p {
  315. background: #ededed;
  316. height: 40px;
  317. line-height: 40px;
  318. margin: 9px 0 0 0;
  319. span {
  320. display: inline-block;
  321. text-align: center;
  322. a {
  323. i {
  324. color: #333;
  325. &.active {
  326. color: #5078cb;
  327. }
  328. }
  329. }
  330. &:nth-child(1) {
  331. width: 186px;
  332. }
  333. &:nth-child(2) {
  334. width: 106px;
  335. }
  336. &:nth-child(3) {
  337. width: 200px;
  338. }
  339. &:nth-child(4) {
  340. width: 174px;
  341. }
  342. &:nth-child(5) {
  343. width: 152px;
  344. }
  345. &:nth-child(6) {
  346. width: 158px;
  347. }
  348. &:nth-child(7) {
  349. width: 180px;
  350. margin-left: 30px;
  351. }
  352. }
  353. }
  354. >ul {
  355. margin-bottom: 29px;
  356. > li {
  357. position: relative;
  358. min-height: 61px;
  359. line-height: 61px;
  360. border: 1px solid #ededed;
  361. >div {
  362. overflow-x: hidden;
  363. text-overflow: ellipsis;
  364. white-space: nowrap;
  365. display: inline-block;
  366. text-align: center;
  367. color: #3c3c3c;
  368. vertical-align: middle;
  369. &:nth-child(1) {
  370. width: 186px;
  371. }
  372. &:nth-child(2) {
  373. width: 106px;
  374. }
  375. &:nth-child(3) {
  376. width: 200px;
  377. }
  378. &:nth-child(4) {
  379. width: 174px;
  380. }
  381. &:nth-child(5) {
  382. width: 152px;
  383. }
  384. &:nth-child(6) {
  385. width: 158px;
  386. }
  387. &:nth-child(7) {
  388. width: 180px;
  389. margin-left: 32px;
  390. float: right;
  391. }
  392. &.date-content {
  393. span {
  394. &:first-child {
  395. font-size: 12px;
  396. color: #666;
  397. }
  398. color: #f71026;
  399. }
  400. i {
  401. font-style: normal;
  402. }
  403. }
  404. &.number-content {
  405. span {
  406. color: #5392f9;
  407. &.active {
  408. color: #ff9a00;
  409. }
  410. }
  411. >img {
  412. margin-bottom: 5px;
  413. margin-right: 2px;
  414. }
  415. }
  416. &.btn-content {
  417. >div a {
  418. display: inline-block;
  419. width: 71px;
  420. height: 28px;
  421. line-height: 28px;
  422. color: #fff;
  423. background: #3c7cf5;
  424. border-radius: 3px;
  425. cursor: pointer;
  426. /* &:first-child {
  427. background: #ffa200;
  428. float: left;
  429. margin-top: 19px;
  430. }*/
  431. }
  432. .is-say-price {
  433. display: inline-block;
  434. color: #39ae05;
  435. margin-left: 11px;
  436. img {
  437. margin-bottom: 2px;
  438. }
  439. .say-price-history {
  440. position: absolute;
  441. top: 53px;
  442. right: 11px;
  443. line-height: normal;
  444. width: 198px;
  445. height: 0;
  446. background: #fff;
  447. border: 1px solid #fab89a;
  448. z-index: 1;
  449. overflow: hidden;
  450. transition: height 1s;
  451. -moz-transition: height 1s; /* Firefox 4 */
  452. -webkit-transition: height 1s; /* Safari 和 Chrome */
  453. -o-transition: height 1s; /* Opera */
  454. opacity: 0;
  455. p {
  456. color: #020202;
  457. font-weight: bold;
  458. margin: 0;
  459. &.price-title {
  460. background: #fee6db;
  461. height: 28px;
  462. line-height: 28px;
  463. }
  464. &.price-level {
  465. margin: 6px 0;
  466. text-align: left;
  467. }
  468. }
  469. > div {
  470. padding: 9px 12px;
  471. > div {
  472. display: inline-block;
  473. text-align: left;
  474. &:nth-child(1) {
  475. float: left;
  476. }
  477. &:nth-child(2) {
  478. margin-left: 32px;
  479. }
  480. span {
  481. color: #020202;
  482. margin: 0;
  483. &.red-text {
  484. color: #f62d37;
  485. }
  486. }
  487. &.pre-line {
  488. display: block;
  489. padding: 13px 0;
  490. border-bottom: 1px dashed #fee6db;
  491. }
  492. }
  493. ul {
  494. li {
  495. color: #333;
  496. height: 22px;
  497. line-height: 22px;
  498. padding: 0 6px;
  499. &:nth-child(odd) {
  500. background: #f6f5f4;
  501. }
  502. span {
  503. color: #333;
  504. display: inline-block;
  505. text-align: left;
  506. width: 50%;
  507. margin: 0;
  508. }
  509. &:last-child {
  510. span {
  511. color: #4290f7;
  512. }
  513. }
  514. }
  515. }
  516. }
  517. }
  518. &:hover {
  519. .say-price-history {
  520. opacity: 1;
  521. /* animation: expand 1s infinite;
  522. -webkit-animation: expand 1s infinite; !*Safari and Chrome*!
  523. animation-iteration-count: 1;
  524. -webkit-animation-iteration-count: 1;*/
  525. height: 210px;
  526. }
  527. }
  528. /* @keyframes expand {
  529. from {bottom: 58px}
  530. to {bottom: auto}
  531. }
  532. @-webkit-keyframes expand {
  533. from {bottom: 58px}
  534. to {bottom: auto}
  535. }*/
  536. }
  537. }
  538. }
  539. .expand-content {
  540. display: none;
  541. position: absolute;
  542. top: 63px;
  543. justify-content: space-between;
  544. padding: 0 236px 0 36px;
  545. background: #fffbf0;
  546. height: 48px;
  547. line-height: 48px;
  548. color: #020202;
  549. div {
  550. display: inline-block;
  551. span {
  552. color: #f71026;
  553. }
  554. }
  555. }
  556. &:hover {
  557. border-top: 1px solid #4290f7;
  558. border-left: 1px solid #4290f7;
  559. border-right: 1px solid #4290f7;
  560. .expand-content {
  561. display: flex;
  562. width: 1190px;
  563. z-index: 1;
  564. border-bottom: 1px solid #4290f7;
  565. border-left: 1px solid #4290f7;
  566. border-right: 1px solid #4290f7;
  567. left: -1px;
  568. }
  569. }
  570. .say-price {
  571. background-color: #e7eef9;
  572. height: 64px;
  573. line-height: 64px;
  574. display: none;
  575. >div {
  576. display: inline-block;
  577. position: relative;
  578. height: 64px;
  579. line-height: 64px;
  580. input {
  581. border-radius: 3px;
  582. }
  583. &:nth-child(1) {
  584. width: 282px;
  585. background: url('/images/applyPurchase/say-price.png')no-repeat;
  586. text-align: center;
  587. margin-right: 44px;
  588. }
  589. &:nth-child(2) {
  590. margin-right: 39px;
  591. input {
  592. width: 118px;
  593. height: 26px;
  594. border: 1px solid #5392f9;
  595. }
  596. select {
  597. position: absolute;
  598. top: 19px;
  599. width: 32px;
  600. height: 26px;
  601. background: url('/images/applyPurchase/arrow-down.png')no-repeat right center;
  602. -webkit-box-shadow: none;
  603. -moz-box-shadow: none;
  604. box-shadow: none;
  605. border: {
  606. left: none;
  607. top: none;
  608. bottom: none;
  609. right: 1px solid #5392f9;
  610. bottom-left-radius: 4px;
  611. top-left-radius: 4px;
  612. }
  613. color: #5392f9;
  614. font: small-caption;
  615. padding-left: 8px;
  616. & + input {
  617. padding-left: 34px;
  618. }
  619. }
  620. div {
  621. position: absolute;
  622. top: 19px;
  623. left: 38px;
  624. width: 32px;
  625. height: 26px;
  626. line-height: 26px;
  627. text-align: center;
  628. border: {
  629. left: none;
  630. top: none;
  631. bottom: none;
  632. right: 1px solid #5392f9;
  633. bottom-left-radius: 4px;
  634. top-left-radius: 4px;
  635. }
  636. color: #5392f9;
  637. & + input {
  638. padding-left: 34px;
  639. }
  640. }
  641. }
  642. &:nth-child(3) {
  643. margin-right: 37px;
  644. input {
  645. width: 32px;
  646. height: 26px;
  647. padding: 0 0 0 6px;
  648. }
  649. }
  650. &:nth-child(4) {
  651. margin-right: 132px;
  652. input {
  653. width: 118px;
  654. height: 26px;
  655. }
  656. }
  657. &:nth-child(5) {
  658. span {
  659. width: 71px;
  660. height: 28px;
  661. line-height: 28px;
  662. text-align: center;
  663. display: inline-block;
  664. cursor: pointer;
  665. &:first-child {
  666. background: #dedddd;
  667. margin-right: 10px;
  668. }
  669. &:last-child {
  670. background: #fa4701;
  671. color: #fff;
  672. }
  673. }
  674. }
  675. i {
  676. color: #e41515;
  677. position: relative;
  678. top: 2px;
  679. right: 3px;
  680. }
  681. }
  682. }
  683. &.active {
  684. border: 1px solid #4290f7;
  685. .expand-content {
  686. display: flex;
  687. width: 1190px;
  688. z-index: 1;
  689. border: 1px solid #4290f7;
  690. left: -1px;
  691. border-top: none;
  692. }
  693. /*.say-price {*/
  694. /*display: block;*/
  695. /*}*/
  696. }
  697. }
  698. }
  699. .empty{
  700. text-align: center;
  701. height: 200px;
  702. line-height: 200px;
  703. border: 1px solid #e8e8e8;
  704. margin-bottom: 10px;
  705. span {
  706. color: #999;
  707. margin-left: 10px;
  708. }
  709. }
  710. }
  711. .page-wrap {
  712. text-align: right;
  713. float: none;
  714. }
  715. .link-saler-box {
  716. width: 289px;
  717. height: auto;
  718. min-height: auto;
  719. border-radius: 2px;
  720. .title {
  721. background-color: #4290f7;
  722. height: 22px;
  723. line-height: 22px;
  724. margin-bottom: 20px;
  725. }
  726. .content {
  727. p {
  728. line-height: 20px;
  729. padding-top: 0;
  730. i {
  731. color: #4290f7;
  732. margin-right: 4px;
  733. }
  734. span {
  735. color: #f62d37;
  736. }
  737. }
  738. div {
  739. a {
  740. width: 78px;
  741. background: #4290f7;
  742. margin: 18px 0 13px 0;
  743. border-radius: 2px;
  744. }
  745. }
  746. }
  747. }
  748. }
  749. </style>