hallinfo.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <view class="center">
  3. <view class="content-money">
  4. <view class="money-box">
  5. <view class="status_bar"><!-- 这里是状态栏 --></view>
  6. <image class="money_bg" src="../../static/img/hinfo-bg.png"></image>
  7. <view class="goback-box" @click="toBack"><image class="goback" src="../../static/img/fanhui.png" mode=""></image></view>
  8. <view class="header">浙江馆</view>
  9. <view class="message flex">潮奢馆馆长:李丹丹</view>
  10. </view>
  11. </view>
  12. <view class="search">
  13. <view class="search-left" @click="test()">订单</view>
  14. <view class="search-right">
  15. <view class="input-box flex">
  16. <view class="input"><input type="text" placeholder="输入关键字" /></view>
  17. <image class="search-inco" src="../../static/img/search.png" mode=""></image>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="hotgoods" v-if="firstList.length != 0">
  22. <view class="hotgoods-item" v-for="item in firstList" :key="item.id" @click="navToDetailPage(item)">
  23. <view class="image-wrapper"><image :src="item.image" mode="scaleToFill"></image></view>
  24. <view class="title clamp margin-c-20">{{ item.store_name }}</view>
  25. <view class="hot-price">
  26. <view class="price">
  27. <text class="font-size-sm">¥</text>
  28. {{ item.price }}
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. data() {
  38. return {
  39. firstList: [],
  40. };
  41. },
  42. methods: {
  43. toBack() {
  44. uni.navigateBack({});
  45. },
  46. nav(url) {
  47. uni.navigateTo({
  48. url
  49. });
  50. },
  51. test() {
  52. uni.navigateTo({
  53. url:'/pages/hall/porducthall'
  54. })
  55. }
  56. }
  57. };
  58. </script>
  59. <style lang="scss">
  60. .center,
  61. page {
  62. height: auto;
  63. min-height: 100%;
  64. background-color: #ffffff;
  65. }
  66. .money-box {
  67. color: #ffffff;
  68. text-align: center;
  69. position: relative;
  70. padding-top: 250rpx;
  71. .money_bg {
  72. position: absolute;
  73. width: 750rpx;
  74. height: 412rpx;
  75. top: 0;
  76. left: 0;
  77. right: 0;
  78. }
  79. .header {
  80. position: absolute;
  81. left: 0;
  82. top: 0;
  83. width: 100%;
  84. height: 80rpx;
  85. font-size: 32rpx;
  86. font-weight: 700;
  87. z-index: 99;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. }
  92. .goback-box {
  93. position: absolute;
  94. left: 18rpx;
  95. top: 0;
  96. height: 80rpx;
  97. display: flex;
  98. align-items: center;
  99. }
  100. .goback {
  101. z-index: 100;
  102. width: 34rpx;
  103. height: 34rpx;
  104. }
  105. .message {
  106. display: inline-block;
  107. position: relative;
  108. z-index: 2;
  109. margin: 0 auto;
  110. padding: 20rpx 40rpx;
  111. background: rgba(253, 59, 57, 0.4);
  112. border-radius: 25rpx;
  113. font-size: 30rpx;
  114. font-family: PingFang SC;
  115. font-weight: 500;
  116. color: #ffffff;
  117. }
  118. }
  119. .search {
  120. margin-top: 120rpx;
  121. padding: 0 30rpx 0 20rpx;
  122. display: flex;
  123. align-items: center;
  124. .search-left {
  125. width: 112rpx;
  126. height: 70rpx;
  127. background: #fd3b39;
  128. border-radius: 25rpx;
  129. font-size: 30rpx;
  130. font-family: PingFang SC;
  131. font-weight: 500;
  132. color: #ffffff;
  133. line-height: 70rpx;
  134. text-align: center;
  135. }
  136. .search-right {
  137. width: 570rpx;
  138. background: #dcdcdc;
  139. border-radius: 35rpx;
  140. margin-left: 20rpx;
  141. padding: 18rpx 50rpx 18rpx 36rpx;
  142. .search-inco {
  143. width: 34rpx;
  144. height: 34rpx;
  145. }
  146. }
  147. }
  148. .hotgoods {
  149. margin-top: 38rpx;
  150. width: 100%;
  151. display: flex;
  152. flex-wrap: wrap;
  153. padding: 0 32rpx 108rpx;
  154. .hotgoods-item {
  155. width: 48%;
  156. background-color: #ffffff;
  157. border-radius: 12rpx;
  158. margin-bottom: 24rpx;
  159. &:nth-child(2n + 1) {
  160. margin-right: 24rpx;
  161. }
  162. .image-wrapper {
  163. width: 100%;
  164. height: 330rpx;
  165. background: red;
  166. border-radius: 3px;
  167. overflow: hidden;
  168. image {
  169. width: 100%;
  170. height: 100%;
  171. opacity: 1;
  172. border-radius: 12rpx 12rpx 0 0;
  173. }
  174. }
  175. .title {
  176. font-size: $font-base;
  177. color: $font-color-dark;
  178. font-weight: bold;
  179. line-height: 80rpx;
  180. }
  181. .hot-price {
  182. display: flex;
  183. justify-content: space-between;
  184. padding: 0 16rpx 12rpx;
  185. .price {
  186. font-size: 40rpx;
  187. color: #ff0000;
  188. font-weight: 500;
  189. }
  190. .cart-icon {
  191. image {
  192. width: 44rpx;
  193. height: 44rpx;
  194. }
  195. }
  196. }
  197. }
  198. }
  199. </style>