CommodityList.vue 23 KB

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