Commit a41f5526 by 李嘉林

自定义点赞

parent b9b8c0c0
...@@ -63,6 +63,6 @@ export default { ...@@ -63,6 +63,6 @@ export default {
}, },
// 获取直播配置 // 获取直播配置
getConfigValueByConfigCode(options) { getConfigValueByConfigCode(options) {
return requestGET(`${process.env.OLSHOP_URL}/liveBroadcastInfo/getConfigValueByConfigCode`,options); return requestPOST(`${process.env.OLSHOP_URL}/liveBroadcastInfo/getConfigValueByConfigCode?configCode`,options);
}, },
}; };
\ No newline at end of file
...@@ -100,10 +100,10 @@ export default { ...@@ -100,10 +100,10 @@ export default {
imgList: [], imgList: [],
likeNum: 0, likeNum: 0,
iconList: [ iconList: [
"//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg", // "//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg",
"//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg", // "//img0.imgtn.bdimg.com/it/u=216605226,3652567530&fm=11&gp=0.jpg",
"//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg", // "//img3.imgtn.bdimg.com/it/u=3743111107,1940472030&fm=11&gp=0.jpg",
"//img2.imgtn.bdimg.com/it/u=1354268575,1268995723&fm=26&gp=0.jpg" // "//img2.imgtn.bdimg.com/it/u=1354268575,1268995723&fm=26&gp=0.jpg"
], ],
list: [], list: [],
num: 0, num: 0,
...@@ -299,9 +299,10 @@ export default { ...@@ -299,9 +299,10 @@ export default {
}, },
getLivedConfig(){ getLivedConfig(){
let configCode="LIVE_LIKE_ICON"; let configCode="LIVE_LIKE_ICON";
live.getConfigValueByConfigCode(configCode).then(res=>{ live.getConfigValueByConfigCode({configCode}).then(res=>{
if(res.data.code==200&&res.data.data){ if(res.data.code==200){
this.iconList=JSON.parse(res.data.data); let newArr=res.data.data;
this.iconList=JSON.parse(newArr);
} }
}) })
} }
......
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