ApplyInfo.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851
  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">{{purchaseMan.inbrand || '-'}}</div>
  47. </div>
  48. <div :title="purchaseMan.cmpCode | nullFilter" class="fl item">
  49. <span>型号</span>
  50. <div class="content">{{purchaseMan.cmpCode || '-'}}</div>
  51. </div>
  52. <div :title="purchaseMan.prodTitle" class="fl item bottom size-middle">
  53. <span>类目(产品名称)</span>
  54. <div class="content">{{(purchaseMan.prodTitle || '-') | nullFilter}}</div>
  55. </div>
  56. <div :title="purchaseMan.spec" class="fl item bottom">
  57. <span>规格</span>
  58. <div class="content">{{purchaseMan.spec || '-'}}</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 { checkNullStr } from '~utils/baseUtils'
  151. import Clipboard from 'clipboard'
  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 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. purchaseMan.active = true
  304. this.currentSayPriceIndex = index
  305. } else {
  306. this.$message.error('抱歉,您需开通卖家功能才可报价')
  307. }
  308. } else {
  309. this.$message.error('个人账户暂不可报价')
  310. }
  311. } else {
  312. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  313. }
  314. },
  315. cancelSayPrice: function() {
  316. this.purchaseManList.content[this.currentSayPriceIndex].active = false
  317. this.currentSayPriceIndex = -1
  318. },
  319. resetList: function() {
  320. this.currentSayPriceIndex = -1
  321. this.$store.dispatch('applyPurchase/loadPurchaseManList', {
  322. pageNumber: this.nowPage,
  323. pageSize: this.pageSize,
  324. keyword: this.keyWord,
  325. isLogin: this.user.logged ? 1 : 0,
  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: 22px;
  507. }
  508. &:nth-child(2) {
  509. margin-left: 150px;
  510. }
  511. &:nth-child(3) {
  512. margin-left: 220px;
  513. }
  514. &:nth-child(4) {
  515. margin-left: 175px;
  516. }
  517. &:nth-child(5) {
  518. margin-left: 55px;
  519. }
  520. &:nth-child(6) {
  521. margin-left: 100px;
  522. }
  523. }
  524. }
  525. > ul {
  526. margin-bottom: 29px;
  527. > li {
  528. position: relative;
  529. border: 1px solid #ededed;
  530. &.active {
  531. border: 1px solid #4290f7;
  532. box-shadow: 2px 4px 5px 0 rgb(205, 221, 252);
  533. }
  534. &:hover {
  535. border: 1px solid #4290f7;
  536. box-shadow: 2px 4px 5px 0 rgb(205, 221, 252);
  537. .il-item.il-right .sharecode {
  538. display: block;
  539. }
  540. }
  541. .il-item {
  542. height: 120px;
  543. display: inline-block;
  544. text-align: center;
  545. color: #3c3c3c;
  546. padding-top: 16px;
  547. vertical-align: middle;
  548. .item {
  549. display: inline-block;
  550. overflow: hidden;
  551. text-overflow: ellipsis;
  552. white-space: nowrap;
  553. span {
  554. color: #999;
  555. }
  556. }
  557. &.il-left {
  558. width: 165px;
  559. padding: 16px 5px 0;
  560. div {
  561. display: block;
  562. &:last-child {
  563. margin-top: 37px;
  564. color: #666;
  565. }
  566. }
  567. }
  568. &.il-center {
  569. text-align: left;
  570. width: 740px;
  571. .il-box {
  572. display: inline-block;
  573. float: left;
  574. span {
  575. color: #999;
  576. }
  577. }
  578. .il-box-large {
  579. width: 610px;
  580. margin-left:15px;
  581. .fl {
  582. width: 320px;
  583. line-height: 19px;
  584. word-break: break-all;
  585. white-space: unset;
  586. &.bottom {
  587. margin-top: 14px;
  588. }
  589. .content {
  590. display: inline-block;
  591. width: 213px;
  592. overflow: hidden;
  593. vertical-align: middle;
  594. height: 38px;
  595. margin-left:10px;
  596. }
  597. span {
  598. float: left;
  599. display:inline-block;
  600. width:94px;
  601. text-align:right;
  602. color:#3c7cf5;
  603. }
  604. &.size-middle {
  605. width: 260px;
  606. margin-right: 10px;
  607. .content {
  608. width: 155px;
  609. }
  610. }
  611. }
  612. }
  613. .il-box-small {
  614. width: 100px;
  615. text-align: center;
  616. line-height: 90px;
  617. margin-left:-15px;
  618. .item {
  619. color: #f71026;
  620. }
  621. }
  622. }
  623. &.il-right {
  624. width: 100px;
  625. .date-content {
  626. margin-top: 14px;
  627. margin-bottom: 17px;
  628. span {
  629. &:first-child {
  630. font-size: 12px;
  631. color: #666;
  632. }
  633. color: #f71026;
  634. }
  635. i {
  636. font-style: normal;
  637. }
  638. }
  639. .btn-content {
  640. > div a {
  641. display: inline-block;
  642. width: 71px;
  643. height: 28px;
  644. line-height: 28px;
  645. color: #fff;
  646. background: #3c7cf5;
  647. border-radius: 3px;
  648. cursor: pointer;
  649. /* &:first-child {
  650. background: #ffa200;
  651. float: left;
  652. margin-top: 19px;
  653. }*/
  654. }
  655. .is-say-price {
  656. display: inline-block;
  657. color: #39ae05;
  658. margin-left: 11px;
  659. img {
  660. margin-bottom: 2px;
  661. }
  662. }
  663. }
  664. .sharescancodekuang {
  665. // width: 100%;
  666. // height: 220px;
  667. // position: absolute;
  668. // top: 115px;
  669. // left: 0px;
  670. // background: rgba(0, 0, 0, 0);
  671. }
  672. .sharescancode {
  673. position: absolute;
  674. background: url('/images/mobile/@2x/purChase/codebg.png');
  675. width: 248px;
  676. height: 207px;
  677. top: 115px;
  678. right: 0;
  679. z-index: 98;
  680. display: none;
  681. line-height: 14px;
  682. canvas {
  683. display: block;
  684. text-align: center;
  685. margin: 0 auto;
  686. line-height: 14px;
  687. }
  688. .title {
  689. color: #3c7cf5;
  690. font-size: 16px;
  691. margin: 21px auto;
  692. margin-bottom: 0px;
  693. text-align: center;
  694. line-height: 14px;
  695. }
  696. div input {
  697. display: inline-block;
  698. width: 140px;
  699. overflow: hidden;
  700. height: 35px;
  701. vertical-align: middle;
  702. margin-left: 14px;
  703. line-height: 35px;
  704. }
  705. div span {
  706. display: inline-block;
  707. color: #fff;
  708. background: #4290f7;
  709. height: 36px;
  710. line-height: 36px;
  711. width: 70px;
  712. font-style: normal;
  713. vertical-align: middle;
  714. cursor: pointer;
  715. }
  716. }
  717. .sharecode {
  718. position: absolute;
  719. right: 0;
  720. top: 0;
  721. height: 120px;
  722. z-index: 99;
  723. display: none;
  724. .sharecodeR {
  725. width: 4px;
  726. height: 120px;
  727. background: #4290f7;
  728. float: right;
  729. }
  730. .sharecodeL {
  731. float: right;
  732. margin-right: 1px;
  733. }
  734. .sharecodeT {
  735. padding-top: 5px;
  736. margin-top: 10px;
  737. width: 28px;
  738. height: 68px;
  739. background-color: #3c7cf5;
  740. border-radius: 2px;
  741. color: #ffffff;
  742. font-size: 14px;
  743. word-wrap: break-word;
  744. white-space: pre-wrap;
  745. line-height: 14px;
  746. }
  747. .sharecodeBtn {
  748. width: 28px;
  749. height: 28px;
  750. margin-top: 4px;
  751. &::after {
  752. content: ' ';
  753. clear: both;
  754. display: inline;
  755. visibility: hidden;
  756. }
  757. img {
  758. float: left;
  759. }
  760. }
  761. }
  762. }
  763. i {
  764. color: #e41515;
  765. position: relative;
  766. top: 0px;
  767. right: 3px;
  768. }
  769. }
  770. .number-content {
  771. margin-left: 10px;
  772. line-height: 120px;
  773. padding-top: 0;
  774. width: 100px;
  775. margin-right: 34px;
  776. span {
  777. color: #5392f9;
  778. &.active {
  779. color: #ff9a00;
  780. }
  781. }
  782. > img {
  783. margin-bottom: 5px;
  784. margin-right: 2px;
  785. }
  786. }
  787. /*.say-price {*/
  788. /*display: block;*/
  789. /*}*/
  790. }
  791. }
  792. }
  793. .page-wrap {
  794. text-align: right;
  795. float: none;
  796. }
  797. .link-saler-box {
  798. width: 289px;
  799. height: auto;
  800. min-height: auto;
  801. border-radius: 2px;
  802. .title {
  803. background-color: #4290f7;
  804. height: 22px;
  805. line-height: 22px;
  806. margin-bottom: 20px;
  807. }
  808. .content {
  809. p {
  810. line-height: 20px;
  811. padding-top: 0;
  812. i {
  813. color: #4290f7;
  814. margin-right: 4px;
  815. }
  816. span {
  817. color: #f62d37;
  818. }
  819. }
  820. div {
  821. a {
  822. width: 78px;
  823. background: #4290f7;
  824. margin: 18px 0 13px 0;
  825. border-radius: 2px;
  826. }
  827. }
  828. }
  829. }
  830. }
  831. .empty{
  832. text-align: center;
  833. height: 200px;
  834. line-height: 200px;
  835. border: 1px solid #e8e8e8;
  836. margin-bottom: 10px;
  837. span {
  838. color: #999;
  839. margin-left: 10px;
  840. }
  841. }
  842. .page-wrap {
  843. text-align: right;
  844. float: none;
  845. }
  846. </style>