StoreDetail.vue 29 KB

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