CommodityList.vue 23 KB

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