Browse Source

feat:画完基本静态页

jhy 6 months ago
parent
commit
7fe4802a78
12 changed files with 428 additions and 307 deletions
  1. 1 1
      LICENSE
  2. 1 1
      config.js
  3. 53 5
      manifest.json
  4. 8 6
      pages.json
  5. 1 1
      pages/index.vue
  6. 26 1
      pages/login.vue
  7. 1 1
      pages/mine/about/index.vue
  8. 130 98
      pages/mine/help/index.vue
  9. 12 12
      pages/mine/index.vue
  10. 31 9
      pages/mine/info/edit.vue
  11. 17 6
      pages/mine/info/index.vue
  12. 147 166
      pages/work/index.vue

+ 1 - 1
LICENSE

@@ -1,6 +1,6 @@
 MIT License
 
-Copyright (c) 2022 芋道
+Copyright (c) 2022 纽森
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
config.js

@@ -1,7 +1,7 @@
 // 应用全局配置
 module.exports = {
   // baseUrl: 'http://api-dashboard.yudao.iocoder.cn',
-  baseUrl: 'http://localhost:48080',
+  baseUrl: 'http://192.168.110.10:48080',
   baseApi: '/admin-api',
   // 应用信息
   appInfo: {

+ 53 - 5
manifest.json

@@ -1,6 +1,6 @@
 {
-    "name" : "芋道移动端",
-    "appid" : "__UNI__25A9D80",
+    "name" : "纽森移动端",
+    "appid" : "__UNI__42873FE",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",
@@ -14,7 +14,10 @@
             "autoclose" : true,
             "delay" : 0
         },
-        "modules" : {},
+        "modules" : {
+            "Geolocation" : {},
+            "OAuth" : {}
+        },
         "distribute" : {
             "android" : {
                 "permissions" : [
@@ -36,7 +39,52 @@
                 ]
             },
             "ios" : {},
-            "sdkConfigs" : {}
+            "sdkConfigs" : {
+                "maps" : {},
+                "geolocation" : {
+                    "system" : {
+                        "__platform__" : [ "ios", "android" ]
+                    }
+                },
+                "oauth" : {
+                    "weixin" : {
+                        "appid" : "",
+                        "UniversalLinks" : ""
+                    }
+                }
+            },
+            "icons" : {
+                "android" : {
+                    "hdpi" : "unpackage/res/icons/72x72.png",
+                    "xhdpi" : "unpackage/res/icons/96x96.png",
+                    "xxhdpi" : "unpackage/res/icons/144x144.png",
+                    "xxxhdpi" : "unpackage/res/icons/192x192.png"
+                },
+                "ios" : {
+                    "appstore" : "unpackage/res/icons/1024x1024.png",
+                    "ipad" : {
+                        "app" : "unpackage/res/icons/76x76.png",
+                        "app@2x" : "unpackage/res/icons/152x152.png",
+                        "notification" : "unpackage/res/icons/20x20.png",
+                        "notification@2x" : "unpackage/res/icons/40x40.png",
+                        "proapp@2x" : "unpackage/res/icons/167x167.png",
+                        "settings" : "unpackage/res/icons/29x29.png",
+                        "settings@2x" : "unpackage/res/icons/58x58.png",
+                        "spotlight" : "unpackage/res/icons/40x40.png",
+                        "spotlight@2x" : "unpackage/res/icons/80x80.png"
+                    },
+                    "iphone" : {
+                        "app@2x" : "unpackage/res/icons/120x120.png",
+                        "app@3x" : "unpackage/res/icons/180x180.png",
+                        "notification@2x" : "unpackage/res/icons/40x40.png",
+                        "notification@3x" : "unpackage/res/icons/60x60.png",
+                        "settings@2x" : "unpackage/res/icons/58x58.png",
+                        "settings@3x" : "unpackage/res/icons/87x87.png",
+                        "spotlight@2x" : "unpackage/res/icons/80x80.png",
+                        "spotlight@3x" : "unpackage/res/icons/120x120.png"
+                    }
+                }
+            }
         }
     },
     "quickapp" : {},
@@ -60,7 +108,7 @@
             "port" : 9090,
             "https" : false
         },
