青蛙卖大米小程序2024-11-24
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

181 lines
3.5 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="page">
  3. <navbar bgColor="#88D259"/>
  4. <view class="bg-color"></view>
  5. <view class="page-title">
  6. 三只青蛙
  7. </view>
  8. <view class="search">
  9. <uv-search
  10. placeholder="搜你喜欢的产品"
  11. bgColor="#fff"
  12. v-model="keyword"></uv-search>
  13. </view>
  14. <view class="swipe">
  15. <uv-swiper
  16. :list="bannerList"
  17. indicator
  18. height="320rpx"
  19. keyName="url"></uv-swiper>
  20. </view>
  21. <view class="notice">
  22. <uv-notice-bar :text="notice"></uv-notice-bar>
  23. </view>
  24. <view class="menu">
  25. <uv-grid :border="false" :col="4">
  26. <uv-grid-item v-for="(item,index) in baseList"
  27. :key="index">
  28. <image :src="item.image" mode=""></image>
  29. <text class="menu-text">{{item.title}}</text>
  30. </uv-grid-item>
  31. </uv-grid>
  32. </view>
  33. <PrivacyAgreementPoup/>
  34. <tabber select="home"/>
  35. </view>
  36. </template>
  37. <script>
  38. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  39. import Position from '@/utils/position.js'
  40. import tabber from '@/components/base/tabbar.vue'
  41. import { mapGetters } from 'vuex'
  42. export default {
  43. components : {
  44. tabber,
  45. PrivacyAgreementPoup,
  46. },
  47. data() {
  48. return {
  49. area: '长沙',
  50. notice : '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....',
  51. bannerList: [
  52. {
  53. url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  54. },
  55. {
  56. url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  57. },
  58. {
  59. url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  60. },
  61. ],
  62. baseList : [
  63. {
  64. image : '/static/image/home/1.png',
  65. title : '关于我们',
  66. },
  67. {
  68. image : '/static/image/home/1.png',
  69. title : '产品介绍',
  70. },
  71. {
  72. image : '/static/image/home/2.png',
  73. title : '促销活动',
  74. },
  75. {
  76. image : '/static/image/home/3.png',
  77. title : '商城',
  78. },
  79. {
  80. image : '/static/image/home/4.png',
  81. title : '邀请好友',
  82. },
  83. {
  84. image : '/static/image/home/5.png',
  85. title : '新闻中心',
  86. },
  87. {
  88. image : '/static/image/home/6.png',
  89. title : '校企合作',
  90. },
  91. {
  92. image : '/static/image/home/7.png',
  93. title : '联系我们',
  94. },
  95. ],
  96. productList: [],
  97. keyword : '',
  98. }
  99. },
  100. computed : {
  101. },
  102. methods: {
  103. }
  104. }
  105. </script>
  106. <style scoped lang="scss">
  107. .page{
  108. .bg-color{
  109. width: 100%;
  110. position: absolute;
  111. top: 0;
  112. left: 0;
  113. height: 550rpx;
  114. background: linear-gradient(to bottom, #88D259, #88D259, #fff);
  115. }
  116. .page-title{
  117. position: relative;
  118. margin-left: 30rpx;
  119. margin-bottom: 30rpx;
  120. }
  121. .search {
  122. position: relative;
  123. background: #FFFFFF;
  124. margin: 20rpx;
  125. border-radius: 41rpx;
  126. padding: 10rpx 20rpx;
  127. display: flex;
  128. align-items: center;
  129. /deep/ .uv-search__action{
  130. background-color: $uni-color;
  131. color: #FFFFFF;
  132. padding: 10rpx 20rpx;
  133. border-radius: 30rpx;
  134. }
  135. }
  136. .swipe{
  137. position: relative;
  138. overflow: hidden;
  139. border-radius: 20rpx;
  140. margin: 20rpx;
  141. }
  142. .menu{
  143. margin: 20rpx;
  144. border-radius: 20rpx;
  145. padding: 20rpx;
  146. background-color: #fff;
  147. box-shadow: 0 0 10rpx 10rpx #00000009;
  148. image{
  149. width: 80rpx;
  150. height: 80rpx;
  151. margin-top: 10rpx;
  152. }
  153. .menu-text{
  154. font-size: 28rpx;
  155. margin-bottom: 10rpx;
  156. margin-top: 10rpx;
  157. }
  158. }
  159. .notice{
  160. margin: 0 20rpx;
  161. /deep/ .uv-notice-bar{
  162. background: linear-gradient(to right, #f9edc9, #dfedd6);
  163. }
  164. }
  165. }
  166. </style>