CommodityList.vue 26 KB

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