Browse Source

更新图片显示问题

lex 2 years ago
parent
commit
099b7d57d2

File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-legacy.bc816a2e.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index-legacy.d38b1780.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.0ad2915b.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.bff747da.css


File diff suppressed because it is too large
+ 0 - 0
dist/assets/index.d43b09ff.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher-legacy.4b970d60.js


File diff suppressed because it is too large
+ 0 - 0
dist/assets/teacher.6285b152.js


+ 2 - 2
dist/teacher.html

@@ -36,7 +36,7 @@
   <meta name="msapplication-tap-highlight" content="no" />
   <title>酷乐秀</title>
   <script src="./flexible.js" charset="UTF-8"></script>
-  <script type="module" crossorigin src="./assets/teacher.b0bb5b6c.js"></script>
+  <script type="module" crossorigin src="./assets/teacher.6285b152.js"></script>
   <link rel="modulepreload" href="./assets/index.9a31d746.js">
   <link rel="stylesheet" href="./assets/index.f8405903.css">
   <link rel="stylesheet" href="./assets/teacher.ded4b243.css">
@@ -48,7 +48,7 @@
   
   <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
   <script nomodule id="vite-legacy-polyfill" src="./assets/polyfills-legacy.5e538fc5.js"></script>
-  <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.7aff081b.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
+  <script nomodule id="vite-legacy-entry" data-src="./assets/teacher-legacy.4b970d60.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
 </body>
 
 </html>

+ 6 - 0
src/teacher/share-page/track-review-activity/index.module.less

@@ -3,6 +3,12 @@
   position: relative;
   overflow: hidden;
   color: #333;
+  .bannerImg {
+    width: 100%;
+    position: absolute;
+    top: 0;
+    left: 0;
+  }
 }
 
 .reviewContainer {

+ 7 - 1
src/teacher/share-page/track-review-activity/index.tsx

@@ -135,10 +135,16 @@ export default defineComponent({
       <div
         class={styles.review}
         style={{
-          background: `url(${this.activeInfo.subjectUrl}) no-repeat top center ${this.activeInfo.backgroundUrl}`,
+          // background: `url(${
+          //   this.activeInfo.subjectUrl + '?time' + +new Date()
+          // }) no-repeat top center ${
+          //   this.activeInfo.backgroundUrl + '?time' + +new Date()
+          // }`,
+          backgroundColor: this.activeInfo.backgroundUrl,
           backgroundSize: 'contain'
         }}
       >
+        <img class={styles.bannerImg} src={this.activeInfo.subjectUrl} />
         <div class={styles.reviewContainer}>
           <div class={[styles.section, styles.activeTime]}>
             <div class={styles.activeBg}>

+ 1 - 1
vite.config.ts

@@ -11,7 +11,7 @@ function resolve(dir: string) {
 }
 // https://vitejs.dev/config/
 // https://github.com/vitejs/vite/issues/1930 .env
-// const proxyUrl = 'https://mstutest.dayaedu.com/';
+// const proxyUrl = 'https://online.colexiu.com/';
 const proxyUrl = 'https://dev.colexiu.com/'
 // const proxyUrl = 'http://192.168.3.143:8000/'
 export default defineConfig({

Some files were not shown because too many files changed in this diff