CommodityList.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864
  1. <template>
  2. <div id="goods-list-fragment">
  3. <div class="container">
  4. <div class="content-adv">
  5. <div class="title-adv">
  6. <span>PCB专区</span>
  7. <span><i class="fa fa-angle-right"></i>{{nameCn02}}</span>
  8. <span v-if="nameCn03"><i class="fa fa-angle-right"></i>{{nameCn03}}</span>
  9. </div>
  10. <div class="input-group">
  11. <input type="search" class="form-control" id="search_input" title="code" placeholder="型号/品牌"
  12. v-model="searchCode" @search="goodsSearch(searchCode)"/>
  13. <span class="input-group-btn">
  14. <button type="button" class="btn" id="search_btn" @click="goodsSearch(searchCode)">&nbsp;搜&nbsp;索&nbsp;</button>
  15. </span>
  16. <!-- <span class="input-group-btn">
  17. <button type="button" class="btn sendprove" @click="sendprove()">我要发布产品</button>
  18. </span>-->
  19. </div>
  20. </div>
  21. <!-- 产品列表 -->
  22. <div class="goods-area">
  23. <!-- 列表展示 -->
  24. <table class="goodslist" style="width: 955px;background:#fff;" >
  25. <thead>
  26. <tr>
  27. <th width="165"><div>品牌/物料名称</div></th>
  28. <th width="148"><div>型号/规格</div></th>
  29. <th width="114"><div>包装</div></th>
  30. <th width="125"><div>库存</div></th>
  31. <th width="149"><div>价格梯度(PCS)</div></th>
  32. <th width="67"><div>交期(天)</div></th>
  33. <th width="66"><div>规格书</div></th>
  34. <th width="95"><div>操作</div></th>
  35. </tr>
  36. </thead>
  37. <tbody id="goodslist-content">
  38. <tr v-for="commodity in commodities.content" @click="goBatchDetail(commodity)">
  39. <td class="brand-code">
  40. <img class="sellout-store-commodity" v-if="commodity.status === 602" src="/images/search/sellout-search.png" alt="">
  41. <img class="specific-price-tag" v-if="isSpecificPriceTag(commodity.tag) && isConsignment" src="/images/floor/specificPrice-store.png" alt="">
  42. <div class="brand" v-if="commodity.brandNameEn || commodity.brandEn">
  43. <a v-if="commodity.brandNameEn && commodity.branduuid" @click="goBrandDetail('/product/brand/' + commodity.branduuid, $event)" v-text="commodity.brandNameEn" :title="commodity.brandNameEn"></a>
  44. <span v-if="commodity.brandNameEn && !commodity.branduuid" v-text="commodity.brandNameEn" :title="commodity.brandNameEn"></span>
  45. <span v-if="commodity.brandEn && !commodity.branduuid" :title="commodity.brandEn">{{commodity.brandEn}}</span>
  46. </div>
  47. <div class="brand" v-if="!commodity.brandNameEn && !commodity.brandEn && commodity.kindNameCn">—</div>
  48. <a v-if="commodity.kindNameCn && commodity.kindUuid" @click="goBrandDetail('/product/kind/' + commodity.kindUuid, $event)" v-text="commodity.kindNameCn" :title="commodity.kindNameCn"></a>
  49. <span v-if="commodity.kindNameCn && !commodity.kindUuid" v-text="commodity.kindNameCn" :title="commodity.kindNameCn"></span>
  50. <div class="brand" v-if="!commodity.kindNameCn && (commodity.brandNameEn || commodity.brandEn)">—</div>
  51. <div class="brand" v-if="!commodity.brandNameEn && !commodity.brandEn && !commodity.kindNameCn">—</div>
  52. </td>
  53. <td class="brand-code">
  54. <div class="code" v-if="commodity.code" v-text="commodity.code" :title="commodity.code"></div>
  55. <div class="code" v-if="!commodity.code">—</div>
  56. <div class="brand spec" v-text="commodity.spec || '—'" :title="commodity.spec"></div>
  57. </td>
  58. <td>
  59. <div class="package" v-if="commodity.packaging" v-text="commodity.packaging" :title="commodity.packaging"></div>
  60. <div class="package" v-if="!commodity.packaging && !commodity.produceDate">—</div>
  61. <!--<div class="date" v-if='commodity.produceDate' v-text="commodity.produceDate" :title="commodity.produceDate">2016-12-01</div>-->
  62. </td>
  63. <td style="text-align: left;vertical-align: middle;">
  64. <div class="goods" v-if="commodity.reserve">
  65. 库存:<span v-text="commodity.reserve" :title="commodity.reserve">31500</span>
  66. </div>
  67. <div v-if="!commodity.reserve" style="text-align: center;margin-left: 0;"><span>—</span></div>
  68. <div class="from" v-if="commodity.reserve && commodity.reserve>0">
  69. 起拍:<span v-if="commodity.minBuyQty" v-text="commodity.minBuyQty" :title="commodity.minBuyQty">300</span>
  70. </div>
  71. <div class="can-div-sell" v-if="commodity.reserve" v-text="commodity.breakUp?'可拆卖':'不可拆卖'"></div>
  72. </td>
  73. <td>
  74. <div class="amount">
  75. <div v-for="price in commodity.prices" v-text="price.start + '+'" :title="price.start + '+'"></div>
  76. </div>
  77. <div class="price">
  78. <div v-show="!commodity.prices || !commodity.prices.length">
  79. <span>—</span>
  80. </div>
  81. <template v-if="commodity.currencyName === 'RMB'">
  82. <div v-for="price in commodity.prices" :title="'¥' + price.rMBPrice">¥{{price.rMBPrice | currency}}</div>
  83. </template>
  84. <template v-else>
  85. <div v-for="price in commodity.prices" :title="'$' + price.uSDPrice">${{price.uSDPrice | currency}}</div>
  86. </template>
  87. </div>
  88. </td>
  89. <td>
  90. <div v-if="commodity.b2cMinDelivery">
  91. <span v-if="commodity.b2cMinDelivery != commodity.b2cMaxDelivery" v-text="commodity.b2cMinDelivery + '-' + commodity.b2cMaxDelivery" :title="commodity.b2cMinDelivery + '-' + commodity.b2cMaxDelivery"></span>
  92. <span v-if="commodity.b2cMinDelivery == commodity.b2cMaxDelivery" v-text="commodity.b2cMinDelivery" :title="commodity.b2cMinDelivery"></span>
  93. </div>
  94. <div v-if="!commodity.b2cMinDelivery"><span>—</span></div>
  95. </td>
  96. <td>
  97. <div v-if="commodity.attach">
  98. <a @click="goAttach(commodity.attach, $event)" target="_blank"><img src="/images/store/common/pdf.png" alt=""/></a>
  99. </div>
  100. <div v-if="!commodity.attach">—</div>
  101. </td>
  102. <td>
  103. <buy :item="commodity"></buy>
  104. </td>
  105. </tr>
  106. <tr class="active-empty" v-if="!commodities.content || commodities.content.length == 0">
  107. <td colspan="10" style="height: 880px;">
  108. <div class="text-center">
  109. <div class="col-xs-offset-3 col-xs-2">
  110. <img src="/images/brandList/empty-cart.jpg">
  111. </div>
  112. <div class="col-xs-4 txt-info">
  113. <p class="grey f16"> 暂无产品信息</p>
  114. <i class="iconfont" v-if="emptyShow === false">&#xe610;</i>&nbsp;<a v-if="emptyShow === false" href="/">返回首页</a>
  115. <img v-if="emptyShow === true" src="/images/brandList/upload.png">&nbsp;<a v-if="emptyShow === true" href="/vendor#/vendor_upload?type=company" target="_blank">马上去上传</a>
  116. </div>
  117. </div>
  118. </td>
  119. </tr>
  120. </tbody>
  121. </table>
  122. <div style="float: right;margin-right: 12px;">
  123. <page :total="commodities.totalElements" :page-size="pageParams.count"
  124. :current="pageParams.page" @childEvent="handleCurrentChange"></page>
  125. </div>
  126. <link-saler-box
  127. :tel="tel"
  128. v-if="showLinkBox"
  129. @cancelAction="showLinkBox = false">
  130. </link-saler-box>
  131. </div>
  132. </div>
  133. </div>
  134. </template>
  135. <script>
  136. function getAllLeafIds (kind) {
  137. if (!kind) {
  138. return null
  139. }
  140. if (kind.isLeaf === 1) {
  141. return kind.id
  142. } else {
  143. if (!kind.children || kind.children.length === 0) {
  144. return null
  145. }
  146. let ids = []
  147. for (let i = 0; i < kind.children.length; i++) {
  148. ids.push(getAllLeafIds(kind.children[i]))
  149. }
  150. return ids.join(',')
  151. }
  152. }
  153. import Buy from '~components/common/buyOrCar/buyComponent.vue'
  154. import Page from '~components/common/page/pageComponent.vue'
  155. import LinkSalerBox from '~components/common/LinkSalerBox.vue'
  156. export default {
  157. name: 'commodity-list',
  158. props: {
  159. kinds: {},
  160. kindIds: {
  161. type: String,
  162. default: Boolean
  163. },
  164. kindItem: {
  165. type: Object,
  166. default: {}
  167. }
  168. },
  169. components: {
  170. Buy,
  171. Page,
  172. LinkSalerBox
  173. },
  174. data () {
  175. return {
  176. defaultProps: {
  177. children: 'children',
  178. label: 'nameCn'
  179. },
  180. pageParams: {
  181. page: 1,
  182. count: 10
  183. },
  184. searchCode: '',
  185. parentKindId: 0,
  186. ids: null,
  187. showLinkBox: false,
  188. tel: '',
  189. nameCn02: '全部',
  190. nameCn03: ''
  191. }
  192. },
  193. filters: {
  194. currency: function (num) {
  195. if (typeof num === 'number') {
  196. if (num <= 0.000001) {
  197. num = 0.000001
  198. } else {
  199. if (num.toString().indexOf('.') === -1) {
  200. num += '.00'
  201. } else {
  202. let inputStr = num.toString()
  203. let arr = inputStr.split('.')
  204. let floatNum = arr[1]
  205. if (floatNum.length > 6) {
  206. num = inputStr.substring(0, arr[0].length + 7)
  207. if (Number(floatNum.charAt(6)) > 4) {
  208. num = (Number(num) * 1000000 + 1) / 1000000
  209. }
  210. } else if (floatNum.length === 1) {
  211. num = num + '0'
  212. }
  213. }
  214. }
  215. }
  216. return num
  217. }
  218. },
  219. computed: {
  220. commodities () {
  221. return this.$store.state.shop.storeInfo.storeCommodity.data
  222. },
  223. storeInfo () {
  224. return this.$store.state.shop.storeInfo.store.data
  225. },
  226. user () {
  227. return this.$store.state.option.user
  228. },
  229. tab () {
  230. return this.$store.state.chat.tab.tab.data
  231. },
  232. isConsignment () {
  233. return this.storeInfo.type === 'CONSIGNMENT'
  234. },
  235. storeStatus () {
  236. return this.$store.state.option.storeStatus.data
  237. },
  238. emptyShow () {
  239. let loggedStatus = false
  240. if (this.user.logged && this.user.data.enterprise.uu) {
  241. if (this.storeStatus.uuid === this.storeInfo.uuid) {
  242. loggedStatus = true
  243. } else {
  244. loggedStatus = false
  245. }
  246. } else {
  247. loggedStatus = false
  248. }
  249. return loggedStatus
  250. },
  251. enterprise () {
  252. let ens = this.user.data.enterprises
  253. if (ens && ens.length) {
  254. return ens.find(item => item.current) || {enName: '个人账户'}
  255. } else {
  256. return {enName: '个人账户'}
  257. }
  258. }
  259. },
  260. watch: {
  261. kinds: {
  262. handler: function (val) {
  263. if (val) {
  264. val.forEach((item) => {
  265. this.KindsNameChange(item)
  266. })
  267. }
  268. },
  269. immediate: true
  270. },
  271. kindIds: {
  272. handler: function (val) {
  273. this.ids = val
  274. this.pageParams.page = 1
  275. this.pageCommodity(this.pageParams, this.ids)
  276. }
  277. },
  278. kindItem: {
  279. handler: function (val) {
  280. if (val.kinds === null || val.kind === null) return
  281. if (val.kinds.level === 2) {
  282. this.nameCn02 = val.kinds.nameCn
  283. if (val.kinds.nameCn === val.kind.nameCn) {
  284. this.nameCn03 = ''
  285. }
  286. }
  287. if (val.kind.level === 3) {
  288. this.nameCn03 = val.kind.nameCn
  289. }
  290. }
  291. }
  292. },
  293. methods: {
  294. sendprove: function () {
  295. if (this.user.logged) {
  296. if (this.enterprise && this.enterprise.isVendor === 313) {
  297. window.open('/vendor#/vendor_upload')
  298. } else {
  299. this.$router.push('/register-saler')
  300. }
  301. } else {
  302. this.$router.push('/auth/login?returnUrl=' + window.location.href)
  303. }
  304. },
  305. goLink: function () {
  306. this.baseUtils.goLinkUser(this, this.storeInfo.enUU)
  307. },
  308. KindsNameChange: function (obj) {
  309. obj.nameCn += (obj.count ? ` (${obj.count})` : '')
  310. if (obj.children && obj.children.length) {
  311. obj.children.forEach((item) => {
  312. this.KindsNameChange(item)
  313. })
  314. }
  315. },
  316. goAttach: function (url, event) {
  317. event.stopPropagation()
  318. if (this.user.logged) {
  319. if (url && url !== '1') {
  320. window.open(url)
  321. } else {
  322. this.$message.error('规格书地址错误')
  323. }
  324. } else {
  325. this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
  326. if (response.data) {
  327. window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  328. }
  329. })
  330. }
  331. },
  332. handlerCurrentNode (data, node) {
  333. this.searchCode = ''
  334. if (this.parentKindId === data.id) {
  335. this.parentKindId = 0
  336. this.ids = null
  337. } else {
  338. if (data.level === 1) {
  339. this.parentKindId = data.id
  340. }
  341. this.ids = getAllLeafIds(data)
  342. }
  343. this.pageParams.page = 1
  344. this.pageCommodity(this.pageParams, this.ids)
  345. },
  346. onNodeCollapse () {
  347. this.parentKindId = ''
  348. },
  349. goodsSearch (keyword) {
  350. this.pageParams.page = 1
  351. this.pageCommodity(this.pageParams, this.ids, keyword)
  352. },
  353. async pageCommodity (pageParams, kindId, keyword) {
  354. // pageCommodity (pageParams, kindId, keyword) {
  355. let params = { storeid: process.env.pcbId, origin: 'store', kindUuid: kindId, code: keyword }
  356. params.page = pageParams.page
  357. params.count = pageParams.count
  358. try {
  359. let { data } = await this.$http.get('/api/commodity/commodities', { params })
  360. this.$store.commit('shop/storeInfo/GET_STORE_COMMODITY_SUCCESS', data)
  361. } catch (err) {
  362. this.$store.commit('shop/storeInfo/GET_STORE_COMMODITY_FAILURE', err)
  363. }
  364. },
  365. handleCurrentChange (page) {
  366. this.pageParams.page = page
  367. this.pageCommodity(this.pageParams, this.ids, this.searchCode)
  368. },
  369. isSpecificPriceTag: function (tag) {
  370. return tag && tag.indexOf('特价') !== -1
  371. },
  372. goBatchDetail (type) {
  373. window.open('/store/productDetail/' + type.batchCode)
  374. },
  375. goBrandDetail (url, event) {
  376. event.stopPropagation()
  377. window.open(url)
  378. }
  379. }
  380. }
  381. </script>
  382. <style>
  383. #goods-list-fragment{
  384. width: 100%;
  385. background: #ece9ec;
  386. /*padding-top: 20px;*/
  387. }
  388. #goods-list-fragment .container{
  389. width: 965px;
  390. padding: 0;
  391. /*height: 738px;*/
  392. background: #ece9ec;
  393. }
  394. /* 产品分类调整*/
  395. #goods-list-fragment .category-content{
  396. max-height: 496px;
  397. min-height: 224px;
  398. overflow-y: scroll;
  399. overflow-x: hidden;
  400. position: relative;
  401. }
  402. #goods-list-fragment .category-content .empty{
  403. display: block;
  404. width: 56px;
  405. height: 16px;
  406. position: absolute;
  407. top: 50%;
  408. left: 50%;
  409. transform: translate(-28px, -8px);
  410. color: #5e7382;
  411. }
  412. .category-content el-tree{
  413. /*border: none;*/
  414. }
  415. .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content,.el-tree-node:hover{
  416. background: none !important;
  417. }
  418. .el-tree-node__content:hover{
  419. background: none !important;
  420. }
  421. .el-tree-node__content:hover span{
  422. color: #3c7df3;
  423. }
  424. .el-tree-node__content:hover span:last-child {
  425. /*text-decoration: underline;*/
  426. }
  427. .el-pagination .el-pager li.active{
  428. background-color: #5078cb;
  429. border-color: #337ab7;
  430. }
  431. .el-tree-node__expand-icon{
  432. margin-left: 3px;
  433. font-family: "iconfont" !important;
  434. font-size: 14px;
  435. font-style: normal;
  436. -webkit-font-smoothing: antialiased;
  437. width: inherit;
  438. height: inherit;
  439. border: inherit;
  440. font-weight: bold;
  441. text-shadow: -1px 0px 0 #333;
  442. margin-right: 3px !important;
  443. }
  444. .el-tree-node__content{
  445. line-height: 30px;
  446. height: 30px;
  447. }
  448. .el-tree-node__expand-icon.is-leaf{
  449. visibility: hidden;
  450. }
  451. .el-tree-node__expand-icon:before{
  452. content: "\E621";
  453. }
  454. #goods-list-fragment .category-title {
  455. height: 34px;
  456. background-color: #3c7df5;
  457. font-size: 16px;
  458. color: rgb(255,255,255);
  459. text-align: center;
  460. border-radius: 5px;
  461. }
  462. #goods-list-fragment .category-content li {
  463. line-height: 33px;
  464. font-size: 14px;
  465. color: #333;
  466. float: left;
  467. width: 100%;
  468. padding-left: 10px;
  469. }
  470. #goods-list-fragment .category-content li a {
  471. display: block;
  472. padding-left: 15px;
  473. text-decoration: none;
  474. color: #333;
  475. /* background:url("static/img/store/default/openblackR.png") no-repeat left; */
  476. }
  477. #goods-list-fragment .category-content li a:hover{
  478. color: #5078cb;
  479. cursor: pointer;
  480. }
  481. #goods-list-fragment .category-content ul.list-body {
  482. display: none;
  483. color: #666;
  484. }
  485. #goods-list-fragment .category-content ul.list-body.active {
  486. display: block;
  487. }
  488. #goods-list-fragment .category-content ul.list-body li {
  489. float: none;
  490. background-image: none;
  491. min-height: 26px;
  492. line-height: 26px;
  493. font-size: 12px;
  494. }
  495. #goods-list-fragment .category-content ul.list-body li a {
  496. padding-left: 15px;
  497. display: block;
  498. color: rgb(50,50,50);
  499. background: none;
  500. }
  501. #goods-list-fragment .category-content ul.list-body li a:hover {
  502. color: #5078cb;
  503. cursor: pointer;
  504. }
  505. #goods-list-fragment .category-content ul.list-body li a.cur {
  506. text-decoration: none;
  507. font-size: 14px;
  508. /* background:url("static/img/store/default/openblackR.png") no-repeat left; */
  509. }
  510. #goods-list-fragment .title-area {
  511. margin-bottom: 30px;
  512. width: 250px;
  513. float: left;
  514. background: #fff;
  515. }
  516. #goods-list-fragment .category-content{
  517. border: 1px solid #e8e8e8;
  518. }
  519. /* goods-area */
  520. #goods-list-fragment .goods-area {
  521. /*margin-left: 3px;*/
  522. float: left;
  523. /*margin-bottom: 30px;*/
  524. background: #fff;
  525. margin: 0 auto 24px;
  526. height: 914px;
  527. }
  528. #goods-list-fragment .goods-area .btn-line {
  529. border-radius: 0;
  530. }
  531. #goods-list-fragment .btn-info.btn-line {
  532. background-color: #5078CB;
  533. color: #fff;
  534. font-weight: 600;
  535. }
  536. #goods-list-fragment .btn-line {
  537. height: 34px;
  538. width: 150px;
  539. border: 1px solid #5078cb;
  540. background-color: #fff;
  541. color: rgb(80,120,203);
  542. font-weight: 600;
  543. }
  544. #goods-list-fragment .btn-line:hover {
  545. background-color: #5078CB;
  546. color: #fff;
  547. }
  548. /* 物品列表 */
  549. #goods-list-fragment .goodslist .brand-code {
  550. font-size: 12px;
  551. text-align: center;
  552. position: relative;
  553. }
  554. #goods-list-fragment #search_btn {
  555. background: #2496f1;
  556. color: #FFF;
  557. border-bottom-right-radius: 3px;
  558. border-top-right-radius: 3px;
  559. border-bottom-left-radius: 0px;
  560. border-top-left-radius: 0px;
  561. height: 28px;
  562. width: 69px;
  563. padding-right: 50px;
  564. }
  565. #goods-list-fragment .sendprove {
  566. width: 110px;
  567. height: 28px;
  568. color: #2496f1;
  569. font-size: 14px;
  570. background-color: #fff;
  571. border-radius: 3px;
  572. float: right;
  573. margin-left: 10px;
  574. border: 1px solid #2496f1;
  575. }
  576. #goods-list-fragment .sendprove:hover{
  577. background-color: #2496f1;
  578. border-color: #2496f1;
  579. color: #fff;
  580. }
  581. .btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus {
  582. outline: none;
  583. border-color: transparent;
  584. }
  585. #goods-list-fragment #search_input {
  586. font-size: 14px;
  587. height: 28px;
  588. line-height: 28px;
  589. width: 189px;
  590. float: right;
  591. border-bottom-left-radius: 3px;
  592. border-top-left-radius: 3px;
  593. border: 1px solid #2496f1;
  594. }
  595. #goods-list-fragment .brand-code .code {
  596. font-weight: 600;
  597. word-break: break-all;
  598. overflow: hidden;
  599. text-overflow: ellipsis;
  600. display: -webkit-box;
  601. -webkit-line-clamp: 2;
  602. -webkit-box-orient: vertical;
  603. }
  604. #goods-list-fragment .brand-code .spec {
  605. word-break: break-all;
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. display: -webkit-box;
  609. -webkit-line-clamp: 2;
  610. -webkit-box-orient: vertical;
  611. }
  612. #goods-list-fragment .brand-code .brand a {
  613. color: #2496f1;
  614. }
  615. #goods-list-fragment .brand-code .brand span{
  616. color: #2496f1;
  617. word-break: break-all;
  618. overflow: hidden;
  619. text-overflow: ellipsis;
  620. display: -webkit-box;
  621. -webkit-line-clamp: 2;
  622. -webkit-box-orient: vertical;
  623. }
  624. #goods-list-fragment .goodslist thead tr{
  625. background-color: #2496f1;
  626. height: 34px;
  627. }
  628. #goods-list-fragment .goodslist tr th {
  629. color: #fefefe;
  630. font-size: 13px;
  631. }
  632. #goods-list-fragment .goodslist tr th:first-child{
  633. border-top-left-radius: 5px;
  634. border-bottom-left-radius: 5px;
  635. }
  636. #goods-list-fragment .goodslist tr th:last-child{
  637. border-top-right-radius: 5px;
  638. border-bottom-right-radius: 5px;
  639. }
  640. #goods-list-fragment .goodslist tr th div{
  641. text-align: center;
  642. border-right: 1px solid #fff;
  643. }
  644. #goods-list-fragment .goodslist tr th:last-child div{
  645. border-right: none;
  646. }
  647. #goodslist-content .goods,#goodslist-content .from, #goodslist-content .can-div-sell {
  648. padding-left: 20px;
  649. }
  650. #goodslist-content .goods span{
  651. /*color: #f01010;*/
  652. }
  653. #goodslist-content .amount {
  654. width: 50%;
  655. float: left;
  656. padding-left: 30px;
  657. text-align:left;
  658. }
  659. #goodslist-content .amount div{
  660. overflow: hidden;
  661. text-overflow: ellipsis;
  662. white-space: nowrap;
  663. }
  664. #goodslist-content .amount div:last-child{
  665. /*color: #f01010;*/
  666. }
  667. #goodslist-content .price {
  668. width: 50%;
  669. float:right;
  670. text-align:left;
  671. }
  672. #goodslist-content .price div {
  673. overflow: hidden;
  674. text-overflow: ellipsis;
  675. white-space: nowrap;
  676. }
  677. #goodslist-content .price div:last-child{
  678. color: #f01010;
  679. }
  680. #goods-list-fragment .category-content a.selected-node,
  681. #goods-list-fragment .category-content ul.list-body li a.selected-node {
  682. color: #5078cb;
  683. }
  684. #goods-list-fragment .category-content a.selected-parent-node,
  685. #goods-list-fragment .category-content ul.list-body li a.selected-parent-node {
  686. /* background:url("static/img/store/default/openblack.png") no-repeat left; */
  687. }
  688. #goods-list-fragment .goodslist tbody>tr:hover{
  689. background: #ecf2fd;
  690. }
  691. #goods-list-fragment .goodslist tbody>tr {
  692. border: 1px solid #e8e8e8;
  693. }
  694. #goods-list-fragment .goodslist tbody>tr td.commodity-icon .img{
  695. border: 1px solid #e8e8e8;
  696. margin: 10px;
  697. width: 80px;
  698. height: 80px;
  699. overflow: hidden;
  700. line-height: 75px;
  701. }
  702. #goods-list-fragment .goodslist tbody>tr td.commodity-icon .img>img {
  703. width: 80px;
  704. height: 80px;
  705. }
  706. #goods-list-fragment .goodslist tbody>tr td.brand-code .sellout-store-commodity {
  707. position: absolute;
  708. right: 0;
  709. bottom: 0;
  710. }
  711. #goods-list-fragment .goodslist tbody>tr td.brand-code .specific-price-tag {
  712. position: absolute;
  713. top: 0;
  714. left: 0;
  715. }
  716. #goods-list-fragment .goodslist td {
  717. font-size: 12px;
  718. color: #333;
  719. text-align: center;
  720. line-height: 20px;
  721. height: 88px;
  722. }
  723. #goods-list-fragment .goodslist tbody>tr td .can-div-sell {
  724. color: #333;
  725. }
  726. /* 物品列表按钮 */
  727. #goods-list-fragment .btn-buy-now {
  728. background-color: #2496f1;
  729. color: #fff;
  730. width: 80px;
  731. height: 24px;
  732. font-size: 12px;
  733. border: 1px solid #2496f1;
  734. border-radius: 2px;
  735. }
  736. #goods-list-fragment .btn-add-cart {
  737. margin-top: 10px;
  738. color: #2496f1;
  739. width: 80px;
  740. height: 24px;
  741. font-size: 12px;
  742. background-color: #fff;
  743. border-radius: 2px;
  744. border: 1px solid #2496f1;
  745. }
  746. #goods-list-fragment .btn-buy-now:hover{
  747. background: #1278c7;
  748. border: 1px solid #1278c7;
  749. }
  750. #goods-list-fragment .btn-add-cart:hover{
  751. background-color: #1278c7;
  752. color: #fff;
  753. }
  754. .no-record{
  755. font-size: 14px;
  756. color: #999;
  757. text-align: center;
  758. line-height: 200px;
  759. }
  760. .no-record i{
  761. margin-right: 5px;
  762. }
  763. .active-empty:hover{
  764. background-color: #fff!important;
  765. }
  766. .text-center{
  767. text-align: center;
  768. margin-top: 30px;
  769. }
  770. .text-center .col-xs-2 img{
  771. margin: 55px 0 85px 135px;
  772. vertical-align: middle;
  773. }
  774. .text-center .txt-info{
  775. font-size: 14px;
  776. margin: 50px 0px 0px -50px;
  777. }
  778. .text-center .col-xs-4 p{
  779. color: #999;
  780. margin: 11px 0px 4px -6px;
  781. }
  782. .text-center .txt-info i{
  783. color: #5078cb;
  784. }
  785. .text-center .txt-info a{
  786. font-size: 14px;
  787. color: #5078cb;
  788. }
  789. .text-center .col-xs-5 img{
  790. margin-left: -235px;
  791. }
  792. .goodslist{
  793. margin-bottom: 24px;
  794. }
  795. .remind-area {
  796. position: absolute;
  797. top: 1005px;
  798. }
  799. .remind-area img {
  800. margin-right: 12px;
  801. }
  802. .remind-area .link-seller {
  803. font-size: 12px;
  804. color: #fff;
  805. line-height: 20px;
  806. height: 20px;
  807. padding: 0 7px;
  808. background: #2496f1;
  809. border-radius: 2px;
  810. }
  811. @font-face {
  812. font-family: 'iconfont'; /* project id 357960 */
  813. src: url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.eot');
  814. src: url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.eot?#iefix') format('embedded-opentype'),
  815. url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.woff') format('woff'),
  816. url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.ttf') format('truetype'),
  817. url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.svg#iconfont') format('svg');
  818. }
  819. <!-- 分页 -->
  820. #goods-list-fragment .el-pagination .el-pager li.active {
  821. border-color: #5078cb !important;
  822. background-color: #5078cb !important;
  823. }
  824. #goods-list-fragment .goods-area div>.page-wrap{
  825. margin: 0;
  826. }
  827. #goods-list-fragment .container .content-adv .title-adv span{
  828. font-size: 16px;
  829. color: #333;
  830. font-weight: normal;
  831. margin-right: 10px;
  832. }
  833. #goods-list-fragment .container .content-adv .title-adv span:first-child{
  834. margin-left: 0;
  835. }
  836. #goods-list-fragment .container .content-adv .title-adv span i{
  837. margin-right: 10px;
  838. }
  839. </style>