CommodityList.vue 27 KB

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