Commit 14dc6e00 by 李嘉林

海报测试

parent 0d43fb63
......@@ -48,7 +48,10 @@ export default {
let resData = res.data.data;
this.info.livedTitle = resData.title;
this.info.livedStatus = resData.liveBroadcastState;
this.info.coverUrl = DFSImg(resData.coverUrl);
let cImg=DFSImg(resData.coverUrl);
if(cImg.indexOf('https')==-1){
this.info.coverUrl = cImg.replace("http","https");
}
let newTime = new Date(resData.startTime.replace(/-/g, "/"));
this.info.livedTime = `${newTime.getMonth() +
1}${newTime.getDate() -
......@@ -68,6 +71,7 @@ export default {
});
},
initPoster(info) {
console.log(info,'---------------------71')
const InfoSync = wx.getSystemInfoSync();
this.InfoSync = InfoSync;
let bili = InfoSync.windowWidth / 375 * 1;
......
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