CommodityList.vue 25 KB

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