CommodityList.vue 23 KB

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