From 22dc69f919d2a361d247b7586f031204b58592ab Mon Sep 17 00:00:00 2001 From: hrx <18603305412@163.com> Date: Sat, 23 May 2026 14:52:06 +0800 Subject: [PATCH] updata --- f/web-kboss/src/api/login.js | 12 +- f/web-kboss/src/api/model/model.js | 41 ++ .../login/components/ForgotPasswordDialog.vue | 316 +++++++++ f/web-kboss/src/views/login/indexNew.vue | 169 +---- .../src/views/modelManagement/ApiDocument.vue | 177 +++-- .../src/views/modelManagement/Experience.vue | 662 +++++++++++++++++- .../src/views/modelManagement/ModelDetail.vue | 225 +++++- .../src/views/product/allProduct/index.vue | 490 +++++++++++-- .../src/views/tokenManagement/index.vue | 2 +- 9 files changed, 1775 insertions(+), 319 deletions(-) create mode 100644 f/web-kboss/src/views/login/components/ForgotPasswordDialog.vue diff --git a/f/web-kboss/src/api/login.js b/f/web-kboss/src/api/login.js index 5f275bb..726a76c 100644 --- a/f/web-kboss/src/api/login.js +++ b/f/web-kboss/src/api/login.js @@ -72,7 +72,7 @@ export function retrieveCodeAPI(data) { //重置密码 export function getPasswordCodeAPI(params) { return request({ - url: `/user/getretrieve${suffix}`, + url: `/customer/forgotPassword${suffix}`, method: 'get', params: params }) @@ -283,3 +283,13 @@ export function register(data) { }) } + + +// 新忘记密码 +export function newForgotPassword(data) { + return request({ + url: `/customer/forgotPassword.dspy`, + method: 'post', + data, + }) +} \ No newline at end of file diff --git a/f/web-kboss/src/api/model/model.js b/f/web-kboss/src/api/model/model.js index 3397ed4..ba45ad7 100644 --- a/f/web-kboss/src/api/model/model.js +++ b/f/web-kboss/src/api/model/model.js @@ -72,3 +72,44 @@ export const reqCreateApikey = (params = {}) => { params }) } + +// 获取模型api文档 +export const reqModelApiDocument = (params = {}) => { + return request({ + url: '/cntoai/get_model_api_doc.dspy', + method: 'get', + params + }) +} +//模型体验多轮会话 +export const reqModelExperienceMultiRound = (params = {}) => { + return request({ + url: '/cntoai/chat_send_stream.dspy', + method: 'get', + params + }) +} +// 左侧历史对话 +export const reqModelExperienceLeftHistory = (params = {}) => { + return request({ + url: '/cntoai/chat_session_list.dspy', + method: 'get', + params + }) +} +// 历史对话信息 +export const reqModelExperienceHistoryInfo = (params = {}) => { + return request({ + url: '/cntoai/chat_session_messages.dspy', + method: 'get', + params + }) +} +// 删除历史对话 +export const reqModelExperienceDeleteHistory = (params = {}) => { + return request({ + url: '/cntoai/chat_session_delete.dspy', + method: 'get', + params + }) +} \ No newline at end of file diff --git a/f/web-kboss/src/views/login/components/ForgotPasswordDialog.vue b/f/web-kboss/src/views/login/components/ForgotPasswordDialog.vue new file mode 100644 index 0000000..db41b0e --- /dev/null +++ b/f/web-kboss/src/views/login/components/ForgotPasswordDialog.vue @@ -0,0 +1,316 @@ + + + + + diff --git a/f/web-kboss/src/views/login/indexNew.vue b/f/web-kboss/src/views/login/indexNew.vue index 18ec0b2..0dad6ee 100644 --- a/f/web-kboss/src/views/login/indexNew.vue +++ b/f/web-kboss/src/views/login/indexNew.vue @@ -110,7 +110,7 @@
- + 忘记密码? @@ -119,37 +119,7 @@
- - + @@ -177,12 +147,10 @@ import { getCodeAPI, // 获取验证码API getLogoAPI, // 获取Logo信息API - // getPasswordCodeAPI, // 重置密码API logintypeAPI, // 登录类型API loginUserAPI, // 用户登录API reqGetAppidAPI, // 获取微信AppID API reqGetCodeAPI, // 获取微信授权码API - // retrieveCodeAPI, // 获取重置密码验证码API, } from "@/api/login"; import store from "@/store"; @@ -196,10 +164,11 @@ import { Message } from "element-ui"; import router, { resetRouter } from "@/router"; import { reqNewHomeFestival } from "@/api/newHome"; import { getHomePath } from '@/views/setting/tools' +import ForgotPasswordDialog from './components/ForgotPasswordDialog.vue' export default { name: "indexNew", - components: { BeforeLogin, promotionalInvitationCode }, + components: { BeforeLogin, promotionalInvitationCode, ForgotPasswordDialog }, data() { return { // 微信登录相关 @@ -231,6 +200,7 @@ export default { // 对话框和加载状态 loading: false, // 登录按钮加载状态 + forgotPasswordVisible: false, // 忘记密码弹窗显示状态 // 登录表单数据 loginForm: { @@ -258,21 +228,6 @@ export default { capsTooltip: false, passwordType: "password", // 密码输入框类型:password或text - // 重置密码相关暂时注释 - // form: { - // username: "", // 用户名 - // vcode: "", // 验证码 - // password: "", // 新密码 - // id: "", // 用户ID - // codeid: "", // 验证码ID - // }, - - // forms: { - // username: [{ required: true, message: "请输入姓名", trigger: "blur" }], - // password: [{ required: true, message: "请输入密码", trigger: "blur" }], - // vcode: [{ required: true, message: "请输入验证码", trigger: "blur" }], - // }, - // Logo显示控制 isLogo: false, isShowSaleProduct: false, // 是否显示销售产品 @@ -374,20 +329,6 @@ export default { }, 300); }, - // 重置密码相关方法暂时注释 - // debouncedGetCode1: function () { - // if (this.isDisabled1 || this.isGettingCode1) return; - // - // this.isGettingCode1 = true; - // - // clearTimeout(this.debounceTimer1); - // - // this.debounceTimer1 = setTimeout(() => { - // this.getCode1(); - // this.isGettingCode1 = false; - // }, 300); - // }, - // 跳转到百度产品页面 goBaidu(listUrl, url) { this.$store.commit('setRedirectUrl', url) @@ -747,54 +688,6 @@ export default { }); }, - // getCode1() { - // if (!this.form.username || !/^1[3-9]\d{9}$/.test(this.form.username)) { - // this.$message.error('请输入正确的手机号'); - // return; - // } - // - // retrieveCodeAPI({ - // mobile: this.form.username, - // action_type: 'login' - // }).then((res) => { - // if (res.status == true) { - // this.form.id = res.userid; - // this.form.codeid = res.codeid; - // let that = this; - // this.time_count1 = 59; - // this.isDisabled1 = true; - // this.SendCode_text1 = "重新发送" + this.time_count1 + "s"; - // - // if (!that.timer1) { - // that.timer1 = setInterval(() => { - // if (that.time_count1 > 0) { - // that.time_count1--; - // that.SendCode_text1 = "重新发送" + that.time_count1 + "s"; - // } else { - // that.SendCode_text1 = "获取验证码"; - // clearInterval(that.timer1); - // that.timer1 = null; - // this.isDisabled1 = false; - // that.time_count1 = 60; - // } - // }, 1000); - // } - // this.$message({ - // message: "验证码已发送,请注意查收。", - // type: "success", - // }); - // } else { - // this.$message({ - // message: res.msg, - // type: "error", - // }); - // } - // }).catch(error => { - // this.isGettingCode1 = false; - // this.$message.error('验证码获取失败'); - // }); - // }, - // 标签页点击事件 handleClick(tab, event) { console.log(tab, event); @@ -932,50 +825,12 @@ export default { }); }, - // resetPassword() { - // this.dialogVisible = true; - // this.$refs.loginForm.resetFields(); - // }, - // 跳转到注册页面 handleRegister() { console.log("注册按钮被点击了") this.$router.push({ name: "registrationPage" }); }, - // cancelReset() { - // this.dialogVisible = false; - // this.$refs.form.resetFields(); - // }, - - // handleSubmit() { - // let parmas = { - // id: this.form.id, - // password: this.form.password, - // codeid: this.form.codeid, - // vcode: this.form.vcode, - // }; - // getPasswordCodeAPI(parmas).then((res) => { - // if (res.status == true) { - // this.$message({ - // message: "密码重置成功", - // type: "success", - // }); - // this.isDisabled1 = false; - // this.dialogVisible = false; - // this.SendCode_text1 = "获取验证码"; - // clearInterval(this.timer1); - // this.timer1 = null; - // this.time_count1 = 60; - // this.$refs.form.resetFields(); - // } else { - // this.$message({ - // message: res.msg, - // type: "error", - // }); - // } - // }); - // }, } } @@ -1163,10 +1018,22 @@ $dark_gray: #889aa4; .two-btn { width: 300px; display: flex; - justify-content: center; + justify-content: space-between; + align-items: center; margin-top: 0; } +.forgot-password { + margin-bottom: 30px; + color: #409eff; + cursor: pointer; + font-size: 14px; + + &:hover { + text-decoration: underline; + } +} + .go-register { font-size: 14px; color: #333; diff --git a/f/web-kboss/src/views/modelManagement/ApiDocument.vue b/f/web-kboss/src/views/modelManagement/ApiDocument.vue index 62bba37..85a394e 100644 --- a/f/web-kboss/src/views/modelManagement/ApiDocument.vue +++ b/f/web-kboss/src/views/modelManagement/ApiDocument.vue @@ -1,7 +1,7 @@ @@ -179,6 +340,14 @@ export default { font-size: 13px; } +.token-market-link { + cursor: pointer; + + &:hover { + color: #2f6bff; + } +} + .detail-container { width: 920px; margin: 28px auto 0; @@ -283,7 +452,7 @@ export default { .price-list { display: grid; - grid-template-columns: 1fr 1fr; + grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; } @@ -312,6 +481,10 @@ export default { &.output { background: #fff0fa; } + + &.cache { + background: #f0fdf4; + } } .feature-block { diff --git a/f/web-kboss/src/views/product/allProduct/index.vue b/f/web-kboss/src/views/product/allProduct/index.vue index 5951174..1a7e311 100644 --- a/f/web-kboss/src/views/product/allProduct/index.vue +++ b/f/web-kboss/src/views/product/allProduct/index.vue @@ -1,41 +1,6 @@