@@ -184,7 +191,9 @@ export default {
],
form: {
classificationIds: [],
- mall: {},
+ mall: {
+ coverDrawing: ''
+ },
goodsRes: {}
},
chapterList: [],
@@ -229,9 +238,12 @@ export default {
getData () {
this.$get(`${this.api.detailsOfGoods}?mallId=${this.id}`).then(res => {
const e = res.orderDetails
- // 图片展示封面+界面图
- e.interfaceDiagrams = [e.mall.coverDrawing]
- if (e.mall.interfaceDiagram) e.interfaceDiagrams.push(...e.mall.interfaceDiagram.split(',').slice(0, 3))
+ e.pics = [e.mall.coverDrawing]
+ if (e.mall.interfaceDiagram) {
+ const pics = e.mall.interfaceDiagram.split(',').slice(0, 3)
+ e.pics.push(...pics)
+ e.interfaceDiagrams = pics
+ }
this.form = e
this.chapterList = ''
e.mall.associatedProduct && this.getChapter()
@@ -316,7 +328,7 @@ export default {
.wrap {
background: #f3f6fa;
.inner {
- width: 1154px;
+ width: 1146px;
margin: 0 auto;
}
.top {
@@ -325,31 +337,37 @@ export default {
background-color: #fff;
border-radius: 10px;
.pics {
- width: 436px;
- margin-right: 24px;
+ display: flex;
+ flex-wrap: wrap;
+ width: 502px;
+ margin-right: 20px;
+ .cover {
+ width: 370px;
+ height: 278px;
+ margin-right: 10px;
+ border-radius: 8px;
+ overflow: hidden;
+ &.full {
+ width: 100%;
+ }
+ }
.pic {
- width: 140px;
- height: 62px;
- margin-right: 8px;
+ width: 114px;
+ height: 86px;
+ margin-bottom: 10px;
border-radius: 8px;
- &:first-child {
+ overflow: hidden;
+ .el-image {
width: 100%;
- height: 192px;
- margin-bottom: 12px;
+ height: 100%;
}
&:last-child {
- margin-right: 0;
- }
- &:only-child {
- // max-height: 266px;
- // height: auto;
- height: 100%;
- margin: 0;
+ margin-bottom: 0;
}
}
}
.right {
- width: 646px;
+ width: 592px;
overflow: hidden;
}
h6 {
diff --git a/src/pages/station/preview/index.vue b/src/pages/station/preview/index.vue
index ec1d3c5..2cfa48e 100644
--- a/src/pages/station/preview/index.vue
+++ b/src/pages/station/preview/index.vue
@@ -176,6 +176,7 @@
+ 取消
保存
@@ -875,7 +876,7 @@ $height: 700px;
margin-right: 10px;
}
&:hover {
- background-color: #528adf;
+ background-color: #ac89fd;
}
&.active {
background-color: $main-color;
@@ -911,7 +912,6 @@ $height: 700px;
}
.list {
height: calc(700px - 70px);
- overflow-y: auto;
padding: 24px 16px;
background: #fff;
.title {
@@ -966,7 +966,7 @@ $height: 700px;
}
.chapters {
margin-top: 16px;
- max-height: calc(100% - 53px);
+ max-height: calc(100% - 138px);
overflow: auto;
}
.chapter {
diff --git a/src/router/modules/expSystem.js b/src/router/modules/expSystem.js
new file mode 100644
index 0000000..c353664
--- /dev/null
+++ b/src/router/modules/expSystem.js
@@ -0,0 +1,35 @@
+import BasicLayout from "@/layouts/home";
+
+const meta = {};
+
+const pre = "expSystem-";
+
+export default {
+ path: "/expSystem",
+ name: "expSystem",
+ redirect: {
+ name: `${pre}list`
+ },
+ meta,
+ component: BasicLayout,
+ children: [
+ {
+ name: `${pre}list`,
+ path: `list`,
+ component: () => import("@/pages/expSystem/list"),
+ meta: { title: "实验系统管理" }
+ },
+ {
+ name: `${pre}backstage`,
+ path: `backstage`,
+ component: () => import("@/pages/expSystem/backstage"),
+ meta: { title: "系统后台" }
+ },
+ {
+ name: `${pre}addModel`,
+ path: `addModel`,
+ component: () => import("@/pages/expSystem/backstage/addModel"),
+ meta: { title: "新增源模型" }
+ }
+ ]
+};
diff --git a/src/setting.js b/src/setting.js
index ca7de8c..5690282 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -26,7 +26,7 @@ if (isPro) {
uploadURL = `http://121.37.12.51/`
host = "http://121.37.12.51/"; // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服
- // host = "http://192.168.31.151:9000/"; // 榕
+ host = "http://192.168.31.152:9000/"; // 榕
// host = 'http://192.168.31.52:9000/'; // 赓
}
@@ -87,7 +87,7 @@ const Setting = {
// 相同路由,不同参数间进行切换,是否强力更新
sameRouteForceUpdate: false,
// 是否使用动态路由(即角色权限,开启了的话就会取后端返回的权限树来显示头部导肮和页面按钮)
- dynamicRoute: true,
+ dynamicRoute: false,
// 文件上传
upload: {
apiURL: uploadURL,