StoreDetail.vue 29 KB

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