fix:修改直播签到颜色显示

This commit is contained in:
wyx
2023-01-17 16:17:10 +08:00
parent da68614353
commit 04e7a5346b

View File

@@ -78,14 +78,16 @@
</div>
<div v-else>
<div class="threeBtn">
<botton class="btn" :style="{
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : 'rgb(59, 191, 252)'}`,
<botton class="btn"
:style="{background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : 'rgb(59, 191, 252)'}`,
}" @click="showClick">观看
</botton>
<botton class="btn" :style="{
background: `${new Date(data.liveStartTime).getTime() > new Date().getTime() ? '#999' : data.signFlag ? '#999' : 'rgb(57, 146, 249)'}`,
}" @click="signClick">{{ data.signFlag ? "已签到" : "签到" }}
<botton
class="btn"
:style="{background: `${isAllowSign ? 'rgb(57, 146, 249)' : '#999' }`,}"
@click="signClick">
{{ data.signFlag ? "已签到" : "签到" }}
</botton>
<!-- <botton style="background: #999" class="btn" @click="commitClick" v-if="data.isEvaluate == 0">
评估
@@ -208,6 +210,8 @@ const state = reactive({
peopleimg: img,
},
],
isAllowSign: false,
});
const { activeName, teacher } = toRefs(state);
const signClick = () => {
@@ -257,6 +261,7 @@ function isSignClick() {
} else {
state.isAllowSign = false;
}
console.log('isAllowSign----------------->', state.isAllowSign)
// console.log(
// "isAllowSign",
// state.isAllowSign,