business.vue 7.0 KB

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