-        "title" : "Yudao-App",
+        "title" : "纽森营销",
         "router" : {
             "mode" : "hash",
             "base" : "./"

+ 8 - 6
pages.json

@@ -7,18 +7,20 @@
   }, {
     "path": "pages/index",
     "style": {
-      "navigationBarTitleText": "芋道移动端框架",
+      "navigationBarTitleText": "纽森移动端框架",
       "navigationStyle": "custom"
     }
   }, {
     "path": "pages/work/index",
     "style": {
-      "navigationBarTitleText": "工作台"
+      "navigationBarTitleText": "分红收益",
+	  "navigationStyle": "custom"
     }
   }, {
     "path": "pages/mine/index",
     "style": {
-      "navigationBarTitleText": "我的"
+      "navigationBarTitleText": "我的",
+	  "navigationStyle": "custom"
     }
   }, {
     "path": "pages/mine/avatar/index",
@@ -33,7 +35,7 @@
   }, {
     "path": "pages/mine/info/edit",
     "style": {
-      "navigationBarTitleText": "编辑资料"
+      "navigationBarTitleText": "补充资料"
     }
   }, {
     "path": "pages/mine/pwd/index",
@@ -48,7 +50,7 @@
   }, {
     "path": "pages/mine/help/index",
     "style": {
-      "navigationBarTitleText": "常见问题"
+      "navigationBarTitleText": "更换手机号"
     }
   }, {
     "path": "pages/mine/about/index",
@@ -80,7 +82,7 @@
         "pagePath": "pages/work/index",
         "iconPath": "static/images/tabbar/work.png",
         "selectedIconPath": "static/images/tabbar/work_.png",
-        "text": "工作台"
+        "text": "分红收益"
       }, {
         "pagePath": "pages/mine/index",
         "iconPath": "static/images/tabbar/mine.png",

+ 1 - 1
pages/index.vue

@@ -2,7 +2,7 @@
   <view class="content">
     <image class="logo" src="/static/logo.png"></image>
     <view class="text-area">
-      <text class="title">Hello 芋道</text>
+      <text class="title">纽森营销公众号</text>
     </view>
   </view>
 </template>

+ 26 - 1
pages/login.vue

@@ -3,7 +3,7 @@
 		<view class="logo-content align-center justify-center flex">
 			<image style="width: 100rpx;height: 100rpx;" :src="globalConfig.appInfo.logo" mode="widthFix">
 			</image>
-			<text class="title">芋道移动端登录</text>
+			<text class="title">纽森移动端登录</text>
 		</view>
 		<view class="login-form-content">
 			<view class="input-item flex align-center">
@@ -20,12 +20,29 @@
 				<button @click="handleLogin" class="login-btn cu-btn block bg-blue lg round">登录</button>
 			</view>
 		</view>
+		
 
 		<view class="xieyi text-center">
 			<text class="text-grey1">登录即代表同意</text>
 			<text @click="handleUserAgrement" class="text-blue">《用户协议》</text>
 			<text @click="handlePrivacy" class="text-blue">《隐私协议》</text>
 		</view>
+		<!-- 手机号或者微信登录 -->
+		<view class="login-form-content">
+			<view class="input-item flex align-center">
+				<view class="iconfont icon-user icon"></view>
+				<input v-model="loginForm.phone" class="input" type="text" placeholder="请输入手机号码" maxlength="11" />
+			</view>
+			<view style="display: flex;flex-wrap: nowrap;margin-top: -40rpx;" class="align-center">
+				<view class="input-item align-center" style="display: flex;flex-wrap: nowrap;width: 60%;">
+					<view class="iconfont icon-code icon"></view>
+					<input v-model="loginForm.code" type="password" class="input" placeholder="请输入验证码" maxlength="6" />
+				</view>
+				<view style="width: 35%;margin-left: 5%;" class="yanz_code">
+					验证码
+				</view>
+			</view>
+		</view>
 	</view>
 </template>
 
@@ -96,6 +113,14 @@
 </script>
 
 <style lang="scss">
+	.yanz_code{
+		padding: 20rpx;
+		font-size: 24rpx;
+		color: #fff;
+		background-color: #42B983;
+		border-radius: 40rpx;
+		text-align: center;
+	}
 	page {
 		background-color: #ffffff;
 	}

+ 1 - 1
pages/mine/about/index.vue

@@ -3,7 +3,7 @@
     <view class="header-section text-center">
       <image style="width: 150rpx;height: 150rpx;" src="/static/logo200.png" mode="widthFix">
       </image>
-      <uni-title type="h2" title="芋道移动端"></uni-title>
+      <uni-title type="h2" title="纽森移动端"></uni-title>
     </view>
 
     <view class="content-section">

+ 130 - 98
pages/mine/help/index.vue

@@ -1,112 +1,144 @@
 <template>
-  <view class="help-container">
-    <view v-for="(item, findex) in list" :key="findex" :title="item.title" class="list-title">
-      <view class="text-title">
-        <view :class="item.icon"></view>{{ item.title }}
-      </view>
-      <view class="childList">
-        <view v-for="(child, zindex) in item.childList" :key="zindex" class="question" hover-class="hover"
-          @click="handleText(child)">
-          <view class="text-item">{{ child.title }}</view>
-          <view class="line" v-if="zindex !== item.childList.length - 1"></view>
-        </view>
-      </view>
-    </view>
-  </view>
+	<view class="help-container">
+		<uni-forms ref="form" :model="formData" labelWidth="95px" :rules="rules">
+			<uni-forms-item label="原手机号码:" name="phone" required>
+				<uni-easyinput v-model="formData.phone" placeholder="请输入原手机号码" maxlength="11" />
+			</uni-forms-item>
+			<view style="width: 100%;height: 40rpx;"></view>
+			<uni-forms-item label="新手机号码:" name="newPhone" required>
+				<uni-easyinput v-model="formData.newPhone" placeholder="请输入新手机号码" maxlength="11" />
+			</uni-forms-item>
+			<view style="width: 100%;height: 40rpx;"></view>
+			<view style="display: flex;flex-wrap: nowrap;justify-content: center;align-items: center;">
+				<view style="width: 65%;">
+					<uni-forms-item label="验证码:" name="code" required>
+						<uni-easyinput v-model="formData.code" placeholder="请输入新手机验证码" maxlength="6" />
+					</uni-forms-item>
+				</view>
+				<view class="yaz-code">验证码</view>
+			</view>
+			<button type="primary" @click="submit" style="margin-top: 40rpx;width: 60%;">提交</button>
+		</uni-forms>
+	</view>
 </template>
 
 <script>
-  export default {
-    data() {
-      return {
-        list: [{
-            icon: 'iconfont icon-github',
-            title: '芋道问题',
-            childList: [{
-              title: '芋道开源吗?',
-              content: '开源'
-            }, {
-              title: '芋道可以商用吗?',
-              content: '可以'
-            }, {
-              title: '芋道官网地址多少?',
-              content: 'https://www.iocoder.cn'
-            }, {
-              title: '芋道文档地址多少?',
-              content: 'https://doc.iocoder.cn'
-            }]
-          },
-          {
-            icon: 'iconfont icon-help',
-            title: '其他问题',
-            childList: [{
-              title: '如何退出登录?',
-              content: '请点击[我的] - [应用设置] - [退出登录]即可退出登录',
-            }, {
-              title: '如何修改用户头像?',
-              content: '请点击[我的] - [选择头像] - [点击提交]即可更换用户头像',
-            }, {
-              title: '如何修改登录密码?',
-              content: '请点击[我的] - [应用设置] - [修改密码]即可修改登录密码',
-            }]
-          }
-        ]
-      }
-    },
-    methods: {
-      handleText(item) {
-        this.$tab.navigateTo(`/pages/common/textview/index?title=${item.title}&content=${item.content}`)
-      }
-    }
-  }
+	export default {
+		data() {
+			return {
+				formData: {
+					phone: '',
+					newPhone: '',
+					code: ''
+				},
+				rules: {
+					phone: {
+						rules: [{
+								required: true,
+								errorMessage: '原手机号码不能为空'
+							},
+							{
+								pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
+								errorMessage: '请输入正确的手机号码'
+							}
+						]
+					},
+					newPhone: {
+						rules: [{
+							required: true,
+							errorMessage: '新手机号码不能为空'
+						}, {
+							pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
+							errorMessage: '请输入正确的手机号码'
+						}]
+					},
+					code: {
+						rules: [{
+							required: true,
+							errorMessage: '验证码不能为空'
+						}]
+					}
+				}
+			}
+		},
+		methods: {
+			handleText(item) {
+				this.$tab.navigateTo(`/pages/common/textview/index?title=${item.title}&content=${item.content}`)
+			},
+			// 提交手机号
+			submit() {
+				console.log('iiiiiiiiii')
+				this.$refs.form.validate().then(res => {
+					// updateUserProfile(this.user).then(response => {
+					//   this.$modal.msgSuccess("修改成功")
+					// })
+				})
+			}
+		}
+	}
 </script>
-
+<style scoped>
+	/deep/.uni-forms-item {
+		margin-bottom: 0rpx !important;
+	}
+</style>
 <style lang="scss" scoped>
-  page {
-    background-color: #f8f8f8;
-  }
+	.yaz-code {
+		width: 30%;
+		margin-left: 5%;
+		color: #fff;
+		font-size: 28rpx;
+		background-color: #42B983;
+		text-align: center;
+		padding: 17rpx;
+		border-radius: 10rpx;
+	}
 
-  .help-container {
-    margin-bottom: 100rpx;
-    padding: 30rpx;
-  }
+	page {
+		background-color: #f8f8f8;
+	}
 
-  .list-title {
-    margin-bottom: 30rpx;
-  }
+	.help-container {
+		margin-bottom: 100rpx;
+		padding: 30rpx;
+	}
 
-  .childList {
-    background: #ffffff;
-    box-shadow: 0px 0px 10rpx rgba(193, 193, 193, 0.2);
-    border-radius: 16rpx;
-    margin-top: 10rpx;
-  }
+	.list-title {
+		margin-bottom: 30rpx;
+	}
 
-  .line {
-    width: 100%;
-    height: 1rpx;
-    background-color: #F5F5F5;
-  }
+	.childList {
+		background: #ffffff;
+		box-shadow: 0px 0px 10rpx rgba(193, 193, 193, 0.2);
+		border-radius: 16rpx;
+		margin-top: 10rpx;
+	}
 
-  .text-title {
-    color: #303133;
-    font-size: 32rpx;
-    font-weight: bold;
-    margin-left: 10rpx;
+	.line {
+		width: 100%;
+		height: 1rpx;
+		background-color: #F5F5F5;
+	}
 
-    .iconfont {
-      font-size: 16px;
-      margin-right: 10rpx;
-    }
-  }
+	.text-title {
+		color: #303133;
+		font-size: 32rpx;
+		font-weight: bold;
+		margin-left: 10rpx;
 
-  .text-item {
-    font-size: 28rpx;
-    padding: 24rpx;
-  }
+		.iconfont {
+			font-size: 16px;
+			margin-right: 10rpx;
+		}
+	}
 
-  .question {
-    color: #606266;
-    font-size: 28rpx;
-  }
-</style>
+	.text-item {
+		font-size: 28rpx;
+		padding: 24rpx;
+	}
+
+	.question {
+		color: #606266;
+		font-size: 28rpx;
+	}
+</style>

+ 12 - 12
pages/mine/index.vue

@@ -19,13 +19,13 @@
           </view>
         </view>
         <view @click="handleToInfo" class="flex align-center">
-          <text>个人信息</text>
-          <view class="iconfont icon-right"></view>
+          <text style="font-size: 24rpx;">个人信息</text>
+          <view class="iconfont icon-right" style="font-size: 24rpx;margin-left: 5rpx;"></view>
         </view>
       </view>
     </view>
 
-    <view class="content-section">
+   <!-- <view class="content-section">
       <view class="mine-actions grid col-4 text-center">
         <view class="action-item" @click="handleJiaoLiuQun">
           <view class="iconfont icon-friendfill text-pink icon"></view>
@@ -43,33 +43,33 @@
           <view class="iconfont icon-dianzan text-green icon"></view>
           <text class="text">点赞我们</text>
         </view>
-      </view>
+      </view> -->
 
       <view class="menu-list">
         <view class="list-cell list-cell-arrow" @click="handleToEditInfo">
           <view class="menu-item-box">
             <view class="iconfont icon-user menu-icon"></view>
-            <view>编辑资料</view>
+            <view>补充资料</view>
           </view>
         </view>
-        <view class="list-cell list-cell-arrow" @click="handleHelp">
+       <view class="list-cell list-cell-arrow" @click="handleHelp">
           <view class="menu-item-box">
             <view class="iconfont icon-help menu-icon"></view>
-            <view>常见问题</view>
+            <view>更换手机号</view>
           </view>
         </view>
-        <view class="list-cell list-cell-arrow" @click="handleAbout">
+       <!-- <view class="list-cell list-cell-arrow" @click="handleAbout">
           <view class="menu-item-box">
             <view class="iconfont icon-aixin menu-icon"></view>
             <view>关于我们</view>
           </view>
-        </view>
-        <view class="list-cell list-cell-arrow" @click="handleToSetting">
+        </view> -->
+<!--        <view class="list-cell list-cell-arrow" @click="handleToSetting">
           <view class="menu-item-box">
             <view class="iconfont icon-setting menu-icon"></view>
             <view>应用设置</view>
           </view>
-        </view>
+        </view> -->
       </view>
 
     </view>
@@ -165,7 +165,7 @@
         margin-left: 15px;
 
         .u_title {
-          font-size: 18px;
+          font-size: 12px;
           line-height: 30px;
         }
       }

