shenwu 8 months ago
parent
commit
306fbb311a

+ 9 - 0
config/routes.tsx

@@ -42,6 +42,14 @@ const newMenu = [
     path: '/miniApp',
     redirect: '/miniApp/book',
   },
+  // 用户管理
+  {
+    path: '/miniApp/user',
+    name: 'miniApp.user',
+    icon: 'icon-zhanghaoguanli-wx',
+    access: 'isShow',
+    component: './MiniApp/MiniAppUser',
+  },
   // 小说管理
   {
     path: '/miniApp/book',
@@ -66,6 +74,7 @@ const newMenu = [
     access: "isShow",
     component: './MiniApp/ModuleConfig',
   },
+  // 数据统计中心
   {
     name:"miniApp.dataManage",
     icon: 'icon-shuju-wx',

+ 1 - 1
src/components/MenuChange.tsx

@@ -1,5 +1,5 @@
 import { useModel, history } from "@umijs/max"
-type Props = { menuType: "distributor" | "miniApp", children: any, data: { appId: string, id: string, appName: string, appType: number } | null }
+type Props = { menuType: "distributor" | "miniApp", children: any, data: { appId: string, id: string, appName: string, appType: number,appCategory:1|2 } | null }
 //切换菜单展示
 const MenuChange: React.FC<Props> = (props) => {
     let { menuType, children, data } = props

+ 1 - 1
src/global.tsx

@@ -5,7 +5,7 @@ import { createFromIconfontCN } from '@ant-design/icons';
 import nocover from '../public/nocover.jpg'
 const { pwa } = defaultSettings;
 const isHttps = document.location.protocol === 'https:';
-export let scriptUrl = "//at.alicdn.com/t/c/font_4644725_7r9n7yn0h2a.js"//线上icon
+export let scriptUrl = "//at.alicdn.com/t/c/font_4644725_v9fyft7xju9.js"//线上icon
 // 自定义icon组件用于线上icon
 export const MyIcon = createFromIconfontCN({
   scriptUrl// 在 iconfont.cn 上生成

+ 1 - 0
src/locales/zh-CN/menu.ts

@@ -58,6 +58,7 @@ export default {
   "menu.miniApp.payModuleConfig":"书币充值模板管理",
   "menu.miniApp.appManage":"小程序组件管理",
   "menu.miniApp.book":"小说管理",
+  "menu.miniApp.user":"用户管理",
   "menu.miniApp.dataManage":"数据统计",
   "menu.miniApp.dataManage.payLog":"充值记录",
   "menu.miniApp.dataManage.readLog":"阅读记录",

+ 6 - 0
src/pages/MiniApp/MiniAppUser/Douyin/index.tsx

@@ -0,0 +1,6 @@
+
+function Page(){
+    return <>抖音小程序用户管理</>
+}
+
+export default Page

+ 6 - 0
src/pages/MiniApp/MiniAppUser/WeChat/index.tsx

@@ -0,0 +1,6 @@
+
+function Page(){
+    return <>微信小程序用户管理</>
+}
+
+export default Page

+ 10 - 0
src/pages/MiniApp/MiniAppUser/index.tsx

@@ -0,0 +1,10 @@
+import { useModel } from '@umijs/max'
+import Douyin from './Douyin'
+import WeChat from './WeChat'
+function Index() {
+    let { selectApp }: any = useModel("@@initialState", (model) => ({
+        selectApp: model.initialState?.selectApp
+    }))
+    return selectApp?.appType === 1? <WeChat /> : <Douyin />
+}
+export default Index

+ 6 - 3
src/pages/MiniApp/ModuleConfig/template.tsx

@@ -10,15 +10,18 @@ export function Template(params: { data: any, enmuList: any }) {
     let { firstRecharge, rechargeConfigList } = data
     const useStyles = createStyles((props) => {
         let { token } = props
+        let navTheme = localStorage.getItem("navTheme")//2亮 3黑
         return {
             cardBox: {
                 position: 'relative'
             },
             bgVip: {
                 backgroundImage: "linear-gradient(180deg, #fff1dc 60%, #fffdfa 100%)",
+                color: navTheme == "3" ? "#000" : "unset"
             },
             bg: {
-                backgroundImage: 'linear-gradient(180deg, #ffeced 60%, #fffafa 100%)'
+                backgroundImage: 'linear-gradient(180deg, #ffeced 60%, #fffafa 100%)',
+                color: navTheme == "3" ? "#000" : "unset"
             },
             topRight: {
                 lineHeight: '20px',
@@ -60,7 +63,7 @@ export function Template(params: { data: any, enmuList: any }) {
                             return <Col key={index} span={11} offset={index % 2 === 0 ? 0 : 1} >
                                 <Card className={`${styles.cardBox} ${color && styles.bg}`} styles={{ body: { maxHeight: 90, padding: '20px 15px' } }}>
                                     {/* 右上角 */}
-                                    <div className={`${styles.topRight}`} style={subscript ?{borderRadius: "8px 8px 0 8px",}:{}} >
+                                    <div className={`${styles.topRight}`} style={subscript ? { borderRadius: "8px 8px 0 8px", } : {}} >
                                         {
                                             <>
                                                 {subscript && <span className={styles.topRightSpan1}>{subscript}</span>}
@@ -84,7 +87,7 @@ export function Template(params: { data: any, enmuList: any }) {
                             return <Col key={index} span={11} offset={index % 2 === 0 ? 0 : 1} >
                                 <Card className={`${styles.cardBox} ${color && styles.bgVip}`} styles={{ body: { maxHeight: 90, padding: '20px 15px' } }}>
                                     {/* 右上角 */}
-                                    <div className={`${styles.topRight} ${styles.topRightVip}`} style={subscript ?{borderRadius: "8px 8px 0 8px",}:{}}>
+                                    <div className={`${styles.topRight} ${styles.topRightVip}`} style={subscript ? { borderRadius: "8px 8px 0 8px", } : {}}>
                                         {
                                             <>
                                                 {subscript && <span className={styles.topRightSpan1}>{subscript}</span>}