From 69d7fb254058756915f5c8666d65438fcacf67c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=80=E5=9D=97=E5=85=AB?= <2523890936@qq.com> Date: Thu, 31 Jul 2025 13:29:53 +0800 Subject: [PATCH] bugfix --- f/web-kboss/package.json | 1 + f/web-kboss/src/api/ncmatch/index.js | 40 + f/web-kboss/src/router/index.js | 7 + .../src/views/homePage/mainPage/index.vue | 259 ++--- .../homePage/ncmatch/mainPage/img/btnBg.png | Bin 0 -> 191290 bytes .../homePage/ncmatch/mainPage/img/gc.svg | 1 + .../homePage/ncmatch/mainPage/img/product.svg | 1 + .../homePage/ncmatch/mainPage/img/xq.svg | 1 + .../views/homePage/ncmatch/mainPage/index.vue | 790 ++++++++------- .../ncmatch/mainPage/productCard/index.vue | 182 ++++ .../mainPage/sendProduct/buildCaTree.js | 19 + .../ncmatch/mainPage/sendProduct/index.vue | 904 ++++++++++++++++++ .../ncmatch/mainPage/sendProduct/indexBak.vue | 564 +++++++++++ .../ncmatch/supplyAndDemandSquare/index.vue | 226 +++++ f/web-kboss/src/views/setting/tools.js | 4 +- 15 files changed, 2482 insertions(+), 517 deletions(-) create mode 100644 f/web-kboss/src/api/ncmatch/index.js create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/img/btnBg.png create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/img/gc.svg create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/img/product.svg create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/img/xq.svg create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/productCard/index.vue create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/buildCaTree.js create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue create mode 100644 f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/indexBak.vue create mode 100644 f/web-kboss/src/views/homePage/ncmatch/supplyAndDemandSquare/index.vue diff --git a/f/web-kboss/package.json b/f/web-kboss/package.json index c24521c..77b4fa5 100644 --- a/f/web-kboss/package.json +++ b/f/web-kboss/package.json @@ -51,6 +51,7 @@ "uuid": "^9.0.0", "vue": "2.6.10", "vue-count-to": "^1.0.13", + "vue-cropper": "^0.6.5", "vue-device-detector": "^1.1.6", "vue-infinite-scroll": "^2.0.2", "vue-router": "^3.0.2", diff --git a/f/web-kboss/src/api/ncmatch/index.js b/f/web-kboss/src/api/ncmatch/index.js new file mode 100644 index 0000000..b7f2760 --- /dev/null +++ b/f/web-kboss/src/api/ncmatch/index.js @@ -0,0 +1,40 @@ +import request from "@/utils/request"; +//获取商品分类 +export function reqGetProductCategorySearch(data) { + return request({ + url: '/product/product_category_search.dspy', + method: 'post', + headers: { + 'Content-Type': 'application/json' + }, + data + }) +} +//添加产品 publish_product_add +export function reqPublishProductAdd(data) { + return request({ + url: '/product/publish_product_add.dspy', + method: 'post', + headers: { 'Content-Type': 'multipart/form-data' }, + data + }) +} +//获公司类型 /product/company_category_search.dspy +export function reqCompanyCategorySearch(data) { + return request({ + url: '/product/company_category_search.dspy', + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data + }) +} + +//获取全部产品/product/publish_product_search_first_page.dspy +export function reqPublishProductSearchFirstPage(data) { + return request({ + url: '/product/publish_product_search_first_page.dspy', + method: 'post', + headers: { 'Content-Type': 'application/json' }, + data + }) +} \ No newline at end of file diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js index 9667621..a6e5c9d 100644 --- a/f/web-kboss/src/router/index.js +++ b/f/web-kboss/src/router/index.js @@ -175,6 +175,13 @@ export const constantRoutes = [ hidden: true, meta: {title: "首页", fullPath: "/ncmatch/mainPage/index"}, }, + { + path: "supplyAndDemandSquare", + component: () => import("@/views/homePage/ncmatch/supplyAndDemandSquare/index.vue"), + name: "supplyAndDemandSquare", + hidden: true, + meta: {title: "算力供需广场", fullPath: "/ncmatch/supplyAndDemandSquare"}, + }, ] }, { diff --git a/f/web-kboss/src/views/homePage/mainPage/index.vue b/f/web-kboss/src/views/homePage/mainPage/index.vue index d8b8561..d1d1e80 100644 --- a/f/web-kboss/src/views/homePage/mainPage/index.vue +++ b/f/web-kboss/src/views/homePage/mainPage/index.vue @@ -4,14 +4,13 @@
- - {{ logoInfoNew.home.bannerTitle || "" }} - + + {{ logoInfoNew.home.bannerTitle || "" }} + - 您身边的AI管家 + 您身边的AI管家
- - 4090 裸金属 - 6000 + 4090 裸金属 + 6000 /台/月 - + - 云资源 - + 云资源 + - 直降 20% - + 直降 20% +
- 云筑企业基座 + 云筑企业基座 多云融合 让上云更简单
@@ -54,17 +51,14 @@ {{ baseItem.title }}

