store.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <view class="center">
  3. <view class="search-top">
  4. <view class="search flex">
  5. <view class="shop-name clamp">椒江区</view>
  6. <image class="shop-jt" src="../../static/icon/dsjh.png" mode=""></image>
  7. <view class="input-box flex">
  8. <view class=" input-content flex">
  9. <image src="../../static/icon/search-h.png" mode="" class="" style="width: 32rpx;height: 32rpx;"></image>
  10. <view class="input"><input type="text" value="输入关键字搜索" /></view>
  11. </view>
  12. </view>
  13. <view class="search-tit" @click.stop="clickSearch">搜索</view>
  14. </view>
  15. <view class="shop">
  16. <view class="shop-title">
  17. <view class="shop-item">
  18. <view class="sitem-font">智能排序</view>
  19. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  20. </view>
  21. <view class="shop-item">
  22. <view class="sitem-font">位置距离</view>
  23. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  24. </view>
  25. <view class="shop-item">
  26. <view class="sitem-font">折扣优惠</view>
  27. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  28. </view>
  29. <view class="shop-item">
  30. <view class="sitem-font">筛选</view>
  31. <image class="jt-down" src="../../static/index/index06.png" mode=""></image>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view class="jg" style="height: 120rpx;"></view>
  37. <view class="shop">
  38. <view class="shop-main flex" v-for="(item, index) in 100" :key="index" @click="navTo('/pages/store/storeInfo')">
  39. <image class="main-left" src="../../static/index/index13.png" mode=""></image>
  40. <view class="main-right flex">
  41. <view class="shopm-info">
  42. <view class="shopm-title">
  43. <view class="shopmt-font clamp">李家烤肉11111111111111111111111111111111111111111111</view>
  44. </view>
  45. <!-- <view class="address">椒江区市府大道200号</view> -->
  46. <view class="shopmt-tip">椒江区市府大道200号</view>
  47. </view>
  48. <view class="right">
  49. <view class="mright-top">
  50. <image class="mrt-image" src="../../static/index/index10.png" mode=""></image>
  51. <view class="mrt-font">距离0.3KM</view>
  52. </view>
  53. <view class="mright-bottom">
  54. <image class="mrb-item" src="../../static/index/index14.png" mode=""></image>
  55. <image class="mrb-item" src="../../static/index/index11.png" mode=""></image>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </template>
  63. <script>
  64. export default {
  65. data() {
  66. return {};
  67. },
  68. methods:{
  69. navTo(url){
  70. uni.navigateTo({
  71. url,
  72. fail() {
  73. uni.switchTab({
  74. url
  75. })
  76. }
  77. })
  78. }
  79. }
  80. };
  81. </script>
  82. <style lang="less">
  83. .kong {
  84. height: 100vh;
  85. }
  86. .search-top {
  87. position: fixed;
  88. top: 0;
  89. z-index: 99;
  90. }
  91. .search {
  92. justify-content: flex-start;
  93. padding: 10rpx 32rpx 20rpx;
  94. align-items: center;
  95. background-color: #fff;
  96. .address {
  97. width: 32rpx;
  98. height: 38rpx;
  99. }
  100. .shop-name {
  101. height: 38rpx;
  102. position: relative;
  103. top: -4rpx;
  104. z-index: 100;
  105. font-size: 30rpx;
  106. font-family: PingFang SC;
  107. font-weight: 500;
  108. color: #666;
  109. padding-left: 10rpx;
  110. }
  111. .shop-jt {
  112. margin-left: 8rpx;
  113. width: 16rpx;
  114. height: 10rpx;
  115. }
  116. .input-box {
  117. margin-left: 10rpx;
  118. position: relative;
  119. z-index: 99;
  120. width: 520rpx;
  121. height: 60rpx;
  122. // background: rgba(255, 255, 255, 0.4);
  123. border-radius: 30rpx;
  124. .input-content {
  125. position: relative;
  126. z-index: 11;
  127. // border-radius: 99rpx;
  128. flex-grow: 1;
  129. padding: 5rpx 30rpx;
  130. background: #f6f6f6;
  131. .iconsearch {
  132. font-size: 50rpx;
  133. color: #ffffff;
  134. }
  135. .input {
  136. margin-left: 19rpx;
  137. flex-grow: 1;
  138. color: #666;
  139. background: #f6f6f6;
  140. input {
  141. font-size: 28rpx;
  142. }
  143. }
  144. }
  145. .input-button {
  146. padding-left: 20rpx;
  147. // font-size: $font-base;
  148. height: 100%;
  149. }
  150. }
  151. .search-tit {
  152. font-size: 28rpx;
  153. font-family: PingFang SC;
  154. font-weight: 500;
  155. color: #666666;
  156. flex-shrink: 0;
  157. padding-left: 10rpx;
  158. }
  159. }
  160. .shop {
  161. // margin-top: 20rpx;
  162. background: #ffffff;
  163. padding: 0 12rpx;
  164. .shop-title {
  165. padding: 30rpx 0 20rpx;
  166. display: flex;
  167. align-items: center;
  168. border-bottom: 1px solid #e3e6e7;
  169. .shop-item {
  170. width: 25%;
  171. display: flex;
  172. align-items: center;
  173. justify-content: center;
  174. .sitem-font {
  175. font-size: 26rpx;
  176. font-family: PingFang SC;
  177. font-weight: bold;
  178. color: #333333;
  179. }
  180. .jt-down {
  181. width: 10rpx;
  182. height: 8rpx;
  183. margin-left: 12rpx;
  184. }
  185. }
  186. }
  187. .shop-main {
  188. padding: 32rpx 18rpx 0 12rpx;
  189. align-items: flex-start;
  190. justify-content: flex-start;
  191. .main-left {
  192. width: 180rpx;
  193. height: 180rpx;
  194. border-radius: 10rpx;
  195. }
  196. .main-right {
  197. width: 500rpx;
  198. justify-content: space-between;
  199. align-items: flex-start;
  200. margin-left: 20rpx;
  201. padding: 13rpx 0 35rpx;
  202. border-bottom: 1px solid #eaeced;
  203. .shopm-info {
  204. max-width: 60%;
  205. line-height: 1;
  206. .shopm-title {
  207. display: flex;
  208. justify-content: flex-start;
  209. .shopmt-font {
  210. font-size: 34rpx;
  211. font-family: PingFang SC;
  212. font-weight: bold;
  213. color: #333333;
  214. }
  215. }
  216. .shopmt-tip {
  217. position: relative;
  218. margin-top: 92rpx;
  219. font-size: 24rpx;
  220. font-family: PingFang SC;
  221. font-weight: 500;
  222. color: #666666;
  223. }
  224. }
  225. .right {
  226. height: 100%;
  227. margin-top: 5rpx;
  228. display: flex;
  229. flex-direction: column;
  230. .mright-top {
  231. display: flex;
  232. justify-content: flex-end;
  233. align-items: center;
  234. .mrt-image {
  235. width: 20rpx;
  236. height: 28rpx;
  237. }
  238. .mrt-font {
  239. margin-left: 8rpx;
  240. font-size: 22rpx;
  241. font-family: PingFang SC;
  242. font-weight: 500;
  243. color: #666666;
  244. }
  245. }
  246. .mright-bottom {
  247. margin-top: 80rpx;
  248. display: flex;
  249. justify-content: flex-end;
  250. .mrb-item {
  251. width: 46rpx;
  252. height: 46rpx;
  253. margin-left: 14rpx;
  254. }
  255. }
  256. }
  257. }
  258. }
  259. }
  260. </style>