+ 31 - 9
pages/mine/info/edit.vue

@@ -3,18 +3,28 @@
     <view class="example">
       <uni-forms ref="form" :model="user" labelWidth="80px">
         <uni-forms-item label="用户昵称" name="nickname">
-          <uni-easyinput v-model="user.nickname" placeholder="请输入昵称" />
+          <uni-easyinput  v-model="user.nickname" placeholder="请输入昵称" />
         </uni-forms-item>
-        <uni-forms-item label="手机号码" name="mobile">
-          <uni-easyinput v-model="user.mobile" placeholder="请输入手机号码" />
+		<uni-forms-item label="性别" name="sex" required>
+		 <uni-data-checkbox disabled v-model="user.sex" :localdata="sexs" />
+		</uni-forms-item>
+        <uni-forms-item label="开户行手机号码" name="mobile">
+          <uni-easyinput v-model="user.mobile" placeholder="请输入手机号码" maxlength="11"/>
         </uni-forms-item>
-        <uni-forms-item label="邮箱" name="email">
-          <uni-easyinput v-model="user.email" placeholder="请输入邮箱" />
+		<uni-forms-item label="验证码" name="mobile" style="display: flex;flex-wrap: nowrap;">
+		  <uni-easyinput style="width: 55%;" v-model="user.mobile" maxlength="6" placeholder="请输入验证码" />
+		  <view class="yanz_code">
+		  	发生验证码
+		  </view>
+		</uni-forms-item>
+        <uni-forms-item label="开户行" name="email">
+          <uni-easyinput v-model="user.email" placeholder="请输入开户行" maxlength="30"/>
         </uni-forms-item>
