StoreDetail.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910
  1. <template>
  2. <div class="store-detail mobile-content">
  3. <div class="lookjianjie" @click="activeType = 'detail'">简介<i class="iconfont icon-fanhui"></i></div>
  4. <div class="store-logo">
  5. <div class="store-logo-box">
  6. <img :src="store.logoUrl || '/images/component/default.png'"/>
  7. <i v-if="showIcon" class="iconfont icon-shoucang" :style="isFocus === 'true'?'color:#ff7800':'color: #ddd'" @click="collectStore"></i>
  8. </div>
  9. <!--<div class="store-switch-item">-->
  10. <!--<span :class="activeType=='product'?'mobile-switch-btn active':'mobile-switch-btn'" @click="activeType='product'">产品</span>-->
  11. <!--<span :class="activeType=='detail'?'mobile-switch-btn active':'mobile-switch-btn'" @click="activeType='detail'">介绍</span>-->
  12. <!--</div>-->
  13. </div>
  14. <modal-wrapper :showModal="activeType==='detail'" :title="'企业信息 | ' + store.storeName" @closeAction="activeType=''">
  15. <div class="store-info" >
  16. <div class="store-description">
  17. <h4>主营产品</h4>
  18. <p class="content" v-if="store.description">
  19. {{store.description}}
  20. </p>
  21. <div class="com-none-state" v-else>
  22. <p>抱歉,暂无主营产品信息</p>
  23. </div>
  24. </div>
  25. <div class="store-description">
  26. <h4>应用领域</h4>
  27. <p class="content" v-if="store.storeApplication">
  28. {{store.storeApplication}}
  29. </p>
  30. <div class="com-none-state" v-else>
  31. <p>抱歉,暂无应用领域信息</p>
  32. </div>
  33. </div>
  34. <div class="store-description">
  35. <h4>企业介绍</h4>
  36. <p class="content" v-if="store.enterprise.description">
  37. {{store.enterprise.description}}
  38. </p>
  39. <div class="com-none-state" v-else>
  40. <p>抱歉,暂无企业介绍</p>
  41. </div>
  42. </div>
  43. <div class="contact-info">
  44. <h4>联系我们</h4>
  45. <ul class="list-unstyled clearfix">
  46. <li>
  47. <div>电&nbsp;&nbsp;话:</div>
  48. <div v-if="store.enterprise.enTel"><a :href="'tel:' + store.enterprise.enTel" @click="clickTel = true" :class="{'click-tel': clickTel}">{{store.enterprise.enTel}}</a></div>
  49. <div v-else><span>-</span></div>
  50. </li>
  51. <li>
  52. <div>传&nbsp;&nbsp;真:</div>
  53. <div v-if="store.enterprise.enFax"> {{store.enterprise.enFax}}</div>
  54. <div v-else><span>-</span></div>
  55. </li>
  56. <li>
  57. <div>手&nbsp;&nbsp;机:</div>
  58. <div v-if="store.enterprise.enPhone"> <a :href="'tel:' + store.enterprise.enPhone" @click="clickPhone = true" :class="{'click-phone': clickPhone}">{{store.enterprise.enPhone}}</a></div>
  59. <div v-else><span>-</span></div>
  60. </li>
  61. <li>
  62. <div>微&nbsp;&nbsp;信:</div>
  63. <div v-if="store.enterprise.enWeixin"> {{store.enterprise.enWeixin}}</div>
  64. <div v-else><span>-</span></div>
  65. </li>
  66. <li>
  67. <div>Q&nbsp;&nbsp;&nbsp;Q:</div>
  68. <div v-if="store.enterprise.enQQ"> {{store.enterprise.enQQ.trim()}}</div>
  69. <div v-else>-</div>
  70. </li>
  71. <!-- <li>
  72. <div>店铺地址:</div>
  73. <div v-if="store.enterprise.address">{{store.enterprise.address}}</div>
  74. <div v-else><span>-</span></div>
  75. </li>-->
  76. </ul>
  77. </div>
  78. </div>
  79. </modal-wrapper>
  80. <!-- <div class="com-none-state" v-if="activeType=='detail'">
  81. <img src="/images/mobile/@2x/empty-collect.png">
  82. <p>抱歉,暂无店铺简介</p>
  83. <nuxt-link to="/">返回首页</nuxt-link>
  84. </div>-->
  85. <div class="product-store">
  86. <div class="search-content">
  87. <input type="text" v-model="keyword" placeholder="品牌/物料名称(类目)/型号/规格" @keyup.13="search">
  88. <span @click="search" style="height:0.5rem;line-height:0.5rem;">
  89. <i class="iconfont icon-sousuo"></i>
  90. </span>
  91. </div>
  92. <div v-if="searchLists&&searchLists.length > 0">
  93. <div v-for="(item, index) in searchLists">
  94. <!--@click="goProductDetail(item)"-->
  95. <div class="middle">
  96. <div class="list">
  97. <div class="fl">
  98. <div class="name">品牌:</div>
  99. <div class="text">{{item.brandNameEn}}</div>
  100. </div>
  101. <div class="fl">
  102. <div class="name">交期(天):</div>
  103. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  104. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  105. </div>
  106. </div>
  107. <div class="list">
  108. <div class="fl">
  109. <div class="name">物料名称(类目):</div>
  110. <div class="text">{{item.kindNameCn || '-'}}</div>
  111. </div>
  112. <div class="fl">
  113. <div class="name">库存:</div>
  114. <div class="text">{{item.reserve || '-'}}</div>
  115. </div>
  116. </div>
  117. <div class="list">
  118. <div class="fl">
  119. <div class="name">型号:</div>
  120. <div class="text">{{item.code || '-'}}</div>
  121. </div>
  122. <div class="fl">
  123. <div class="name">起拍:</div>
  124. <div class="text">{{item.minBuyQty || '-'}}</div>
  125. </div>
  126. </div>
  127. <div class="list">
  128. <div class="fl">
  129. <div class="name">规格:</div>
  130. <div class="text">{{item.spec || '-'}}</div>
  131. </div>
  132. <div class="fl">
  133. <div class="name">包装:</div>
  134. <div class="text">{{item.packaging || '无包装信息'}}</div>
  135. </div>
  136. </div>
  137. <div class="list">
  138. <div class="fl" @click.stop="goAttach(item.attach)">
  139. <div class="name">规格书:</div>
  140. <div class="text">
  141. <i class="iconfont icon-pdf" :class="{'active': item.attach && item.attach !== '' && item.attach !== '1'}"></i>
  142. </div>
  143. </div>
  144. <div class="fl">
  145. <div class="name">生产日期:</div>
  146. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  147. </div>
  148. </div>
  149. <div class="list">
  150. <div class="name left">价格梯度<p>(pcs):</p></div>
  151. <div class="table left">
  152. <ul>
  153. <li class="title">
  154. <div>分段数量/PCS</div>
  155. <div>分段单价</div>
  156. </li>
  157. <li v-for="price in item.prices">
  158. <div>{{price.start}}+</div>
  159. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  160. <div v-else>${{price.rMBPrice}}</div>
  161. </li>
  162. </ul>
  163. </div>
  164. </div>
  165. <div class="list clearfix">
  166. <div class="pull-left cancat" @click.stop="showStoreInfo = true">
  167. <i class="iconfont icon-kefu1"></i>联系卖家
  168. </div>
  169. <div class="pull-right clearfix">
  170. <div class="pull-left" @click="buy(item, false, $event)">加入购物车</div>
  171. <div class="pull-left" @click="buy(item, true, $event)">立即购买</div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <empty-status :type="isSearch ? 'search' : 'collect'"
  178. :text="isSearch ? `抱歉,暂无与“${remindKeyword}”匹配的产品信息`: '抱歉,暂无产品信息'"
  179. :showLink="false"
  180. v-else
  181. ></empty-status>
  182. </div>
  183. <!-- 联系卖买家 -->
  184. <div class="mobile-modal" v-if="showStoreInfo" @touchmove="preventTouchMove($event)">
  185. <div class="mobile-modal-box mobile-link-en">
  186. <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
  187. <div class="mobile-modal-content">
  188. <div v-if="store.enterprise.enTel" class="clearfix"><span class="pull-left">电话:</span><a :href="'tel:' + store.enterprise.enTel" target="_blank" class="content-line link-url pull-left">{{store.enterprise.enTel}}</a></div>
  189. <div v-if="store.enterprise.enPhone" class="clearfix"><span class="pull-left">手机:</span><a :href="'tel:' + store.enterprise.enPhone" target="_blank" class="content-line link-url pull-left">{{store.enterprise.enPhone}}</a></div>
  190. <div v-if="store.enterprise.enWeixin" class="clearfix"><span class="pull-left">微信:</span><span class="content-line pull-left">{{store.enterprise.enWeixin}}</span></div>
  191. <div v-if="store.enterprise.enQQ" class="clearfix"><span class="pull-left">Q&nbsp;Q:</span><span class="content-line pull-left">{{store.enterprise.enQQ}}</span></div>
  192. <div v-if="!empty">暂无联系方式</div>
  193. </div>
  194. </div>
  195. </div>
  196. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  197. <login-box @onLoginBoxClose="showLoginBox = false" v-if="showLoginBox" :url="url"></login-box>
  198. <pull-up :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="getMoreSearch"></pull-up>
  199. </div>
  200. </template>
  201. <script>
  202. import {RemindBox, LoginBox, PullUp, EmptyStatus} from '~components/mobile/common'
  203. import { ModalWrapper } from '~components/mobile/base'
  204. export default {
  205. data () {
  206. return {
  207. showStoreInfo: false,
  208. activeType: '',
  209. collectResult: '收藏成功',
  210. timeoutCount: 0,
  211. clickTel: false,
  212. clickPhone: false,
  213. searchLists: [],
  214. page: 1,
  215. count: 10,
  216. showLoginBox: false,
  217. isScrollOverTab: false,
  218. url: '',
  219. keyword: '',
  220. remindKeyword: '',
  221. isChange: false,
  222. isSearch: false
  223. }
  224. },
  225. components: {
  226. RemindBox,
  227. LoginBox,
  228. PullUp,
  229. EmptyStatus,
  230. ModalWrapper
  231. },
  232. filters: {
  233. currency: function (num) {
  234. if (typeof num === 'number') {
  235. if (num <= 0.000001) {
  236. num = 0.000001
  237. } else {
  238. if (num.toString().indexOf('.') === -1) {
  239. num += '.00'
  240. } else {
  241. let inputStr = num.toString()
  242. let arr = inputStr.split('.')
  243. let floatNum = arr[1]
  244. if (floatNum) {
  245. if (floatNum.length > 6) {
  246. num = inputStr.substring(0, arr[0].length + 7)
  247. if (Number(floatNum.charAt(6)) > 4) {
  248. num = (Number(num) * 1000000 + 1) / 1000000
  249. }
  250. } else if (floatNum.length === 1) {
  251. num = num + '0'
  252. }
  253. }
  254. }
  255. }
  256. }
  257. return num
  258. }
  259. },
  260. created () {
  261. this.clickTel = false
  262. this.clickPhone = false
  263. },
  264. computed: {
  265. empty () {
  266. return this.checkInfo(this.store.enterprise.enTel) || this.checkInfo(this.store.enterprise.enPhone) || this.checkInfo(this.store.enterprise.enWeixin) || this.checkInfo(this.store.enterprise.enQQ)
  267. },
  268. store () {
  269. return this.$store.state.shop.storeInfo.store.data
  270. },
  271. commodities () {
  272. let list = this.$store.state.shop.storeInfo.storeCommodity.data
  273. if (this.isChange) {
  274. this.searchLists = []
  275. this.page = 1
  276. this.isChange = false
  277. } else {
  278. this.searchLists = [...this.searchLists, ...list.content]
  279. this.isSearchSearchingMore = false
  280. }
  281. return list
  282. },
  283. fetching () {
  284. return this.$store.state.shop.storeInfo.storeCommodity.fetching
  285. },
  286. allPage () {
  287. return this.commodities.totalPages
  288. },
  289. isFocus () {
  290. return this.$store.state.shop.storeInfo.focusList.data
  291. },
  292. user () {
  293. return this.$store.state.option.user
  294. },
  295. showIcon() {
  296. return this.store.uuid !== this.$store.state.option.storeStatus.data.uuid
  297. }
  298. },
  299. methods: {
  300. checkInfo: function (str) {
  301. return str && str.trim() !== ''
  302. },
  303. goAttach: function (url) {
  304. if (this.user.logged) {
  305. if (url && url !== '1') {
  306. window.open(url)
  307. } else {
  308. if (!url) {
  309. this.collectResult = '该产品暂无数据手册'
  310. this.timeoutCount++
  311. } else {
  312. this.collectResult = '数据手册地址错误'
  313. this.timeoutCount++
  314. }
  315. }
  316. } else {
  317. this.url = this.$route.fullPath
  318. this.showLoginBox = true
  319. }
  320. },
  321. scroll: function () {
  322. let tbodyObj = document.getElementById('product-body')
  323. let theadObj = document.getElementById('product-head')
  324. if (theadObj) {
  325. this.isScrollOverTab = tbodyObj.getBoundingClientRect().top - theadObj.getBoundingClientRect().height - 5 <= theadObj.getBoundingClientRect().height
  326. }
  327. },
  328. getMoreSearch: function () {
  329. this.page++
  330. this.pageCommodity({ page: this.page, count: this.count })
  331. },
  332. async pageCommodity (pageParams) {
  333. let params = { storeid: this.$route.params.uuid, origin: 'store', code: this.keyword }
  334. params.page = pageParams.page
  335. params.count = pageParams.count
  336. try {
  337. let { data } = await this.$http.get('/api/commodity/commodities', { params })
  338. this.$store.commit('shop/storeInfo/GET_STORE_COMMODITY_SUCCESS', data)
  339. } catch (err) {
  340. this.$store.commit('shop/storeInfo/GET_STORE_COMMODITY_FAILURE', err)
  341. }
  342. },
  343. goProductDetail: function (com) {
  344. // if (uuid) {
  345. // this.$router.push('/mobile/brand/componentDetail/' + uuid)
  346. // } else {
  347. // this.collectResult = '卖家上传的产品暂无参数,请联系卖家了解具体详情。'
  348. // this.timeoutCount ++
  349. // }
  350. if (com.batchCode) {
  351. this.$router.push('/mobile/product/' + com.batchCode)
  352. } else {
  353. this.collectResult = '产品参数错误'
  354. this.timeoutCount ++
  355. }
  356. },
  357. collectStore: function () {
  358. if (this.user.logged) {
  359. if (this.isFocus === 'false') {
  360. this.$store.dispatch('shop/StoreFocus', {storeName: this.store.storeName, storeid: this.store.id})
  361. .then(response => {
  362. this.$store.dispatch('shop/StoreFocusList', {id: this.store.id})
  363. this.collectResult = '关注成功'
  364. this.timeoutCount++
  365. })
  366. } else if (this.isFocus === 'true') {
  367. this.$http.post('/trade/storeFocus/delete/storeId', [this.store.id])
  368. .then(response => {
  369. this.$store.dispatch('shop/StoreFocusList', {id: this.store.id})
  370. this.collectResult = '取消成功'
  371. this.timeoutCount++
  372. })
  373. }
  374. } else {
  375. this.url = this.$route.fullPath
  376. this.showLoginBox = true
  377. }
  378. },
  379. setRemindText: function (str) {
  380. this.collectResult = str
  381. this.timeoutCount++
  382. },
  383. search: function () {
  384. this.page = 1
  385. this.isChange = true
  386. this.isSearch = true
  387. this.remindKeyword = this.keyword
  388. this.pageCommodity({ page: this.page, count: this.count })
  389. },
  390. buy: function (item, flag, e) {
  391. this.baseUtils.buyOrCar(flag, e, this, item, '/mobile/center/user/pay/')
  392. }
  393. }
  394. }
  395. </script>
  396. <style lang="scss" scoped>
  397. .mobile-header {
  398. border-bottom: 0px !important;
  399. }
  400. .mobile-modal .mobile-link-en-content {
  401. width: 7.04rem;
  402. margin-top: 0 !important;
  403. left: 0.2rem;
  404. background: #f7f7f7;
  405. top: 5% !important;
  406. }
  407. .store-detail {
  408. padding: 0 !important;;
  409. margin: 0.88rem auto 0rem;
  410. text-align: center;
  411. background: #f7f7f7;
  412. .store-logo {
  413. height: 3.27rem;
  414. width: 100%;
  415. display: inline-block;
  416. line-height: 2.13rem;
  417. background: #fff;
  418. text-align: center;
  419. background: url('/images/mobile/@2x/brand-bg2.png') no-repeat;
  420. background-size: cover;
  421. position: relative;
  422. .store-logo-box {
  423. border: .01rem solid #c7e5fd;
  424. border-radius: .1rem;
  425. height: 2.21rem;
  426. width: 3.73rem;
  427. margin: .5rem auto 0;
  428. background: #fff;
  429. position: relative;
  430. img {
  431. max-height: 2.1rem;
  432. max-width: 3.6rem;
  433. }
  434. >i {
  435. position: absolute;
  436. font-size: .4rem;
  437. background: #fff;
  438. width: .6rem;
  439. height: .6rem;
  440. line-height: .6rem;
  441. border-radius: 100%;
  442. box-shadow: 0 0 .05rem #aaa;
  443. right: -1.44rem;
  444. top: .75rem;
  445. text-align: center;
  446. }
  447. }
  448. }
  449. .store-switch-item {
  450. text-align: center;
  451. background: #fff;
  452. position: absolute;
  453. width: 100%;
  454. bottom: 0;
  455. left: 0;
  456. height: 0.83rem;
  457. line-height: 0.83rem;
  458. border-bottom: 1px solid #ccc;
  459. .mobile-switch-btn {
  460. background: #fff;
  461. color: #666;
  462. display: inline-block;
  463. font-size: .34rem;
  464. width: 1.4rem;
  465. height: 0.79rem;
  466. line-height: 0.79rem;
  467. &:first-child {
  468. margin-right: 1.78rem;
  469. }
  470. &.active {
  471. color: #fc5708;
  472. border-bottom: .04rem solid #fc5708;
  473. }
  474. }
  475. }
  476. .store-info {
  477. background: #f7f7f7;
  478. h4{
  479. width: 100%;
  480. text-align: left;
  481. font-size: 0.3rem;
  482. line-height: 0.6rem;
  483. height: 0.6rem;
  484. letter-spacing: 0px;
  485. color: #333;
  486. font-weight: normal;
  487. border-bottom: 1px solid #efeded;
  488. padding-left: 0.11rem;
  489. &:before{
  490. content: '';
  491. display: inline-block;
  492. width: 0.08rem;
  493. height: 0.26rem;
  494. background-color: #145dee;
  495. margin-right: 0.13rem;
  496. position: relative;
  497. top: 0.02rem;
  498. }
  499. }
  500. .contact-info{
  501. background: #fff;
  502. margin: .2rem auto;
  503. border-radius: .1rem;
  504. ul{
  505. padding: 0.22rem 0rem;
  506. li{
  507. div{
  508. float: left;
  509. font-size: .28rem;
  510. color: #666;
  511. line-height: .53rem;
  512. width:80%;
  513. text-align: left;
  514. &:first-child{
  515. width: 20%;
  516. padding-left: 0.36rem;
  517. text-align: justify;
  518. }
  519. a{
  520. color: #145dee;
  521. }
  522. .click-tel, .click-phone{
  523. color: #f44336;
  524. }
  525. }
  526. /* &:last-child{
  527. div{
  528. width: 74%;
  529. padding-right:.34rem;
  530. word-wrap: break-word;
  531. &:first-child{
  532. text-align: left;
  533. padding: 0rem 0rem 0rem .36rem;
  534. width: 26%;
  535. }
  536. }
  537. }*/
  538. }
  539. }
  540. }
  541. .store-description{
  542. background: #fff;
  543. width: 6.96rem;
  544. margin: 0 auto .2rem;
  545. border-radius: .1rem;
  546. .content {
  547. text-indent:2em;
  548. background: #fff;
  549. margin: .2rem auto 0;
  550. padding: .04rem .34rem .4rem .34rem;
  551. width: 100%;
  552. font-size: .28rem;
  553. color: #666;
  554. text-align: left;
  555. height: 95%;
  556. /*box-shadow: 0 .03rem .01rem 0 #cdcbcb96;*/
  557. line-height: .5rem;
  558. word-break: break-all;
  559. }
  560. }
  561. }
  562. .middle {
  563. .order-tag {
  564. display: inline-block;
  565. font-size: .18rem;
  566. color: #fff;
  567. font-weight: bold;
  568. background: #ee1717;
  569. height: .27rem;
  570. width: .27rem;
  571. line-height: .27rem;
  572. text-align: center;
  573. border-radius: .05rem;
  574. position: relative;
  575. top: -.05rem;
  576. margin-right: .05rem;
  577. &.reserve-tag {
  578. background: #07bb1c;
  579. }
  580. }
  581. text-align: left;
  582. padding: 0.24rem 0.24rem;
  583. background: #fff;
  584. margin: 0.24rem 0.24rem 0;
  585. border-radius: 5px;
  586. border: 1px solid #e3e5e8;
  587. .pms {
  588. color: #f57710;
  589. border: 1px solid #f57710;
  590. border-radius: 0.4rem;
  591. background: #fff;
  592. font-size: 0.24rem;
  593. height: 0.4rem;
  594. line-height: 0.4rem;
  595. width: 0.8rem;
  596. text-align: center;
  597. }
  598. .list {
  599. .left {
  600. float: left;
  601. overflow: hidden;
  602. text-overflow: ellipsis;
  603. white-space: nowrap;
  604. }
  605. .textinfo {
  606. font-size: 0.18rem;
  607. margin-left: 0.1rem;
  608. display: inline-block;
  609. background: #3f84f6;
  610. color: #fff;
  611. font-weight: bold;
  612. border-radius: 3px;
  613. width: 0.8rem;
  614. height: 0.32rem;
  615. line-height: 0.32rem;
  616. text-align: center
  617. }
  618. .button {
  619. font-size: 0.3rem;
  620. color: #1a58dd;
  621. width: 0.92rem;
  622. height: 0.43rem;
  623. line-height: 0.43rem;
  624. text-align: center;
  625. border-radius: 5px;
  626. border:1px solid #1a58dd;
  627. display: inline-block;
  628. margin-right: 0.2rem;
  629. }
  630. margin-bottom: 0.18rem;
  631. &::after{
  632. clear: both;
  633. display: block;
  634. content: ' ';
  635. visibility: hidden;
  636. zoom: 1;
  637. }
  638. .fl {
  639. width: 3.2rem;
  640. float: left;
  641. overflow: hidden;
  642. text-overflow: ellipsis;
  643. white-space: nowrap;
  644. }
  645. .fr {
  646. text-align: left;
  647. width: 2.6rem;
  648. overflow: hidden;
  649. text-overflow: ellipsis;
  650. white-space: nowrap;
  651. }
  652. &.list-long {
  653. .fl {
  654. width: 100% !important;
  655. }
  656. }
  657. .name {
  658. color: #666;
  659. font-size: 0.28rem;
  660. display: inline-block;
  661. }
  662. .text {
  663. display: inline-block;
  664. color: #333;
  665. font-size: 0.28rem
  666. }
  667. .table {
  668. width: 5.25rem;
  669. margin-bottom: 0;
  670. margin-top: 0;
  671. margin-left: 0.1rem;
  672. li {
  673. height: 0.43rem;
  674. line-height: 0.43rem;
  675. border-left: .01rem solid #c5c5c5;
  676. font-size: .28rem;
  677. &::after {
  678. clear: both;
  679. display: block;
  680. content: ' ';
  681. visibility: hidden;
  682. zoom: 1;
  683. }
  684. div {
  685. text-align: center;
  686. width: 50%;
  687. float: left;
  688. border-right: .01rem solid #c5c5c5;
  689. border-bottom: .01rem solid #c5c5c5;
  690. }
  691. &:nth-child(odd) {
  692. background: #ddd;
  693. color: #333;
  694. font-size: 0.28rem;
  695. }
  696. &:nth-child(even) {
  697. background: #fcfcfc;
  698. color: #333;
  699. font-size: 0.28rem;
  700. }
  701. &:nth-last-of-type(1){
  702. color: #f31919;
  703. }
  704. &.title {
  705. font-size: 0.28rem;
  706. color: #333;
  707. }
  708. }
  709. }
  710. .pull-right {
  711. div {
  712. color: #3f84f6;
  713. font-size: 0.28rem;
  714. border-radius: 0.07rem;
  715. border: 1px solid #3f84f6;
  716. background: #fff;
  717. width: 2rem;
  718. line-height: 0.54rem;
  719. height: 0.54rem;
  720. text-align: center;
  721. }
  722. div:last-child {
  723. margin-left: 0.2rem;
  724. color: #fff;
  725. background: #3f84f6;
  726. }
  727. }
  728. i {
  729. &.icon-pdf {
  730. color: #929292;
  731. font-size: 0.4rem;
  732. }
  733. &.active {
  734. color: #eb062b;
  735. }
  736. }
  737. }
  738. }
  739. .product-store {
  740. margin: .2rem 0 0 0;
  741. padding-bottom: 1.2rem;
  742. table {
  743. width: 100%;
  744. font-size: .28rem;
  745. thead {
  746. background: #d5e5fb;
  747. &.active {
  748. position: fixed;
  749. top: .88rem;
  750. z-index: 2;
  751. }
  752. tr {
  753. th {
  754. text-align: center;
  755. height: .98rem;
  756. line-height: normal;
  757. font-size: .26rem;
  758. font-weight: normal;
  759. color: #333;
  760. }
  761. }
  762. }
  763. tbody {
  764. tr {
  765. background: #fff;
  766. border-bottom: 0.2rem solid #f7f7f7;
  767. td {
  768. padding: .2rem .1rem;
  769. text-align: left;
  770. &.price-level-wrap {
  771. text-align: center;
  772. }
  773. div {
  774. overflow: hidden;
  775. text-overflow: ellipsis;
  776. white-space: nowrap;
  777. margin-bottom: .2rem;
  778. max-width: 1.58rem;
  779. &:last-child {
  780. margin-bottom: 0;
  781. }
  782. }
  783. .price-level:last-child {
  784. color: #fc5708;
  785. }
  786. .price-number {
  787. display: inline-block;
  788. vertical-align: middle;
  789. margin-bottom: 0;
  790. width: .9rem;
  791. }
  792. .order-tag {
  793. display: inline-block;
  794. font-size: .18rem;
  795. color: #fff;
  796. font-weight: bold;
  797. background: #ee1717;
  798. height: .27rem;
  799. width: .27rem;
  800. line-height: .27rem;
  801. text-align: center;
  802. border-radius: .05rem;
  803. position: relative;
  804. top: -.05rem;
  805. margin-right: .05rem;
  806. &.reserve-tag {
  807. background: #07bb1c;
  808. }
  809. }
  810. }
  811. &:active {
  812. background: #e1e1e1;
  813. }
  814. }
  815. }
  816. }
  817. .no-store {
  818. background: #fff;
  819. padding-top: 1rem;
  820. img {
  821. display: block;
  822. text-align: center;
  823. margin: 0 auto;
  824. margin-bottom: .45rem;
  825. width: 3.31rem;
  826. height: 2.13rem;
  827. }
  828. div {
  829. width: 5.27rem;
  830. margin: 0 auto;
  831. text-align: center;
  832. line-height: .4rem;
  833. color: #999;
  834. .link-url {
  835. color: #01a44e;
  836. }
  837. }
  838. }
  839. }
  840. .no-product {
  841. background: #fff;
  842. padding-top: 1rem;
  843. img {
  844. display: block;
  845. text-align: center;
  846. margin: 0 auto;
  847. margin-bottom: .45rem;
  848. width: 3.31rem;
  849. height: 2.13rem;
  850. }
  851. div {
  852. width: 5.27rem;
  853. margin: 0 auto;
  854. text-align: center;
  855. line-height: .4rem;
  856. font-size: .32rem;
  857. color: #999;
  858. }
  859. }
  860. }
  861. .com-none-state {
  862. background: #fff !important;
  863. padding: .3rem;
  864. margin: 0;
  865. p {
  866. margin: 0;
  867. font-size: .28rem;
  868. }
  869. }
  870. .search-content {
  871. padding: .07rem 0;
  872. input {
  873. width: 6.37rem;
  874. border: 1px solid #376ff3;
  875. }
  876. }
  877. .cancat {
  878. height: 0.56rem;
  879. line-height: 0.56rem;
  880. border: 1px solid #3f84f6;
  881. color: #3f84f6;
  882. font-size: 0.26rem;
  883. text-align: center;
  884. border-radius: 3px;
  885. padding: 0 0.1rem;
  886. overflow: hidden;
  887. width: auto;
  888. i {
  889. font-size: 0.26rem;
  890. }
  891. }
  892. .lookjianjie {
  893. position: fixed;
  894. top: 0;
  895. right: 0.4rem;
  896. font-size: 0.28rem;
  897. color: #fff;
  898. z-index: 11;
  899. line-height: 0.88rem;
  900. i {
  901. font-size: 0.28rem;
  902. color: #fff;
  903. transform: rotate(180deg);
  904. display: inline-block;
  905. }
  906. }
  907. </style>