liyongli há 1 ano atrás
pai
commit
007d92b788
2 ficheiros alterados com 15 adições e 8 exclusões
  1. 0 1
      src/utils/tool.js
  2. 15 7
      src/view/finance/index.vue

+ 0 - 1
src/utils/tool.js

@@ -125,7 +125,6 @@ function createDate(src) {
     try {
       const img = new Image();
       img.src = src;
-      console.log(src)
       img.setAttribute('crossOrigin', 'anonymous')
       img.onload = () => {
         resolve(img);

+ 15 - 7
src/view/finance/index.vue

@@ -134,8 +134,16 @@
       @confirm="shear_page"
       style="padding: 5px"
     >
-      <div class="van-ellipsis" style="margin: 0.5em 0;" v-text="selectItem.name"></div>
-      <div class="van-ellipsis unit" style="margin: 0.5em 0;" v-text="selectItem.university"></div>
+      <div
+        class="van-ellipsis"
+        style="margin: 0.5em 0"
+        v-text="selectItem.name"
+      ></div>
+      <div
+        class="van-ellipsis unit"
+        style="margin: 0.5em 0"
+        v-text="selectItem.university"
+      ></div>
       <div style="position: relative" @click="toDetal(selectItem.file)">
         <van-icon
           size="50"
@@ -336,12 +344,13 @@ const cancel = async () => {
   const w1 = w * 0.8;
   const fs = w / 20;
   const bs = w / 15;
+  const title_text = selectItem.value.name.replace(/《|》/g, '');
   const title =
-    selectItem.value.name.length >= 16
-      ? selectItem.value.name.split('').splice(0, 13).join('') + '...'
-      : selectItem.value.name;
+    title_text.length >= 16
+      ? title_text.split('').splice(0, 13).join('') + '...'
+      : title_text;
   const qt = await QRCode.toDataURL(
-    [location.host, '/finance.html?id=', selectItem.value.id].join('')
+    [location.protocol, '//', location.host, '/finance.html?id=', selectItem.value.id].join('')
   );
   const layers = {
     list: [
@@ -534,7 +543,6 @@ const formmate = num => {
 };
 
 const clickShowVideo = item => {
-  //   location.href = item.file;
   selectItem.value = item || {};
   hxrDialog.value = true;
 };