StoreDetail.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  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 overHidden" style="width: 2.3rem">{{item.brandNameEn}}</div>
  100. </div>
  101. <div class="fl">
  102. <div class="name">交期(天):</div>
  103. <div class="text overHidden" style="width: 1.8rem" v-if="item.b2cMaxDelivery && (item.b2cMaxDelivery != item.b2cMinDelivery)" v-text="item.b2cMinDelivery + '-'+ item.b2cMaxDelivery"></div>
  104. <div class="text overHidden" style="width: 1.8rem" 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 overHidden" style="width: 1rem">{{item.kindNameCn || '-'}}</div>
  111. </div>
  112. <div class="fl">
  113. <div class="name">库存:</div>
  114. <div class="text overHidden" style="width: 2.3rem">{{item.reserve || '-'}}</div>
  115. </div>
  116. </div>
  117. <div class="list">
  118. <div class="fl">
  119. <div class="name">型号:</div>
  120. <div class="text overHidden" style="width: 2.3rem">{{item.code || '-'}}</div>
  121. </div>
  122. <div class="fl">
  123. <div class="name">起拍:</div>
  124. <div class="text overHidden" style="width: 2.3rem">{{item.minBuyQty || '-'}}</div>
  125. </div>
  126. </div>
  127. <div class="list">
  128. <div class="fl">
  129. <div class="name">规格:</div>
  130. <div class="text overHidden" style="width: 2.3rem">{{item.spec || '-'}}</div>
  131. </div>
  132. <div class="fl">
  133. <div class="name">包装:</div>
  134. <div class="text overHidden" style="width: 2.3rem">{{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 overHidden" style="width: 1.75rem" :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.uSDPrice}}</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. .overHidden {
  408. overflow: hidden;
  409. white-space: nowrap;
  410. text-overflow: ellipsis;
  411. }
  412. .store-detail {
  413. padding: 0 !important;;
  414. margin: 0.88rem auto 0rem;
  415. text-align: center;
  416. background: #f7f7f7;
  417. .store-logo {
  418. height: 3.27rem;
  419. width: 100%;
  420. display: inline-block;
  421. line-height: 2.13rem;
  422. background: #fff;
  423. text-align: center;
  424. background: url('/images/mobile/@2x/brand-bg2.png') no-repeat;
  425. background-size: cover;
  426. position: relative;
  427. .store-logo-box {
  428. border: .01rem solid #c7e5fd;
  429. border-radius: .1rem;
  430. height: 2.21rem;
  431. width: 3.73rem;
  432. margin: .5rem auto 0;
  433. background: #fff;
  434. position: relative;
  435. img {
  436. max-height: 2.1rem;
  437. max-width: 3.6rem;
  438. }
  439. >i {
  440. position: absolute;
  441. font-size: .4rem;
  442. background: #fff;
  443. width: .6rem;
  444. height: .6rem;
  445. line-height: .6rem;
  446. border-radius: 100%;
  447. box-shadow: 0 0 .05rem #aaa;
  448. right: -1.44rem;
  449. top: .75rem;
  450. text-align: center;
  451. }
  452. }
  453. }
  454. .store-switch-item {
  455. text-align: center;
  456. background: #fff;
  457. position: absolute;
  458. width: 100%;
  459. bottom: 0;
  460. left: 0;
  461. height: 0.83rem;
  462. line-height: 0.83rem;
  463. border-bottom: 1px solid #ccc;
  464. .mobile-switch-btn {
  465. background: #fff;
  466. color: #666;
  467. display: inline-block;
  468. font-size: .34rem;
  469. width: 1.4rem;
  470. height: 0.79rem;
  471. line-height: 0.79rem;
  472. &:first-child {
  473. margin-right: 1.78rem;
  474. }
  475. &.active {
  476. color: #fc5708;
  477. border-bottom: .04rem solid #fc5708;
  478. }
  479. }
  480. }
  481. .store-info {
  482. background: #f7f7f7;
  483. h4{
  484. width: 100%;
  485. text-align: left;
  486. font-size: 0.3rem;
  487. line-height: 0.6rem;
  488. height: 0.6rem;
  489. letter-spacing: 0px;
  490. color: #333;
  491. font-weight: normal;
  492. border-bottom: 1px solid #efeded;
  493. padding-left: 0.11rem;
  494. &:before{
  495. content: '';
  496. display: inline-block;
  497. width: 0.08rem;
  498. height: 0.26rem;
  499. background-color: #145dee;
  500. margin-right: 0.13rem;
  501. position: relative;
  502. top: 0.02rem;
  503. }
  504. }
  505. .contact-info{
  506. background: #fff;
  507. margin: .2rem auto;
  508. border-radius: .1rem;
  509. ul{
  510. padding: 0.22rem 0rem;
  511. li{
  512. div{
  513. float: left;
  514. font-size: .28rem;
  515. color: #666;
  516. line-height: .53rem;
  517. width:80%;
  518. text-align: left;
  519. &:first-child{
  520. width: 20%;
  521. padding-left: 0.36rem;
  522. text-align: justify;
  523. }
  524. a{
  525. color: #145dee;
  526. }
  527. .click-tel, .click-phone{
  528. color: #f44336;
  529. }
  530. }
  531. /* &:last-child{
  532. div{
  533. width: 74%;
  534. padding-right:.34rem;
  535. word-wrap: break-word;
  536. &:first-child{
  537. text-align: left;
  538. padding: 0rem 0rem 0rem .36rem;
  539. width: 26%;
  540. }
  541. }
  542. }*/
  543. }
  544. }
  545. }
  546. .store-description{
  547. background: #fff;
  548. /*width: 6.96rem;*/
  549. margin: 0 auto .2rem;
  550. border-radius: .1rem;
  551. .content {
  552. text-indent:2em;
  553. background: #fff;
  554. margin: .2rem auto 0;
  555. padding: .04rem .34rem .4rem .34rem;
  556. width: 100%;
  557. font-size: .28rem;
  558. color: #666;
  559. text-align: left;
  560. height: 95%;
  561. /*box-shadow: 0 .03rem .01rem 0 #cdcbcb96;*/
  562. line-height: .5rem;
  563. word-break: break-all;
  564. }
  565. }
  566. }
  567. .middle {
  568. .order-tag {
  569. display: inline-block;
  570. font-size: .18rem;
  571. color: #fff;
  572. font-weight: bold;
  573. background: #ee1717;
  574. height: .27rem;
  575. width: .27rem;
  576. line-height: .27rem;
  577. text-align: center;
  578. border-radius: .05rem;
  579. position: relative;
  580. top: -.05rem;
  581. margin-right: .05rem;
  582. &.reserve-tag {
  583. background: #07bb1c;
  584. }
  585. }
  586. text-align: left;
  587. padding: 0.24rem 0.24rem;
  588. background: #fff;
  589. margin: 0.24rem 0.24rem 0;
  590. border-radius: 5px;
  591. border: 1px solid #e3e5e8;
  592. .pms {
  593. color: #f57710;
  594. border: 1px solid #f57710;
  595. border-radius: 0.4rem;
  596. background: #fff;
  597. font-size: 0.24rem;
  598. height: 0.4rem;
  599. line-height: 0.4rem;
  600. width: 0.8rem;
  601. text-align: center;
  602. }
  603. .list {
  604. .left {
  605. float: left;
  606. overflow: hidden;
  607. text-overflow: ellipsis;
  608. white-space: nowrap;
  609. }
  610. .textinfo {
  611. font-size: 0.18rem;
  612. margin-left: 0.1rem;
  613. display: inline-block;
  614. background: #3f84f6;
  615. color: #fff;
  616. font-weight: bold;
  617. border-radius: 3px;
  618. width: 0.8rem;
  619. height: 0.32rem;
  620. line-height: 0.32rem;
  621. text-align: center
  622. }
  623. .button {
  624. font-size: 0.3rem;
  625. color: #1a58dd;
  626. width: 0.92rem;
  627. height: 0.43rem;
  628. line-height: 0.43rem;
  629. text-align: center;
  630. border-radius: 5px;
  631. border:1px solid #1a58dd;
  632. display: inline-block;
  633. margin-right: 0.2rem;
  634. }
  635. margin-bottom: 0.18rem;
  636. &::after{
  637. clear: both;
  638. display: block;
  639. content: ' ';
  640. visibility: hidden;
  641. zoom: 1;
  642. }
  643. .fl {
  644. width: 3.2rem;
  645. float: left;
  646. }
  647. .fr {
  648. text-align: left;
  649. width: 2.6rem;
  650. overflow: hidden;
  651. text-overflow: ellipsis;
  652. white-space: nowrap;
  653. }
  654. &.list-long {
  655. .fl {
  656. width: 100% !important;
  657. }
  658. }
  659. .name {
  660. color: #666;
  661. font-size: 0.28rem;
  662. display: inline-block;
  663. }
  664. .text {
  665. display: inline-block;
  666. color: #333;
  667. font-size: 0.28rem;
  668. vertical-align: top;
  669. }
  670. .table {
  671. width: 5.25rem;
  672. margin-bottom: 0;
  673. margin-top: 0;
  674. margin-left: 0.1rem;
  675. li {
  676. height: 0.43rem;
  677. line-height: 0.43rem;
  678. border-left: .01rem solid #c5c5c5;
  679. font-size: .28rem;
  680. &::after {
  681. clear: both;
  682. display: block;
  683. content: ' ';
  684. visibility: hidden;
  685. zoom: 1;
  686. }
  687. div {
  688. text-align: center;
  689. width: 50%;
  690. float: left;
  691. border-right: .01rem solid #c5c5c5;
  692. border-bottom: .01rem solid #c5c5c5;
  693. }
  694. &:nth-child(odd) {
  695. background: #ddd;
  696. color: #333;
  697. font-size: 0.28rem;
  698. }
  699. &:nth-child(even) {
  700. background: #fcfcfc;
  701. color: #333;
  702. font-size: 0.28rem;
  703. }
  704. &:nth-last-of-type(1){
  705. color: #f31919;
  706. }
  707. &.title {
  708. font-size: 0.28rem;
  709. color: #333;
  710. }
  711. }
  712. }
  713. .pull-right {
  714. div {
  715. color: #3f84f6;
  716. font-size: 0.28rem;
  717. border-radius: 0.07rem;
  718. border: 1px solid #3f84f6;
  719. background: #fff;
  720. width: 2rem;
  721. line-height: 0.54rem;
  722. height: 0.54rem;
  723. text-align: center;
  724. }
  725. div:last-child {
  726. margin-left: 0.2rem;
  727. color: #fff;
  728. background: #3f84f6;
  729. }
  730. }
  731. i {
  732. &.icon-pdf {
  733. color: #929292;
  734. font-size: 0.4rem;
  735. }
  736. &.active {
  737. color: #eb062b;
  738. }
  739. }
  740. }
  741. }
  742. .product-store {
  743. margin: .2rem 0 0 0;
  744. padding-bottom: 1.2rem;
  745. table {
  746. width: 100%;
  747. font-size: .28rem;
  748. thead {
  749. background: #d5e5fb;
  750. &.active {
  751. position: fixed;
  752. top: .88rem;
  753. z-index: 2;
  754. }
  755. tr {
  756. th {
  757. text-align: center;
  758. height: .98rem;
  759. line-height: normal;
  760. font-size: .26rem;
  761. font-weight: normal;
  762. color: #333;
  763. }
  764. }
  765. }
  766. tbody {
  767. tr {
  768. background: #fff;
  769. border-bottom: 0.2rem solid #f7f7f7;
  770. td {
  771. padding: .2rem .1rem;
  772. text-align: left;
  773. &.price-level-wrap {
  774. text-align: center;
  775. }
  776. div {
  777. overflow: hidden;
  778. text-overflow: ellipsis;
  779. white-space: nowrap;
  780. margin-bottom: .2rem;
  781. max-width: 1.58rem;
  782. &:last-child {
  783. margin-bottom: 0;
  784. }
  785. }
  786. .price-level:last-child {
  787. color: #fc5708;
  788. }
  789. .price-number {
  790. display: inline-block;
  791. vertical-align: middle;
  792. margin-bottom: 0;
  793. width: .9rem;
  794. }
  795. .order-tag {
  796. display: inline-block;
  797. font-size: .18rem;
  798. color: #fff;
  799. font-weight: bold;
  800. background: #ee1717;
  801. height: .27rem;
  802. width: .27rem;
  803. line-height: .27rem;
  804. text-align: center;
  805. border-radius: .05rem;
  806. position: relative;
  807. top: -.05rem;
  808. margin-right: .05rem;
  809. &.reserve-tag {
  810. background: #07bb1c;
  811. }
  812. }
  813. }
  814. &:active {
  815. background: #e1e1e1;
  816. }
  817. }
  818. }
  819. }
  820. .no-store {
  821. background: #fff;
  822. padding-top: 1rem;
  823. img {
  824. display: block;
  825. text-align: center;
  826. margin: 0 auto;
  827. margin-bottom: .45rem;
  828. width: 3.31rem;
  829. height: 2.13rem;
  830. }
  831. div {
  832. width: 5.27rem;
  833. margin: 0 auto;
  834. text-align: center;
  835. line-height: .4rem;
  836. color: #999;
  837. .link-url {
  838. color: #01a44e;
  839. }
  840. }
  841. }
  842. }
  843. .no-product {
  844. background: #fff;
  845. padding-top: 1rem;
  846. img {
  847. display: block;
  848. text-align: center;
  849. margin: 0 auto;
  850. margin-bottom: .45rem;
  851. width: 3.31rem;
  852. height: 2.13rem;
  853. }
  854. div {
  855. width: 5.27rem;
  856. margin: 0 auto;
  857. text-align: center;
  858. line-height: .4rem;
  859. font-size: .32rem;
  860. color: #999;
  861. }
  862. }
  863. }
  864. .com-none-state {
  865. background: #fff !important;
  866. padding: .3rem;
  867. margin: 0;
  868. p {
  869. margin: 0;
  870. font-size: .28rem;
  871. }
  872. }
  873. .search-content {
  874. padding: .07rem 0;
  875. input {
  876. width: 6.37rem;
  877. border: 1px solid #376ff3;
  878. }
  879. }
  880. .cancat {
  881. height: 0.56rem;
  882. line-height: 0.56rem;
  883. border: 1px solid #3f84f6;
  884. color: #3f84f6;
  885. font-size: 0.26rem;
  886. text-align: center;
  887. border-radius: 3px;
  888. padding: 0 0.1rem;
  889. overflow: hidden;
  890. width: auto;
  891. i {
  892. font-size: 0.26rem;
  893. }
  894. }
  895. .lookjianjie {
  896. position: fixed;
  897. top: 0;
  898. right: 0.4rem;
  899. font-size: 0.28rem;
  900. color: #fff;
  901. z-index: 11;
  902. line-height: 0.88rem;
  903. i {
  904. font-size: 0.28rem;
  905. color: #fff;
  906. transform: rotate(180deg);
  907. display: inline-block;
  908. }
  909. }
  910. </style>