{{ baseItem.description }}

{{ baseItem.price }} - /{{ baseItem.price_unit }} + style="font-weight: bold;font-size: 48px">{{ baseItem.price }} + /{{ baseItem.price_unit }} @@ -72,50 +66,47 @@
立即购买 > + style="display: inline-block;margin-left: 5px;color: white">>
查看详情  > + style="display: inline-block;margin-left: 5px;">
- 官网折扣 {{ baseItem.discount }}折 + 官网折扣 {{ + baseItem.discount }}折
- 智算未来征程 + 智算未来征程 多元异构 灵活短租
{{ suanItem.title }} {{ suanItem.price }} - /{{ suanItem.price_unit }} + style="font-weight: bold;font-size: 48px">{{ suanItem.price }} + /{{ suanItem.price_unit }} @@ -130,12 +121,12 @@
立即咨询 > + style="display: inline-block;margin-left: 5px;color: white">>
查看详情  > + style="display: inline-block;margin-left: 5px;">
@@ -146,13 +137,13 @@
- 网织智能经纬 + 网织智能经纬 云算网融合 让连接更简单
    -
  • - {{ menu.name }} +
  • + {{ menu.name }}
@@ -161,30 +152,29 @@

{{ netItem.description }}

产品优势
    -
  • +
  • {{ item.name - }} {{ item.content }} + }} {{ item.content }}
应用场景
    -
  • {{ i.name }}
  • +
  • {{ i.name }}
立即咨询 > + style="display: inline-block;margin-left: 5px;color: white">>
查看详情  > + style="display: inline-block;margin-left: 5px;">
- 合作伙伴 + 合作伙伴
@@ -195,7 +185,7 @@
- 算力资源 + 算力资源
@@ -227,8 +217,8 @@
  • 8 - + - + + + 算力中心接入
  • @@ -251,16 +241,16 @@
  • 2000 - P+ - + P+ + 算力
  • 10 - ms - + ms + 实时算力响应
  • @@ -269,8 +259,8 @@
  • 100,000 - + - + + + 注册用户
  • @@ -289,8 +279,8 @@ @@ -299,21 +289,13 @@ - + 官方申明

    尊敬用户:

    您好~~

    本平台公示的所有产品折扣活动均真实有效,价格体系严格遵循公开透明原则。

    -

    特别说明:云服务产品页面所示价格属参考性标价,实际交易金额须以资源清单订单页面为准。 +

    特别说明:云服务产品页面所示价格属参考性标价,实际交易金额须以资源清单订单页面为准。

    请您知悉上述条款并放心进行购买决策,如有任何疑问,可随时联系平台官方客服,我们将为您详细说明。

    @@ -336,15 +318,15 @@ \ No newline at end of file diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/buildCaTree.js b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/buildCaTree.js new file mode 100644 index 0000000..786eab6 --- /dev/null +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/buildCaTree.js @@ -0,0 +1,19 @@ +export const buildCaTree = (data,parentid=null) => { + const tree = []; + for (const item of data) { + if (item.parentid === parentid) { + const children = buildCaTree(data, item.id); + let i = { + label:item.product_category, + value:item.id, + cart_flag:item.cart_flag + } + if (children.length > 0) { + i.children = children; + } + + tree.push(i); + } + } + return tree; +}; \ No newline at end of file diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue new file mode 100644 index 0000000..1f5583a --- /dev/null +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue @@ -0,0 +1,904 @@ + + + \ No newline at end of file diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/indexBak.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/indexBak.vue new file mode 100644 index 0000000..98e36dc --- /dev/null +++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/indexBak.vue @@ -0,0 +1,564 @@ + + + \ No newline at end of file diff --git a/f/web-kboss/src/views/homePage/ncmatch/supplyAndDemandSquare/index.vue b/f/web-kboss/src/views/homePage/ncmatch/supplyAndDemandSquare/index.vue new file mode 100644 index 0000000..31392bd --- /dev/null +++ b/f/web-kboss/src/views/homePage/ncmatch/supplyAndDemandSquare/index.vue @@ -0,0 +1,226 @@ + + + + + \ No newline at end of file diff --git a/f/web-kboss/src/views/setting/tools.js b/f/web-kboss/src/views/setting/tools.js index f8523fb..1a0d18c 100644 --- a/f/web-kboss/src/views/setting/tools.js +++ b/f/web-kboss/src/views/setting/tools.js @@ -1,6 +1,6 @@ export function getHomePath() { - // let homePath= "/homePage/index" - let homePath= "/ncmatchHome/index" + let homePath= "/homePage/index" + // let homePath= "/ncmatchHome/index" // 业主机构信息 let url_link = window.location.href || '';