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. <div class="middle" @click="goProductDetail(item)">
  95. <div class="list">
  96. <div class="fl">
  97. <div class="name">品牌:</div>
  98. <div class="text">{{item.brandNameEn}}</div>
  99. </div>
  100. <div class="fl">
  101. <div class="name">交期(天):</div>
  102. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  103. <div class="text" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery == item.b2cMinDelivery)" v-text="item.b2cMinDelivery"></div>
  104. </div>
  105. </div>
  106. <div class="list">
  107. <div class="fl">
  108. <div class="name">物料名称(类目):</div>
  109. <div class="text">{{item.kindNameCn || '-'}}</div>
  110. </div>
  111. <div class="fl">
  112. <div class="name">库存:</div>
  113. <div class="text">{{item.reserve || '-'}}</div>
  114. </div>
  115. </div>
  116. <div class="list">
  117. <div class="fl">
  118. <div class="name">型号:</div>
  119. <div class="text">{{item.code || '-'}}</div>
  120. </div>
  121. <div class="fl">
  122. <div class="name">起拍:</div>
  123. <div class="text">{{item.minBuyQty || '-'}}</div>
  124. </div>
  125. </div>
  126. <div class="list">
  127. <div class="fl">
  128. <div class="name">规格:</div>
  129. <div class="text">{{item.spec || '-'}}</div>
  130. </div>
  131. <div class="fl">
  132. <div class="name">包装:</div>
  133. <div class="text">{{item.packaging || '无包装信息'}}</div>
  134. </div>
  135. </div>
  136. <div class="list">
  137. <div class="fl" @click="goAttach(item.attach)">
  138. <div class="name">规格书:</div>
  139. <div class="text">
  140. <i class="iconfont icon-pdf" :class="{'active': item.attach && item.attach !== '' && item.attach !== '1'}"></i>
  141. </div>
  142. </div>
  143. <div class="fl">
  144. <div class="name">生产日期:</div>
  145. <div class="text" :title="item.produceDate">{{item.produceDate || '-'}}</div>
  146. </div>
  147. </div>
  148. <div class="list">
  149. <div class="name left">价格梯度<p>(pcs):</p></div>
  150. <div class="table left">
  151. <ul>
  152. <li class="title">
  153. <div>分段数量/PCS</div>
  154. <div>分段单价</div>
  155. </li>
  156. <li v-for="price in item.prices">
  157. <div>{{price.start}}+</div>
  158. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  159. <div v-else>${{price.rMBPrice}}</div>
  160. </li>
  161. </ul>
  162. </div>
  163. </div>
  164. <div class="list clearfix">
  165. <div class="pull-left cancat" @click.stop="showStoreInfo = true">
  166. <i class="iconfont icon-kefu1"></i>联系卖家
  167. </div>
  168. <div class="pull-right clearfix">
  169. <div class="pull-left" @click="buy(item, false, $event)">加入购物车</div>
  170. <div class="pull-left" @click="buy(item, true, $event)">立即购买</div>
  171. </div>
  172. </div>
  173. </div>
  174. </div>
  175. </div>
  176. <empty-status :type="isSearch ? 'search' : 'collect'"
  177. :text="isSearch ? `抱歉,暂无与“${remindKeyword}”匹配的产品信息`: '抱歉,暂无产品信息'"
  178. :showLink="false"
  179. v-else
  180. ></empty-status>
  181. </div>
  182. <!-- 联系卖买家 -->
  183. <div class="mobile-modal" v-if="showStoreInfo" @touchmove="preventTouchMove($event)">
  184. <div class="mobile-modal-box mobile-link-en">
  185. <div class="mobile-modal-header">联系方式<i @click="showStoreInfo = false" class="icon-guanbi iconfont"></i></div>
  186. <div class="mobile-modal-content">
  187. <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>
  188. <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>
  189. <div v-if="store.enterprise.enWeixin" class="clearfix"><span class="pull-left">微信:</span><span class="content-line pull-left">{{store.enterprise.enWeixin}}</span></div>
  190. <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>
  191. <div v-if="!empty">暂无联系方式</div>
  192. </div>
  193. </div>
  194. </div>
  195. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  196. <login-box @onLoginBoxClose="showLoginBox = false" v-if="showLoginBox" :url="url"></login-box>
  197. <pull-up :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="getMoreSearch"></pull-up>
  198. </div>
  199. </template>
  200. <script>
  201. import {RemindBox, LoginBox, PullUp, EmptyStatus} from '~components/mobile/common'
  202. import { ModalWrapper } from '~components/mobile/base'
  203. export default {
  204. data () {
  205. return {
  206. showStoreInfo: false,
  207. activeType: '',
  208. collectResult: '收藏成功',
  209. timeoutCount: 0,
  210. clickTel: false,
  211. clickPhone: false,
  212. searchLists: [],
  213. page: 1,
  214. count: 10,
  215. showLoginBox: false,
  216. isScrollOverTab: false,
  217. url: '',
  218. keyword: '',
  219. remindKeyword: '',
  220. isChange: false,
  221. isSearch: false
  222. }
  223. },
  224. components: {
  225. RemindBox,
  226. LoginBox,
  227. PullUp,
  228. EmptyStatus,
  229. ModalWrapper
  230. },
  231. filters: {
  232. currency: function (num) {
  233. if (typeof num === 'number') {
  234. if (num <= 0.000001) {
  235. num = 0.000001
  236. } else {
  237. if (num.toString().indexOf('.') === -1) {
  238. num += '.00'
  239. } else {
  240. let inputStr = num.toString()
  241. let arr = inputStr.split('.')
  242. let floatNum = arr[1]
  243. if (floatNum) {
  244. if (floatNum.length > 6) {
  245. num = inputStr.substring(0, arr[0].length + 7)
  246. if (Number(floatNum.charAt(6)) > 4) {
  247. num = (Number(num) * 1000000 + 1) / 1000000
  248. }
  249. } else if (floatNum.length === 1) {
  250. num = num + '0'
  251. }
  252. }
  253. }
  254. }
  255. }
  256. return num
  257. }
  258. },
  259. created () {
  260. this.clickTel = false
  261. this.clickPhone = false
  262. },
  263. computed: {
  264. empty () {
  265. 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)
  266. },
  267. store () {
  268. return this.$store.state.shop.storeInfo.store.data
  269. },
  270. commodities () {
  271. let list = this.$store.state.shop.storeInfo.storeCommodity.data
  272. if (this.isChange) {
  273. this.searchLists = []
  274. this.page = 1
  275. this.isChange = false
  276. } else {
  277. this.searchLists = [...this.searchLists, ...list.content]
  278. this.isSearchSearchingMore = false
  279. }
  280. return list
  281. },
  282. fetching () {
  283. return this.$store.state.shop.storeInfo.storeCommodity.fetching
  284. },
  285. allPage () {
  286. return this.commodities.totalPages
  287. },
  288. isFocus () {
  289. return this.$store.state.shop.storeInfo.focusList.data
  290. },
  291. user () {
  292. return this.$store.state.option.user
  293. },
  294. showIcon() {
  295. return this.store.uuid !== this.$store.state.option.storeStatus.data.uuid
  296. }
  297. },
  298. methods: {
  299. checkInfo: function (str) {
  300. return str && str.trim() !== ''
  301. },
  302. goAttach: function (url) {
  303. if (this.user.logged) {
  304. console.log(this.component)
  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. margin: 0 auto;
  409. margin-bottom: 1.2rem;
  410. text-align: center;
  411. background: #f7f7f7;
  412. height: 100%;
  413. .store-logo {
  414. height: 3.27rem;
  415. width: 100%;
  416. display: inline-block;
  417. line-height: 2.13rem;
  418. background: #fff;
  419. text-align: center;
  420. background: url('/images/mobile/@2x/brand-bg2.png') no-repeat;
  421. background-size: cover;
  422. position: relative;
  423. .store-logo-box {
  424. border: .01rem solid #c7e5fd;
  425. border-radius: .1rem;
  426. height: 2.21rem;
  427. width: 3.73rem;
  428. margin: .5rem auto 0;
  429. background: #fff;
  430. position: relative;
  431. img {
  432. max-height: 2.1rem;
  433. max-width: 3.6rem;
  434. }
  435. >i {
  436. position: absolute;
  437. font-size: .4rem;
  438. background: #fff;
  439. width: .6rem;
  440. height: .6rem;
  441. line-height: .6rem;
  442. border-radius: 100%;
  443. box-shadow: 0 0 .05rem #aaa;
  444. right: -1.44rem;
  445. top: .75rem;
  446. text-align: center;
  447. }
  448. }
  449. }
  450. .store-switch-item {
  451. text-align: center;
  452. background: #fff;
  453. position: absolute;
  454. width: 100%;
  455. bottom: 0;
  456. left: 0;
  457. height: 0.83rem;
  458. line-height: 0.83rem;
  459. border-bottom: 1px solid #ccc;
  460. .mobile-switch-btn {
  461. background: #fff;
  462. color: #666;
  463. display: inline-block;
  464. font-size: .34rem;
  465. width: 1.4rem;
  466. height: 0.79rem;
  467. line-height: 0.79rem;
  468. &:first-child {
  469. margin-right: 1.78rem;
  470. }
  471. &.active {
  472. color: #fc5708;
  473. border-bottom: .04rem solid #fc5708;
  474. }
  475. }
  476. }
  477. .store-info {
  478. background: #f7f7f7;
  479. h4{
  480. width: 100%;
  481. text-align: left;
  482. font-size: 0.3rem;
  483. line-height: 0.6rem;
  484. height: 0.6rem;
  485. letter-spacing: 0px;
  486. color: #333;
  487. font-weight: normal;
  488. border-bottom: 1px solid #efeded;
  489. padding-left: 0.11rem;
  490. &:before{
  491. content: '';
  492. display: inline-block;
  493. width: 0.08rem;
  494. height: 0.26rem;
  495. background-color: #145dee;
  496. margin-right: 0.13rem;
  497. position: relative;
  498. top: 0.02rem;
  499. }
  500. }
  501. .contact-info{
  502. background: #fff;
  503. margin: .2rem auto;
  504. border-radius: .1rem;
  505. ul{
  506. padding: 0.22rem 0rem;
  507. li{
  508. div{
  509. float: left;
  510. font-size: .28rem;
  511. color: #666;
  512. line-height: .53rem;
  513. width:80%;
  514. text-align: left;
  515. &:first-child{
  516. width: 20%;
  517. padding-left: 0.36rem;
  518. text-align: justify;
  519. }
  520. a{
  521. color: #145dee;
  522. }
  523. .click-tel, .click-phone{
  524. color: #f44336;
  525. }
  526. }
  527. /* &:last-child{
  528. div{
  529. width: 74%;
  530. padding-right:.34rem;
  531. word-wrap: break-word;
  532. &:first-child{
  533. text-align: left;
  534. padding: 0rem 0rem 0rem .36rem;
  535. width: 26%;
  536. }
  537. }
  538. }*/
  539. }
  540. }
  541. }
  542. .store-description{
  543. background: #fff;
  544. width: 6.96rem;
  545. margin: 0 auto .2rem;
  546. border-radius: .1rem;
  547. .content {
  548. text-indent:2em;
  549. background: #fff;
  550. margin: .2rem auto 0;
  551. padding: .04rem .34rem .4rem .34rem;
  552. width: 100%;
  553. font-size: .28rem;
  554. color: #666;
  555. text-align: left;
  556. height: 95%;
  557. /*box-shadow: 0 .03rem .01rem 0 #cdcbcb96;*/
  558. line-height: .5rem;
  559. word-break: break-all;
  560. }
  561. }
  562. }
  563. .middle {
  564. .order-tag {
  565. display: inline-block;
  566. font-size: .18rem;
  567. color: #fff;
  568. font-weight: bold;
  569. background: #ee1717;
  570. height: .27rem;
  571. width: .27rem;
  572. line-height: .27rem;
  573. text-align: center;
  574. border-radius: .05rem;
  575. position: relative;
  576. top: -.05rem;
  577. margin-right: .05rem;
  578. &.reserve-tag {
  579. background: #07bb1c;
  580. }
  581. }
  582. text-align: left;
  583. padding: 0.24rem 0.24rem;
  584. background: #fff;
  585. margin: 0.24rem 0.24rem 0;
  586. border-radius: 5px;
  587. border: 1px solid #e3e5e8;
  588. .pms {
  589. color: #f57710;
  590. border: 1px solid #f57710;
  591. border-radius: 0.4rem;
  592. background: #fff;
  593. font-size: 0.24rem;
  594. height: 0.4rem;
  595. line-height: 0.4rem;
  596. width: 0.8rem;
  597. text-align: center;
  598. }
  599. .list {
  600. .left {
  601. float: left;
  602. overflow: hidden;
  603. text-overflow: ellipsis;
  604. white-space: nowrap;
  605. }
  606. .textinfo {
  607. font-size: 0.18rem;
  608. margin-left: 0.1rem;
  609. display: inline-block;
  610. background: #3f84f6;
  611. color: #fff;
  612. font-weight: bold;
  613. border-radius: 3px;
  614. width: 0.8rem;
  615. height: 0.32rem;
  616. line-height: 0.32rem;
  617. text-align: center
  618. }
  619. .button {
  620. font-size: 0.3rem;
  621. color: #1a58dd;
  622. width: 0.92rem;
  623. height: 0.43rem;
  624. line-height: 0.43rem;
  625. text-align: center;
  626. border-radius: 5px;
  627. border:1px solid #1a58dd;
  628. display: inline-block;
  629. margin-right: 0.2rem;
  630. }
  631. margin-bottom: 0.18rem;
  632. &::after{
  633. clear: both;
  634. display: block;
  635. content: ' ';
  636. visibility: hidden;
  637. zoom: 1;
  638. }
  639. .fl {
  640. width: 3.2rem;
  641. float: left;
  642. overflow: hidden;
  643. text-overflow: ellipsis;
  644. white-space: nowrap;
  645. }
  646. .fr {
  647. text-align: left;
  648. width: 2.6rem;
  649. overflow: hidden;
  650. text-overflow: ellipsis;
  651. white-space: nowrap;
  652. }
  653. &.list-long {
  654. .fl {
  655. width: 100% !important;
  656. }
  657. }
  658. .name {
  659. color: #666;
  660. font-size: 0.28rem;
  661. display: inline-block;
  662. }
  663. .text {
  664. display: inline-block;
  665. color: #333;
  666. font-size: 0.28rem
  667. }
  668. .table {
  669. width: 5.25rem;
  670. margin-bottom: 0;
  671. margin-top: 0;
  672. margin-left: 0.1rem;
  673. li {
  674. height: 0.43rem;
  675. line-height: 0.43rem;
  676. border-left: .01rem solid #c5c5c5;
  677. font-size: .28rem;
  678. &::after {
  679. clear: both;
  680. display: block;
  681. content: ' ';
  682. visibility: hidden;
  683. zoom: 1;
  684. }
  685. div {
  686. text-align: center;
  687. width: 50%;
  688. float: left;
  689. border-right: .01rem solid #c5c5c5;
  690. border-bottom: .01rem solid #c5c5c5;
  691. }
  692. &:nth-child(odd) {
  693. background: #ddd;
  694. color: #333;
  695. font-size: 0.28rem;
  696. }
  697. &:nth-child(even) {
  698. background: #fcfcfc;
  699. color: #333;
  700. font-size: 0.28rem;
  701. }
  702. &:nth-last-of-type(1){
  703. color: #f31919;
  704. }
  705. &.title {
  706. font-size: 0.28rem;
  707. color: #333;
  708. }
  709. }
  710. }
  711. .pull-right {
  712. div {
  713. color: #3f84f6;
  714. font-size: 0.28rem;
  715. border-radius: 0.07rem;
  716. border: 1px solid #3f84f6;
  717. background: #fff;
  718. width: 2rem;
  719. line-height: 0.54rem;
  720. height: 0.54rem;
  721. text-align: center;
  722. }
  723. div:last-child {
  724. margin-left: 0.2rem;
  725. color: #fff;
  726. background: #3f84f6;
  727. }
  728. }
  729. i {
  730. &.icon-pdf {
  731. color: #929292;
  732. font-size: 0.4rem;
  733. }
  734. &.active {
  735. color: #eb062b;
  736. }
  737. }
  738. }
  739. }
  740. .product-store {
  741. margin: .2rem 0 0 0;
  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>