ApplyInfo.vue 27 KB

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