青蛙卖大米小程序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.

450 lines
8.5 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year 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 placeholder="搜你喜欢的产品" bgColor="#fff" v-model="keyword"></uv-search>
  10. </view>
  11. <view class="swipe">
  12. <uv-swiper :list="bannerList" indicator height="320rpx" keyName="url"></uv-swiper>
  13. </view>
  14. <view class="notice">
  15. <uv-notice-bar fontSize="32rpx" :text="notice"></uv-notice-bar>
  16. </view>
  17. <view class="menu">
  18. <uv-grid :border="false" :col="4">
  19. <uv-grid-item v-for="(item,index) in baseList" :key="index">
  20. <image :src="item.image" mode=""></image>
  21. <text class="menu-text">{{item.title}}</text>
  22. </uv-grid-item>
  23. </uv-grid>
  24. </view>
  25. <view class="map">
  26. <image src="../../static/image/home/8.png" mode="aspectFill" />
  27. </view>
  28. <view class="commodity"
  29. @click="$utils.navigateTo('/pages/index/category')">
  30. <view class="box">
  31. <view class="top">
  32. <view class="top-text">
  33. <view>Experience the product</view>
  34. <view>体验产品 ___ _</view>
  35. </view>
  36. </view>
  37. <view class="centre">
  38. <view class="boxs">
  39. <view class="box-text">
  40. <view>三只青蛙低GI大米</view>
  41. <view>5斤每盒*3</view>
  42. <text class="text1">225</text>
  43. <text class="text2">原价375</text>
  44. </view>
  45. <view class="box-img">
  46. <image src="../../static/logo.png" mode="aspectFill"></image>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="commodity"
  53. @click="$utils.navigateTo('/pages/index/category')">
  54. <view class="box">
  55. <view class="top">
  56. <view class="top-text">
  57. <view>Experience the product</view>
  58. <view>常规产品 ___ _</view>
  59. </view>
  60. </view>
  61. <view class="centre">
  62. <view class="boxs">
  63. <view class="box-text">
  64. <view>三只青蛙低GI大米</view>
  65. <view>5斤每盒*3</view>
  66. <text class="text1">225</text>
  67. <text class="text2">原价375</text>
  68. </view>
  69. <view class="box-img">
  70. <image src="../../static/logo.png" mode="aspectFill"></image>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="commodity">
  77. <view class="box">
  78. <view class="top">
  79. <view class="top-text">
  80. <view>Experience the product</view>
  81. <view>新闻动态 ___ _</view>
  82. </view>
  83. <view class="top1" @click="$utils.navigateTo('/pages_order/home/journalism')">
  84. 更多
  85. </view>
  86. </view>
  87. <view class="centre">
  88. <view class="boxs">
  89. <view class="images">
  90. <image src="../../static/image/home/9.png" mode="aspectFill"></image>
  91. </view>
  92. <view class="box-fone">
  93. <view>新闻标题</view>
  94. <view>说明文字说明文字说明文字说明文字说明文字</view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="qr">
  101. <view class="scan">扫码关注公众号</view>
  102. <view class="qr-scan">
  103. <image src="../../static/image/home/10.png" mode="aspectFill"></image>
  104. </view>
  105. <view class="qr-bottom">
  106. <view>保存公众号二维码图片</view>
  107. <view>长按识别公众号</view>
  108. </view>
  109. </view>
  110. <PrivacyAgreementPoup />
  111. <tabber select="home" />
  112. </view>
  113. </template>
  114. <script>
  115. import PrivacyAgreementPoup from '@/components/config/PrivacyAgreementPoup.vue'
  116. import Position from '@/utils/position.js'
  117. import tabber from '@/components/base/tabbar.vue'
  118. import {
  119. mapGetters
  120. } from 'vuex'
  121. export default {
  122. components: {
  123. tabber,
  124. PrivacyAgreementPoup,
  125. },
  126. data() {
  127. return {
  128. area: '长沙',
  129. notice: '长沙市刘师傅在服务过程中客户投诉“服务过程中有不文明的行为”.....',
  130. bannerList: [{
  131. url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  132. },
  133. {
  134. url: 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
  135. },
  136. {
  137. url: 'https://cdn.uviewui.com/uview/swiper/swiper3.png',
  138. },
  139. ],
  140. baseList: [{
  141. image: '/static/image/home/0.png',
  142. title: '关于我们',
  143. },
  144. {
  145. image: '/static/image/home/1.png',
  146. title: '产品介绍',
  147. },
  148. {
  149. image: '/static/image/home/2.png',
  150. title: '促销活动',
  151. },
  152. {
  153. image: '/static/image/home/3.png',
  154. title: '商城',
  155. },
  156. {
  157. image: '/static/image/home/4.png',
  158. title: '邀请好友',
  159. },
  160. {
  161. image: '/static/image/home/5.png',
  162. title: '新闻中心',
  163. },
  164. {
  165. image: '/static/image/home/6.png',
  166. title: '校企合作',
  167. },
  168. {
  169. image: '/static/image/home/7.png',
  170. title: '联系我们',
  171. },
  172. ],
  173. productList: [],
  174. keyword: '',
  175. }
  176. },
  177. computed: {},
  178. methods: {}
  179. }
  180. </script>
  181. <style scoped lang="scss">
  182. .page {
  183. .bg-color {
  184. width: 100%;
  185. position: absolute;
  186. top: 0;
  187. left: 0;
  188. height: 550rpx;
  189. background: linear-gradient(to bottom, #88D259, #88D259, #fff);
  190. }
  191. .page-title {
  192. position: relative;
  193. margin-left: 30rpx;
  194. margin-bottom: 30rpx;
  195. }
  196. .search {
  197. position: relative;
  198. background: #FFFFFF;
  199. margin: 20rpx;
  200. border-radius: 41rpx;
  201. padding: 10rpx 20rpx;
  202. display: flex;
  203. align-items: center;
  204. /deep/ .uv-search__action {
  205. background-color: $uni-color;
  206. color: #FFFFFF;
  207. padding: 10rpx 20rpx;
  208. border-radius: 30rpx;
  209. }
  210. }
  211. .swipe {
  212. position: relative;
  213. overflow: hidden;
  214. border-radius: 20rpx;
  215. margin: 20rpx;
  216. }
  217. .menu {
  218. margin: 20rpx;
  219. border-radius: 20rpx;
  220. padding: 20rpx;
  221. background-color: #fff;
  222. box-shadow: 0 0 10rpx 10rpx #00000009;
  223. image {
  224. width: 80rpx;
  225. height: 80rpx;
  226. margin-top: 10rpx;
  227. }
  228. .menu-text {
  229. font-size: 28rpx;
  230. margin-bottom: 10rpx;
  231. margin-top: 10rpx;
  232. }
  233. }
  234. .notice {
  235. margin: 0 20rpx;
  236. /deep/ .uv-notice-bar {
  237. background: linear-gradient(to right, #f9edc9, #dfedd6);
  238. border-radius: 16rpx;
  239. }
  240. /deep/ .uv-notice {
  241. padding: 14rpx 0;
  242. }
  243. /deep/ .uv-icon__icon {
  244. font-size: 36rpx !important;
  245. color: #000 !important;
  246. }
  247. }
  248. .map {
  249. margin: 20rpx;
  250. height: 100rpx;
  251. border-radius: 16rpx;
  252. image {
  253. width: 100%;
  254. height: 100%;
  255. }
  256. }
  257. .commodity {
  258. display: flex;
  259. justify-content: center;
  260. align-items: center;
  261. margin: 20rpx;
  262. border-radius: 16rpx;
  263. background-color: #fff;
  264. .box {
  265. width: 100%;
  266. margin: 20rpx;
  267. .top {
  268. display: flex;
  269. border-left: 6rpx solid #A3D250;
  270. align-items: center;
  271. justify-content: space-between;
  272. .top-text {
  273. margin-left: 20rpx;
  274. view:nth-child(1) {
  275. font-size: 24rpx;
  276. color: #474747;
  277. }
  278. view:nth-child(2) {
  279. font-size: 32rpx;
  280. color: #A3D250;
  281. font-weight: 600;
  282. }
  283. }
  284. .top1 {
  285. font-size: 26rpx;
  286. color: #fff;
  287. padding: 10rpx 30rpx;
  288. background-color: #F6CD59;
  289. border-radius: 30rpx;
  290. }
  291. }
  292. }
  293. .centre {
  294. margin: 40rpx 20rpx;
  295. display: flex;
  296. align-items: center;
  297. justify-content: center;
  298. .boxs {
  299. display: flex;
  300. width: 100%;
  301. align-items: center;
  302. .images {
  303. width: 180rpx;
  304. height: 140rpx;
  305. flex-shrink: 0;
  306. border-radius: 8rpx;
  307. overflow: hidden;
  308. image {
  309. width: 100%;
  310. height: 100%;
  311. }
  312. }
  313. .box-fone {
  314. margin-left: 20rpx;
  315. view:nth-child(1) {
  316. font-size: 36rpx;
  317. color: #474747;
  318. }
  319. view:nth-child(2) {
  320. margin-top: 10rpx;
  321. font-size: 28rpx;
  322. color: #A2A2A2;
  323. }
  324. }
  325. .box-text,
  326. .box-img {
  327. flex: 1;
  328. }
  329. .box-text {
  330. view:nth-child(1) {
  331. font-size: 32rpx;
  332. font-weight: 500;
  333. margin-top: 30rpx;
  334. }
  335. view:nth-child(2) {
  336. font-size: 28rpx;
  337. color: #CCCCCC;
  338. margin-bottom: 30rpx;
  339. }
  340. .text1 {
  341. color: red;
  342. font-size: 68rpx;
  343. }
  344. .text2 {
  345. font-size: 28rpx;
  346. color: #CCCCCC;
  347. }
  348. }
  349. .box-img {
  350. image {
  351. height: 100%;
  352. width: 100%;
  353. }
  354. }
  355. }
  356. }
  357. }
  358. .qr {
  359. margin-top: 40rpx;
  360. .scan {
  361. text-align: center;
  362. font-size: 28rpx;
  363. color: #A2A2A2;
  364. }
  365. .qr-scan {
  366. margin: 20rpx auto;
  367. width: 400rpx;
  368. height: 400rpx;
  369. image {
  370. height: 100%;
  371. width: 100%;
  372. }
  373. }
  374. .qr-bottom {
  375. display: flex;
  376. font-size: 28rpx;
  377. color: #A2A2A2;
  378. justify-content: space-around;
  379. view {
  380. border: 2rpx solid #A2A2A2;
  381. padding: 20rpx;
  382. border-radius: 45rpx;
  383. }
  384. }
  385. }
  386. }
  387. </style>