ApplyInfo.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  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 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. document.addEventListener('click', function() {
  229. // _this.showShare = false
  230. })
  231. },
  232. loadQRcode: function(id, index) {
  233. let canvas = document.getElementsByClassName('qrccode-canvas_' + index)[0]
  234. var opts = {
  235. width: '122'
  236. }
  237. this.url =
  238. window.location.protocol +
  239. '//' +
  240. window.location.host +
  241. '/mobile/share/purChase/' +
  242. id
  243. QRCode.toCanvas(canvas, this.url, opts, error => {
  244. if (error) {
  245. console.log(error)
  246. } else {
  247. console.log('QRcode success')
  248. }
  249. })
  250. this.copyurl(index)
  251. },
  252. setShowShare: function(flag, index, id) {
  253. clearTimeout(this.Timer[index] ? this.Timer[index] : '')
  254. this.$refs.sharescancode[index].style.display = 'block'
  255. this.$refs.purchaseManList[index].onmouseout = () => {
  256. if (this.Timer[index] !== 'undefined') {
  257. clearTimeout(this.Timer[index])
  258. }
  259. this.Timer[index] = setTimeout(() => {
  260. this.$refs.sharescancode[index].style.display = 'none'
  261. }, 300)
  262. }
  263. this.loadQRcode(id, index)
  264. this.showShare = flag
  265. },
  266. showShowShare(flag, index, id) {
  267. clearTimeout(this.Timer[index] ? this.Timer[index] : '')
  268. },
  269. hideShowShare(flag, index, id) {
  270. clearTimeout(this.Timer[index] ? this.Timer[index] : '')
  271. this.Timer[index] = setTimeout(() => {
  272. this.$refs.sharescancode[index].style.display = 'none'
  273. }, 300)
  274. },
  275. setIndex: function(index) {
  276. this.currentSayPriceIndex = index
  277. },
  278. getDay: function(timeStamp) {
  279. return Math.floor(timeStamp / (1000 * 60 * 60 * 24))
  280. },
  281. getHours: function(timeStamp) {
  282. return Math.floor((timeStamp / (1000 * 60 * 60)) % 24)
  283. },
  284. listenPage: function(page) {
  285. this.nowPage = page
  286. this.resetList()
  287. },
  288. sayPrice: function(purchaseMan, index) {
  289. // let _this = this
  290. // for (let i = 0; i < this.purchaseManList.content.length; i++) {
  291. // _this.purchaseManList.content[i].active = false
  292. // }
  293. if (this.user.logged) {
  294. if (this.user.data.enterprise.uu) {
  295. if (
  296. this.user.data.enterprise.isVendor &&
  297. this.user.data.enterprise.isVendor !== '1690'
  298. ) {
  299. // this.resetSayPrice()
  300. purchaseMan.active = true
  301. this.currentSayPriceIndex = index
  302. } else {
  303. this.$message.error('抱歉,您需开通卖家功能才可报价')
  304. }
  305. } else {
  306. this.$message.error('个人账户暂不可报价')
  307. }
  308. } else {
  309. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  310. }
  311. },
  312. cancelSayPrice: function() {
  313. this.purchaseManList.content[this.currentSayPriceIndex].active = false
  314. this.currentSayPriceIndex = -1
  315. },
  316. resetList: function() {
  317. this.currentSayPriceIndex = -1
  318. this.$store.dispatch('applyPurchase/loadPurchaseManList', {
  319. pageNumber: this.nowPage,
  320. pageSize: this.pageSize,
  321. keyword: this.keyWord,
  322. sorting:
  323. !this.sorting || JSON.stringify(this.sorting) === '{}'
  324. ? { releaseDate: 'DESC' }
  325. : this.sorting,
  326. enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null
  327. })
  328. },
  329. searchList: function() {
  330. this.nowPage = 1
  331. this.resetList()
  332. },
  333. sayPriceStop: function() {
  334. this.$message.error('该求购已截止')
  335. },
  336. sayPriceSeft: function() {
  337. this.$message.error('此为贵公司的求购')
  338. },
  339. sortListByParam: function(param) {
  340. if (this.sorting[param]) {
  341. if (this.sorting[param] === 'ASC') {
  342. this.$set(this.sorting, param, 'DESC')
  343. } else {
  344. this.$delete(this.sorting, param)
  345. }
  346. } else {
  347. this.sorting = {}
  348. this.$set(this.sorting, param, 'ASC')
  349. }
  350. this.nowPage = 1
  351. this.resetList()
  352. },
  353. setLinkBoxIndex: function(index) {
  354. if (!this.user.logged) {
  355. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  356. } else {
  357. this.linkBoxIndex = index
  358. }
  359. }
  360. }
  361. }
  362. </script>
  363. <style lang="scss" scoped>
  364. .apply-info {
  365. width: 1190px;
  366. margin: 0 auto;
  367. .apply-info-title {
  368. border-bottom: 1px solid #3975f4;
  369. > p {
  370. display: inline-block;
  371. width: 156px;
  372. height: 33px;
  373. line-height: 33px;
  374. color: #fff;
  375. background: #3975f4;
  376. font-size: 18px;
  377. text-align: center;
  378. border: {
  379. top-left-radius: 3px;
  380. top-right-radius: 3px;
  381. }
  382. margin: 0;
  383. }
  384. > span {
  385. color: #999;
  386. margin-left: 16px;
  387. }
  388. > div {
  389. float: right;
  390. height: 32px;
  391. line-height: 32px;
  392. > input {
  393. width: 241px;
  394. height: 32px;
  395. line-height: 32px;
  396. font-size: 13px;
  397. border: {
  398. top-right-radius: 0;
  399. bottom-right-radius: 0;
  400. }
  401. }
  402. > span {
  403. display: inline-block;
  404. width: 69px;
  405. color: #fff;
  406. background: #3975f4;
  407. text-align: center;
  408. margin: 0 6px 0 -1px;
  409. /*vertical-align: middle;*/
  410. border: {
  411. top-right-radius: 3px;
  412. bottom-right-radius: 3px;
  413. }
  414. cursor: pointer;
  415. }
  416. > a {
  417. background: #ffa200;
  418. color: #fff;
  419. width: 79px;
  420. border-radius: 3px;
  421. text-align: center;
  422. display: inline-block;
  423. }
  424. > div {
  425. float: right;
  426. height: 33px;
  427. line-height: 33px;
  428. > input {
  429. width: 241px;
  430. height: 33px;
  431. line-height: 33px;
  432. font-size: 13px;
  433. border: {
  434. top-right-radius: 0;
  435. bottom-right-radius: 0;
  436. }
  437. }
  438. > span {
  439. display: inline-block;
  440. width: 69px;
  441. color: #fff;
  442. background: #3975f4;
  443. text-align: center;
  444. margin: 0 6px 0 -1px;
  445. height: 33px;
  446. /*vertical-align: middle;*/
  447. border: {
  448. top-right-radius: 3px;
  449. bottom-right-radius: 3px;
  450. }
  451. cursor: pointer;
  452. }
  453. &:nth-child(2) {
  454. width: 106px;
  455. }
  456. &:nth-child(3) {
  457. width: 200px;
  458. }
  459. &:nth-child(4) {
  460. width: 174px;
  461. }
  462. &:nth-child(5) {
  463. width: 152px;
  464. }
  465. &:nth-child(6) {
  466. width: 158px;
  467. }
  468. &:nth-child(7) {
  469. width: 180px;
  470. margin-left: 30px;
  471. }
  472. }
  473. }
  474. .empty {
  475. text-align: center;
  476. height: 200px;
  477. line-height: 200px;
  478. border: 1px solid #e8e8e8;
  479. margin-bottom: 10px;
  480. span {
  481. color: #999;
  482. margin-left: 10px;
  483. }
  484. }
  485. }
  486. .apply-info-list {
  487. .list-title {
  488. background: #e2ebff;
  489. height: 40px;
  490. line-height: 40px;
  491. margin: 9px 0 0 0;
  492. .list-title-item {
  493. display: inline-block;
  494. text-align: center;
  495. .fa {
  496. color: #333;
  497. &.active {
  498. color: #5078cb;
  499. }
  500. }
  501. &:nth-child(1) {
  502. margin-left: 76px;
  503. }
  504. &:nth-child(2) {
  505. margin-left: 345px;
  506. }
  507. &:nth-child(3) {
  508. margin-left: 399px;
  509. }
  510. &:nth-child(4) {
  511. margin-left: 71px;
  512. }
  513. }
  514. }
  515. > ul {
  516. margin-bottom: 29px;
  517. > li {
  518. position: relative;
  519. border: 1px solid #ededed;
  520. &.active {
  521. border: 1px solid #4290f7;
  522. box-shadow: 2px 4px 5px 0 rgb(205, 221, 252);
  523. }
  524. &:hover {
  525. border: 1px solid #4290f7;
  526. box-shadow: 2px 4px 5px 0 rgb(205, 221, 252);
  527. .il-item.il-right .sharecode {
  528. display: block;
  529. }
  530. }
  531. .il-item {
  532. height: 120px;
  533. display: inline-block;
  534. text-align: center;
  535. color: #3c3c3c;
  536. padding-top: 16px;
  537. vertical-align: middle;
  538. .item {
  539. display: inline-block;
  540. overflow: hidden;
  541. text-overflow: ellipsis;
  542. white-space: nowrap;
  543. span {
  544. color: #999;
  545. }
  546. }
  547. &.il-left {
  548. width: 236px;
  549. padding: 16px 10px 0;
  550. div {
  551. display: block;
  552. &:last-child {
  553. margin-top: 37px;
  554. color: #666;
  555. }
  556. }
  557. }
  558. &.il-center {
  559. text-align: left;
  560. width: 654px;
  561. .il-box {
  562. display: inline-block;
  563. float: left;
  564. span {
  565. color: #999;
  566. }
  567. }
  568. .il-box-large {
  569. width: 482px;
  570. .fl {
  571. width: 284px;
  572. line-height: 19px;
  573. word-break: break-all;
  574. white-space: unset;
  575. &.bottom {
  576. margin-top: 14px;
  577. }
  578. .content {
  579. display: inline-block;
  580. width: 220px;
  581. overflow: hidden;
  582. vertical-align: middle;
  583. height: 38px;
  584. }
  585. span {
  586. float: left;
  587. }
  588. &.size-middle {
  589. width: 136px;
  590. margin-right: 37px;
  591. .content {
  592. width: 86px;
  593. }
  594. }
  595. }
  596. }
  597. .il-box-small {
  598. width: 151px;
  599. margin-left: 12px;
  600. .item {
  601. color: #020202;
  602. width: 151px;
  603. margin-bottom: 6px;
  604. }
  605. }
  606. }
  607. &.il-right {
  608. width: 100px;
  609. .date-content {
  610. margin-top: 14px;
  611. margin-bottom: 17px;
  612. span {
  613. &:first-child {
  614. font-size: 12px;
  615. color: #666;
  616. }
  617. color: #f71026;
  618. }
  619. i {
  620. font-style: normal;
  621. }
  622. }
  623. .btn-content {
  624. > div a {
  625. display: inline-block;
  626. width: 71px;
  627. height: 28px;
  628. line-height: 28px;
  629. color: #fff;
  630. background: #3c7cf5;
  631. border-radius: 3px;
  632. cursor: pointer;
  633. /* &:first-child {
  634. background: #ffa200;
  635. float: left;
  636. margin-top: 19px;
  637. }*/
  638. }
  639. .is-say-price {
  640. display: inline-block;
  641. color: #39ae05;
  642. margin-left: 11px;
  643. img {
  644. margin-bottom: 2px;
  645. }
  646. }
  647. }
  648. .sharescancodekuang {
  649. // width: 100%;
  650. // height: 220px;
  651. // position: absolute;
  652. // top: 115px;
  653. // left: 0px;
  654. // background: rgba(0, 0, 0, 0);
  655. }
  656. .sharescancode {
  657. position: absolute;
  658. background: url('/images/mobile/@2x/purChase/codebg.png');
  659. width: 248px;
  660. height: 207px;
  661. top: 115px;
  662. right: 0;
  663. z-index: 98;
  664. display: none;
  665. line-height: 14px;
  666. canvas {
  667. display: block;
  668. text-align: center;
  669. margin: 0 auto;
  670. line-height: 14px;
  671. }
  672. .title {
  673. color: #3c7cf5;
  674. font-size: 16px;
  675. margin: 21px auto;
  676. margin-bottom: 0px;
  677. text-align: center;
  678. line-height: 14px;
  679. }
  680. div input {
  681. display: inline-block;
  682. width: 140px;
  683. overflow: hidden;
  684. height: 35px;
  685. vertical-align: middle;
  686. margin-left: 14px;
  687. line-height: 35px;
  688. }
  689. div span {
  690. display: inline-block;
  691. color: #fff;
  692. background: #4290f7;
  693. height: 36px;
  694. line-height: 36px;
  695. width: 70px;
  696. font-style: normal;
  697. vertical-align: middle;
  698. cursor: pointer;
  699. }
  700. }
  701. .sharecode {
  702. position: absolute;
  703. right: 0;
  704. top: 0;
  705. height: 120px;
  706. z-index: 99;
  707. display: none;
  708. .sharecodeR {
  709. width: 4px;
  710. height: 120px;
  711. background: #4290f7;
  712. float: right;
  713. }
  714. .sharecodeL {
  715. float: right;
  716. margin-right: 1px;
  717. }
  718. .sharecodeT {
  719. padding-top: 5px;
  720. margin-top: 10px;
  721. width: 28px;
  722. height: 68px;
  723. background-color: #3c7cf5;
  724. border-radius: 2px;
  725. color: #ffffff;
  726. font-size: 14px;
  727. word-wrap: break-word;
  728. white-space: pre-wrap;
  729. line-height: 14px;
  730. }
  731. .sharecodeBtn {
  732. width: 28px;
  733. height: 28px;
  734. margin-top: 4px;
  735. &::after {
  736. content: ' ';
  737. clear: both;
  738. display: inline;
  739. visibility: hidden;
  740. }
  741. img {
  742. float: left;
  743. }
  744. }
  745. }
  746. }
  747. i {
  748. color: #e41515;
  749. position: relative;
  750. top: 0px;
  751. right: 3px;
  752. }
  753. }
  754. .number-content {
  755. margin-left: 56px;
  756. line-height: 120px;
  757. padding-top: 0;
  758. width: 77px;
  759. margin-right: 34px;
  760. span {
  761. color: #5392f9;
  762. &.active {
  763. color: #ff9a00;
  764. }
  765. }
  766. > img {
  767. margin-bottom: 5px;
  768. margin-right: 2px;
  769. }
  770. }
  771. /*.say-price {*/
  772. /*display: block;*/
  773. /*}*/
  774. }
  775. }
  776. }
  777. .page-wrap {
  778. text-align: right;
  779. float: none;
  780. }
  781. .link-saler-box {
  782. width: 289px;
  783. height: auto;
  784. min-height: auto;
  785. border-radius: 2px;
  786. .title {
  787. background-color: #4290f7;
  788. height: 22px;
  789. line-height: 22px;
  790. margin-bottom: 20px;
  791. }
  792. .content {
  793. p {
  794. line-height: 20px;
  795. padding-top: 0;
  796. i {
  797. color: #4290f7;
  798. margin-right: 4px;
  799. }
  800. span {
  801. color: #f62d37;
  802. }
  803. }
  804. div {
  805. a {
  806. width: 78px;
  807. background: #4290f7;
  808. margin: 18px 0 13px 0;
  809. border-radius: 2px;
  810. }
  811. }
  812. }
  813. }
  814. }
  815. .empty{
  816. text-align: center;
  817. height: 200px;
  818. line-height: 200px;
  819. border: 1px solid #e8e8e8;
  820. margin-bottom: 10px;
  821. span {
  822. color: #999;
  823. margin-left: 10px;
  824. }
  825. }
  826. .page-wrap {
  827. text-align: right;
  828. float: none;
  829. }
  830. </style>