shopService.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <template>
  2. <view class="content">
  3. <view class="top-search flex">
  4. <view class="search-box flex">
  5. <image class="search-icon" src="../../static/icon/sousuo.png" mode=""></image>
  6. <view class="search-font"><input type="text" placeholder="输入关键词搜索" v-model="productname" /></view>
  7. </view>
  8. <view class="search" @click="clickSearch()">
  9. 搜索
  10. </view>
  11. </view>
  12. <view class="shoplist">
  13. <view class="shoplist-item flex" v-for="(item,index) in 10">
  14. <image class="shoplist-image" src="../../static/icon/hym.png" mode=""></image>
  15. <view class="shoplist-info">
  16. <view class="info-top">
  17. <view class="info-title">
  18. 满园春养发馆(1号店)
  19. </view>
  20. <view class="info-address">
  21. <image class="address-icon" src="../../static/icon/dw.png" mode=""></image>
  22. <view class="address-font">距离0.3KM</view>
  23. </view>
  24. </view>
  25. <view class="info-tip">椒江区市府大道200号</view>
  26. <view class="info-bottom">
  27. <view class="info-bleft flex">
  28. <view class="infobf-item">免费茶点</view>
  29. <view class="infobf-item">不接受退款</view>
  30. </view>
  31. <view class="info-bright flex">
  32. <image class="info-icon" src="../../static/icon/call.png" mode=""></image>
  33. <image class="info-icon" src="../../static/icon/dh.png" mode=""></image>
  34. </view>
  35. </view>
  36. <view class="bc">
  37. <text class="h">惠</text>
  38. <text class="dw">¥</text>
  39. <text class="xian">25</text>
  40. <text class="yuan">¥99</text>
  41. <text> 头皮护理|深层清洁</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {};
  52. },
  53. onLoad() {},
  54. onShow() {},
  55. onReachBottom() {},
  56. onReady() {},
  57. methods: {}
  58. };
  59. </script>
  60. <style lang="scss">
  61. page,
  62. .content {
  63. min-height: 100%;
  64. height: auto;
  65. }
  66. .top-search {
  67. width: 750rpx;
  68. height: 100rpx;
  69. background: #FFFFFF;
  70. padding: 20rpx 32rpx 16rpx;
  71. .search-box {
  72. justify-content: center;
  73. width: 610rpx;
  74. height: 64rpx;
  75. background: #F6F6F6;
  76. border-radius: 10rpx;
  77. .search-icon {
  78. width: 32rpx;
  79. height: 32rpx;
  80. }
  81. .search-font {
  82. margin-left: 20rpx;
  83. font-size: 26rpx;
  84. font-family: PingFang SC;
  85. font-weight: 500;
  86. color: #666666;
  87. }
  88. }
  89. .search {
  90. font-size: 28rpx;
  91. font-family: PingFang SC;
  92. font-weight: 500;
  93. color: #666666;
  94. }
  95. }
  96. .shoplist-item {
  97. margin: 20rpx auto 0;
  98. width: 700rpx;
  99. background: #FFFFFF;
  100. box-shadow: 0rpx 0rpx 27rpx 0rpx rgba(50, 50, 52, 0.06);
  101. border-radius: 20rpx;
  102. padding: 26rpx 22rpx 22rpx;
  103. align-items: flex-start;
  104. .shoplist-image {
  105. flex-shrink: 0;
  106. width: 150rpx;
  107. height: 150rpx;
  108. border-radius: 10rpx;
  109. }
  110. .shoplist-info {
  111. margin-left: 18rpx;
  112. width: 100%;
  113. line-height: 1;
  114. .info-top {
  115. display: flex;
  116. justify-content: space-between;
  117. align-items: center;
  118. .info-title {
  119. font-size: 32rpx;
  120. font-family: PingFang SC;
  121. font-weight: bold;
  122. color: #333333;
  123. }
  124. .info-address {
  125. display: flex;
  126. align-items: center;
  127. .address-icon {
  128. width: 20rpx;
  129. height: 28rpx;
  130. }
  131. .address-font {
  132. font-size: 22rpx;
  133. font-family: PingFang SC;
  134. font-weight: 500;
  135. color: #666666;
  136. }
  137. }
  138. }
  139. .info-tip {
  140. margin-top: 18rpx;
  141. font-size: 24rpx;
  142. font-family: PingFang SC;
  143. font-weight: 500;
  144. color: #666666;
  145. }
  146. .info-bottom {
  147. margin-top: 32rpx;
  148. display: flex;
  149. justify-content: space-between;
  150. align-items: flex-end;
  151. padding-bottom: 10rpx;
  152. border-bottom: 1px solid #EAECED;
  153. .info-bleft {
  154. justify-content: flex-start;
  155. .infobf-item {
  156. margin-right: 10rpx;
  157. background: #FCF3F0;
  158. border-radius: 5rpx;
  159. padding: 8rpx 10rpx;
  160. font-size: 18rpx;
  161. font-family: PingFang SC;
  162. font-weight: 500;
  163. color: #FF440D;
  164. }
  165. }
  166. .info-bright {
  167. justify-content: flex-end;
  168. .info-icon {
  169. margin-left: 10rpx;
  170. width: 46rpx;
  171. height: 46rpx;
  172. }
  173. }
  174. }
  175. .bc {
  176. margin-top: 10rpx;
  177. font-size: 23rpx;
  178. font-family: PingFang SC;
  179. font-weight: bold;
  180. color: #333333;
  181. .h {
  182. padding: 6rpx;
  183. background: linear-gradient(-48deg, #FFA30B, #FFD158);
  184. border-radius: 13rpx;
  185. font-size: 21rpx;
  186. font-family: PingFang SC;
  187. font-weight: 500;
  188. color: #FFFFFF;
  189. }
  190. .dw {
  191. font-size: 17rpx;
  192. font-family: PingFang SC;
  193. font-weight: bold;
  194. color: #FF4C4C;
  195. }
  196. .xian {
  197. font-size: 27rpx;
  198. font-family: PingFang SC;
  199. font-weight: bold;
  200. color: #FF4C4C;
  201. }
  202. .yuan {
  203. display: inline-block;
  204. margin-right: 10rpx;
  205. font-size: 24rpx;
  206. font-family: PingFang SC;
  207. font-weight: 500;
  208. text-decoration: line-through;
  209. color: #999999;
  210. }
  211. }
  212. }
  213. }
  214. </style>