CommodityList.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. <template>
  2. <div id="goods-list-fragment">
  3. <div class="container">
  4. <div style="margin: 15px 0;width: 100%;padding-right: 10px;">
  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. &lt;!&ndash;<span class="custom-tree-node" slot-scope="{ node, data }">&ndash;&gt;
  23. &lt;!&ndash;<span>{{ node.nameCn }}</span>&ndash;&gt;
  24. &lt;!&ndash;<span>{{ node.count }}</span>&ndash;&gt;
  25. &lt;!&ndash;</span>&ndash;&gt;
  26. </el-tree>
  27. &lt;!&ndash;<span class="empty" v-if="!kinds[0].children || !kinds[0].children.length">暂无数据</span>&ndash;&gt;
  28. </div>
  29. </div>-->
  30. <!-- 产品列表 -->
  31. <div class="goods-area">
  32. <!-- 列表展示 -->
  33. <table class="goodslist" style="width: 965px;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-reminds.png" alt="">
  140. 所有报价、库存信息的真实性及准确性均由店铺负责,如有疑问请点击
  141. <a @click="goLink" class="link-seller">联系卖家</a>
  142. </div>
  143. <div style="float: right;margin-right: 12px;">
  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. return {
  187. defaultProps: {
  188. children: 'children',
  189. label: 'nameCn'
  190. },
  191. pageParams: {
  192. page: 1,
  193. count: 6
  194. },
  195. searchCode: '',
  196. parentKindId: 0,
  197. ids: null,
  198. showLinkBox: false,
  199. tel: ''
  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. watch: {
  270. kinds: {
  271. handler: function (val) {
  272. if (val) {
  273. val.forEach((item) => {
  274. this.KindsNameChange(item)
  275. })
  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: 965px;
  399. padding: 0;
  400. /*height: 738px;*/
  401. background: #ece9ec;
  402. }
  403. /* 产品分类调整*/
  404. #goods-list-fragment .category-content{
  405. max-height: 496px;
  406. min-height: 224px;
  407. overflow-y: scroll;
  408. overflow-x: hidden;
  409. position: relative;
  410. }
  411. #goods-list-fragment .category-content .empty{
  412. display: block;
  413. width: 56px;
  414. height: 16px;
  415. position: absolute;
  416. top: 50%;
  417. left: 50%;
  418. transform: translate(-28px, -8px);
  419. color: #5e7382;
  420. }
  421. .category-content el-tree{
  422. /*border: none;*/
  423. }
  424. .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content,.el-tree-node:hover{
  425. background: none !important;
  426. }
  427. .el-tree-node__content:hover{
  428. background: none !important;
  429. }
  430. .el-tree-node__content:hover span{
  431. color: #3c7df3;
  432. }
  433. .el-tree-node__content:hover span:last-child {
  434. /*text-decoration: underline;*/
  435. }
  436. .el-pagination .el-pager li.active{
  437. background-color: #5078cb;
  438. border-color: #337ab7;
  439. }
  440. .el-tree-node__expand-icon{
  441. margin-left: 3px;
  442. font-family: "iconfont" !important;
  443. font-size: 14px;
  444. font-style: normal;
  445. -webkit-font-smoothing: antialiased;
  446. width: inherit;
  447. height: inherit;
  448. border: inherit;
  449. font-weight: bold;
  450. text-shadow: -1px 0px 0 #333;
  451. margin-right: 3px !important;
  452. }
  453. .el-tree-node__content{
  454. line-height: 30px;
  455. height: 30px;
  456. }
  457. .el-tree-node__expand-icon.is-leaf{
  458. visibility: hidden;
  459. }
  460. .el-tree-node__expand-icon:before{
  461. content: "\E621";
  462. }
  463. #goods-list-fragment .category-title {
  464. height: 34px;
  465. background-color: #3c7df5;
  466. font-size: 16px;
  467. color: rgb(255,255,255);
  468. text-align: center;
  469. border-radius: 5px;
  470. }
  471. #goods-list-fragment .category-content li {
  472. line-height: 33px;
  473. font-size: 14px;
  474. color: #333;
  475. float: left;
  476. width: 100%;
  477. padding-left: 10px;
  478. }
  479. #goods-list-fragment .category-content li a {
  480. display: block;
  481. padding-left: 15px;
  482. text-decoration: none;
  483. color: #333;
  484. /* background:url("static/img/store/default/openblackR.png") no-repeat left; */
  485. }
  486. #goods-list-fragment .category-content li a:hover{
  487. color: #5078cb;
  488. cursor: pointer;
  489. }
  490. #goods-list-fragment .category-content ul.list-body {
  491. display: none;
  492. color: #666;
  493. }
  494. #goods-list-fragment .category-content ul.list-body.active {
  495. display: block;
  496. }
  497. #goods-list-fragment .category-content ul.list-body li {
  498. float: none;
  499. background-image: none;
  500. min-height: 26px;
  501. line-height: 26px;
  502. font-size: 12px;
  503. }
  504. #goods-list-fragment .category-content ul.list-body li a {
  505. padding-left: 15px;
  506. display: block;
  507. color: rgb(50,50,50);
  508. background: none;
  509. }
  510. #goods-list-fragment .category-content ul.list-body li a:hover {
  511. color: #5078cb;
  512. cursor: pointer;
  513. }
  514. #goods-list-fragment .category-content ul.list-body li a.cur {
  515. text-decoration: none;
  516. font-size: 14px;
  517. /* background:url("static/img/store/default/openblackR.png") no-repeat left; */
  518. }
  519. #goods-list-fragment .title-area {
  520. margin-bottom: 30px;
  521. width: 250px;
  522. float: left;
  523. background: #fff;
  524. }
  525. #goods-list-fragment .category-content{
  526. border: 1px solid #e8e8e8;
  527. }
  528. /* goods-area */
  529. #goods-list-fragment .goods-area {
  530. /*margin-left: 3px;*/
  531. float: left;
  532. /*margin-bottom: 30px;*/
  533. background: #fff;
  534. margin: 0 auto 24px;
  535. }
  536. #goods-list-fragment .goods-area .btn-line {
  537. border-radius: 0;
  538. }
  539. #goods-list-fragment .btn-info.btn-line {
  540. background-color: #5078CB;
  541. color: #fff;
  542. font-weight: 600;
  543. }
  544. #goods-list-fragment .btn-line {
  545. height: 34px;
  546. width: 150px;
  547. border: 1px solid #5078cb;
  548. background-color: #fff;
  549. color: rgb(80,120,203);
  550. font-weight: 600;
  551. }
  552. #goods-list-fragment .btn-line:hover {
  553. background-color: #5078CB;
  554. color: #fff;
  555. }
  556. /* 物品列表 */
  557. #goods-list-fragment .goodslist .brand-code {
  558. font-size: 12px;
  559. text-align: center;
  560. position: relative;
  561. }
  562. #goods-list-fragment #search_btn {
  563. background: #3c7cf5;
  564. color: #FFF;
  565. border-bottom-right-radius: 3px;
  566. border-top-right-radius: 3px;
  567. border-bottom-left-radius: 0px;
  568. border-top-left-radius: 0px;
  569. height: 28px;
  570. width: 69px;
  571. padding-right: 50px;
  572. }
  573. #goods-list-fragment .sendprove {
  574. width: 110px;
  575. height: 28px;
  576. color: #3b7cf4;
  577. font-size: 14px;
  578. background-color: #fff;
  579. border-radius: 3px;
  580. float: right;
  581. margin-left: 10px;
  582. border: 1px solid #3b7cf4;
  583. }
  584. .btn:focus,.btn:active:focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn.active.focus {
  585. outline: none;
  586. border-color: transparent;
  587. }
  588. #goods-list-fragment #search_input {
  589. font-size: 14px;
  590. height: 28px;
  591. line-height: 28px;
  592. width: 189px;
  593. float: right;
  594. border-bottom-left-radius: 3px;
  595. border-top-left-radius: 3px;
  596. border: 1px solid #3b7cf4;
  597. }
  598. #goods-list-fragment .brand-code .code {
  599. font-weight: 600;
  600. word-break: break-all;
  601. }
  602. #goods-list-fragment .brand-code .spec {
  603. word-break: break-all;
  604. }
  605. #goods-list-fragment .brand-code .brand a {
  606. color: #3c7df5;
  607. }
  608. #goods-list-fragment .goodslist thead tr{
  609. background-color: #3b7cf4;
  610. height: 34px;
  611. }
  612. #goods-list-fragment .goodslist tr th {
  613. color: #fefefe;
  614. font-size: 13px;
  615. }
  616. #goods-list-fragment .goodslist tr th:first-child{
  617. border-top-left-radius: 5px;
  618. border-bottom-left-radius: 5px;
  619. }
  620. #goods-list-fragment .goodslist tr th:last-child{
  621. border-top-right-radius: 5px;
  622. border-bottom-right-radius: 5px;
  623. }
  624. #goods-list-fragment .goodslist tr th div{
  625. text-align: center;
  626. border-right: 1px solid #fff;
  627. }
  628. #goods-list-fragment .goodslist tr th:last-child div{
  629. border-right: none;
  630. }
  631. #goodslist-content .goods,#goodslist-content .from, #goodslist-content .can-div-sell {
  632. padding-left: 20px;
  633. }
  634. #goodslist-content .goods span{
  635. color: #f01010;
  636. }
  637. #goodslist-content .amount {
  638. width: 60%;
  639. float: left;
  640. padding-left: 30px;
  641. text-align:left;
  642. }
  643. #goodslist-content .amount div:last-child{
  644. color: #f01010;
  645. }
  646. #goodslist-content .price {
  647. width: 40%;
  648. float:right;
  649. text-align:left;
  650. }
  651. #goods-list-fragment .category-content a.selected-node,
  652. #goods-list-fragment .category-content ul.list-body li a.selected-node {
  653. color: #5078cb;
  654. }
  655. #goods-list-fragment .category-content a.selected-parent-node,
  656. #goods-list-fragment .category-content ul.list-body li a.selected-parent-node {
  657. /* background:url("static/img/store/default/openblack.png") no-repeat left; */
  658. }
  659. #goods-list-fragment .goodslist tbody>tr:hover{
  660. background: #ecf2fd;
  661. }
  662. #goods-list-fragment .goodslist tbody>tr {
  663. border: 1px solid #e8e8e8;
  664. }
  665. #goods-list-fragment .goodslist tbody>tr td.commodity-icon .img{
  666. border: 1px solid #e8e8e8;
  667. margin: 10px;
  668. width: 80px;
  669. height: 80px;
  670. overflow: hidden;
  671. line-height: 75px;
  672. }
  673. #goods-list-fragment .goodslist tbody>tr td.commodity-icon .img>img {
  674. width: 80px;
  675. height: 80px;
  676. }
  677. #goods-list-fragment .goodslist tbody>tr td.brand-code .sellout-store-commodity {
  678. position: absolute;
  679. right: 0;
  680. bottom: 0;
  681. }
  682. #goods-list-fragment .goodslist tbody>tr td.brand-code .specific-price-tag {
  683. position: absolute;
  684. top: 0;
  685. left: 0;
  686. }
  687. #goods-list-fragment .goodslist td {
  688. font-size: 12px;
  689. color: #333;
  690. text-align: center;
  691. line-height: 20px;
  692. height: 88px;
  693. }
  694. #goods-list-fragment .goodslist tbody>tr td .can-div-sell {
  695. color: #333;
  696. }
  697. /* 物品列表按钮 */
  698. #goods-list-fragment .btn-buy-now {
  699. background-color: #3c7cf5;
  700. color: #fff;
  701. width: 80px;
  702. height: 24px;
  703. font-size: 12px;
  704. border: 1px solid #3c7cf5;
  705. border-radius: 2px;
  706. }
  707. #goods-list-fragment .btn-add-cart {
  708. margin-top: 10px;
  709. color: #3b7cf4;
  710. width: 80px;
  711. height: 24px;
  712. font-size: 12px;
  713. background-color: #fff;
  714. border-radius: 2px;
  715. border: 1px solid #3b7cf4;
  716. }
  717. #goods-list-fragment .btn-buy-now:hover{
  718. background: #214797;
  719. border: 1px solid #214797;
  720. }
  721. #goods-list-fragment .btn-add-cart:hover{
  722. background-color: #5078CB;
  723. color: #fff;
  724. }
  725. .no-record{
  726. font-size: 14px;
  727. color: #999;
  728. text-align: center;
  729. line-height: 200px;
  730. }
  731. .no-record i{
  732. margin-right: 5px;
  733. }
  734. .active-empty:hover{
  735. background-color: #fff!important;
  736. }
  737. .text-center{
  738. text-align: center;
  739. margin-top: 30px;
  740. }
  741. .text-center .col-xs-2 img{
  742. margin: 55px 0 85px 135px;
  743. vertical-align: middle;
  744. }
  745. .text-center .txt-info{
  746. font-size: 14px;
  747. margin: 50px 0px 0px -50px;
  748. }
  749. .text-center .col-xs-4 p{
  750. color: #999;
  751. margin: 11px 0px 4px -6px;
  752. }
  753. .text-center .txt-info i{
  754. color: #5078cb;
  755. }
  756. .text-center .txt-info a{
  757. font-size: 14px;
  758. color: #5078cb;
  759. }
  760. .text-center .col-xs-5 img{
  761. margin-left: -235px;
  762. }
  763. .goodslist{
  764. margin-bottom: 24px;
  765. }
  766. .remind-area {
  767. font-size: 12px;
  768. color: #666;
  769. padding-left: 12px;
  770. }
  771. .remind-area img {
  772. margin-right: 12px;
  773. }
  774. .remind-area .link-seller {
  775. font-size: 12px;
  776. color: #fff;
  777. line-height: 20px;
  778. height: 20px;
  779. padding: 0 7px;
  780. background: #3c7cf7;
  781. border-radius: 2px;
  782. }
  783. @font-face {
  784. font-family: 'iconfont'; /* project id 357960 */
  785. src: url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.eot');
  786. src: url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.eot?#iefix') format('embedded-opentype'),
  787. url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.woff') format('woff'),
  788. url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.ttf') format('truetype'),
  789. url('//at.alicdn.com/t/font_27kjyd082ezpk3xr.svg#iconfont') format('svg');
  790. }
  791. <!-- 分页 -->
  792. #goods-list-fragment .el-pagination .el-pager li.active {
  793. border-color: #5078cb !important;
  794. background-color: #5078cb !important;
  795. }
  796. </style>