ApplyInfo.vue 25 KB

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