ApplyInfo.vue 26 KB

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