CommodityList.vue 25 KB

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