瀏覽代碼

修改字体及域名判断。

qinpeng 2 年之前
父節點
當前提交
d40036c270
共有 2 個文件被更改,包括 12 次插入6 次删除
  1. 10 6
      src/views/Textanalysis/WordTable.vue
  2. 2 0
      src/views/teacher-dev/index.vue

+ 10 - 6
src/views/Textanalysis/WordTable.vue

@@ -95,7 +95,7 @@
           </tr>
           <tr v-for="(item, i) in dataList.list" :key="i + 'td'">
             <td class="sort-td">{{ item.number }}</td>
-            <td class="sort-td">
+            <td :class="['sort-td', typeIndex == 0 ? 'pinyin' : '']">
               <span
                 :style="{
                   color:
@@ -106,7 +106,11 @@
                 >{{ item.word }}</span
               >
             </td>
-            <td class="sort-td" v-if="typeIndex != 0">
+            <td
+              class="sort-td"
+              v-if="typeIndex != 0"
+              style="font-family: GB-PINYINOK-B"
+            >
               {{ item.pinYin }}
             </td>
             <td class="sort-td">
@@ -656,7 +660,9 @@ export default {
         width: 100%;
         border-collapse: collapse;
         background: #ffffff;
-
+        .pinyin {
+          font-family: "GB-PINYINOK-B";
+        }
         th {
           background: #ffffff;
           .bz {
@@ -691,16 +697,14 @@ export default {
               }
             }
           }
-          font-family: "楷体";
         }
         td {
           height: 40px;
           line-height: 40px;
           text-align: left;
           border-bottom: 1px solid #eeeeee;
-          font-weight: 600;
+          font-weight: 400;
           font-size: 14px;
-          font-family: "楷体";
         }
         .sort-td {
           padding: 0 9px;

+ 2 - 0
src/views/teacher-dev/index.vue

@@ -172,6 +172,8 @@ export default {
     },
   },
   async created() {
+    console.log("document.domain:" + document.domain);
+    console.log("window.location.host:" + window.location.host);
     await updateWordPack({
       word_key_list: [
         "Key5",