+		<uni-forms-item label="银行卡号" name="email">
+		  <uni-easyinput v-model="user.email" placeholder="请输入银行卡号" maxlength="30"/>
+		</uni-forms-item>
         <!-- TODO 芋艿:uni-data-checkbox 存在问题 -->
-        <uni-forms-item label="性别" name="sex" required>
-<!--          <uni-data-checkbox v-model="user.sex" :localdata="sexs" />-->
-        </uni-forms-item>
+        
       </uni-forms>
       <button type="primary" @click="submit">提交</button>
     </view>
@@ -32,7 +42,7 @@
           nickname: "",
           mobile: "",
           email: "",
-          sex: ""
+          sex: "1"
         },
         sexs: [{
           text: '男',
@@ -93,6 +103,18 @@
 </script>
 
 <style lang="scss">
+	.yanz_code{
+		width:200rpx;
+		padding: 20rpx;
+		font-size: 24rpx;
+		color: #fff;
+		background-color: #42B983;
+		border-radius: 10rpx;
+		text-align: center;
+		position: absolute;
+		top: 0;
+		right: 5rpx;
+	}
   page {
     background-color: #ffffff;
   }

+ 17 - 6
pages/mine/info/index.vue

@@ -1,12 +1,23 @@
 <template>
   <view class="container">
     <uni-list>
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'person-filled'}" title="昵称" :rightText="user.nickname" />
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'phone-filled'}" title="手机号码" :rightText="user.mobile" />
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'email-filled'}" title="邮箱" :rightText="user.email" />
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'auth-filled'}" title="岗位" :rightText="(user.posts || []).map(post => post.name).join(',')" />
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'staff-filled'}" title="角色" :rightText="(user.roles || []).map(role => role.name).join(',')" />
-      <uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="创建日期" :rightText="this.parseTime(user.createTime)" />
+      <uni-list-item showExtraIcon="true" title="昵称" :rightText="user.nickname" />
+	  <uni-list-item showExtraIcon="true" title="店铺卡号" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="会员充值套餐" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="会员编号" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="会员等级" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="会员充值金额(元)" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="会员赠送金额(元)" :rightText="user.email" />
+      <uni-list-item showExtraIcon="true" title="手机号码" :rightText="user.mobile" />
+      <uni-list-item showExtraIcon="true" title="真实姓名" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="身份证号" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="开户行" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="银行卡号" :rightText="user.email" />
+	  <uni-list-item showExtraIcon="true" title="创建日期" :rightText="this.parseTime(user.createTime)" />
+	  
+	  
+      
+      
     </uni-list>
   </view>
 </template>

