|
@@ -423,7 +423,7 @@ export default {
|
|
<script setup>
|
|
<script setup>
|
|
import { onMounted, reactive, ref } from "vue";
|
|
import { onMounted, reactive, ref } from "vue";
|
|
import { getPostDetail, getRedPacket, finishRedPacket, oneKeyLike, oneKeyReTweet, oneKeyFollow, getTaskDetail, getReceivedList, addFinishEvent } from '@/http/redPacket.js'
|
|
import { getPostDetail, getRedPacket, finishRedPacket, oneKeyLike, oneKeyReTweet, oneKeyFollow, getTaskDetail, getReceivedList, addFinishEvent } from '@/http/redPacket.js'
|
|
-import { getQueryString, guid, getBit } from '@/uilts/help.js'
|
|
|
|
|
|
+import { getQueryString, guid, getBit, formatSecondsAsTime } from '@/uilts/help.js'
|
|
import { message } from 'ant-design-vue';
|
|
import { message } from 'ant-design-vue';
|
|
import FontAmount from '@/view/components/font-amount.vue'
|
|
import FontAmount from '@/view/components/font-amount.vue'
|
|
import GetMore from '@/view/iframe/publish/components/get-more.vue'
|
|
import GetMore from '@/view/iframe/publish/components/get-more.vue'
|
|
@@ -872,13 +872,15 @@ const getTimeStr = (end_time_ms) => {
|
|
|
|
|
|
function openConutDownTime(end_time_ms, callback) {
|
|
function openConutDownTime(end_time_ms, callback) {
|
|
end_time_ms = Number(end_time_ms) + 5000
|
|
end_time_ms = Number(end_time_ms) + 5000
|
|
|
|
+ let end_time_s = Number((end_time_ms - new Date().getTime()) / 1000)
|
|
let timer = setInterval(() => {
|
|
let timer = setInterval(() => {
|
|
- if (state.open_timer_status == true) {
|
|
|
|
|
|
+ end_time_s = Number((end_time_ms - new Date().getTime()) / 1000)
|
|
|
|
+ if (state.open_timer_status == true || end_time_s <= 0) {
|
|
clearInterval(timer)
|
|
clearInterval(timer)
|
|
}
|
|
}
|
|
- callback(getTimeStr(end_time_ms))
|
|
|
|
|
|
+ callback(formatSecondsAsTime(end_time_s))
|
|
}, 1000);
|
|
}, 1000);
|
|
- callback(getTimeStr(end_time_ms))
|
|
|
|
|
|
+ callback(formatSecondsAsTime(end_time_s))
|
|
}
|
|
}
|
|
|
|
|
|
const openFollowTabs = (arr_name) => {
|
|
const openFollowTabs = (arr_name) => {
|
|
@@ -1083,9 +1085,9 @@ const showSuccessPage = () => {
|
|
state.status = 'success'
|
|
state.status = 'success'
|
|
state.open_timer_status = true;
|
|
state.open_timer_status = true;
|
|
|
|
|
|
- if(!reportParams.reportReceivedPageViewSuccess) {
|
|
|
|
|
|
+ if (!reportParams.reportReceivedPageViewSuccess) {
|
|
reportParams.reportReceivedPageViewSuccess = true;
|
|
reportParams.reportReceivedPageViewSuccess = true;
|
|
-
|
|
|
|
|
|
+
|
|
// 埋点
|
|
// 埋点
|
|
Report.reportLog({
|
|
Report.reportLog({
|
|
pageSource: Report.pageSource.received_success_page,
|
|
pageSource: Report.pageSource.received_success_page,
|