CommodityList.vue 24 KB

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