From dcb4805669e0d4a06aee5e30b231085262956430 Mon Sep 17 00:00:00 2001 From: lixiang <935448346@qq.com> Date: Thu, 24 Oct 2024 18:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9=EF=BC=9B?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98=E5=89=8D=E5=87=86=E5=A4=87?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/main.js | 4 + ruoyi-ui/src/router/index.js | 5 + ruoyi-ui/src/views/system/goods/index.vue | 28 ++- .../src/views/system/userFront/details.vue | 34 ++-- ruoyi-ui/src/views/system/userFront/index.vue | 123 ++++++++++--- .../src/views/system/userFront/payBefore.vue | 174 ++++++++++++++++++ 6 files changed, 323 insertions(+), 45 deletions(-) create mode 100644 ruoyi-ui/src/views/system/userFront/payBefore.vue diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index ebd94b9d..ae033d19 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -37,6 +37,7 @@ import DictTag from '@/components/DictTag' import VueMeta from 'vue-meta' // 字典数据组件 import DictData from '@/components/DictData' +import * as ElementUI from "element-ui"; // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -84,3 +85,6 @@ new Vue({ store, render: h => h(App) }) + +// 全局取消点击dialog以外部分关闭弹窗 +ElementUI.Dialog.props.closeOnClickModal.default = false diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js index 36c79424..5233eca9 100644 --- a/ruoyi-ui/src/router/index.js +++ b/ruoyi-ui/src/router/index.js @@ -76,6 +76,11 @@ export const constantRoutes = [ component: () => import('@/views/system/userFront/details'), hidden: true }, + { + path: '/cusDetPay/:id', + component: () => import('@/views/system/userFront/payBefore'), + hidden: true + }, { path: '', component: Layout, diff --git a/ruoyi-ui/src/views/system/goods/index.vue b/ruoyi-ui/src/views/system/goods/index.vue index d47057a6..2f728918 100644 --- a/ruoyi-ui/src/views/system/goods/index.vue +++ b/ruoyi-ui/src/views/system/goods/index.vue @@ -88,8 +88,20 @@ - - + + + + {{ scope.row.introduction }} + + + + + + + {{ scope.row.details }} + + + @@ -373,8 +385,6 @@ export default { /** 查询设计类型列表 */ getDesignList() { listDesignType(this.queryParams).then(response => { - this.designList = response.rows; - this.designList = response.rows; this.designTypeMapping = response.rows.reduce((acc, item) => { acc[item.type] = item.name; // 这里假设 type 是唯一的 @@ -403,3 +413,13 @@ export default { } }; + diff --git a/ruoyi-ui/src/views/system/userFront/details.vue b/ruoyi-ui/src/views/system/userFront/details.vue index 60244e44..c8a81906 100644 --- a/ruoyi-ui/src/views/system/userFront/details.vue +++ b/ruoyi-ui/src/views/system/userFront/details.vue @@ -14,18 +14,18 @@ - - 毕设网 - 优质的设计资源共享平台 - - - + + + + + + + + + + - + @@ -43,8 +43,12 @@ 购买前请点击了解购买须知 ¥{{ goods.price }} + - 支付下载 + + 支付下载 + + 价格: ¥{{ goods.price }} @@ -403,4 +407,10 @@ export default { .pay-but:hover .el-button { color: #ffffff; } + +::v-deep img{ + + max-width:100%; + +} diff --git a/ruoyi-ui/src/views/system/userFront/index.vue b/ruoyi-ui/src/views/system/userFront/index.vue index 10ebb11d..b879ddfb 100644 --- a/ruoyi-ui/src/views/system/userFront/index.vue +++ b/ruoyi-ui/src/views/system/userFront/index.vue @@ -3,9 +3,9 @@ - 安装教程 - 开发服务 - 我的订单 + + + 立即登录 @@ -40,6 +40,7 @@ + 全部 - 最新设计 + 设计展示 + + + + + {{ tag.name }} + + - + + + - + {{ item.name }} - - 价格:¥{{ item.price }} + + + + + {{item.introduction}} + + + - 项目简介:{{item.introduction}} + {{ item.technicalName }} + {{ item.designName }} + + ¥{{ item.price }} + + + + 暂无数据 + + - + + + - - - - - {{ tag.name }} - - - -
优质的设计资源共享平台
暂无数据