浏览代码

bug fix: 文物图片部署后加载失败;列表中图片用缩略图

任一存 2 年之前
父节点
当前提交
642904b23e
共有 4 个文件被更改,包括 6 次插入6 次删除
  1. 1 1
      .env
  2. 1 1
      package.json
  3. 2 2
      src/components/RelicDetail.vue
  4. 2 2
      src/views/RelicsAppr.vue

+ 1 - 1
.env

@@ -1,4 +1,4 @@
-VUE_APP_CDN_PATH=/goodsData/
+VUE_APP_CDN_PATH=/YHTM/goodsData/
 VUE_APP_SCENE_CODE_FLOOR_1=KJ-aigSkgvRWR
 VUE_APP_SCENE_CODE_FLOOR_2=KJ-ufjLwlSXba
 VUE_APP_MOBILE_URL=https://zzbbh.4dage.com/YHTM/index.html

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "yuhuatai-mobile",
-  "version": "0.1.20221027.1237",
+  "version": "0.1.20221027.1608",
   "private": true,
   "scripts": {
     "serve": "vue-cli-service serve",

+ 2 - 2
src/components/RelicDetail.vue

@@ -119,10 +119,10 @@ export default {
     this.iframeSrc = `https://4dscene.4dage.com/culturalrelics/YHTLSJNG/Model2.html?m=${this.$route.query.bs}`
     if (this.$route.query.imgNum && this.$route.query.imgNum > 1) {
       for (let index = 0; index < this.$route.query.imgNum; index++) {
-        this.imageList.push(`${this.$cdnPath}${this.dimNumber}D/${this.$route.query.bs}_${index + 1}.${this.dimNumber === 3 ? 'png' : 'jpg'}`)
+        this.imageList.push(`${this.$cdnPath}${this.dimNumber}D/${this.$route.query.bs}_${index + 1}.${this.dimNumber === 3 ? 'png' : 'JPG'}`)
       }
     } else {
-      this.imageList = [`${this.$cdnPath}${this.dimNumber}D/${this.$route.query.bs}.${this.dimNumber === 3 ? 'png' : 'jpg'}`]
+      this.imageList = [`${this.$cdnPath}${this.dimNumber}D/${this.$route.query.bs}.${this.dimNumber === 3 ? 'png' : 'JPG'}`]
     }
     this.detailInfo = [
       {

+ 2 - 2
src/views/RelicsAppr.vue

@@ -106,7 +106,7 @@
         :is-odd="!!(index % 2)"
         :is-first="index === 1"
         :is-last="index === list.length - 1"
-        :relic-image="`${$cdnPath}3D/${item.bs}.png`"
+        :relic-image="`${$cdnPath}3D/${item.bs}.png?x-oss-process=image/resize,p_4`"
         :relic-title="item.name"
         class="relic-item"
         @click="$router.push({ name: 'RelicDetail' , query: {...item, ...{dimNumber: 3}} })"
@@ -124,7 +124,7 @@
       >
         <div class="img-wrap">
           <img
-            :src="`${$cdnPath}2D/${item.bs}${item.imgNum ? `_1` : ``}.JPG`"
+            :src="`${$cdnPath}2D/${item.bs}${item.imgNum ? `_1` : ``}.JPG?x-oss-process=image/resize,p_4`"
             alt=""
             draggable="false"
           >