ApplyInfo.vue 25 KB

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