diff --git a/b/product/get_ncmatch_publish_product_to_model.dspy b/b/product/get_ncmatch_publish_product_to_model.dspy new file mode 100644 index 0000000..f6476dd --- /dev/null +++ b/b/product/get_ncmatch_publish_product_to_model.dspy @@ -0,0 +1,21 @@ +async def get_ncmatch_publish_product_to_model(ns={}): + db = DBPools() + async with db.sqlorContext('kboss') as sor: + try: + sql = """SELECT * FROM user_publish_product WHERE listing_status = 'listing' AND del_flg = '0';""" + result = await sor.sqlExe(sql, {}) + + return { + 'status': True, + 'msg': 'successfully retrieved published products', + 'data': result + } + except Exception as e: + return { + 'status': False, + 'msg': 'failed to retrieve published products', + 'data': e + } + +ret = await get_ncmatch_publish_product_to_model(params_kw) +return ret \ No newline at end of file diff --git a/docs/Kboss产品技术文档.docx b/docs/Kboss产品技术文档.docx new file mode 100644 index 0000000..c17c40b Binary files /dev/null and b/docs/Kboss产品技术文档.docx differ diff --git a/docs/kboss产品介绍.docx b/docs/kboss产品介绍.docx index c6f0116..2e909d5 100644 Binary files a/docs/kboss产品介绍.docx and b/docs/kboss产品介绍.docx differ diff --git a/f/web-kboss/jsconfig.json b/f/web-kboss/jsconfig.json index 958df04..ed079e2 100644 --- a/f/web-kboss/jsconfig.json +++ b/f/web-kboss/jsconfig.json @@ -1,4 +1,4 @@ -{ +{ "compilerOptions": { "baseUrl": "./", "paths": { @@ -6,4 +6,4 @@ } }, "exclude": ["node_modules", "dist"] -} \ No newline at end of file +} diff --git a/f/web-kboss/src/permission.js b/f/web-kboss/src/permission.js index 226add4..cd8782f 100644 --- a/f/web-kboss/src/permission.js +++ b/f/web-kboss/src/permission.js @@ -11,7 +11,7 @@ import {getHomePath} from "@/views/setting/tools"; NProgress.configure({showSpinner: false}); // NProgress Configuration -const whiteList = ["/login", "/homePage", "/registrationPage", "/shoppingCart", "/homePageImage","/h5HomePage",'/H5about']; // no redirect whitelist +const whiteList = ["/login", "/homePage", "/registrationPage", "/shoppingCart", "/homePageImage","/h5HomePage",'/H5about','/modelProductDetail']; // no redirect whitelist // 获取用户代理字符串 const userAgent = window.navigator.userAgent; diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js index 2ce02b8..db1cf56 100644 --- a/f/web-kboss/src/router/index.js +++ b/f/web-kboss/src/router/index.js @@ -56,6 +56,13 @@ export const constantRoutes = [ path: "/redirect/:path(.*)", component: () => import("@/views/redirect/index"), },], }, + // 模型推荐产品详情 + { + path: "/modelProductDetail", + name: 'ProductDetail', + component: () => import('@/views/modelProductDetail/index.vue'), + + }, { path: '/h5HomePage', name: 'H5HomePage', @@ -285,6 +292,7 @@ export const constantRoutes = [ hidden: true, meta: { title: "算力供需广场", fullPath: "/ncmatch/supplyAndDemandSquare" }, }, + { path: "search", component: () => import("@/views/homePage/ncmatch/searchBox/index.vue"), diff --git a/f/web-kboss/src/views/homePage/components/topBox/index.vue b/f/web-kboss/src/views/homePage/components/topBox/index.vue index f32c219..b988b95 100644 --- a/f/web-kboss/src/views/homePage/components/topBox/index.vue +++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue @@ -668,7 +668,7 @@ export default Vue.extend({ // 首页跳转方法 - 根据域名判断跳转到不同的首页 goHome() { if (this.isNcmatchDomain) { - this.$router.push('/ncmatchHome/index'); + this.$router.push('/ncmatchHome'); } else { this.$router.push('/homePage/index'); } diff --git a/f/web-kboss/src/views/modelProductDetail/index.vue b/f/web-kboss/src/views/modelProductDetail/index.vue new file mode 100644 index 0000000..f9326e7 --- /dev/null +++ b/f/web-kboss/src/views/modelProductDetail/index.vue @@ -0,0 +1,372 @@ + + + + +