+ 147 - 166
pages/work/index.vue

@@ -1,183 +1,164 @@
 <template>
-  <view class="work-container">
-    <!-- 轮播图 -->
-    <uni-swiper-dot class="uni-swiper-dot-box" :info="data" :current="current" field="content">
-      <swiper class="swiper-box" :current="swiperDotIndex" @change="changeSwiper">
-        <swiper-item v-for="(item, index) in data" :key="index">
-          <view class="swiper-item" @click="clickBannerItem(item)">
-            <image :src="item.image" mode="aspectFill" :draggable="false" />
-          </view>
-        </swiper-item>
-      </swiper>
-    </uni-swiper-dot>
-
-    <!-- 宫格组件 -->
-    <uni-section title="系统管理" type="line"></uni-section>
-    <view class="grid-body">
-      <uni-grid :column="4" :showBorder="false" @change="changeGrid">
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="person-filled" size="30"></uni-icons>
-            <text class="text">用户管理</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="staff-filled" size="30"></uni-icons>
-            <text class="text">角色管理</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="color" size="30"></uni-icons>
-            <text class="text">菜单管理</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="settings-filled" size="30"></uni-icons>
-            <text class="text">部门管理</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="heart-filled" size="30"></uni-icons>
-            <text class="text">岗位管理</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="bars" size="30"></uni-icons>
-            <text class="text">字典管理</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="gear-filled" size="30"></uni-icons>
-            <text class="text">参数设置</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="chat-filled" size="30"></uni-icons>
-            <text class="text">通知公告</text>
-          </view>
-        </uni-grid-item>
-        <uni-grid-item>
-          <view class="grid-item-box">
-            <uni-icons type="wallet-filled" size="30"></uni-icons>
-            <text class="text">日志管理</text>
-          </view>
-        </uni-grid-item>
-      </uni-grid>
-    </view>
-  </view>
+	<view class="body">
+		<!-- 分红金额 -->
+		<view class="bg-box">
+			<view class="fh-box">分红余额(元)</view>
+			<view class="maney-box">
+				<view style="flex:1;"></view>
+				<view style="font-size: 60rpx;margin-left: 30rpx;">99999.88</view>
+				<view class="tix-box">提现</view>
+				<view style="flex:1;"></view>
+			</view>
+		</view>
+		<view style="font-size:28rpx;margin-top:10rpx;margin-left:2.5%;color:#555;">收益明细</view>
+		<!-- 中部 -->
+		<view class="list-wrap" style="margin-top:10rpx;">
+			<scroll-view scroll-y="true" class="list">
+				<view class="list-scroll-view">
+					<view class="course-card" v-for="i in 20">
+						<view>
+							<view style="font-size:28rpx;color:#666;">随心</view>
+							<view style="font-size:22rpx;color:#CBCBCB;">2024-09-18 15:45:41</view>
+						</view>
+						<view style="flex:1;"></view>
+						<view style="font-size:36rpx;color:red;">+98</view>
+					</view>
+				</view>
+			</scroll-view>
+		</view>
+	</view>
 </template>
 
 <script>
