diff --git a/src/pages.json b/src/pages.json
index 40cac8e..cc12882 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -83,6 +83,30 @@
"style": {
"navigationBarTitleText": "浏览文本"
}
+ },
+ {
+ "path": "pages/distributor/index",
+ "style": {
+ "navigationBarTitleText": "分销员管理"
+ }
+ },
+ {
+ "path": "pages/distributor/add",
+ "style": {
+ "navigationBarTitleText": "新增分销员"
+ }
+ },
+ {
+ "path": "pages/distributor/edit",
+ "style": {
+ "navigationBarTitleText": "修改分销员"
+ }
+ },
+ {
+ "path": "pages/distributor/rule",
+ "style": {
+ "navigationBarTitleText": "分润规则配置"
+ }
}
],
"tabBar": {
diff --git a/src/pages/distributor/add.vue b/src/pages/distributor/add.vue
new file mode 100644
index 0000000..72a1484
--- /dev/null
+++ b/src/pages/distributor/add.vue
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/distributor/edit.vue b/src/pages/distributor/edit.vue
new file mode 100644
index 0000000..d49f8aa
--- /dev/null
+++ b/src/pages/distributor/edit.vue
@@ -0,0 +1,248 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/distributor/index.vue b/src/pages/distributor/index.vue
new file mode 100644
index 0000000..322e116
--- /dev/null
+++ b/src/pages/distributor/index.vue
@@ -0,0 +1,398 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 姓名
+ 手机号
+ 总收益
+ 可用收益
+ 状态
+ 操作
+
+
+ {{ item.name }}
+ {{ item.phone }}
+ {{ item.total_income }}
+ {{ item.available_income }}
+
+
+ {{ item.is_active === 'Y' ? '激活' : '未激活' }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/distributor/rule.vue b/src/pages/distributor/rule.vue
new file mode 100644
index 0000000..efd6c79
--- /dev/null
+++ b/src/pages/distributor/rule.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/login.vue b/src/pages/login.vue
index ce1c95e..a7c342e 100644
--- a/src/pages/login.vue
+++ b/src/pages/login.vue
@@ -3,7 +3,7 @@
- 若依移动端登录
+ 寻驾小程序管理
diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue
index 4a339d5..2992d18 100644
--- a/src/pages/work/index.vue
+++ b/src/pages/work/index.vue
@@ -5,67 +5,53 @@
-
+
-
-
-
-
-
+ 系统功能
+
+
+
+
+
+
+ 分销员管理
+
+
+
+
+
+
+
用户管理
-
-
-
- 角色管理
-
-
-
-
-
- 菜单管理
-
-
-
-
-
+
+
+
+
+
部门管理
-
-
-
- 岗位管理
-
-
-
-
-
- 字典管理
-
-
-
-
-
- 参数设置
-
-
-
-
-
+
+
+
+
+
通知公告
-
-
-
+
+
+
+
+
日志管理
@@ -90,7 +76,34 @@
current.value = e.detail.current
}
- function changeGrid(e) {
+ // 跳转到分销员管理页面
+ function goToDistributor() {
+ console.log('准备跳转到分销员管理页面')
+ uni.navigateTo({
+ url: '/pages/distributor/index',
+ success: function() {
+ console.log('跳转成功')
+ },
+ fail: function(err) {
+ console.log('跳转失败:', err)
+ // 尝试使用其他跳转方式
+ uni.redirectTo({
+ url: '/pages/distributor/index',
+ success: function() {
+ console.log('redirectTo跳转成功')
+ },
+ fail: function(err2) {
+ console.log('redirectTo跳转失败:', err2)
+ // 显示错误信息
+ proxy.$modal.showToast('跳转失败,请重试')
+ }
+ })
+ }
+ })
+ }
+
+ // 显示建设中提示
+ function showUnderConstruction() {
proxy.$modal.showToast('模块建设中~')
}
@@ -101,7 +114,7 @@
display: flex;
flex-direction: column;
box-sizing: border-box;
- background-color: #fff;
+ background-color: #f5f7fa;
min-height: 100%;
height: auto;
}
@@ -112,60 +125,128 @@
}
/* #endif */
- .text {
- text-align: center;
- font-size: 26rpx;
- margin-top: 10rpx;
+ .work-container {
+ padding: 20rpx;
+ min-height: 100vh;
+ }
+
+ /* 轮播图样式 */
+ .uni-swiper-dot-box {
+ margin-bottom: 30rpx;
+ border-radius: 12rpx;
+ overflow: hidden;
+ box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
+ }
+
+ .swiper-box {
+ height: 200px;
+ border-radius: 12rpx;
+ overflow: hidden;
+ }
+
+ .swiper-item {
+ height: 200px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
+ .banner-image {
+ width: 100%;
+ height: 100%;
+ border-radius: 12rpx;
+ }
+
+ /* 宫格样式 */
+ .grid-body {
+ background-color: #fff;
+ border-radius: 12rpx;
+ padding: 20rpx;
+ box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.08);
+ }
+
+ .grid-title {
+ font-size: 30rpx;
+ font-weight: bold;
+ color: #303133;
+ margin-bottom: 20rpx;
+ padding-left: 10rpx;
+ border-left: 6rpx solid #409eff;
}
.grid-item-box {
flex: 1;
- /* #ifndef APP-NVUE */
display: flex;
- /* #endif */
flex-direction: column;
align-items: center;
justify-content: center;
- padding: 15px 0;
+ padding: 20rpx 0;
+ transition: all 0.3s ease;
+ border-radius: 8rpx;
+ position: relative;
}
- .uni-margin-wrap {
- width: 690rpx;
- width: 100%;
- ;
+ .grid-item-box:active {
+ transform: translateY(2rpx);
+ box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.1);
}
- .swiper {
- height: 300rpx;
- }
-
- .swiper-box {
- height: 150px;
- }
-
- .swiper-item {
- /* #ifndef APP-NVUE */
+ .icon-container {
+ width: 80rpx;
+ height: 80rpx;
+ border-radius: 16rpx;
display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
align-items: center;
- color: #fff;
- height: 300rpx;
- line-height: 300rpx;
+ justify-content: center;
+ margin-bottom: 15rpx;
+ background-color: #f0f9eb;
}
+ /* 各模块颜色 */
+ .distributor .icon-container {
+ background-color: #ecf5ff;
+ }
+
+ .user .icon-container {
+ background-color: #f0f9eb;
+ }
+
+ .dept .icon-container {
+ background-color: #fdf6ec;
+ }
+
+ .notice .icon-container {
+ background-color: #fef0f0;
+ }
+
+ .log .icon-container {
+ background-color: #f4f4f5;
+ }
+
+ .text {
+ text-align: center;
+ font-size: 26rpx;
+ color: #606266;
+ font-weight: 500;
+ }
+
+ /* 响应式设计 */
@media screen and (min-width: 500px) {
- .uni-swiper-dot-box {
- width: 400px;
- /* #ifndef APP-NVUE */
+ .work-container {
+ max-width: 800px;
margin: 0 auto;
- /* #endif */
- margin-top: 8px;
}
- .image {
- width: 100%;
+ .swiper-box {
+ height: 240px;
+ }
+
+ .swiper-item {
+ height: 240px;
+ }
+
+ .grid-item-box {
+ padding: 25rpx 0;
}
}