浏览代码

文件命名优化;样式bug修复。

任一存 2 年之前
父节点
当前提交
2a52baf95f
共有 7 个文件被更改,包括 23 次插入18 次删除
  1. 1 1
      .eslintrc.js
  2. 1 8
      README.md
  3. 1 1
      public/index.html
  4. 12 0
      public/user-config/desc.js
  5. 0 5
      public/user-config/txt.js
  6. 1 1
      src/main.js
  7. 7 2
      src/views/RelicDetail.vue

+ 1 - 1
.eslintrc.js

@@ -50,7 +50,7 @@ module.exports = {
     store: true,
     utils: true,
     gConfigInfo: true,
-    gConfigTxt: true,
+    gConfigDesc: true,
     fdage: true,
   }
 }

+ 1 - 8
README.md

@@ -4,11 +4,4 @@
 访问url:https://culture.4dage.com/3d-relic-universal/index.html
 
 # 一键分享插件来自:
-https://github.com/overtrue/share.js
-
-# 待处理问题
-文物介绍里h3样式
-
-分享按钮没有
-
-switch底色
+https://github.com/overtrue/share.js

+ 1 - 1
public/index.html

@@ -23,7 +23,7 @@
     <!-- built files will be auto injected -->
     <script src="./4dage.js"></script>
     <script src="./user-config/info.js"></script>
-    <script src="./user-config/txt.js"></script>
+    <script src="./user-config/desc.js"></script>
     <script>
       document.title = gConfigInfo.title
     </script>

+ 12 - 0
public/user-config/desc.js

@@ -0,0 +1,12 @@
+var gConfigDesc = {
+  'cs01': `
+    <p><strong>尺寸:</strong>长10cm&emsp;宽10cm&emsp;高1cm<p>
+    <p><strong>朝代:</strong>清代<p>
+    <p>细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述</p>
+  `,
+  'cs02': `
+    <p><strong>尺寸:</strong>长10cm&emsp;宽10cm&emsp;高1cm<p>
+    <p><strong>朝代:</strong>清代<p>
+    <p>细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述细节描述</p>
+  `,
+}

文件差异内容过多而无法显示
+ 0 - 5
public/user-config/txt.js


+ 1 - 1
src/main.js

@@ -26,7 +26,7 @@ const app = createApp(App)
 // 挂载配置信息
 app.config.globalProperties.$config = config
 app.config.globalProperties.$gConfigInfo = gConfigInfo
-app.config.globalProperties.$gConfigTxt = gConfigTxt
+app.config.globalProperties.$gConfigDesc = gConfigDesc
 app.config.globalProperties.$env = process.env
 
 // 挂载消息发布订阅中心

+ 7 - 2
src/views/RelicDetail.vue

@@ -177,7 +177,7 @@ export default {
       isShowLogo: true,
       isShowHelp: false,
       title: this.$gConfigInfo.modelList[this.$route.query.m],
-      detail: this.$gConfigTxt[this.$route.query.m],
+      detail: this.$gConfigDesc[this.$route.query.m],
       isShowShareMenu: false,
     }
   },
@@ -328,6 +328,11 @@ export default {
       padding-right: 10px;
       font-size: 20px;
       line-height: 40px;
+      /deep/p {
+      }
+      /deep/strong {
+        font-weight: bold;
+      }
     }
   }
   > .relic-shadow {
@@ -569,7 +574,7 @@ export default {
 
   .el-switch .el-switch__core .el-switch__action {
     z-index: -1;
-    background-color: #000 !important;
+    background-color: #585858 !important;
   }
   .el-switch.is-checked .el-switch__core .el-switch__action {
     background-color: #fff !important;