Browse Source

图片显示

luolei 5 years ago
parent
commit
5e67aeb785
2 changed files with 1 additions and 2 deletions
  1. 1 1
      src/components/AddContent.vue
  2. 0 1
      src/components/Detail.vue

+ 1 - 1
src/components/AddContent.vue

@@ -4,7 +4,7 @@
       <ul class="addPart">
         <li v-for="(item,idx) in dataTrd">
           <p class="question">{{idx+1 + '. ' +(item.description||item.name)}}</p>
-          <img class="questionImg" :src="item.url.replace('{imageUrlPrefix}',imgUrl)" v-if="item.url">
+          <img v-if="(item.controlType==3||item.controlType==5||item.controlType==6||item.controlType==7)&&item.url" class="questionImg" :src="item.url.replace('{imageUrlPrefix}',imgUrl)">
           <Radio v-if="item.controlType==1" 
             :item="item"
             :key="item.id"

+ 0 - 1
src/components/Detail.vue

@@ -88,7 +88,6 @@ import {patt,trimDots} from '@utils/tools.js'
               mapping.splice(i,1,data)
             }
           }
-          
         }
         // 实时更新清空样式
         if(data.value){