Commit 948f5c29 by 李长胜

售后

1 parent c871cecd
......@@ -180,7 +180,7 @@
<div class="refund-box">
售后编号:{{ scope.scope.refundCode }}
<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>
......@@ -314,6 +314,27 @@ 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,'后部分')
var finalStr=preStr+afterStr
console.log(finalStr,'777777')
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!