StoreDetail.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  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="searchLists&&searchLists.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="name left">价格梯度<p>(pcs):</p></div>
  138. <div class="table left">
  139. <ul>
  140. <li class="title">
  141. <div>分段数量/PCS</div>
  142. <div>分段单价</div>
  143. </li>
  144. <li v-for="price in item.prices">
  145. <div>{{price.start}}+</div>
  146. <div v-if="item.currencyName == 'RMB'">¥{{price.rMBPrice}}</div>
  147. <div v-else>${{price.rMBPrice}}</div>
  148. </li>
  149. </ul>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. </div>
  155. <empty-status :type="isSearch ? 'search' : 'collect'"
  156. :text="isSearch ? `抱歉,暂无与“${remindKeyword}”匹配的产品信息`: '抱歉,暂无产品信息'"
  157. :showLink="false"
  158. v-else
  159. ></empty-status>
  160. </div>
  161. <remind-box :title="collectResult" :timeoutCount="timeoutCount"></remind-box>
  162. <login-box @onLoginBoxClose="showLoginBox = false" v-if="showLoginBox" :url="url"></login-box>
  163. <pull-up :searchMore="fetching" :allPage="allPage" :page="page" @pullUpAction="getMoreSearch"></pull-up>
  164. </div>
  165. </template>
  166. <script>
  167. import {RemindBox, LoginBox, PullUp, EmptyStatus} from '~components/mobile/common'
  168. export default {
  169. data () {
  170. return {
  171. activeType: 'product',
  172. collectResult: '收藏成功',
  173. timeoutCount: 0,
  174. clickTel: false,
  175. clickPhone: false,
  176. searchLists: [],
  177. page: 1,
  178. count: 10,
  179. showLoginBox: false,
  180. isScrollOverTab: false,
  181. url: '',
  182. keyword: '',
  183. remindKeyword: '',
  184. isChange: false,
  185. isSearch: false
  186. }
  187. },
  188. components: {
  189. RemindBox,
  190. LoginBox,
  191. PullUp,
  192. EmptyStatus
  193. },
  194. filters: {
  195. currency: function (num) {
  196. if (typeof num === 'number') {
  197. if (num <= 0.000001) {
  198. num = 0.000001
  199. } else {
  200. if (num.toString().indexOf('.') === -1) {
  201. num += '.00'
  202. } else {
  203. let inputStr = num.toString()
  204. let arr = inputStr.split('.')
  205. let floatNum = arr[1]
  206. if (floatNum) {
  207. if (floatNum.length > 6) {
  208. num = inputStr.substring(0, arr[0].length + 7)
  209. if (Number(floatNum.charAt(6)) > 4) {
  210. num = (Number(num) * 1000000 + 1) / 1000000
  211. }
  212. } else if (floatNum.length === 1) {
  213. num = num + '0'
  214. }
  215. }
  216. }
  217. }
  218. }
  219. return num
  220. }
  221. },
  222. created () {
  223. this.clickTel = false
  224. this.clickPhone = false
  225. },
  226. computed: {
  227. store () {
  228. return this.$store.state.shop.storeInfo.store.data
  229. },
  230. commodities () {
  231. let list = this.$store.state.shop.storeInfo.storeCommodity.data
  232. if (this.isChange) {
  233. this.searchLists = []
  234. this.page = 1
  235. this.isChange = false
  236. } else {
  237. this.searchLists = [...this.searchLists, ...list.content]
  238. this.isSearchSearchingMore = false
  239. }
  240. return list
  241. },
  242. fetching () {
  243. return this.$store.state.shop.storeInfo.storeCommodity.fetching
  244. },
  245. allPage () {
  246. return this.commodities.totalPages
  247. },
  248. isFocus () {
  249. return this.$store.state.shop.storeInfo.focusList.data
  250. },
  251. user () {
  252. return this.$store.state.option.user
  253. },
  254. showIcon() {
  255. return this.store.uuid !== this.$store.state.option.storeStatus.data.uuid
  256. }
  257. },
  258. methods: {
  259. scroll: function () {
  260. let tbodyObj = document.getElementById('product-body')
  261. let theadObj = document.getElementById('product-head')
  262. if (theadObj) {
  263. this.isScrollOverTab = tbodyObj.getBoundingClientRect().top - theadObj.getBoundingClientRect().height - 5 <= theadObj.getBoundingClientRect().height
  264. }
  265. },
  266. getMoreSearch: function () {
  267. this.page++
  268. this.pageCommodity({ page: this.page, count: this.count })
  269. },
  270. async pageCommodity (pageParams) {
  271. let params = { storeid: this.$route.params.uuid, origin: 'store', code: this.keyword }
  272. params.page = pageParams.page
  273. params.count = pageParams.count
  274. try {
  275. let { data } = await this.$http.get('/api/commodity/commodities', { params })
  276. this.$store.commit('shop/storeInfo/GET_STORE_COMMODITY_SUCCESS', data)
  277. } catch (err) {
  278. this.$store.commit('shop/storeInfo/GET_STORE_COMMODITY_FAILURE', err)
  279. }
  280. },
  281. goProductDetail: function (com) {
  282. // if (uuid) {
  283. // this.$router.push('/mobile/brand/componentDetail/' + uuid)
  284. // } else {
  285. // this.collectResult = '卖家上传的产品暂无参数,请联系卖家了解具体详情。'
  286. // this.timeoutCount ++
  287. // }
  288. if (com.batchCode) {
  289. this.$router.push('/mobile/product/' + com.batchCode)
  290. } else {
  291. this.collectResult = '产品参数错误'
  292. this.timeoutCount ++
  293. }
  294. },
  295. collectStore: function () {
  296. if (this.user.logged) {
  297. if (this.isFocus === 'false') {
  298. this.$store.dispatch('shop/StoreFocus', {storeName: this.store.storeName, storeid: this.store.id})
  299. .then(response => {
  300. this.$store.dispatch('shop/StoreFocusList', {id: this.store.id})
  301. this.collectResult = '关注成功'
  302. this.timeoutCount++
  303. })
  304. } else if (this.isFocus === 'true') {
  305. this.$http.post('/trade/storeFocus/delete/storeId', [this.store.id])
  306. .then(response => {
  307. this.$store.dispatch('shop/StoreFocusList', {id: this.store.id})
  308. this.collectResult = '取消成功'
  309. this.timeoutCount++
  310. })
  311. }
  312. } else {
  313. this.url = this.$route.fullPath
  314. this.showLoginBox = true
  315. }
  316. },
  317. search: function () {
  318. this.page = 1
  319. this.isChange = true
  320. this.isSearch = true
  321. this.remindKeyword = this.keyword
  322. this.pageCommodity({ page: this.page, count: this.count })
  323. }
  324. }
  325. }
  326. </script>
  327. <style lang="scss" scoped>
  328. .mobile-header {
  329. border-bottom: 0px !important;
  330. }
  331. .store-detail {
  332. margin: 0 auto;
  333. margin-bottom: 1.2rem;
  334. text-align: center;
  335. background: #f7f7f7;
  336. height: 100%;
  337. .store-logo {
  338. height: 4.49rem;
  339. width: 100%;
  340. display: inline-block;
  341. line-height: 2.13rem;
  342. background: #fff;
  343. text-align: center;
  344. background: url('/images/mobile/@2x/brand-bg2.jpg') no-repeat;
  345. background-size: cover;
  346. position: relative;
  347. .store-logo-box {
  348. border: .01rem solid #c7e5fd;
  349. border-radius: .1rem;
  350. height: 2.21rem;
  351. width: 3.73rem;
  352. margin: .5rem auto 0;
  353. background: #fff;
  354. position: relative;
  355. img {
  356. max-height: 2.1rem;
  357. max-width: 3.6rem;
  358. }
  359. >i {
  360. position: absolute;
  361. font-size: .4rem;
  362. background: #fff;
  363. width: .6rem;
  364. height: .6rem;
  365. line-height: .6rem;
  366. border-radius: 100%;
  367. box-shadow: 0 0 .05rem #aaa;
  368. right: -1.44rem;
  369. top: .75rem;
  370. text-align: center;
  371. }
  372. }
  373. }
  374. .store-switch-item {
  375. text-align: center;
  376. background: #fff;
  377. position: absolute;
  378. width: 100%;
  379. bottom: 0;
  380. left: 0;
  381. height: 0.83rem;
  382. line-height: 0.83rem;
  383. border-bottom: 1px solid #ccc;
  384. .mobile-switch-btn {
  385. background: #fff;
  386. color: #666;
  387. display: inline-block;
  388. font-size: .34rem;
  389. width: 1.4rem;
  390. height: 0.79rem;
  391. line-height: 0.79rem;
  392. &:first-child {
  393. margin-right: 1.78rem;
  394. }
  395. &.active {
  396. color: #fc5708;
  397. border-bottom: .04rem solid #fc5708;
  398. }
  399. }
  400. }
  401. .store-info {
  402. background: #f7f7f7;
  403. width: 100%;
  404. h4{
  405. width: 100%;
  406. text-align: left;
  407. font-size: 0.3rem;
  408. line-height: 0.6rem;
  409. height: 0.6rem;
  410. letter-spacing: 0px;
  411. color: #333;
  412. font-weight: normal;
  413. border-bottom: 1px solid #efeded;
  414. padding-left: 0.11rem;
  415. &:before{
  416. content: '';
  417. display: inline-block;
  418. width: 0.08rem;
  419. height: 0.26rem;
  420. background-color: #145dee;
  421. margin-right: 0.13rem;
  422. position: relative;
  423. top: 0.02rem;
  424. }
  425. }
  426. .contact-info{
  427. background: #fff;
  428. width: 6.96rem;
  429. margin: .2rem auto;
  430. border-radius: .1rem;
  431. ul{
  432. padding: 0.22rem 0rem;
  433. li{
  434. div{
  435. float: left;
  436. font-size: .28rem;
  437. color: #666;
  438. line-height: .53rem;
  439. width:80%;
  440. text-align: left;
  441. &:first-child{
  442. width: 20%;
  443. padding-left: 0.36rem;
  444. text-align: justify;
  445. }
  446. a{
  447. color: #145dee;
  448. }
  449. .click-tel, .click-phone{
  450. color: #f44336;
  451. }
  452. }
  453. /* &:last-child{
  454. div{
  455. width: 74%;
  456. padding-right:.34rem;
  457. word-wrap: break-word;
  458. &:first-child{
  459. text-align: left;
  460. padding: 0rem 0rem 0rem .36rem;
  461. width: 26%;
  462. }
  463. }
  464. }*/
  465. }
  466. }
  467. }
  468. .store-description{
  469. background: #fff;
  470. width: 6.96rem;
  471. margin: .2rem auto;
  472. border-radius: .1rem;
  473. .content {
  474. text-indent:2em;
  475. background: #fff;
  476. margin: .2rem auto 0;
  477. padding: .04rem .34rem .4rem .34rem;
  478. width: 100%;
  479. font-size: .28rem;
  480. color: #666;
  481. text-align: left;
  482. height: 95%;
  483. /*box-shadow: 0 .03rem .01rem 0 #cdcbcb96;*/
  484. line-height: .5rem;
  485. word-break: break-all;
  486. }
  487. }
  488. }
  489. .middle {
  490. .order-tag {
  491. display: inline-block;
  492. font-size: .18rem;
  493. color: #fff;
  494. font-weight: bold;
  495. background: #ee1717;
  496. height: .27rem;
  497. width: .27rem;
  498. line-height: .27rem;
  499. text-align: center;
  500. border-radius: .05rem;
  501. position: relative;
  502. top: -.05rem;
  503. margin-right: .05rem;
  504. &.reserve-tag {
  505. background: #07bb1c;
  506. }
  507. }
  508. text-align: left;
  509. padding: 0.24rem 0.24rem;
  510. background: #fff;
  511. margin: 0.24rem 0.24rem 0;
  512. border-radius: 5px;
  513. border: 1px solid #e3e5e8;
  514. .pms {
  515. color: #f57710;
  516. border: 1px solid #f57710;
  517. border-radius: 0.4rem;
  518. background: #fff;
  519. font-size: 0.24rem;
  520. height: 0.4rem;
  521. line-height: 0.4rem;
  522. width: 0.8rem;
  523. text-align: center;
  524. }
  525. .list {
  526. .left {
  527. float: left;
  528. overflow: hidden;
  529. text-overflow: ellipsis;
  530. white-space: nowrap;
  531. }
  532. .textinfo {
  533. font-size: 0.18rem;
  534. margin-left: 0.1rem;
  535. display: inline-block;
  536. background: #3f84f6;
  537. color: #fff;
  538. font-weight: bold;
  539. border-radius: 3px;
  540. width: 0.8rem;
  541. height: 0.32rem;
  542. line-height: 0.32rem;
  543. text-align: center
  544. }
  545. .button {
  546. font-size: 0.3rem;
  547. color: #1a58dd;
  548. width: 0.92rem;
  549. height: 0.43rem;
  550. line-height: 0.43rem;
  551. text-align: center;
  552. border-radius: 5px;
  553. border:1px solid #1a58dd;
  554. display: inline-block;
  555. margin-right: 0.2rem;
  556. }
  557. margin-bottom: 0.18rem;
  558. &::after{
  559. clear: both;
  560. display: block;
  561. content: ' ';
  562. visibility: hidden;
  563. zoom: 1;
  564. }
  565. .fl {
  566. width: 4.4rem;
  567. float: left;
  568. overflow: hidden;
  569. text-overflow: ellipsis;
  570. white-space: nowrap;
  571. }
  572. .fr {
  573. text-align: left;
  574. width: 2.6rem;
  575. overflow: hidden;
  576. text-overflow: ellipsis;
  577. white-space: nowrap;
  578. }
  579. &.list-long {
  580. .fl {
  581. width: 100% !important;
  582. }
  583. }
  584. .name {
  585. color: #333;
  586. font-size: 0.28rem;
  587. display: inline-block;
  588. }
  589. .text {
  590. display: inline-block;
  591. color: #333;
  592. font-size: 0.28rem
  593. }
  594. .table {
  595. width: 5rem;
  596. margin-bottom: 0;
  597. margin-top: 0;
  598. margin-left: 0.1rem;
  599. li {
  600. height: 0.43rem;
  601. line-height: 0.43rem;
  602. border-left: .01rem solid #c5c5c5;
  603. font-size: .28rem;
  604. &::after {
  605. clear: both;
  606. display: block;
  607. content: ' ';
  608. visibility: hidden;
  609. zoom: 1;
  610. }
  611. div {
  612. text-align: center;
  613. width: 50%;
  614. float: left;
  615. border-right: .01rem solid #c5c5c5;
  616. border-bottom: .01rem solid #c5c5c5;
  617. }
  618. &:nth-child(odd) {
  619. background: #ddd;
  620. color: #333;
  621. font-size: 0.28rem;
  622. }
  623. &:nth-child(even) {
  624. background: #fcfcfc;
  625. color: #333;
  626. font-size: 0.28rem;
  627. }
  628. &:nth-last-of-type(1){
  629. color: #f31919;
  630. }
  631. &.title {
  632. font-size: 0.28rem;
  633. color: #333;
  634. }
  635. }
  636. }
  637. }
  638. }
  639. .product-store {
  640. margin: .2rem 0 0 0;
  641. table {
  642. width: 100%;
  643. font-size: .28rem;
  644. thead {
  645. background: #d5e5fb;
  646. &.active {
  647. position: fixed;
  648. top: .88rem;
  649. z-index: 2;
  650. }
  651. tr {
  652. th {
  653. text-align: center;
  654. height: .98rem;
  655. line-height: normal;
  656. font-size: .26rem;
  657. font-weight: normal;
  658. color: #333;
  659. }
  660. }
  661. }
  662. tbody {
  663. tr {
  664. background: #fff;
  665. border-bottom: 0.2rem solid #f7f7f7;
  666. td {
  667. padding: .2rem .1rem;
  668. text-align: left;
  669. &.price-level-wrap {
  670. text-align: center;
  671. }
  672. div {
  673. overflow: hidden;
  674. text-overflow: ellipsis;
  675. white-space: nowrap;
  676. margin-bottom: .2rem;
  677. max-width: 1.58rem;
  678. &:last-child {
  679. margin-bottom: 0;
  680. }
  681. }
  682. .price-level:last-child {
  683. color: #fc5708;
  684. }
  685. .price-number {
  686. display: inline-block;
  687. vertical-align: middle;
  688. margin-bottom: 0;
  689. width: .9rem;
  690. }
  691. .order-tag {
  692. display: inline-block;
  693. font-size: .18rem;
  694. color: #fff;
  695. font-weight: bold;
  696. background: #ee1717;
  697. height: .27rem;
  698. width: .27rem;
  699. line-height: .27rem;
  700. text-align: center;
  701. border-radius: .05rem;
  702. position: relative;
  703. top: -.05rem;
  704. margin-right: .05rem;
  705. &.reserve-tag {
  706. background: #07bb1c;
  707. }
  708. }
  709. }
  710. &:active {
  711. background: #e1e1e1;
  712. }
  713. }
  714. }
  715. }
  716. .no-store {
  717. background: #fff;
  718. padding-top: 1rem;
  719. img {
  720. display: block;
  721. text-align: center;
  722. margin: 0 auto;
  723. margin-bottom: .45rem;
  724. width: 3.31rem;
  725. height: 2.13rem;
  726. }
  727. div {
  728. width: 5.27rem;
  729. margin: 0 auto;
  730. text-align: center;
  731. line-height: .4rem;
  732. color: #999;
  733. .link-url {
  734. color: #01a44e;
  735. }
  736. }
  737. }
  738. }
  739. .no-product {
  740. background: #fff;
  741. padding-top: 1rem;
  742. img {
  743. display: block;
  744. text-align: center;
  745. margin: 0 auto;
  746. margin-bottom: .45rem;
  747. width: 3.31rem;
  748. height: 2.13rem;
  749. }
  750. div {
  751. width: 5.27rem;
  752. margin: 0 auto;
  753. text-align: center;
  754. line-height: .4rem;
  755. font-size: .32rem;
  756. color: #999;
  757. }
  758. }
  759. }
  760. .com-none-state {
  761. background: #fff !important;
  762. padding: .3rem;
  763. margin: 0;
  764. p {
  765. margin: 0;
  766. font-size: .28rem;
  767. }
  768. }
  769. .search-content {
  770. padding: .07rem 0;
  771. input {
  772. width: 6.37rem;
  773. border: 1px solid #376ff3;
  774. }
  775. }
  776. </style>