GoodList.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787
  1. <template>
  2. <div>
  3. <div>
  4. <div class="tab-filter" >
  5. <div class="fl">&nbsp;&nbsp;| 产品信息(<span class="text-num"></span><span class="text-num" v-text="good_list.total"></span>)</div>
  6. <div class="fr">
  7. <div @click="sortBy('normal1')" :class="activeTag==='normal1'?'active':''"><a >综合排序</a></div>
  8. <div @click="sortBy('normal2')" :class="activeTag==='normal2'?'active':''"><a >库存<i class="fa fa-long-arrow-down" v-show="reserve_asc"></i><i class="fa fa-long-arrow-up" v-show="!reserve_asc"></i></a></div>
  9. <!--<div @click="sortBy('type')" :class="activeTag==='type'?'active':''"><a >型号精确</a></div>-->
  10. <div style="display:none"><a href="">销量</a></div>
  11. <div style="display:none"><a href="">人气</a></div>
  12. <div style="display:none"><a href="">信用</a></div>
  13. <div @click="sortBy('price')" :class="activeTag==='price'?'active':''"><a>价格<i class="fa fa-long-arrow-down" v-show="price_asc"></i><i class="fa fa-long-arrow-up" v-show="!price_asc"></i></a></div>
  14. <div class="price-filter">
  15. <div class="price-input">
  16. <input type="number" min="0" step="0.01" v-model="min_price" class="form-control" placeholder="¥" onfocus="this.placeholder=''" onblur="this.placeholder='¥'" />
  17. <span>-</span>
  18. <input type="number" :min="min_price === ''?0:min_price" step="0.01" v-model="max_price" class="form-control" placeholder="¥" onfocus="this.placeholder=''" onblur="this.placeholder='¥'" />
  19. </div>
  20. <div class="price-hover">
  21. <a @click="clear_price">清空</a>
  22. <a @click="filter_price">确定</a>
  23. </div>
  24. </div>
  25. <div style="display:none;padding-top: 5px; margin-left: 0;">
  26. <select class="select-adder form-control" style="width: 120px;">
  27. <option value="1">发货地</option>
  28. </select>
  29. </div>
  30. <div class="off">
  31. <a @click="list_open=!list_open">
  32. <span v-text="list_open?'收起':'展开'"></span>
  33. <i class="fa fa-angle-down" v-show="!list_open"></i>
  34. <i class="fa fa-angle-up"v-show="list_open"></i>
  35. </a>
  36. </div>
  37. </div>
  38. </div>
  39. <div v-if="list_open">
  40. <table class="product-list" >
  41. <thead>
  42. <tr style="height: 40px;">
  43. <!--<th width="80"></th>-->
  44. <th width="200">品牌/物料名称/型号/规格</th>
  45. <th width="100">包装</th>
  46. <th width="110">卖家名称</th>
  47. <th width="140">库存</th>
  48. <th width="90">梯度/pcs</th>
  49. <th width="90" v-if="!crname_click_flag.rmb_click_flag">香港交货</th>
  50. <th width="110" v-if="!crname_click_flag.usd_click_flag">大陆交货<span style="font-size: 12px;">(含税)</span></th>
  51. <th width="110">交期<span style="font-size: 12px;">(天)</span></th>
  52. <th width="90">规格书</th>
  53. <th width="100">操作</th>
  54. </tr>
  55. </thead>
  56. <tbody id="productList-content">
  57. <tr v-for="item in good_list.content" @click="goUnstandardDetail(item)">
  58. <!--<td>-->
  59. <!--<nuxt-link class="component-img-box" :to="item.batchCode?`/store/${item.storeId}/${item.batchCode}`:`/product/component/${item.uuid}`">-->
  60. <!--&lt;!&ndash; <img :src="item.img?item.img:item.brand&&item.brand.logoUrl?item.brand.logoUrl:'/images/component/default.png'">&ndash;&gt;-->
  61. <!--<img class="component-img" :src="item.batchCode?item.img?item.img:'/images/component/default.png':item.brand&&item.brand.logoUrl?item.brand.logoUrl:'/images/component/default.png'">-->
  62. <!--<img v-if="item.status === 602" class="sellout-flag" src="/images/search/sellsearch-btn1.png.png" alt="">-->
  63. <!--</nuxt-link>-->
  64. <!--</td>-->
  65. <td class="brand-code">
  66. <img v-if="item.status === 602" class="sellout-flag" src="/images/search/sellout-search.png" alt="">
  67. <div class="brand" v-if="item.branduuid" :title="item.brandNameCn || item.brandNameEn"><a @click.stop="goRouter(`/product/brand/${item.branduuid}`)" class="text-num" v-text="item.brandNameCn || item.brandNameEn || '-'"></a></div>
  68. <div class="brand" v-if="!item.branduuid" :title="item.brandNameCn || item.brandNameEn">{{item.brandNameCn || item.brandNameEn || '-'}}</div>
  69. <div class="brand" v-if="item.kindUuid" :title="item.kindNameCn"><a @click.stop="goRouter(`/product/kind/${item.kindUuid}`)" v-text="item.kindNameCn"></a></div>
  70. <div class="brand" v-if="!item.kindUuid" :title="item.kindNameCn">{{item.kindNameCn || '—'}}</div>
  71. <div class="code" v-if="item.code" :title="item.code">
  72. <a v-if="item.uuid" @click.stop="goRouter(`/product/component/${item.uuid}`)" class="f16 text-bold text-num" v-text="item.code"></a>
  73. <span v-if="!item.uuid">{{item.code}}</span>
  74. </div>
  75. <div class="brand" v-if="!item.code"></div>
  76. <div class="brand" :title="item.spec">{{item.spec || '—'}}</div>
  77. </td>
  78. <td>
  79. <div class="package" v-text="item.packaging"></div>
  80. <!--<div class="date" v-text="item.produceDate"></div>-->
  81. <div v-if="!item.packaging"></div>
  82. </td>
  83. <td>
  84. <div v-if="item.storeName">
  85. <a @click.stop="goRouter('/store/' + item.storeid)" v-text="item.storeName"></a>
  86. </div>
  87. <div v-if="!item.storeName"></div>
  88. </td>
  89. <td class="text-left">
  90. <div class="goods" v-if="item.reserve">
  91. 库存:<span v-text="item.reserve"></span>
  92. </div>
  93. <div v-if="!item.reserve" style="text-align: center;margin-left: 0;"><span></span></div>
  94. <div class="from" v-if="item.reserve && item.reserve > 0">
  95. 最小起订量:<span v-text="item.minBuyQty" v-if="item.minBuyQty"></span>
  96. </div>
  97. <!-- <div class="multiple" v-if="item.reserve > 0">
  98. 倍数:<span v-text="item.minPackQty"></span>
  99. </div>-->
  100. <div v-if="item.reserve && item.breakUp" v-text="item.breakUp?'可拆卖':'不可拆卖'"></div>
  101. </td>
  102. <td>
  103. <div v-show="!item.prices">
  104. <span></span>
  105. </div>
  106. <div v-for="price in item.prices">
  107. <span v-text="price.start"></span> +
  108. </div>
  109. </td>
  110. <td v-if="!crname_click_flag.rmb_click_flag">
  111. <div v-show="!(item.currencyName == 'USD') || !item.prices">
  112. <span></span>
  113. </div>
  114. <div v-for="price in item.prices">
  115. <span>{{price.uSDPrice | currency}}</span>
  116. </div>
  117. </td>
  118. <td v-if="!crname_click_flag.usd_click_flag">
  119. <div v-show="!(item.currencyName == 'RMB') || !item.prices">
  120. <span></span>
  121. </div>
  122. <div v-for="price in item.prices">
  123. <span>{{price.rMBPrice | currency}}</span>
  124. </div>
  125. </td>
  126. <td>
  127. <div v-show="!item.b2cMinDelivery">
  128. <span></span>
  129. </div>
  130. <div v-if="item.b2cMinDelivery">交期:
  131. <!--<span v-text="item.b2cMinDelivery + '-' + item.b2cMaxDelivery"></span>-->
  132. <span v-if="item.b2cMinDelivery != item.b2cMaxDelivery" v-text="item.b2cMinDelivery + '-' + item.b2cMaxDelivery"></span>
  133. <span v-if="item.b2cMinDelivery == item.b2cMaxDelivery" v-text="item.b2cMinDelivery"></span>
  134. </div>
  135. </td>
  136. <td>
  137. <span v-if="item.attach"><a @click.stop="goAttach(item.attach, $event)"><img src="/images/store/common/pdf.png" alt=""/></a></span>
  138. <span v-if="!item.attach"></span>
  139. </td>
  140. <td>
  141. <div v-show="!item.reserve">
  142. <span></span>
  143. </div>
  144. <div v-if="item.reserve > 0">
  145. <buy :item="item" :isStoreStyle="false" :disabledFlag="item.status === 602"></buy>
  146. </div>
  147. </td>
  148. </tr>
  149. <!--<tr v-if="!good_list.content || !good_list.content.length">
  150. <td colspan="12">
  151. <div class="empty">
  152. <p class="empty-img">
  153. <img src="/images/brandList/empty-cart.png">
  154. </p>
  155. <div class="empty-info">
  156. <p class="grey"> 暂无产品信息 </p>
  157. <a href="javascript:history.go(-1)"><i class="fa fa-mail-reply fa-xs"></i>返回上一页</a>
  158. </div>
  159. </div>
  160. </td>
  161. </tr>-->
  162. </tbody>
  163. </table>
  164. </div>
  165. </div>
  166. </div>
  167. </template>
  168. <script>
  169. // import Page from '~components/common/page/pageComponent.vue'
  170. import Buy from '~components/common/buyOrCar/buyComponent.vue'
  171. export default {
  172. data () {
  173. return {
  174. list_open: true,
  175. nowPage: 1,
  176. pageSize: 15,
  177. sorting: {},
  178. price_asc: true,
  179. reserve_asc: true,
  180. min_price: '',
  181. max_price: '',
  182. filter: {},
  183. activeTag: 'normal1'
  184. }
  185. },
  186. components: {
  187. // Page,
  188. Buy
  189. },
  190. props: ['crname_click_flag'],
  191. filters: {
  192. currency: function (input) {
  193. if (typeof input === 'number') {
  194. if (input <= 0.000001) {
  195. input = 0.000001
  196. } else {
  197. if (input.toString().indexOf('.') === -1) {
  198. input = input + '.00'
  199. } else {
  200. let inputStr = input.toString()
  201. let arr = inputStr.split('.')
  202. let floatNum = arr[1]
  203. if (floatNum.length > 6) {
  204. input = inputStr.substring(0, arr[0].length + 7)
  205. if (Number(floatNum.charAt(6)) > 4) {
  206. input = (Number(input) * 1000000 + 1) / 1000000
  207. }
  208. } else if (floatNum.length === 1) {
  209. input = input + '0'
  210. }
  211. }
  212. }
  213. }
  214. return input
  215. }
  216. },
  217. watch: {
  218. $route: function (val, oldVal) {
  219. this.filter = {}
  220. this.activeTag = 'normal1'
  221. }
  222. },
  223. computed: {
  224. good_lists () {
  225. return this.$store.state.searchData.searchList.listNew.data
  226. },
  227. good_list () {
  228. return this.good_lists.stock || {}
  229. },
  230. total_count () {
  231. return Math.min(this.good_list.total || 0, 100 * this.pageSize)
  232. },
  233. buy_info () {
  234. return this.$store.state.user.buy.buyInfo.data
  235. },
  236. car_info () {
  237. return this.$store.state.user.car.addCarInfo.data
  238. },
  239. user () {
  240. return this.$store.state.option.user
  241. }
  242. },
  243. methods: {
  244. goAttach: function (url, event) {
  245. event.stopPropagation()
  246. if (this.user.logged) {
  247. if (url && url !== '1') {
  248. window.open(url)
  249. } else {
  250. this.$message.error('规格书地址错误')
  251. }
  252. } else {
  253. this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
  254. if (response.data) {
  255. window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
  256. }
  257. })
  258. }
  259. },
  260. // listenPage: function (changedPage) {
  261. // this.nowPage = changedPage
  262. // this.$emit('pageEvent', this.nowPage)
  263. // },
  264. sortBy: function (param) {
  265. if (param === 'normal1') {
  266. this.sorting = {}
  267. this.activeTag = 'normal1'
  268. } else if (param === 'normal2') {
  269. if (this.reserve_asc) {
  270. this.sorting = {'RESERVE': 'ASC'}
  271. } else {
  272. this.sorting = {'RESERVE': 'DESC'}
  273. }
  274. this.activeTag = 'normal2'
  275. this.reserve_asc = !this.reserve_asc
  276. } else if (param === 'type') {
  277. this.sorting = {'RESERVE': 'DESC'}
  278. this.activeTag = 'type'
  279. } else if (param === 'price') {
  280. if (this.price_asc) {
  281. this.sorting = {'PRICE': 'ASC'}
  282. } else {
  283. this.sorting = {'PRICE': 'DESC'}
  284. }
  285. this.activeTag = 'price'
  286. this.price_asc = !this.price_asc
  287. }
  288. this.$emit('sortEvent', this.sorting)
  289. this.nowPage = 1
  290. },
  291. filter_price: function () {
  292. if (this.min_price === '' && this.max_price !== '') {
  293. this.filter.goods_maxpricermb = this.max_price
  294. } else if (this.min_price !== '' && this.max_price === '') {
  295. this.filter.goods_minpricermb = this.min_price
  296. } else if (this.min_price !== '' && this.max_price !== '') {
  297. if (this.min_price <= this.max_price) {
  298. this.filter.goods_minpricermb = this.min_price
  299. this.filter.goods_maxpricermb = this.max_price
  300. }
  301. } else {
  302. delete this.filter.goods_minpricermb
  303. delete this.filter.goods_maxpricermb
  304. }
  305. this.$emit('filterPriceEvent', this.filter)
  306. },
  307. clear_price: function () {
  308. this.min_price = ''
  309. this.max_price = ''
  310. this.$emit('filterPriceEvent', this.filter)
  311. },
  312. goUnstandardDetail: function (comp) {
  313. if (comp.batchCode) {
  314. this.$router.push('/store/productDetail/' + comp.batchCode)
  315. }
  316. }
  317. }
  318. }
  319. </script>
  320. <style scoped>
  321. /* .tab-filter {
  322. width: 1190px;
  323. height: 40px;
  324. margin: 0 auto;
  325. line-height: 40px;
  326. margin-top: 20px;
  327. margin-bottom: 10px;
  328. background: #f1efef;
  329. }
  330. .tab-filter .fl {
  331. font-size: 14px;
  332. }
  333. .tab-filter .fl, .tab-filter .fr {
  334. float: left;
  335. }
  336. .tab-filter .fl span {
  337. font-size: 14px;
  338. }
  339. .text-num {
  340. font-style: normal;
  341. font-family: verdana;
  342. }
  343. .tab-filter .fr {
  344. max-width: 1050px;
  345. }
  346. .tab-filter .fr div {
  347. float: left;
  348. margin: 0 5px;
  349. }
  350. .tab-filter .fr a {
  351. display: inline-block;
  352. padding: 1px 10px;
  353. border: #ccc 1px solid;
  354. line-height: 26px;
  355. font-size: 14px;
  356. text-align: center;
  357. color: #333;
  358. max-height: 30px;
  359. background: #fff;
  360. }
  361. .tab-filter .fr .price-filter {
  362. padding-top: 5px;
  363. width: 176px;
  364. margin: 0;
  365. }
  366. .price-filter {
  367. position: relative;
  368. }*/
  369. .price-filter .price-input {
  370. position: relative;
  371. z-index: 10;
  372. margin: 0 10px !important;
  373. width: 180px;
  374. }
  375. .tab-filter .fr .price-filter input, .tab-filter .fr .price-filter span {
  376. float: left;
  377. }
  378. .tab-filter .fr .form-control {
  379. width: 70px;
  380. height: 30px;
  381. border-radius: 0;
  382. padding-left: 5px;
  383. }
  384. .tab-filter .fr .price-filter span {
  385. margin: 0 5px;
  386. line-height: 30px;
  387. }
  388. .price-filter .price-hover {
  389. display: none;
  390. width: 165px;
  391. height: 25px;
  392. padding: 60px 6px 6px;
  393. margin: 0 10px;
  394. border: 1px solid #999;
  395. position: absolute;
  396. background: #fff;
  397. top: 0;
  398. -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.2);
  399. -moz-box-shadow: 1px 1px 2px rgba(0,0,0,.2);
  400. box-shadow: 1px 1px 2px rgba(0,0,0,.2);
  401. }
  402. .price-filter .price-hover a:first-child {
  403. position: absolute;
  404. top: 37px;
  405. left: 6px;
  406. width: 36px;
  407. height: 25px;
  408. line-height: 25px;
  409. text-align: center;
  410. color: #5078cb;
  411. display: inline-block;
  412. border: none;
  413. padding: 0;
  414. }
  415. .price-filter .price-hover a:last-child {
  416. position: absolute;
  417. top: 37px;
  418. right: 7px;
  419. width: 38px;
  420. height: 25px;
  421. line-height: 24px;
  422. border: 1px solid #ccc;
  423. text-align: center;
  424. background: #f7f7f7;
  425. color: #333;
  426. display: inline-block;
  427. padding: 0;
  428. }
  429. /* .tab-filter .fr .off {
  430. margin-left: 130px;
  431. float: right;
  432. }
  433. .tab-filter .fr .off a {
  434. border: none;
  435. text-align: right;
  436. padding-left: 360px;
  437. background: none;
  438. }
  439. .tab-filter .fr .off a i {
  440. font-size: 16px;
  441. }*/
  442. .product-list{
  443. width: 1190px;
  444. /*margin-bottom: 20px;*/
  445. }
  446. .product-list thead tr{
  447. /*border-top: #6493ff 2px solid;*/
  448. color: #323232;
  449. background: none;
  450. }
  451. /* 物品列表 */
  452. .product-list .brand-code {
  453. font-size: 14px;
  454. text-align: center;
  455. position: relative;
  456. }
  457. .product-list .brand-code .brand{
  458. font-size: 12px;
  459. }
  460. .product-list .brand-code .code {
  461. font-weight: 600;
  462. }
  463. .product-list .brand-code .brand,
  464. .product-list .brand-code .code{
  465. max-width: 290px;
  466. overflow: hidden;
  467. text-overflow: ellipsis;
  468. white-space: nowrap;
  469. /* text-align: center; */
  470. padding: 0 10px;
  471. }
  472. .product-list th {
  473. color: rgb(50,50,50);
  474. font-size: 14px;
  475. font-weight: 600;
  476. background-color: #f7f7f7;
  477. text-align: center;
  478. }
  479. .product-list tbody>tr {
  480. border: 1px solid #e8e8e8;
  481. cursor: pointer ;
  482. position: relative;
  483. }
  484. .product-list tbody>tr:hover{
  485. background: #ecf2fd;
  486. }
  487. .product-list tbody>tr .component-img-box {
  488. width: 80px;
  489. height: 80px;
  490. position: relative;
  491. }
  492. .product-list tbody>tr .brand-code .sellout-flag {
  493. position: absolute;
  494. right: 0;
  495. bottom: 0;
  496. }
  497. .product-list tbody>tr .component-img-box .component-img {
  498. border: 1px solid #e8e8e8;
  499. margin: 10px 0 5px 0;
  500. max-width: 80px;
  501. max-height: 80px;
  502. }
  503. .product-list tbody>tr .contact{
  504. font-size: 14px;
  505. color: #5078cb;
  506. width: 90%;
  507. margin: 0 auto;
  508. display: inline-block;
  509. }
  510. .product-list tbody>tr .contact:hover{
  511. color: #d32526;
  512. }
  513. .product-list td {
  514. font-size: 12px;
  515. color: #333;
  516. text-align: center;
  517. line-height: 20px;
  518. }
  519. /* 物品列表按钮 */
  520. /* .product-list .btn-buy-now {
  521. background-color: #5078CB;
  522. color: #fff;
  523. width: 80px;
  524. height: 30px;
  525. font-size: 12px;
  526. border: 1px solid #5078cb;
  527. padding-top: 8px;
  528. }
  529. .product-list .btn-add-cart {
  530. margin-top: 10px;
  531. color: #214797;
  532. width: 80px;
  533. height: 30px;
  534. font-size: 12px;
  535. background-color: #fff;
  536. border: 1px solid #e8e8e8;
  537. padding-top: 8px;
  538. }
  539. .product-list .btn-buy-now:hover{
  540. background: #214797;
  541. }
  542. .product-list .btn-add-cart:hover{
  543. background-color: #5078CB;
  544. color: #fff;
  545. }*/
  546. .product-list .text-left{
  547. text-align: left;
  548. }
  549. .product-list .text-left div{
  550. margin-left: 30px;
  551. }
  552. .product-list tbody tr td{
  553. padding: 10px 0;
  554. }
  555. .search-record{
  556. width: 100%;
  557. margin: 0 auto;
  558. height: 40px;
  559. font-size: 16px;
  560. line-height: 40px;
  561. margin-top: 20px;
  562. }
  563. .search-record span.red{
  564. color: #ff0909;
  565. }
  566. .tab-filter{
  567. width: 1190px;
  568. height: 40px;
  569. margin: 0 auto;
  570. line-height: 40px;
  571. margin-bottom: 10px;
  572. background: #f1efef;
  573. }
  574. .tab-filter .fl,.tab-filter .fr{
  575. float: left;
  576. }
  577. .tab-filter .fl{
  578. font-size: 14px;
  579. }
  580. .tab-filter .fr{
  581. max-width: 1050px;
  582. }
  583. .tab-filter .fl span{
  584. font-size: 14px;
  585. }
  586. .tab-filter .fr div{
  587. float: left;
  588. margin: 0 5px;
  589. }
  590. .tab-filter .fr div.active a{
  591. border: #5078cb 1px solid;
  592. color: #5078cb;
  593. }
  594. .tab-filter .fr a{
  595. display: inline-block;
  596. padding: 1px 10px;
  597. border: #ccc 1px solid;
  598. line-height: 26px;
  599. font-size: 14px;
  600. text-align: center;
  601. color: #333;
  602. max-height: 30px;
  603. background: #fff;
  604. }
  605. .tab-filter .fr a i{
  606. /*margin-left: 5px;*/
  607. }
  608. .tab-filter .fr a:hover{
  609. border: #5078cb 1px solid;
  610. color: #5078cb;
  611. }
  612. .tab-filter .fr .off{
  613. margin-left : 129px;
  614. float: right;
  615. }
  616. .tab-filter .fr .off a:hover{
  617. border: none;
  618. color: #5078cb;
  619. }
  620. .tab-filter .fr .off a{
  621. border: none;
  622. text-align: right;
  623. padding-left: 360px;
  624. background: none;
  625. }
  626. .tab-filter .fr .off a i{
  627. font-size: 16px;
  628. }
  629. .tab-filter .fr .form-control{
  630. width: 70px;
  631. height: 30px;
  632. border-radius: 0;
  633. padding-left: 5px;
  634. }
  635. .tab-filter .fr .price-filter input,.tab-filter .fr .price-filter span{
  636. float: left;
  637. }
  638. .tab-filter .fr select{
  639. -webkit-appearance: none;
  640. appearance: none;
  641. background: transparent;
  642. -o-appearance: none;
  643. -moz-appearance: none;
  644. -ms-appearance: none;
  645. width: 120px;
  646. }
  647. .tab-filter .fr .price-filter{
  648. padding-top: 5px;
  649. width: 176px;
  650. margin: 0;
  651. }
  652. .tab-filter .fr .price-filter span{
  653. margin: 0 5px;
  654. line-height: 30px;
  655. }
  656. .close{
  657. display: none;
  658. }
  659. .price-filter{
  660. position: relative;
  661. }
  662. .price-filter:hover .price-hover{
  663. display: block;
  664. }
  665. .price-filter .price-hover{
  666. background: transparent;
  667. }
  668. .price-filter .price-input{
  669. position: relative;
  670. z-index: 10;
  671. margin: 0 10px !important;
  672. }
  673. .price-filter .price-hover{
  674. display: none;
  675. width: 165px;
  676. height: 25px;
  677. padding: 60px 6px 6px;
  678. margin: 0 10px;
  679. border: 1px solid #999;
  680. position: absolute;
  681. background: #fff;
  682. top: 0;
  683. -webkit-box-shadow: 1px 1px 2px rgba(0,0,0,.2);
  684. -moz-box-shadow: 1px 1px 2px rgba(0,0,0,.2);
  685. box-shadow: 1px 1px 2px rgba(0,0,0,.2);
  686. }
  687. .price-filter .price-hover a:first-child{
  688. position: absolute;
  689. top: 37px;
  690. left: 6px;
  691. width: 36px;
  692. height: 25px;
  693. line-height: 25px;
  694. text-align: center;
  695. color: #5078cb;
  696. display: inline-block;
  697. border: none;
  698. padding: 0;
  699. }
  700. .price-filter .price-hover a:last-child{
  701. position: absolute;
  702. top: 37px;
  703. right: 7px;
  704. width: 38px;
  705. height: 25px;
  706. line-height: 24px;
  707. border: 1px solid #ccc;
  708. text-align: center;
  709. background: #f7f7f7;
  710. color: #333;
  711. display: inline-block;
  712. padding: 0;
  713. }
  714. .price-filter .price-hover a:last-child:hover{
  715. background: #5078cb;
  716. color: #fff;
  717. }
  718. div.ng-table-pager input.page-number {
  719. vertical-align: inherit;
  720. display: inline-block;
  721. width: 40px;
  722. height: 31px;
  723. padding: 6px 6px;
  724. font-size: 14px;
  725. line-height: 1.42857143;
  726. color: #9B9792;
  727. text-align: center;
  728. background-color: #F6F5F4;
  729. background-image: none;
  730. border: 1px solid #ccc;
  731. border-top-left-radius: 4px;
  732. border-bottom-left-radius: 4px;
  733. box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  734. transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  735. }
  736. div.ng-table-pager a.page-a{
  737. background: #2496f1 !important;
  738. color: #fff;
  739. float: right;
  740. }
  741. tbody a:hover{
  742. color: #f39801;
  743. }
  744. /**/
  745. .product-list tbody>tr .empty{
  746. overflow: hidden;
  747. margin: 0!important;
  748. height:130px;
  749. display:inline-flex;
  750. align-items: center;
  751. }
  752. .product-list tbody>tr .empty .empty-img{
  753. margin:0;
  754. border:0;
  755. min-width:143px;
  756. min-height:72px;
  757. }
  758. .product-list tbody>tr .empty .empty-img img {
  759. margin: 0;
  760. border: 0;
  761. min-width: 143px;
  762. min-height: 72px;
  763. }
  764. .product-list tbody>tr .empty-info{
  765. line-height: 14px;
  766. width: 143px;
  767. }
  768. .product-list tbody>tr .grey{
  769. color: #999;
  770. font-size: 14px;
  771. }
  772. .product-list tbody>tr .empty .empty-info>a{
  773. font-size: 14px;
  774. color: #5078cb;
  775. }
  776. .product-list tbody>tr .empty .empty-info i{
  777. margin-right:5px;
  778. }
  779. </style>