|
|
@@ -1,13 +1,12 @@
|
|
|
<template>
|
|
|
<!-- 弹窗 -->
|
|
|
<uni-popup ref="popupRef" :animation="false" :is-mask-click="false"
|
|
|
- mask-background-color="rgba(51, 137, 217, 0.95);">
|
|
|
- <view @click="handleClose">close</view>
|
|
|
- <view>
|
|
|
+ mask-background-color="rgba(0,0,0, 0.76);">
|
|
|
+ <view class="ezy-tip-dialog tip-e-dialog ">
|
|
|
+ <view class="close-btn" @click="handleClose"></view>
|
|
|
+ <view class="e-img kx-e-img"></view>
|
|
|
<view class="text-score">完成了本节基础课程的学习</view>
|
|
|
- <view class="course-btn-box">
|
|
|
- <text v-if="times">({{count}}S)</text>
|
|
|
- </view>
|
|
|
+ <view class="time-tip-box" v-if="times">({{count}}S)</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
</template>
|
|
|
@@ -24,14 +23,15 @@
|
|
|
|
|
|
|
|
|
function initTime() {
|
|
|
- setTimeout(() => {
|
|
|
- if (count.value == 0) {
|
|
|
- handleClose();
|
|
|
- return;
|
|
|
- }
|
|
|
- count.value--;
|
|
|
- }, 1000)
|
|
|
- }
|
|
|
+ times.value = setTimeout(() => {
|
|
|
+ if (count.value == 0) {
|
|
|
+ handleClose();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ count.value--;
|
|
|
+ initTime()
|
|
|
+ }, 1000)
|
|
|
+ }
|
|
|
|
|
|
function clearTime() {
|
|
|
clearTimeout(times.value);
|