Commit df59ffc0 authored by ww-xxy's avatar ww-xxy

修改图片显示地址

parent a946cb36
...@@ -24,7 +24,8 @@ export default { ...@@ -24,7 +24,8 @@ export default {
index:{ index:{
type:Number, type:Number,
default:0 default:0
} },
type:[String]
}, },
data(){ data(){
return{ return{
...@@ -63,7 +64,7 @@ export default { ...@@ -63,7 +64,7 @@ export default {
if(src.search(/http/ig)>-1){ if(src.search(/http/ig)>-1){
return `${src}` return `${src}`
}else{ }else{
return `${process.env.VUE_APP_API_BASE_URL}/${src}` return this.type=='php'?`${process.env.VUE_APP_API_PHP_URL}/${src}`:`${process.env.VUE_APP_API_BASE_URL}/${src}`
} }
}, },
......
...@@ -47,14 +47,14 @@ ...@@ -47,14 +47,14 @@
<div class="infoBox"> <div class="infoBox">
<span class="infoTitle imgBox">身份证人像面:</span> <span class="infoTitle imgBox">身份证人像面:</span>
<span class="infoContent"> <span class="infoContent">
<thumbImage v-if="userInfo.z_img" :src="userInfo.z_img" fileType="img" /> <thumbImage type="php" v-if="userInfo.z_img" :src="userInfo.z_img" fileType="img" />
<span v-else>--</span> <span v-else>--</span>
</span> </span>
</div> </div>
<div class="infoBox"> <div class="infoBox">
<span class="infoTitle imgBox">身份证国徽面:</span> <span class="infoTitle imgBox">身份证国徽面:</span>
<span class="infoContent"> <span class="infoContent">
<thumbImage v-if="userInfo.b_img" :src="userInfo.b_img" fileType="img" /> <thumbImage type="php" v-if="userInfo.b_img" :src="userInfo.b_img" fileType="img" />
<span v-else>--</span> <span v-else>--</span>
</span> </span>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment