ApplyInfo.vue 26 KB

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