-  export default {
-    data() {
-      return {
-        current: 0,
-        swiperDotIndex: 0,
-        data: [{
-            image: '/static/images/banner/banner01.jpg'
-          },
-          {
-            image: '/static/images/banner/banner02.jpg'
-          },
-          {
-            image: '/static/images/banner/banner03.jpg'
-          }
-        ]
-      }
-    },
-    methods: {
-      clickBannerItem(item) {
-        console.info(item)
-      },
-      changeSwiper(e) {
-        this.current = e.detail.current
-      },
-      changeGrid(e) {
-        this.$modal.showToast('模块建设中~')
-      }
-    }
-  }
+	export default {
+		data() {
+			return {
+				current: 0,
+				swiperDotIndex: 0,
+				data: [{
+						image: '/static/images/banner/banner01.jpg'
+					},
+					{
+						image: '/static/images/banner/banner02.jpg'
+					},
+					{
+						image: '/static/images/banner/banner03.jpg'
+					}
+				]
+			}
+		},
+		methods: {
+			clickBannerItem(item) {
+				console.info(item)
+			},
+			changeSwiper(e) {
+				this.current = e.detail.current
+			},
+			changeGrid(e) {
+				this.$modal.showToast('模块建设中~')
+			}
+		}
+	}
 </script>
 
 <style lang="scss">
