Browse Source

text= html

y595705120 2 years ago
parent
commit
3ceda66a6c
5 changed files with 7 additions and 8 deletions
  1. 1 1
      src/App.vue
  2. 2 1
      src/components/image.vue
  3. 1 2
      src/components/text.vue
  4. 1 1
      src/tailwind.css
  5. 2 3
      src/views/page.vue

+ 1 - 1
src/App.vue

@@ -60,7 +60,7 @@ export default {
 
 
 <style lang="less">
 <style lang="less">
 #app {
 #app {
-  font-family: Avenir, Helvetica, Arial, sans-serif;
+  font-family: STXinwei;
   -webkit-font-smoothing: antialiased;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale;
   -moz-osx-font-smoothing: grayscale;
   text-align: center;
   text-align: center;

+ 2 - 1
src/components/image.vue

@@ -5,6 +5,7 @@
       <span :style="options.marksStyle" v-html="options.marks"></span>
       <span :style="options.marksStyle" v-html="options.marks"></span>
     </div>
     </div>
   </div>
   </div>
+  
   <div v-else class="image mb-6 last:mb-0 mx-auto">
   <div v-else class="image mb-6 last:mb-0 mx-auto">
     <img class="mb-1" :style="options.style" :src="options.image" @click="handleClick" />
     <img class="mb-1" :style="options.style" :src="options.image" @click="handleClick" />
     <v-text :options="descOptions"></v-text>
     <v-text :options="descOptions"></v-text>
@@ -48,7 +49,7 @@ export default {
     right: 0;
     right: 0;
     bottom: 0;
     bottom: 0;
     color: #fff;
     color: #fff;
-    font-family: 'Times New Roman', Times, serif;
+    font-family: 'STXinwei', Times, serif;
     font-size: 20px;
     font-size: 20px;
     font-weight: 600;
     font-weight: 600;
     letter-spacing: 2px;
     letter-spacing: 2px;

+ 1 - 2
src/components/text.vue

@@ -1,7 +1,6 @@
 <template>
 <template>
   <div class="text-center mb-4 last:mb-0" :style="styles" @click="click">
   <div class="text-center mb-4 last:mb-0" :style="styles" @click="click">
-    <div v-if="options.html" v-html="options.html"></div>
-    <template v-else>{{ options.text }}</template>
+    <div v-if="options.text" v-html="options.text"></div>
   </div>
   </div>
 </template>
 </template>
 <script>
 <script>

+ 1 - 1
src/tailwind.css

@@ -183,7 +183,7 @@ input,
 optgroup,
 optgroup,
 select,
 select,
 textarea {
 textarea {
-  font-family: inherit;
+  font-family: STXinwei;
   /* 1 */
   /* 1 */
   font-size: 100%;
   font-size: 100%;
   /* 1 */
   /* 1 */

+ 2 - 3
src/views/page.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-  <div class="page" :class="{ isPCWeb: !isMobile }">
+  <div class="page" :class="{ isPCWeb: !isMobile }" :style="style">
     <template v-if="isMobile">
     <template v-if="isMobile">
       <template v-if="!error">
       <template v-if="!error">
         <v-view v-if="page" :options="page"></v-view>
         <v-view v-if="page" :options="page"></v-view>
@@ -30,6 +30,7 @@ export default {
       interval: 3000,
       interval: 3000,
       logo: "",
       logo: "",
       uuid:'',
       uuid:'',
+      style:'',
       nodeList: [],
       nodeList: [],
       itemList: [],
       itemList: [],
       paperId: 1,
       paperId: 1,
@@ -70,7 +71,6 @@ export default {
   methods: {
   methods: {
     getPageInfo() {
     getPageInfo() {
       const { data } = this.$store.state.pages;
       const { data } = this.$store.state.pages;
-      console.log("getinfo", data)
       const { pages, main } = data;
       const { pages, main } = data;
       const { id = 'main'} = this.$route.params;
       const { id = 'main'} = this.$route.params;
       let page = pages[id]||{};
       let page = pages[id]||{};
@@ -81,7 +81,6 @@ export default {
     },
     },
     init(){
     init(){
       let {uuid} = this.$route.params;
       let {uuid} = this.$route.params;
-      console.log("loadData", uuid);
       if(this.loading) return;
       if(this.loading) return;
       this.loading = true;
       this.loading = true;
       fetch("paper.getpaper", {uuid}).then((res) => {
       fetch("paper.getpaper", {uuid}).then((res) => {