CommodityList.vue 24 KB

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