-  /* #ifndef APP-NVUE */
-  page {
-    display: flex;
-    flex-direction: column;
-    box-sizing: border-box;
-    background-color: #fff;
-    min-height: 100%;
-    height: auto;
-  }
+	// 上中下布局样式
+	.body {
+		display: flex;
+		flex-direction: column;
+		height: calc(100vh - 60px);
+		background-color: #EEEEF0;
+	}
+
+	.head {
+		text-align: center;
+	}
 
-  view {
-    font-size: 14px;
-    line-height: inherit;
-  }
+	// 中部滚动
+	.list-wrap {
+		flex-grow: 1;
+		position: relative;
+		width: 95%;
+		margin-left: 2.5%;
+		box-sizing: border-box;
+		border-radius: 10rpx;
+		background-color: #fff;
+	}
 
-  /* #endif */
+	.list {
+		position: absolute;
+		top: 20rpx;
+		left: 0;
+		right: 0;
+		bottom: 0;
+	}
 
-  .text {
-    text-align: center;
-    font-size: 26rpx;
-    margin-top: 10rpx;
-  }
+	.list-scroll-view {
+		display: flex;
+		flex-direction: row;
+		flex-wrap: wrap;
+		justify-content: space-between;
+		margin-left: 2vw;
+		margin-right: 2vw;
+	}
 
-  .grid-item-box {
-    flex: 1;
-    /* #ifndef APP-NVUE */
-    display: flex;
-    /* #endif */
-    flex-direction: column;
-    align-items: center;
-    justify-content: center;
-    padding: 15px 0;
-  }
+	.course-card {
+		width:95%;
+		margin-left:2.5%;
+		box-sizing:border-box;
+		display:flex;
+		flex-wrap:wrap;
+		justify-content:center;
+		align-items: center;
+		padding-bottom:15rpx;
+		border-bottom:1rpx solid #999;
+		margin-bottom:30rpx;
+	}
 
-  .uni-margin-wrap {
-    width: 690rpx;
-    width: 100%;
-    ;
-  }
+	// 底部
+	.tools {
+		display: flex;
+		flex-direction: row;
+		justify-content: space-between;
+	}
 
-  .swiper {
-    height: 300rpx;
-  }
+	.tools-item {
+		width: 45px;
+		text-align: center;
+		font-size: 14px;
+		padding: 20px;
+	}
 
-  .swiper-box {
-    height: 150px;
-  }
+	.tix-box {
+		padding: 10rpx;
+		font-size: 30rpx;
+		margin-left: 10rpx;
+	}
 
-  .swiper-item {
-    /* #ifndef APP-NVUE */
-    display: flex;
-    /* #endif */
-    flex-direction: column;
-    justify-content: center;
-    align-items: center;
-    color: #fff;
-    height: 300rpx;
-    line-height: 300rpx;
-  }
+	.maney-box {
+		display: flex;
+		flex-wrap: nowrap;
+		justify-content: center;
+		align-items: center;
+		width: 100%;
+		box-sizing: border-box;
+	}
 
-  @media screen and (min-width: 500px) {
-    .uni-swiper-dot-box {
-      width: 400px;
-      /* #ifndef APP-NVUE */
-      margin: 0 auto;
-      /* #endif */
-      margin-top: 8px;
-    }
+	.fh-box {
+		width: 100%;
+		padding: 10rpx;
+		padding-top: 30rpx;
+		font-size: 36rpx;
+		text-align: center;
+		box-sizing: border-box;
+	}
 
-    .image {
-      width: 100%;
-    }
-  }
-</style>
+	.bg-box {
+		position: relative;
+		width: 100%;
+		min-height: 240rpx;
+		background-color: #36AFCA;
+		color: #fff;
+		box-sizing: border-box;
+	}
+</style>