Commit 69d053c3 by zhouzy
2 parents 53bfaeb2 294a6b27
......@@ -38,7 +38,7 @@
<span slot="desc" slot-scope="scope">
<div class="refund-box">
<div class="refund-img-box">
<img :src="scope.scope.img" alt="" />
<img :src="getHttpsImgUrl(scope.scope.img)" alt="" />
</div>
<div>{{ scope.scope.reason }}</div>
</div>
......@@ -175,6 +175,29 @@ export default {
},
mounted() {},
methods: {
getHttpsImgUrl(url){
if(!url){
return ''
}
var flag=url.startsWith("http:")
// console.log(flag,'快快快')
if(flag){
var newurl= url.replace("http:","https:")
//去掉http自动带的端口 :7060,https不能有
var startPos=newurl.lastIndexOf(":")
var endPos=newurl.indexOf("/",startPos)
var preStr=newurl.substring(0,startPos)
var afterStr=newurl.substring(endPos)
// console.log(preStr,'前部分')
// console.log(afterStr,'后部分')
this.$message.success('返回')
var finalStr=preStr+afterStr
console.log(finalStr,'6777777')
return finalStr
}
return url
},
tabClick(index) {
this.currentIndex = index
this.searchForm.redundStatus = ''
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!