index.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. <template>
  2. <view>
  3. <!-- 顶部搜索 -->
  4. <view class="search">
  5. <input type="text" placeholder="搜索门店" class="search-box" />
  6. </view>
  7. <!-- 门店列表 -->
  8. <view class="content" v-if="!defaultShow">
  9. <view class="list">
  10. <view class="left">
  11. <view class="name">
  12. 小米之家陕西西安碑林区店
  13. </view>
  14. <view class="adress">
  15. 陕西省咸阳市奥林匹克花园三期北京 奥运村
  16. </view>
  17. <view class="adress">
  18. 营业时间:10:00-21:00
  19. </view>
  20. </view>
  21. <view class="right">
  22. <view class="gostore">
  23. 进店选购
  24. </view>
  25. <view class="distance">
  26. 距离2.1km
  27. </view>
  28. <view class="telephone">
  29. <view class="phone">
  30. <text class="iconfont icon-dianhau"></text>
  31. </view>
  32. <view class="phone">
  33. <text class="iconfont icon-weizhi"></text>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 缺省页 -->
  40. <view class="default">
  41. <image :src="imgHost+'/statics/images/store-default.png'" alt="" class="img" />
  42. <view class="text">
  43. 暂无门店信息,再去试试其他地址吧~
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. import {
  50. HTTP_REQUEST_URL
  51. } from '@/config/app';
  52. export default {
  53. data() {
  54. return {
  55. defaultShow:true,
  56. imgHost: HTTP_REQUEST_URL,
  57. };
  58. }
  59. }
  60. </script>
  61. <style lang="scss">
  62. .search {
  63. width: 100%;
  64. height: 92rpx;
  65. background-color: #fff;
  66. padding: 0 30rpx;
  67. .search-box {
  68. position: relative;
  69. padding-left: 20rpx;
  70. width: 100%;
  71. height: 60rpx;
  72. background: #F5F5F5;
  73. border-radius: 30rpx;
  74. font-size: 26rpx;
  75. font-weight: 400;
  76. color: #CCCCCC;
  77. .icon-sousuo6 {
  78. margin-left: 24rpx;
  79. margin-right: 10rpx;
  80. font-size: 30rpx;
  81. }
  82. }
  83. }
  84. .content {
  85. width: 100%;
  86. height: 100%;
  87. padding: 0 30rpx;
  88. .list {
  89. display: flex;
  90. margin-top: 20rpx;
  91. width: 100%;
  92. height: 218rpx;
  93. background: #FFFFFF;
  94. border-radius: 12rpx;
  95. .left {
  96. flex: 2;
  97. padding: 28rpx 0 0 30rpx;
  98. .name {
  99. font-size: 28rpx;
  100. font-weight: 500;
  101. color: #333333;
  102. }
  103. .adress {
  104. width: 352rpx;
  105. margin-top: 18rpx;
  106. word-wrap: break-word;
  107. font-size: 22rpx;
  108. font-weight: 400;
  109. color: #888888;
  110. }
  111. }
  112. .right {
  113. margin: 52rpx 0 0 100rpx;
  114. flex: 1;
  115. .gostore {
  116. font-size: 22rpx;
  117. font-weight: 400;
  118. color: #E93323;
  119. }
  120. .distance {
  121. margin-top: 14rpx;
  122. font-size: 20rpx;
  123. font-weight: 400;
  124. color: #999999;
  125. }
  126. .telephone {
  127. margin-top: 14rpx;
  128. display: flex;
  129. .phone {
  130. margin-right: 24rpx;
  131. width: 40rpx;
  132. height: 40rpx;
  133. background-color: pink;
  134. border-radius: 50%;
  135. text-align: center;
  136. line-height: 40rpx;
  137. .icon-dianhau {
  138. font-size: 25rpx;
  139. color: red !important;
  140. }
  141. .icon-weizhi {
  142. font-size: 25rpx;
  143. color: red !important;
  144. }
  145. }
  146. }
  147. }
  148. }
  149. }
  150. .default {
  151. width: 100%;
  152. height: 100%;
  153. .img {
  154. width: 414rpx;
  155. height: 256rpx;
  156. }
  157. }
  158. .default {
  159. margin-top: 80rpx;
  160. display: flex;
  161. flex-direction: column;
  162. align-items: center;
  163. .text {
  164. margin-top: 54rpx;
  165. font-size: 26rpx;
  166. font-weight: 400;
  167. color: #999999;
  168. }
  169. }
  170. </style>