shopService.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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" @click="navTo('/pages/shoping/shopDetail')">
  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. navTo(url) {
  59. uni.navigateTo({
  60. url
  61. })
  62. }
  63. }
  64. };
  65. </script>
  66. <style lang="scss">
  67. page,
  68. .content {
  69. min-height: 100%;
  70. height: auto;
  71. }
  72. .top-search {
  73. width: 750rpx;
  74. height: 100rpx;
  75. background: #FFFFFF;
  76. padding: 20rpx 32rpx 16rpx;
  77. .search-box {
  78. justify-content: center;
  79. width: 610rpx;
  80. height: 64rpx;
  81. background: #F6F6F6;
  82. border-radius: 10rpx;
  83. .search-icon {
  84. width: 32rpx;
  85. height: 32rpx;
  86. }
  87. .search-font {
  88. margin-left: 20rpx;
  89. font-size: 26rpx;
  90. font-family: PingFang SC;
  91. font-weight: 500;
  92. color: #666666;
  93. }
  94. }
  95. .search {
  96. font-size: 28rpx;
  97. font-family: PingFang SC;
  98. font-weight: 500;
  99. color: #666666;
  100. }
  101. }
  102. .shoplist-item {
  103. margin: 20rpx auto 0;
  104. width: 700rpx;
  105. background: #FFFFFF;
  106. box-shadow: 0rpx 0rpx 27rpx 0rpx rgba(50, 50, 52, 0.06);
  107. border-radius: 20rpx;
  108. padding: 26rpx 22rpx 22rpx;
  109. align-items: flex-start;
  110. .shoplist-image {
  111. flex-shrink: 0;
  112. width: 150rpx;
  113. height: 150rpx;
  114. border-radius: 10rpx;
  115. }
  116. .shoplist-info {
  117. margin-left: 18rpx;
  118. width: 100%;
  119. line-height: 1;
  120. .info-top {
  121. display: flex;
  122. justify-content: space-between;
  123. align-items: center;
  124. .info-title {
  125. font-size: 32rpx;
  126. font-family: PingFang SC;
  127. font-weight: bold;
  128. color: #333333;
  129. }
  130. .info-address {
  131. display: flex;
  132. align-items: center;
  133. .address-icon {
  134. width: 20rpx;
  135. height: 28rpx;
  136. }
  137. .address-font {
  138. font-size: 22rpx;
  139. font-family: PingFang SC;
  140. font-weight: 500;
  141. color: #666666;
  142. }
  143. }
  144. }
  145. .info-tip {
  146. margin-top: 18rpx;
  147. font-size: 24rpx;
  148. font-family: PingFang SC;
  149. font-weight: 500;
  150. color: #666666;
  151. }
  152. .info-bottom {
  153. margin-top: 32rpx;
  154. display: flex;
  155. justify-content: space-between;
  156. align-items: flex-end;
  157. padding-bottom: 10rpx;
  158. border-bottom: 1px solid #EAECED;
  159. .info-bleft {
  160. justify-content: flex-start;
  161. .infobf-item {
  162. margin-right: 10rpx;
  163. background: #FCF3F0;
  164. border-radius: 5rpx;
  165. padding: 8rpx 10rpx;
  166. font-size: 18rpx;
  167. font-family: PingFang SC;
  168. font-weight: 500;
  169. color: #FF440D;
  170. }
  171. }
  172. .info-bright {
  173. justify-content: flex-end;
  174. .info-icon {
  175. margin-left: 10rpx;
  176. width: 46rpx;
  177. height: 46rpx;
  178. }
  179. }
  180. }
  181. .bc {
  182. margin-top: 10rpx;
  183. font-size: 23rpx;
  184. font-family: PingFang SC;
  185. font-weight: bold;
  186. color: #333333;
  187. .h {
  188. padding: 6rpx;
  189. background: linear-gradient(-48deg, #FFA30B, #FFD158);
  190. border-radius: 13rpx;
  191. font-size: 21rpx;
  192. font-family: PingFang SC;
  193. font-weight: 500;
  194. color: #FFFFFF;
  195. }
  196. .dw {
  197. font-size: 17rpx;
  198. font-family: PingFang SC;
  199. font-weight: bold;
  200. color: #FF4C4C;
  201. }
  202. .xian {
  203. font-size: 27rpx;
  204. font-family: PingFang SC;
  205. font-weight: bold;
  206. color: #FF4C4C;
  207. }
  208. .yuan {
  209. display: inline-block;
  210. margin-right: 10rpx;
  211. font-size: 24rpx;
  212. font-family: PingFang SC;
  213. font-weight: 500;
  214. text-decoration: line-through;
  215. color: #999999;
  216. }
  217. }
  218. }
  219. }
  220. </style>