ApplyInfo.vue 28 KB

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