shopDetail.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. <template>
  2. <view class="content">
  3. <view class="banner">
  4. <image src="../../static/img/tc1.png" mode=""></image>
  5. </view>
  6. <view class="title">满园春养发店</view>
  7. <view class="tip flex">
  8. <view class="time">营业中 周一至周日 11:30-01:00</view>
  9. <view class="num">780人消费</view>
  10. </view>
  11. <view class="address-box flex">
  12. <view class="address-title">
  13. <view class="address">康平路星星村综合楼20号</view>
  14. <view class="ql">距您780m</view>
  15. </view>
  16. <view class="btn-box">
  17. <view class="btn-item">
  18. <image class="btn-image" src="../../static/icon/call.png" mode=""></image>
  19. <view class="btn-font">电话</view>
  20. </view>
  21. <view class="btn-item">
  22. <image class="btn-image" src="../../static/icon/dh.png" mode=""></image>
  23. <view class="btn-font">导航</view>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="appointment flex" @click="navTo('/pages/shoping/booked')">
  28. <view class="appointment-left">
  29. <image class="appointment-icon" src="../../static/icon/dh.png" mode=""></image>
  30. <view class="appointment-title">预约到店</view>
  31. </view>
  32. <view class="appointment-right">
  33. <view class="appointment-tip">近半年到店200人</view>
  34. <image class="appointment-jt" src="../../static/user/right.png" mode=""></image>
  35. </view>
  36. </view>
  37. <view class="xian"></view>
  38. <view class="shop-box">
  39. <view class="shop-item" v-for="(item,index) in 10">
  40. <image class="shop-img" src="../../static/icon/hym.png" mode=""></image>
  41. <view class="shop-info flex">
  42. <view class="shop-main">
  43. <view class="shop-title">【舒缓神经】头皮护理I深层清洁</view>
  44. <view class="shop-tip">80分钟 I 足部 I 足疗</view>
  45. <view class="shop-pirce">¥189</view>
  46. </view>
  47. <view class="shop-right">
  48. <view class="btn">抢购</view>
  49. <view class="people">1425人已购买</view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data() {
  59. return {};
  60. },
  61. onLoad() {},
  62. onShow() {},
  63. onReachBottom() {},
  64. onReady() {},
  65. methods: {
  66. navTo(url) {
  67. uni.navigateTo({
  68. url
  69. })
  70. }
  71. }
  72. };
  73. </script>
  74. <style lang="scss">
  75. page,
  76. .content {
  77. min-height: 100%;
  78. height: auto;
  79. background: #ffffff;
  80. }
  81. .banner {
  82. margin: 20rpx auto 0;
  83. width: 697rpx;
  84. height: 391rpx;
  85. background: #FF4C4C;
  86. border-radius: 20rpx;
  87. image {
  88. width: 100%;
  89. height: 100%;
  90. border-radius: 20rpx;
  91. }
  92. }
  93. .title {
  94. padding: 20rpx 26rpx 0;
  95. font-size: 34rpx;
  96. font-family: PingFang SC;
  97. font-weight: bold;
  98. color: #101010;
  99. }
  100. .tip {
  101. margin: 0 26rpx;
  102. padding: 20rpx 0 24rpx;
  103. border-bottom: 1px solid #F1F1F1;
  104. .time {
  105. font-size: 24rpx;
  106. font-family: PingFang SC;
  107. font-weight: bold;
  108. color: #101010;
  109. }
  110. .num {
  111. font-size: 24rpx;
  112. font-family: PingFang SC;
  113. font-weight: 500;
  114. color: #666666;
  115. }
  116. }
  117. .address-box {
  118. padding: 32rpx 0;
  119. margin: 0 26rpx;
  120. line-height: 1;
  121. border-bottom: 1px solid #F1F1F1;
  122. .address {
  123. font-size: 24rpx;
  124. font-family: PingFang SC;
  125. font-weight: bold;
  126. color: #101010;
  127. }
  128. .ql {
  129. margin-top: 10rpx;
  130. font-size: 24rpx;
  131. font-family: PingFang SC;
  132. font-weight: 500;
  133. color: #666666;
  134. }
  135. .btn-box {
  136. display: flex;
  137. justify-content: flex-end;
  138. align-items: center;
  139. .btn-item {
  140. margin-left: 50rpx;
  141. display: flex;
  142. flex-direction: column;
  143. align-items: center;
  144. .btn-image {
  145. width: 46rpx;
  146. height: 46rpx;
  147. }
  148. .btn-font {
  149. margin-top: 8rpx;
  150. font-size: 16rpx;
  151. font-family: PingFang SC;
  152. font-weight: 500;
  153. color: #666666;
  154. line-height: 24rpx;
  155. }
  156. }
  157. }
  158. }
  159. .appointment {
  160. padding: 24rpx 26rpx 32rpx;
  161. .appointment-left {
  162. display: flex;
  163. align-items: center;
  164. .appointment-icon {
  165. width: 36rpx;
  166. height: 36rpx;
  167. }
  168. .appointment-title {
  169. font-size: 28rpx;
  170. font-family: PingFang SC;
  171. font-weight: bold;
  172. color: #101010;
  173. margin-left: 14rpx;
  174. }
  175. }
  176. .appointment-right {
  177. display: flex;
  178. align-items: center;
  179. .appointment-tip {
  180. font-size: 24rpx;
  181. font-family: PingFang SC;
  182. font-weight: 500;
  183. color: #666666;
  184. margin-right: 10rpx;
  185. }
  186. .appointment-jt {
  187. width: 13rpx;
  188. height: 23rpx;
  189. }
  190. }
  191. }
  192. .xian {
  193. height: 20rpx;
  194. width: 750rpx;
  195. background: #F5F5F5;
  196. }
  197. .shop-box {
  198. padding: 0 30rpx 50rpx 38rpx;
  199. .shop-item {
  200. border-bottom: 1px solid #EFEFEF;
  201. display: flex;
  202. align-items: center;
  203. padding: 20rpx 0;
  204. .shop-img {
  205. flex-shrink: 0;
  206. width: 120rpx;
  207. height: 120rpx;
  208. border-radius: 10rpx;
  209. }
  210. .shop-info {
  211. width: 100%;
  212. margin-left: 14rpx;
  213. align-items: flex-end;
  214. .shop-main {
  215. line-height: 1;
  216. .shop-title {
  217. font-size: 26rpx;
  218. font-family: PingFang SC;
  219. font-weight: bold;
  220. color: #000000;
  221. }
  222. .shop-tip {
  223. margin-top: 20rpx;
  224. font-size: 20rpx;
  225. font-family: PingFang SC;
  226. font-weight: 500;
  227. color: #666666;
  228. }
  229. .shop-pirce {
  230. margin-top: 16rpx;
  231. font-size: 28rpx;
  232. font-family: PingFang SC;
  233. font-weight: bold;
  234. color: #F65920;
  235. }
  236. }
  237. .shop-right {
  238. display: flex;
  239. flex-direction: column;
  240. justify-content: flex-end;
  241. align-items: flex-end;
  242. .btn {
  243. width: 105rpx;
  244. height: 47rpx;
  245. background: #FF4C4C;
  246. border-radius: 24rpx;
  247. display: flex;
  248. justify-content: center;
  249. align-items: center;
  250. font-size: 28rpx;
  251. font-family: PingFang SC;
  252. font-weight: bold;
  253. color: #FFFFFF;
  254. }
  255. .people {
  256. margin-top: 22rpx;
  257. font-size: 24rpx;
  258. font-family: PingFang SC;
  259. font-weight: 500;
  260. color: #999999;
  261. }
  262. }
  263. }
  264. }
  265. }
  266. </style>