dedsudiyu 2 gadi atpakaļ
vecāks
revīzija
c441b5877d
1 mainītis faili ar 71 papildinājumiem un 1 dzēšanām
  1. 71 1
      src/views/codeHtml.vue

+ 71 - 1
src/views/codeHtml.vue

@@ -78,7 +78,7 @@
       },
       safe_book(id){
         safe_book(id).then( data => {
-          this.form.content = window.location.href.split('://')[0]+'://'  + process.env.VUE_APP_BASE_API + '/' + unescape(data.data.content);
+          this.form.content = window.location.href.split('://')[0]+'://'  + this.judgmentNetworkReturnAddress() + '/' + unescape(data.data.content);
           this.getNumPages();
         });
       },
@@ -155,6 +155,76 @@
               newText = newText + list[i]
             }
           }
+          list = newText.split('line-height:');
+          newText = "";
+          for (let i=0;i<list.length;i++){
+            if(
+              (list[i][0] == '0' || list[i][0] == '1' || list[i][0] == '2' || list[i][0] == '3' || list[i][0] == '4' || list[i][0] == '5' || list[i][0] == '6' || list[i][0] == '7' || list[i][0] == '8' || list[i][0] == '9')&&
+              (list[i][1] == 'p')&&
+              (list[i][2] == 'x')
+            ){
+              let num = this.accMul(parseInt(list[i][0]),6);
+              num = num>140?140:num;
+              let textNew = list[i].slice(1)
+              newText = newText + 'line-height:'+num+textNew;
+            }else if(
+              (list[i][0] == ' ')&&
+              (list[i][1] == '0' || list[i][1] == '1' || list[i][1] == '2' || list[i][1] == '3' || list[i][1] == '4' || list[i][1] == '5' || list[i][1] == '6' || list[i][1] == '7' || list[i][1] == '8' || list[i][1] == '9')&&
+              (list[i][2] == 'p')&&
+              (list[i][3] == 'x')
+            ){
+              let num = this.accMul(parseInt(list[i][1]),6);
+              num = num>140?140:num;
+              let textNew = list[i].slice(2)
+              newText = newText + 'line-height:'+num+textNew;
+            }else if(
+              (list[i][0] == '0' || list[i][0] == '1' || list[i][0] == '2' || list[i][0] == '3' || list[i][0] == '4' || list[i][0] == '5' || list[i][0] == '6' || list[i][0] == '7' || list[i][0] == '8' || list[i][0] == '9')&&
+              (list[i][1] == '0' || list[i][1] == '1' || list[i][1] == '2' || list[i][1] == '3' || list[i][1] == '4' || list[i][1] == '5' || list[i][1] == '6' || list[i][1] == '7' || list[i][1] == '8' || list[i][1] == '9')&&
+              (list[i][2] == 'p')&&
+              (list[i][3] == 'x')
+            ){
+              let num = this.accMul(parseInt(list[i][0]+list[i][1]),6);
+              num = num>140?140:num;
+              let textNew = list[i].slice(2)
+              newText = newText + 'line-height:'+num+textNew;
+            }else if(
+              (list[i][0] == ' ')&&
+              (list[i][1] == '0' || list[i][1] == '1' || list[i][1] == '2' || list[i][1] == '3' || list[i][1] == '4' || list[i][1] == '5' || list[i][1] == '6' || list[i][1] == '7' || list[i][1] == '8' || list[i][1] == '9')&&
+              (list[i][2] == '0' || list[i][2] == '1' || list[i][2] == '2' || list[i][2] == '3' || list[i][2] == '4' || list[i][2] == '5' || list[i][2] == '6' || list[i][2] == '7' || list[i][2] == '8' || list[i][2] == '9')&&
+              (list[i][3] == 'p')&&
+              (list[i][4] == 'x')
+            ){
+              let num = this.accMul(parseInt(list[i][1]+list[i][2]),6);
+              num = num>140?140:num;
+              let textNew = list[i].slice(3)
+              newText = newText + 'line-height:'+num+textNew;
+            }else if(
+              (list[i][0] == '0' || list[i][0] == '1' || list[i][0] == '2' || list[i][0] == '3' || list[i][0] == '4' || list[i][0] == '5' || list[i][0] == '6' || list[i][0] == '7' || list[i][0] == '8' || list[i][0] == '9')&&
+              (list[i][1] == '0' || list[i][1] == '1' || list[i][1] == '2' || list[i][1] == '3' || list[i][1] == '4' || list[i][1] == '5' || list[i][1] == '6' || list[i][1] == '7' || list[i][1] == '8' || list[i][1] == '9')&&
+              (list[i][2] == '0' || list[i][2] == '1' || list[i][2] == '2' || list[i][2] == '3' || list[i][2] == '4' || list[i][2] == '5' || list[i][2] == '6' || list[i][2] == '7' || list[i][2] == '8' || list[i][2] == '9')&&
+              (list[i][3] == 'p')&&
+              (list[i][4] == 'x')
+            ){
+              let num = this.accMul(parseInt(list[i][0]+list[i][1]+list[i][2]),6);
+              num = num>140?140:num;
+              let textNew = list[i].slice(3)
+              newText = newText + 'line-height:'+num+textNew;
+            }else if(
+              (list[i][0] == ' ')&&
+              (list[i][1] == '0' || list[i][1] == '1' || list[i][1] == '2' || list[i][1] == '3' || list[i][1] == '4' || list[i][1] == '5' || list[i][1] == '6' || list[i][1] == '7' || list[i][1] == '8' || list[i][1] == '9')&&
+              (list[i][2] == '0' || list[i][2] == '1' || list[i][2] == '2' || list[i][2] == '3' || list[i][2] == '4' || list[i][2] == '5' || list[i][2] == '6' || list[i][2] == '7' || list[i][2] == '8' || list[i][2] == '9')&&
+              (list[i][3] == '0' || list[i][3] == '1' || list[i][3] == '2' || list[i][3] == '3' || list[i][3] == '4' || list[i][3] == '5' || list[i][3] == '6' || list[i][3] == '7' || list[i][3] == '8' || list[i][3] == '9')&&
+              (list[i][4] == 'p')&&
+              (list[i][5] == 'x')
+            ){
+              let num = this.accMul(parseInt(list[i][1]+list[i][2]+list[i][3]),6);
+              num = num>140?140:num;
+              let textNew = list[i].slice(4)
+              newText = newText + 'line-height:'+num+textNew;
+            }else{
+              newText = newText + list[i]
+            }
+          }
           this.$set(this,'text',newText);
           this.loading = false;
         });