CommodityList.vue 24 KB

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