ApplyInfo.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817
  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. phone: function(str) {
  162. return str ? str.substring(0, 3) + '****' + str.substring(7, 11) : '-'
  163. },
  164. filters: {
  165. date: function(date) {
  166. const d = new Date(Number(date))
  167. const year = d.getFullYear()
  168. const monthTemp = d.getMonth() + 1
  169. const month = monthTemp < 10 ? '0' + monthTemp : '' + monthTemp
  170. const hour = d.getHours() < 10 ? '0' + d.getHours() : '' + d.getHours()
  171. const minutes =
  172. d.getMinutes() < 10 ? '0' + d.getMinutes() : '' + d.getMinutes() + ' '
  173. const day = d.getDate() < 10 ? '0' + d.getDate() : '' + d.getDate() + ' '
  174. return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes
  175. },
  176. phone: function(str) {
  177. return str ? str.substring(0, 3) + '****' + str.substring(7, 11) : '-'
  178. },
  179. enterpriseFilter([str, user]) {
  180. if (!user.logged) {
  181. return str
  182. ? str.length > 4
  183. ? str.substring(0, 2) +
  184. '**' +
  185. str.substring(str.length - 2, str.length)
  186. : str
  187. : '-'
  188. } else {
  189. return str || '-'
  190. }
  191. },
  192. userNameFilter([str, user]) {
  193. if (!user.logged) {
  194. return str ? str.substring(0, 1) + '**' : '-'
  195. } else {
  196. return str || '-'
  197. }
  198. },
  199. nullFilter(str) {
  200. return checkNullStr(str) ? str : '-'
  201. }
  202. },
  203. components: { Page, SayPrice },
  204. computed: {
  205. storeInfo() {
  206. return this.$store.state.shop.storeInfo.store.data
  207. },
  208. purchaseManList() {
  209. return this.$store.state.applyPurchase.purchaseManList.purchaseManList
  210. .data
  211. },
  212. totalCount() {
  213. return this.purchaseManList.totalElements
  214. },
  215. user() {
  216. return this.$store.state.option.user
  217. }
  218. },
  219. methods: {
  220. copyurl(index) {
  221. let _this = this
  222. _this.clipboard = new Clipboard('.copyLink_' + index)
  223. _this.clipboard.on('success', e => {
  224. // _this.clipboard.destroy()
  225. e.clearSelection()
  226. _this.$message.success('已复制到剪切板')
  227. })
  228. _this.clipboard.on('error', e => {
  229. _this.$message.error('浏览器不支持自动复制,请手动复制')
  230. _this.clipboard.destroy()
  231. })
  232. document.addEventListener('click', function() {
  233. // _this.showShare = false
  234. })
  235. },
  236. loadQRcode: function(id, index) {
  237. let canvas = document.getElementsByClassName('qrccode-canvas_' + index)[0]
  238. var opts = {
  239. width: '122'
  240. }
  241. this.url =
  242. window.location.protocol +
  243. '//' +
  244. window.location.host +
  245. '/mobile/share/purChase/' +
  246. id
  247. QRCode.toCanvas(canvas, this.url, opts, error => {
  248. if (error) {
  249. console.log(error)
  250. } else {
  251. console.log('QRcode success')
  252. }
  253. })
  254. this.copyurl(index)
  255. },
  256. setShowShare: function(flag, index, id) {
  257. clearTimeout(this.Timer[index] ? this.Timer[index] : '')
  258. this.$refs.sharescancode[index].style.display = 'block'
  259. this.$refs.purchaseManList[index].onmouseout = () => {
  260. if (this.Timer[index] !== 'undefined') {
  261. clearTimeout(this.Timer[index])
  262. }
  263. this.Timer[index] = setTimeout(() => {
  264. this.$refs.sharescancode[index].style.display = 'none'
  265. }, 300)
  266. }
  267. this.loadQRcode(id, index)
  268. this.showShare = flag
  269. },
  270. showShowShare(flag, index, id) {
  271. clearTimeout(this.Timer[index] ? this.Timer[index] : '')
  272. },
  273. hideShowShare(flag, index, id) {
  274. clearTimeout(this.Timer[index] ? this.Timer[index] : '')
  275. this.Timer[index] = setTimeout(() => {
  276. this.$refs.sharescancode[index].style.display = 'none'
  277. }, 300)
  278. },
  279. setIndex: function(index) {
  280. this.currentSayPriceIndex = index
  281. },
  282. getDay: function(timeStamp) {
  283. return Math.floor(timeStamp / (1000 * 60 * 60 * 24))
  284. },
  285. getHours: function(timeStamp) {
  286. return Math.floor((timeStamp / (1000 * 60 * 60)) % 24)
  287. },
  288. listenPage: function(page) {
  289. this.nowPage = page
  290. this.resetList()
  291. },
  292. sayPrice: function(purchaseMan, index) {
  293. // let _this = this
  294. // for (let i = 0; i < this.purchaseManList.content.length; i++) {
  295. // _this.purchaseManList.content[i].active = false
  296. // }
  297. if (this.user.logged) {
  298. if (this.user.data.enterprise.uu) {
  299. if (
  300. this.user.data.enterprise.isVendor &&
  301. this.user.data.enterprise.isVendor !== '1690'
  302. ) {
  303. // this.resetSayPrice()
  304. purchaseMan.active = true
  305. this.currentSayPriceIndex = index
  306. } else {
  307. this.$message.error('抱歉,您需开通卖家功能才可报价')
  308. }
  309. } else {
  310. this.$message.error('个人账户暂不可报价')
  311. }
  312. } else {
  313. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  314. }
  315. },
  316. cancelSayPrice: function() {
  317. this.purchaseManList.content[this.currentSayPriceIndex].active = false
  318. this.currentSayPriceIndex = -1
  319. },
  320. resetList: function() {
  321. this.currentSayPriceIndex = -1
  322. this.$store.dispatch('applyPurchase/loadPurchaseManList', {
  323. pageNumber: this.nowPage,
  324. pageSize: this.pageSize,
  325. keyword: this.keyWord,
  326. sorting:
  327. !this.sorting || JSON.stringify(this.sorting) === '{}'
  328. ? { releaseDate: 'DESC' }
  329. : this.sorting,
  330. enUU: this.user.data.enterprise ? this.user.data.enterprise.uu : null
  331. })
  332. },
  333. searchList: function() {
  334. this.nowPage = 1
  335. this.resetList()
  336. },
  337. sayPriceStop: function() {
  338. this.$message.error('该求购已截止')
  339. },
  340. sayPriceSeft: function() {
  341. this.$message.error('此为贵公司的求购')
  342. },
  343. sortListByParam: function(param) {
  344. if (this.sorting[param]) {
  345. if (this.sorting[param] === 'ASC') {
  346. this.$set(this.sorting, param, 'DESC')
  347. } else {
  348. this.$delete(this.sorting, param)
  349. }
  350. } else {
  351. this.sorting = {}
  352. this.$set(this.sorting, param, 'ASC')
  353. }
  354. this.nowPage = 1
  355. this.resetList()
  356. },
  357. setLinkBoxIndex: function(index) {
  358. if (!this.user.logged) {
  359. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  360. } else {
  361. this.linkBoxIndex = index
  362. }
  363. }
  364. }
  365. }
  366. </script>
  367. <style lang="scss" scoped>
  368. .apply-info {
  369. width: 1190px;
  370. margin: 0 auto;
  371. .apply-info-title {
  372. border-bottom: 1px solid #3975f4;
  373. > p {
  374. display: inline-block;
  375. width: 156px;
  376. height: 33px;
  377. line-height: 33px;
  378. color: #fff;
  379. background: #3975f4;
  380. font-size: 18px;
  381. text-align: center;
  382. border: {
  383. top-left-radius: 3px;
  384. top-right-radius: 3px;
  385. }
  386. margin: 0;
  387. }
  388. > span {
  389. color: #999;
  390. margin-left: 16px;
  391. }
  392. > div {
  393. float: right;
  394. height: 32px;
  395. line-height: 32px;
  396. > input {
  397. width: 241px;
  398. height: 32px;
  399. line-height: 32px;
  400. font-size: 13px;
  401. border: {
  402. top-right-radius: 0;
  403. bottom-right-radius: 0;
  404. }
  405. }
  406. > span {
  407. display: inline-block;
  408. width: 69px;
  409. color: #fff;
  410. background: #3975f4;
  411. text-align: center;
  412. margin: 0 6px 0 -1px;
  413. /*vertical-align: middle;*/
  414. border: {
  415. top-right-radius: 3px;
  416. bottom-right-radius: 3px;
  417. }
  418. cursor: pointer;
  419. }
  420. > a {
  421. background: #ffa200;
  422. color: #fff;
  423. width: 79px;
  424. border-radius: 3px;
  425. text-align: center;
  426. display: inline-block;
  427. }
  428. > div {
  429. float: right;
  430. height: 33px;
  431. line-height: 33px;
  432. > input {
  433. width: 241px;
  434. height: 33px;
  435. line-height: 33px;
  436. font-size: 13px;
  437. border: {
  438. top-right-radius: 0;
  439. bottom-right-radius: 0;
  440. }
  441. }
  442. > span {
  443. display: inline-block;
  444. width: 69px;
  445. color: #fff;
  446. background: #3975f4;
  447. text-align: center;
  448. margin: 0 6px 0 -1px;
  449. height: 33px;
  450. /*vertical-align: middle;*/
  451. border: {
  452. top-right-radius: 3px;
  453. bottom-right-radius: 3px;
  454. }
  455. cursor: pointer;
  456. }
  457. &:nth-child(2) {
  458. width: 106px;
  459. }
  460. &:nth-child(3) {
  461. width: 200px;
  462. }
  463. &:nth-child(4) {
  464. width: 174px;
  465. }
  466. &:nth-child(5) {
  467. width: 152px;
  468. }
  469. &:nth-child(6) {
  470. width: 158px;
  471. }
  472. &:nth-child(7) {
  473. width: 180px;
  474. margin-left: 30px;
  475. }
  476. }
  477. }
  478. .empty {
  479. text-align: center;
  480. height: 200px;
  481. line-height: 200px;
  482. border: 1px solid #e8e8e8;
  483. margin-bottom: 10px;
  484. span {
  485. color: #999;
  486. margin-left: 10px;
  487. }
  488. }
  489. }
  490. .apply-info-list {
  491. .list-title {
  492. background: #e2ebff;
  493. height: 40px;
  494. line-height: 40px;
  495. margin: 9px 0 0 0;
  496. .list-title-item {
  497. display: inline-block;
  498. text-align: center;
  499. .fa {
  500. color: #333;
  501. &.active {
  502. color: #5078cb;
  503. }
  504. }
  505. &:nth-child(1) {
  506. margin-left: 76px;
  507. }
  508. &:nth-child(2) {
  509. margin-left: 345px;
  510. }
  511. &:nth-child(3) {
  512. margin-left: 399px;
  513. }
  514. &:nth-child(4) {
  515. margin-left: 71px;
  516. }
  517. }
  518. }
  519. > ul {
  520. margin-bottom: 29px;
  521. > li {
  522. position: relative;
  523. border: 1px solid #ededed;
  524. &.active {
  525. border: 1px solid #4290f7;
  526. box-shadow: 2px 4px 5px 0 rgb(205, 221, 252);
  527. }
  528. &:hover {
  529. border: 1px solid #4290f7;
  530. box-shadow: 2px 4px 5px 0 rgb(205, 221, 252);
  531. .il-item.il-right .sharecode {
  532. display: block;
  533. }
  534. }
  535. .il-item {
  536. height: 120px;
  537. display: inline-block;
  538. text-align: center;
  539. color: #3c3c3c;
  540. padding-top: 16px;
  541. vertical-align: middle;
  542. .item {
  543. display: inline-block;
  544. overflow: hidden;
  545. text-overflow: ellipsis;
  546. white-space: nowrap;
  547. span {
  548. color: #999;
  549. }
  550. }
  551. &.il-left {
  552. width: 236px;
  553. padding: 16px 10px 0;
  554. div {
  555. display: block;
  556. &:last-child {
  557. margin-top: 37px;
  558. color: #666;
  559. }
  560. }
  561. }
  562. &.il-center {
  563. text-align: left;
  564. width: 654px;
  565. .il-box {
  566. display: inline-block;
  567. float: left;
  568. span {
  569. color: #999;
  570. }
  571. }
  572. .il-box-large {
  573. width: 482px;
  574. .fl {
  575. width: 284px;
  576. line-height: 19px;
  577. word-break: break-all;
  578. white-space: unset;
  579. &.bottom {
  580. margin-top: 14px;
  581. }
  582. .content {
  583. display: inline-block;
  584. width: 220px;
  585. overflow: hidden;
  586. vertical-align: middle;
  587. height: 38px;
  588. }
  589. span {
  590. float: left;
  591. }
  592. &.size-middle {
  593. width: 136px;
  594. margin-right: 37px;
  595. .content {
  596. width: 86px;
  597. }
  598. }
  599. }
  600. }
  601. .il-box-small {
  602. width: 151px;
  603. margin-left: 12px;
  604. .item {
  605. color: #020202;
  606. width: 151px;
  607. margin-bottom: 6px;
  608. }
  609. }
  610. }
  611. &.il-right {
  612. width: 100px;
  613. .date-content {
  614. margin-top: 14px;
  615. margin-bottom: 17px;
  616. span {
  617. color: #999;
  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: 0px;
  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: 2px;
  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. </style>