hml 2 年之前
父節點
當前提交
e4c02fc304
共有 2 個文件被更改,包括 18 次插入5 次删除
  1. 8 0
      purchase_H5/src/templates/templateYuku/index.vue
  2. 10 5
      purchase_ao/src/components/imgBox/index.vue

+ 8 - 0
purchase_H5/src/templates/templateYuku/index.vue

@@ -87,6 +87,14 @@ export default {
 .templateYuku {
   background-color: #fff;
   min-height: 100vh;
+  .iframe {
+    position: fixed;
+    width: 100%;
+    height: 100%;
+    left: 0;
+    top: 0;
+    z-index: 9999;
+  }
   .banner {
     width: 100%;
     height: 260px;

+ 10 - 5
purchase_ao/src/components/imgBox/index.vue

@@ -19,11 +19,12 @@
           <div class="imgRow">
             <div class="imgInfo" v-for="(item,index) in imgList" :key="index" :class="index == num?'bor':''">
               <div class="image">
-                <el-image :src="imgUrl+item.name" :preview-src-list="srcList">
+                <el-image style="width: 200px; max-height: 250px" :fit="'fit'" :src="imgUrl+item.name" :preview-src-list="srcList">
                 </el-image>
+                <!-- <img :src="imgUrl+item.name" alt=""> -->
               </div>
               <div class="imgBtn">
-                <el-button style="margin-right:10px" size="mini" @click="num = index">选择</el-button>
+                <el-button size="mini" @click="num = index">选择</el-button>
               </div>
             </div>
           </div>
@@ -95,9 +96,9 @@ export default {
       this.$emit('imgVal', this.imgList[this.num].name)
     },
     // 删除图片
-    removeImg(){
+    removeImg () {
       this.imgVal = ""
-      this.$emit('removeClick','')
+      this.$emit('removeClick', '')
     },
     // 每页数量
     handleSizeChange (val) {
@@ -154,10 +155,14 @@ export default {
       .image {
         width: 200px;
         height: 250px;
+        img{
+          width: 100%;
+          height: auto;
+        }
       }
       .imgBtn {
         text-align: right;
-        line-height: 50px;
+        // line-height: 50px;
       }
     }
   }