Commit 834c050c authored by mengqr's avatar mengqr

修改直播卡片问题

parent 3ffebbdf
This diff is collapsed.
......@@ -11,6 +11,7 @@
"@liveqing/liveplayer": "^2.7.0",
"axios": "^1.1.3",
"core-js": "^3.8.3",
"html2canvas": "^1.4.1",
"jquery": "^3.6.1",
"js-md5": "^0.7.3",
"mint-ui": "^2.2.13",
......
......@@ -9,9 +9,9 @@ const appName = "test5"
const IS_PROD = ["production", "prod"].includes(process.env.NODE_ENV);
// 接口路径
const BASEURL_TEST = 'https://api.douniu8.com'
const BASEURL_TEST = 'https://test6.douniu8.com'
// const BASEURL_TEST = 'http://39.105.193.58:8081'
const BASEURL_PROD = 'https://api.douniu8.com'
const BASEURL_PROD = 'https://test6.douniu8.com'
const CONTRACT_TEST = 'http://47.95.140.89:9090'
const CONTRACT_PROD = 'http://ht.douniu8.com:9090'
const baseURL = IS_PROD ? BASEURL_PROD : BASEURL_TEST;
......
This diff is collapsed.
import Vue from 'vue'
import Router from 'vue-router'
import store from '../store/index'
import test from '../views/test.vue'
import sign from '../views/sign'
import password from '../views/password'
import register from '../views/register'
......@@ -54,7 +55,12 @@ const router = new Router({
component:sign,
// 判断是否需要登录
},
{
path: '/test',
name: 'test',
component:test,
// 判断是否需要登录
},
{
path: '/password',
name: 'password',
......
......@@ -651,7 +651,7 @@ this.pten = false
let img=sessionStorage.getItem("isReg")
this.server.live.follow(temp).then(res=>{
if(res.data.data.businessCode==20){
if(res.data.code==200){
this.ifFollow=true
}else{
alert(res.data.data.businessMessage)
......@@ -676,8 +676,8 @@ this.pten = false
let img=sessionStorage.getItem("isReg")
this.server.live.follow(temp).then(res=>{
if(res.data.data.businessCode==20){
this.ifFollow=true
if(res.data.code==200){
this.ifFollow=false
}else{
alert(res.data.data.businessMessage)
}
......@@ -1087,11 +1087,11 @@ let temp=this.qs.stringify({
}
.home-number{
font-size: 1vw;
transform: scale(0.7);
transform: scale(0.75);
position: absolute;
top: 6vw;
left: 18vw;
z-index:99;
left: 18.5vw;
z-index: 99;
color: white;
}
.follow-img{
......
......@@ -512,7 +512,7 @@ export default {
let img=sessionStorage.getItem("isReg")
this.server.live.follow(temp).then(res=>{
if(res.data.data.businessCode==20){
if(res.data.code==200){
this.ifFollow=true
}else{
alert(res.data.data.businessMessage)
......@@ -538,7 +538,7 @@ export default {
let img=sessionStorage.getItem("isReg")
this.server.live.follow(temp).then(res=>{
if(res.data.data.businessCode==20){
if(res.data.code==200){
this.ifFollow=false
}else{
alert(res.data.data.businessMessage)
......@@ -1150,10 +1150,10 @@ this.pten = false
}
.home-number{
font-size: 1vw;
transform: scale(0.7);
transform: scale(0.75);
position: absolute;
top: 63vw;
left: 60vw;
left: 59.5vw;
z-index: 89;
color: white;
}
......
......@@ -57,6 +57,7 @@ export default {
created(){
this.getState()
},
mounted() {
this.getRecommendList()
this.getList()
......@@ -135,6 +136,7 @@ export default {
})
},
getState(){
let token=sessionStorage.getItem("token")
let img=sessionStorage.getItem("udPhotoFileid")
console.log("就阿婆啊v发",token)
......@@ -144,6 +146,7 @@ export default {
this.userImg=img
}else{
this.ifLog=1
}
}else{
......@@ -196,8 +199,8 @@ export default {
this.server.live.tourist(temp).then(res=>{
let thisToken= res.data.data.token
window.sessionStorage.setItem('token', thisToken);//token
this.$router.go(0)
// this.$router.go(0)
window.location.reload();
})
},
mine(){
......
This diff is collapsed.
This diff is collapsed.
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