From c9b65b6090dc332df03e630601e3ad6bb0e1f8f2 Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Fri, 12 Dec 2025 17:34:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B6=85=E7=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=91=98=E8=AE=A2=E9=98=85=E8=AE=A1=E5=88=92=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Administrator/subscriptionPlan.vue | 669 ++++++++++++++++++ src/component/HomePage/renew.vue | 1 + src/router/index.ts | 7 + src/tool/adminRouter.js | 6 + src/tool/https.js | 5 + 5 files changed, 688 insertions(+) create mode 100644 src/component/Administrator/subscriptionPlan.vue diff --git a/src/component/Administrator/subscriptionPlan.vue b/src/component/Administrator/subscriptionPlan.vue new file mode 100644 index 00000000..af1691ea --- /dev/null +++ b/src/component/Administrator/subscriptionPlan.vue @@ -0,0 +1,669 @@ + + + + + + + diff --git a/src/component/HomePage/renew.vue b/src/component/HomePage/renew.vue index c33ee0ea..57148cb7 100644 --- a/src/component/HomePage/renew.vue +++ b/src/component/HomePage/renew.vue @@ -854,6 +854,7 @@ export default defineComponent({ height: 4rem; box-sizing: border-box; line-height: 4rem; + border-radius: 0.6rem; } > .payMethod_payAffirm_clause { text-align: center; diff --git a/src/router/index.ts b/src/router/index.ts index 1be5c769..b6606e7c 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -290,6 +290,13 @@ const routes: Array = [ component: () => import("@/component/Administrator/organization/organization.vue"), }, + { + path: "subscriptionPlan", + name: "subscriptionPlan", + meta: { enter: 3 }, + component: () => + import("@/component/Administrator/subscriptionPlan.vue"), + }, //企业版教育管理员页面 { path: "allUserSE", diff --git a/src/tool/adminRouter.js b/src/tool/adminRouter.js index 7312c682..dcea9b8c 100644 --- a/src/tool/adminRouter.js +++ b/src/tool/adminRouter.js @@ -177,6 +177,12 @@ const all = (t)=>{ route:'/administrator/organization', key:'sub13', isShow:true, + },{ + name:'Subscription Plan', + icon:'usetime', + route:'/administrator/subscriptionPlan', + key:'sub14', + isShow:true, }] } const schoolOrEnterprise = (t) =>{ diff --git a/src/tool/https.js b/src/tool/https.js index a0352e4a..e49e16d0 100644 --- a/src/tool/https.js +++ b/src/tool/https.js @@ -325,6 +325,11 @@ export const Https = { deletePromCode:`/api/stripe/deletePromCode`,//删除优惠券 addOrganization:`/api/inquiry/addOrganization`,//添加企业版或者教育版 queryOrganization:`/api/inquiry/queryOrganization`,//查询企业版或者教育版 + createSubscribePlan:'/api/subscription_plan/createPlan', // 创建订阅计划 + deleteSubscribePlan: '/api/subscription_plan/deletePlan', // 删除订阅计划 + updateSubscribePlan: '/api/subscription_plan/updatePlan', // 修改订阅计划 + searchAllSubscribePlan: '/api/subscription_plan/searchByPage', // 查询所有订阅计划 + switchSubscribePlan:'/api/subscription_plan/switchSubscriptionPlan', // 切换订阅计划 //云生成