From 7a72bb334998bd5e06c1f0334d9a4ef99a8e2384 Mon Sep 17 00:00:00 2001
From: sx <2427911852@qq.com>
Date: Sat, 4 Jan 2025 01:44:11 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
jiuyi2/api/durian.js | 94 ---
jiuyi2/api/index.js | 2 +
jiuyi2/api/intergral.js | 25 -
jiuyi2/components/index/disc.vue | 6 +-
jiuyi2/components/index/task.vue | 4 +-
jiuyi2/pages/index/durian.vue | 23 +-
jiuyi2/pages/index/index.nvue | 210 ++++---
jiuyi2/readme.md | 13 +
.../dist/dev/.nvue/pages/index/index.js | 181 ++++--
.../dist/dev/app-plus/app-service.js | 587 +++++++++---------
.../dist/dev/app-plus/pages/index/index.js | 181 ++++--
11 files changed, 688 insertions(+), 638 deletions(-)
diff --git a/jiuyi2/api/durian.js b/jiuyi2/api/durian.js
index 7a4721c7..f07b34b5 100644
--- a/jiuyi2/api/durian.js
+++ b/jiuyi2/api/durian.js
@@ -25,17 +25,6 @@ export const durian = {
query: param.query,
})
},
- /**
- * 查看我的榴莲果明细
- * @param {Object} param
- */
- DurianChange(param) {
- return util.request({
- url: `/home/getMyFruitLog`,
- method: 'post',
- query: param.query,
- })
- },
/**
* 榴莲果置换
* @param {Object} param
@@ -48,88 +37,5 @@ export const durian = {
load: true,
})
},
- /**
- * 交易市场
- * @param {Object} param
- */
- getOrderList(param) {
- return util.request({
- url: `/home/getOrderList`,
- method: 'post',
- query: param.query,
- load: true,
- })
- },
- /**
- * 订单交易
- * @param {Object} param
- */
- orderSale(param) {
- return util.request({
- url: `/home/orderSale`,
- method: 'post',
- query: param.query,
- load: true,
- })
- },
- /**
- * 榴莲果互转化
- * @param {Object} param
- */
- transfer(param) {
- return util.request({
- url: `/home/transfer`,
- method: 'post',
- query: param.query,
- })
- },
- /**
- * 榴莲果挂卖
- * @param {Object} param
- */
- fruitForSale(param) {
- return util.request({
- url: `/home/fruitForSale`,
- method: 'post',
- query: param.query,
- load: true,
- })
- },
- /**
- * 取消订单
- * @param {Object} param
- */
- cancelSale(param) {
- return util.request({
- url: `/home/cancelSale`,
- method: 'post',
- query: param.query,
- load: 1,
- })
- },
- /**
- * 入驻商家
- * @param {Object} param
- */
- shopApply(param) {
- return util.request({
- url: `/home/shopApply`,
- method: 'post',
- query: param.query,
- data: param.data,
- })
- },
- /**
- * 榴莲果明细
- * @param {Object} param
- */
- getMyFruitLog(param) {
- return util.request({
- url: `/duriantreeinfo`,
- method: 'GET',
- path: param.path,
- query: param.query,
- })
- },
}
export default durian
\ No newline at end of file
diff --git a/jiuyi2/api/index.js b/jiuyi2/api/index.js
index f5a04fef..b8f75b57 100644
--- a/jiuyi2/api/index.js
+++ b/jiuyi2/api/index.js
@@ -30,6 +30,8 @@ const api = {
team,
// 积分
intergral,
+ // 榴莲果
+ durian,
// 商城模块
shop,
// 上传图片地址
diff --git a/jiuyi2/api/intergral.js b/jiuyi2/api/intergral.js
index 03e64f3f..21ae417f 100644
--- a/jiuyi2/api/intergral.js
+++ b/jiuyi2/api/intergral.js
@@ -100,31 +100,6 @@ const intergral = {
data: param.data,
})
},
-
- /**
- * 验证码生成
- * @param {Object} param
- */
- myQrcode(param) {
- return util.request({
- url: `/user/team/getH5Link`,
- method: 'GET',
- query: param.query,
- responseType: 'arraybuffer',
- })
- },
-
- /**
- * 隐藏/公开 个人昵称
- * @param {Object} param
- */
- nickname(param) {
- return util.request({
- url: `/home/nickname`,
- method: 'post',
- query: param.query,
- })
- },
}
export default intergral
\ No newline at end of file
diff --git a/jiuyi2/components/index/disc.vue b/jiuyi2/components/index/disc.vue
index a7bf8932..4772330a 100644
--- a/jiuyi2/components/index/disc.vue
+++ b/jiuyi2/components/index/disc.vue
@@ -23,15 +23,13 @@
// 唱片样式
const discStyle = computed(() => {
- let result = {
+ return {
transform: `rotate(${rotate.value}deg)`,
}
- return result
})
// 用户信息
const userinfo = computed(() => {
- let result = uni.$store.state.userinfo
- return result
+ return uni.$store.state.userinfo
})
onMounted(() => {})
diff --git a/jiuyi2/components/index/task.vue b/jiuyi2/components/index/task.vue
index 97a96050..da96d48c 100644
--- a/jiuyi2/components/index/task.vue
+++ b/jiuyi2/components/index/task.vue
@@ -34,7 +34,7 @@
- 任务读秒
+ 任务读秒
有效读秒
{{task.viewingDuration}}
@@ -42,7 +42,7 @@
- 优先
+ 优先
diff --git a/jiuyi2/pages/index/durian.vue b/jiuyi2/pages/index/durian.vue
index 5ab3921d..666cbc4c 100644
--- a/jiuyi2/pages/index/durian.vue
+++ b/jiuyi2/pages/index/durian.vue
@@ -26,9 +26,8 @@
import util from '@/common/js/util.js'
// 进度
import task from '@/components/index/task'
-
- import intergralApi from '@/api/intergral.js';
- import durianlApi from '@/api/durian.js';
+ // 接口
+ import api from '@/api/index.js'
const {
proxy
} = getCurrentInstance()
@@ -36,18 +35,18 @@
const store = useStore()
// 互转表单
const form = reactive({
+ // 账户
account: '',
- sellNum: '',
+ // 榴莲果数量
+ fruitAmount: '',
})
-
//读秒记录
const viewData = ref({
seconds: 0
})
// 用户信息
const userinfo = computed(() => {
- let result = store.state.userinfo
- return result
+ return store.state.userinfo
})
// 进度条
const progress = computed(() => {
@@ -57,8 +56,7 @@
})
// 我的钱包
const purse = computed(() => {
- let result = store.state.purse || {}
- return result
+ return store.state.purse || {}
})
onReady(() => {
@@ -70,6 +68,11 @@
util.getPurse()
})
+ // 根据账号查询用户id
+ function accToId() {
+ // api.durian.
+ }
+
// 榴莲果交易
function transfer() {
durianlApi.transfer({
@@ -80,7 +83,7 @@
}).then(rs => {
if (rs.code === 200) {
util.alert('操作成功')
- util.getUserinfo()
+ util.getPurse()
return
}
util.alert({
diff --git a/jiuyi2/pages/index/index.nvue b/jiuyi2/pages/index/index.nvue
index 11c7181a..5f7cac6a 100644
--- a/jiuyi2/pages/index/index.nvue
+++ b/jiuyi2/pages/index/index.nvue
@@ -113,6 +113,19 @@
})
// 唱片顶部位置
const discOffsetTop = ref(0)
+ // 有效读秒顶部位置
+ const complete2Top = ref(0)
+ // 结束特效配置
+ const completeConfig = {
+ 'complete1': {
+ time: 2,
+ },
+ 'complete2': {
+ time: 1.5,
+ },
+ }
+ // 结束特效键 complete1优先任务特效 complete2有效读秒特效
+ const completeKey = ref('')
// 底部菜单高度
const footerMenuHeight = ref(0)
// 当前任务
@@ -137,6 +150,7 @@
// 设备信息
const systemInfo = uni.getSystemInfoSync()
discOffsetTop.value = systemInfo.safeAreaInsets.top + 44 + 30
+ complete2Top.value = systemInfo.safeAreaInsets.top + 44 + 150
// 判断是否提醒过闹铃
if (!uni.getStorageSync('alarmAlt')) {
@@ -192,11 +206,14 @@
})
onReady(() => {
- // 获取视频容器节点信息
- dom.getComponentRect(proxy.$refs.containerRef[0], (option) => {
- viewSize.height = option.size.height
- viewSize.width = option.size.width
- })
+ setTimeout(() => {
+ // 获取视频容器节点信息
+ dom.getComponentRect(proxy.$refs.containerRef[0], (option) => {
+ console.log('option', option)
+ viewSize.height = option.size.height
+ viewSize.width = option.size.width
+ })
+ }, 50)
})
onShow(() => {
@@ -298,15 +315,16 @@
// 如果有多的视频 并且当前数据为一条
// if (obj.total > 1 && obj.data.length <= 1) getMoreRecList()
+ // 延时监听播放
setTimeout(() => {
const pages = getCurrentPages()
// 判断是否当前页
- if (pages[pages.length - 1].route == 'pages/index/index') {
+ if (pages[pages.length - 1].route != 'pages/index/index') {
proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value =
- true
- proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].play()
+ false
+ proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].pause()
}
- }, 50)
+ }, 500)
return
}
util.alert({
@@ -315,6 +333,75 @@
})
}
+ /**
+ * 观看视频记录
+ * @param {Object} element 记录的视频元素对象
+ */
+ function browseLog(element) {
+ util.isLogin().then(rs => {
+ // if (readSecond.count == 0) return
+ const data = {
+ // 视频id
+ videoId: element.item.id,
+ // 有效读秒时间统计
+ viewingDuration: Math.floor(element.item.readSecond),
+ // 视频秒数
+ videoDescription: Math.floor(element.videoTime.currentTime),
+ //
+ task: 0,
+ }
+ console.log('browseLog data', data)
+ //
+ api.video.browseLog({
+ data,
+ }).then(rs => {
+ if (rs.code == 200) {
+ // 计数
+ const result = rs.data
+ // 现在的有效读秒
+ const taskValue = task.value
+ console.log('browseLog result', rs, taskValue)
+
+ // 如果原来任务是优先任务 当前任务是有效读秒
+ if (taskValue.taskType == 0 && result.taskType == 1) {
+ // 优先任务完成 播放烟花动画
+ console.log('优先任务完成 播放烟花动画')
+ handleCompleteMode('complete1')
+ }
+ // 如果原来任务任务是有效读秒 并且新返回的数据小于当前的任务进度
+ else if (result.taskType == 1 && (result.viewingDuration < taskValue
+ .viewingDuration)) {
+ console.log('有效读秒完成 播放任务完成动画')
+ handleCompleteMode('complete2')
+ }
+
+ //
+ uni.$store.commit('setState', {
+ key: 'task',
+ value: result,
+ })
+ return
+ } else {
+ console.log('browseLog err', rs)
+ }
+ })
+ })
+ }
+
+ /**
+ * 触发完成特效
+ * @param {Object} mode ['complete1'|'complete2'] 需要出发的动画键
+ */
+ function handleCompleteMode(mode) {
+ // 开启对应的特效
+ completeKey.value = mode
+
+ setTimeout(() => {
+ // 关闭特效
+ completeKey.value = ''
+ }, completeConfig[mode].time * 1000)
+ }
+
// 有效读秒增加
function readSecondAdd() {
clearInterval(readSecond.timer)
@@ -323,19 +410,21 @@
// 开启计时器
readSecond.timer = setInterval(() => {
- // 当前视频有效读秒 小于等于 最大有效读秒限制
- if (item.readSecond <= Math.min(Math.floor(item.videoDuration) - 2, 20)) {
+ // 当前视频有效读秒 小于等于 最大有效读秒限制(视频最大时长-2s,设置的有效读秒上限)
+ if (item.readSecond < Math.min(Math.floor(item.videoDuration) - 2, 20)) {
// 增加这条视频的有效读秒
item.readSecond++
} else {
- // 清空计时器
- clearInterval(readSecond.timer)
+ // 暂停有效读秒的统计
+ readSecondPause()
}
}, 1000)
}
- // 有效读秒暂停
+ // 暂停有效读秒的统计
function readSecondPause() {
+ // 暂停唱片
+ proxy.$refs.discRef.pause()
clearInterval(readSecond.timer)
}
@@ -486,60 +575,6 @@
// readSecondPause()
}
- /**
- * 观看视频记录
- * @param {Object} element 记录的视频元素对象
- */
- function browseLog(element) {
- util.isLogin().then(rs => {
- // if (readSecond.count == 0) return
- const data = {
- // 视频id
- videoId: element.item.id,
- // 有效读秒时间统计
- viewingDuration: Math.floor(element.item.readSecond),
- // 视频秒数
- videoDescription: Math.floor(element.videoTime.currentTime),
- //
- task: 0,
- }
- console.log('browseLog data', data)
- //
- api.video.browseLog({
- data,
- }).then(rs => {
- if (rs.code == 200) {
- // 计数
- const result = rs.data
- // 现在的有效读秒
- const taskValue = task.value
- console.log('browseLog result', rs, taskValue)
-
- // 如果原来任务是优先任务 当前任务是有效读秒
- if (taskValue.taskType == 0 && result.taskType == 1) {
- // 优先任务完成 播放烟花动画
- console.log('优先任务完成 播放烟花动画')
- }
- // 如果原来任务任务是有效读秒 并且新返回的数据小于当前的任务进度
- if (result.taskType == 1 && (result.viewingDuration < taskValue.viewingDuration)) {
- console.log('有效读秒完成 播放任务完成动画')
- }
-
- //
- uni.$store.commit('setState', {
- key: 'task',
- value: result,
- })
- return
- } else {
- console.log('browseLog err', rs)
- }
- }).catch(rs => {
- console.log('browseLog err fail', rs)
- })
- })
- }
-
/**
* 视频点赞
* @param {Object} param 见下
@@ -654,15 +689,25 @@
+
+
+
+
+
+
+
+
+
+
-
+
-
@@ -712,6 +757,31 @@
background-color: #161616;
}
+ // 优先任务完成
+ .complete1 {
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ z-index: 10;
+ transform: translateY(100rpx);
+ }
+
+ // 有效读秒完成
+ .complete2 {
+ position: fixed;
+ justify-content: flex-end;
+ right: 30rpx;
+ z-index: 10;
+
+ //
+ .image {
+ width: 80rpx;
+ height: 80rpx;
+ }
+ }
+
// 顶部导航
.top {
z-index: 10;
diff --git a/jiuyi2/readme.md b/jiuyi2/readme.md
index 9bcf871a..1586fa7c 100644
--- a/jiuyi2/readme.md
+++ b/jiuyi2/readme.md
@@ -355,3 +355,16 @@ call_type 通话类型 2为视频,1是音频
释放
选择视频截帧
+
+榴莲果交易类型id
+1 兑换榴莲果树
+2 商城评论
+3 查看他人评论
+4 查看视频分析
+5 兑换视频展播量
+6 推广他人视频
+7 申请完播量
+8 挂卖榴莲果
+9 挂买榴莲果
+10 用户互转
+
diff --git a/jiuyi2/unpackage/dist/dev/.nvue/pages/index/index.js b/jiuyi2/unpackage/dist/dev/.nvue/pages/index/index.js
index fbe67bc6..07f5c267 100644
--- a/jiuyi2/unpackage/dist/dev/.nvue/pages/index/index.js
+++ b/jiuyi2/unpackage/dist/dev/.nvue/pages/index/index.js
@@ -6337,8 +6337,8 @@ const timeAlt = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render
const _imports_0$1 = "/static/leftMenu1.png";
const _imports_1$1 = "/static/leftMenu2.png";
const _imports_2$1 = "/static/leftMenu3.png";
-const _imports_3 = "/static/leftMenu5.png";
-const _imports_4 = "/static/leftMenu6.png";
+const _imports_3$1 = "/static/leftMenu5.png";
+const _imports_4$1 = "/static/leftMenu6.png";
const _style_0$5 = { "leftMenuAlt": { "": { "width": "600rpx", "backgroundColor": "#F4F4F4" } } };
const _sfc_main$5 = {
__name: "leftMenu",
@@ -6493,7 +6493,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
}, [
createElementVNode("u-image", {
class: "wh80 mr25",
- src: _imports_3,
+ src: _imports_3$1,
mode: "aspectFit"
}),
createElementVNode("u-text", { class: "text f1 c333 f28" }, "我的团队")
@@ -6504,7 +6504,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
}, [
createElementVNode("u-image", {
class: "wh80 mr25",
- src: _imports_4,
+ src: _imports_4$1,
mode: "aspectFit"
}),
createElementVNode("u-text", { class: "text f1 c333 f28" }, "邀请好友分享APP")
@@ -6534,14 +6534,12 @@ const _sfc_main$4 = {
const step = ref(0.05);
const playState = ref(false);
const discStyle = computed(() => {
- let result = {
+ return {
transform: `rotate(${rotate.value}deg)`
};
- return result;
});
const userinfo = computed(() => {
- let result = uni.$store.state.userinfo;
- return result;
+ return uni.$store.state.userinfo;
});
onMounted(() => {
});
@@ -7007,8 +7005,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
const teen = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["styles", [_style_0$1]], ["__file", "D:/document/九亿商城/jy/jiuyi2/components/index/teen.vue"]]);
const _imports_0 = "/static/indexList.png";
const _imports_1 = "/static/indexSearch.png";
-const _imports_2 = "/static/indexOclock.png";
-const _style_0 = { "page": { "": { "backgroundColor": "#161616" } }, "top": { "": { "zIndex": 10 } }, "list": { ".tab ": { "marginTop": 0, "marginRight": "20rpx", "marginBottom": 0, "marginLeft": "20rpx" } }, "text": { ".tab .list.active ": { "color": "#ffffff" }, ".tab .list ": { "color": "rgba(255,255,255,0.7)" } }, "line": { ".tab .list.active ": { "opacity": 1 }, ".tab .list ": { "marginTop": 0, "marginRight": "10rpx", "marginBottom": 0, "marginLeft": "10rpx", "height": "5rpx", "backgroundColor": "#ffffff", "opacity": 0 } }, "oclockHint": { "": { "backgroundColor": "rgba(0,0,0,0.3)" } }, "image": { ".oclockHint ": { "marginTop": "300rpx", "width": "750rpx" } }, "disc": { "": { "marginRight": "20rpx" } } };
+const _imports_2 = "/static/complete1.gif";
+const _imports_3 = "/static/complete2.gif";
+const _imports_4 = "/static/indexOclock.png";
+const _style_0 = { "page": { "": { "backgroundColor": "#161616" } }, "complete1": { "": { "position": "fixed", "top": 0, "left": 0, "right": 0, "bottom": 0, "zIndex": 10, "transform": "translateY(100rpx)" } }, "complete2": { "": { "position": "fixed", "justifyContent": "flex-end", "right": "30rpx", "zIndex": 10 } }, "image": { ".complete2 ": { "width": "80rpx", "height": "80rpx" }, ".oclockHint ": { "marginTop": "300rpx", "width": "750rpx" } }, "top": { "": { "zIndex": 10 } }, "list": { ".tab ": { "marginTop": 0, "marginRight": "20rpx", "marginBottom": 0, "marginLeft": "20rpx" } }, "text": { ".tab .list.active ": { "color": "#ffffff" }, ".tab .list ": { "color": "rgba(255,255,255,0.7)" } }, "line": { ".tab .list.active ": { "opacity": 1 }, ".tab .list ": { "marginTop": 0, "marginRight": "10rpx", "marginBottom": 0, "marginLeft": "10rpx", "height": "5rpx", "backgroundColor": "#ffffff", "opacity": 0 } }, "oclockHint": { "": { "backgroundColor": "rgba(0,0,0,0.3)" } }, "disc": { "": { "marginRight": "20rpx" } } };
const _sfc_main = {
__name: "index",
setup(__props, { expose: __expose }) {
@@ -7069,6 +7069,16 @@ const _sfc_main = {
width: 0
});
const discOffsetTop = ref(0);
+ const complete2Top = ref(0);
+ const completeConfig = {
+ "complete1": {
+ time: 2
+ },
+ "complete2": {
+ time: 1.5
+ }
+ };
+ const completeKey = ref("");
const footerMenuHeight = ref(0);
const task = computed(() => {
return uni.$store.state.task;
@@ -7085,6 +7095,7 @@ const _sfc_main = {
onLoad(() => {
const systemInfo = uni.getSystemInfoSync();
discOffsetTop.value = systemInfo.safeAreaInsets.top + 44 + 30;
+ complete2Top.value = systemInfo.safeAreaInsets.top + 44 + 150;
if (!uni.getStorageSync("alarmAlt")) {
setTimeout(() => {
oclockWindow.value = true;
@@ -7123,10 +7134,13 @@ const _sfc_main = {
});
});
onReady(() => {
- dom2.getComponentRect(proxy.$refs.containerRef[0], (option) => {
- viewSize.height = option.size.height;
- viewSize.width = option.size.width;
- });
+ setTimeout(() => {
+ dom2.getComponentRect(proxy.$refs.containerRef[0], (option) => {
+ formatAppLog("log", "at pages/index/index.nvue:212", "option", option);
+ viewSize.height = option.size.height;
+ viewSize.width = option.size.width;
+ });
+ }, 50);
});
onShow(() => {
uni.$emit("changeMine", "default");
@@ -7167,7 +7181,7 @@ const _sfc_main = {
getRecList();
}
function getMoreRecList() {
- formatAppLog("log", "at pages/index/index.nvue:256", "recList", recList);
+ formatAppLog("log", "at pages/index/index.nvue:273", "recList", recList);
if (recList.total <= recList.data.length)
return;
recList.pageNum++;
@@ -7180,7 +7194,7 @@ const _sfc_main = {
pageSize: recList.pageSize
}
}).then((rs) => {
- formatAppLog("log", "at pages/index/index.nvue:271", "getRecList then rs", recList, rs);
+ formatAppLog("log", "at pages/index/index.nvue:288", "getRecList then rs", recList, rs);
setList(rs, recList);
});
}
@@ -7194,14 +7208,14 @@ const _sfc_main = {
item.readSecond = 0;
return item;
}));
- formatAppLog("log", "at pages/index/index.nvue:296", "result", obj.data, rs);
+ formatAppLog("log", "at pages/index/index.nvue:313", "result", obj.data, rs);
setTimeout(() => {
const pages = getCurrentPages();
- if (pages[pages.length - 1].route == "pages/index/index") {
- proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value = true;
- proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].play();
+ if (pages[pages.length - 1].route != "pages/index/index") {
+ proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value = false;
+ proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].pause();
}
- }, 50);
+ }, 500);
return;
}
util.alert({
@@ -7209,18 +7223,63 @@ const _sfc_main = {
showCancel: false
});
}
+ function browseLog(element) {
+ util.isLogin().then((rs) => {
+ const data = {
+ // 视频id
+ videoId: element.item.id,
+ // 有效读秒时间统计
+ viewingDuration: Math.floor(element.item.readSecond),
+ // 视频秒数
+ videoDescription: Math.floor(element.videoTime.currentTime),
+ //
+ task: 0
+ };
+ formatAppLog("log", "at pages/index/index.nvue:353", "browseLog data", data);
+ api.video.browseLog({
+ data
+ }).then((rs2) => {
+ if (rs2.code == 200) {
+ const result = rs2.data;
+ const taskValue = task.value;
+ formatAppLog("log", "at pages/index/index.nvue:363", "browseLog result", rs2, taskValue);
+ if (taskValue.taskType == 0 && result.taskType == 1) {
+ formatAppLog("log", "at pages/index/index.nvue:368", "优先任务完成 播放烟花动画");
+ handleCompleteMode("complete1");
+ } else if (result.taskType == 1 && result.viewingDuration < taskValue.viewingDuration) {
+ formatAppLog("log", "at pages/index/index.nvue:374", "有效读秒完成 播放任务完成动画");
+ handleCompleteMode("complete2");
+ }
+ uni.$store.commit("setState", {
+ key: "task",
+ value: result
+ });
+ return;
+ } else {
+ formatAppLog("log", "at pages/index/index.nvue:385", "browseLog err", rs2);
+ }
+ });
+ });
+ }
+ function handleCompleteMode(mode) {
+ completeKey.value = mode;
+ setTimeout(() => {
+ completeKey.value = "";
+ }, completeConfig[mode].time * 1e3);
+ }
function readSecondAdd() {
clearInterval(readSecond.timer);
const item = tab[tabIndex.value].listData()[current[tabIndex.value]];
readSecond.timer = setInterval(() => {
- if (item.readSecond <= Math.min(Math.floor(item.videoDuration) - 2, 20)) {
+ if (item.readSecond < Math.min(Math.floor(item.videoDuration) - 2, 20)) {
item.readSecond++;
} else {
- clearInterval(readSecond.timer);
+ readSecondPause();
}
}, 1e3);
}
function readSecondPause() {
+ proxy.$refs.discRef.pause();
clearInterval(readSecond.timer);
}
function scrollTo(target) {
@@ -7305,45 +7364,6 @@ const _sfc_main = {
if (proxy.$refs.discRef)
proxy.$refs.discRef.pause();
}
- function browseLog(element) {
- util.isLogin().then((rs) => {
- const data = {
- // 视频id
- videoId: element.item.id,
- // 有效读秒时间统计
- viewingDuration: Math.floor(element.item.readSecond),
- // 视频秒数
- videoDescription: Math.floor(element.videoTime.currentTime),
- //
- task: 0
- };
- formatAppLog("log", "at pages/index/index.nvue:506", "browseLog data", data);
- api.video.browseLog({
- data
- }).then((rs2) => {
- if (rs2.code == 200) {
- const result = rs2.data;
- const taskValue = task.value;
- formatAppLog("log", "at pages/index/index.nvue:516", "browseLog result", rs2, taskValue);
- if (taskValue.taskType == 0 && result.taskType == 1) {
- formatAppLog("log", "at pages/index/index.nvue:521", "优先任务完成 播放烟花动画");
- }
- if (result.taskType == 1 && result.viewingDuration < taskValue.viewingDuration) {
- formatAppLog("log", "at pages/index/index.nvue:525", "有效读秒完成 播放任务完成动画");
- }
- uni.$store.commit("setState", {
- key: "task",
- value: result
- });
- return;
- } else {
- formatAppLog("log", "at pages/index/index.nvue:535", "browseLog err", rs2);
- }
- }).catch((rs2) => {
- formatAppLog("log", "at pages/index/index.nvue:538", "browseLog err fail", rs2);
- });
- });
- }
function videoLike(param) {
const {
index: index2,
@@ -7399,7 +7419,7 @@ const _sfc_main = {
function showAlarm() {
proxy.$refs.timeRef.open();
}
- const __returned__ = { proxy, dom: dom2, oclockWindow, readSecond, tab, tabIndex, startY, currentLast, current, recList, attList, viewSize, discOffsetTop, footerMenuHeight, task, userinfo, tabCurrent, currentVideoRef, refreshAttList, getMoreAttList, getAttList, refreshRecList, getMoreRecList, getRecList, setList, readSecondAdd, readSecondPause, scrollTo, onTouchstart, onTouchend, handle_tab, handleShowTime, handleShowCommentAlt, handleShowCollectAlt, handleShowShareFirend, handleVideoOnPlay, handleVideoOnPause, browseLog, videoLike, setAlarm, showLeftMenu, handleSpeed, showAlarm, ref, reactive, getCurrentInstance, computed, nextTick, get onLoad() {
+ const __returned__ = { proxy, dom: dom2, oclockWindow, readSecond, tab, tabIndex, startY, currentLast, current, recList, attList, viewSize, discOffsetTop, complete2Top, completeConfig, completeKey, footerMenuHeight, task, userinfo, tabCurrent, currentVideoRef, refreshAttList, getMoreAttList, getAttList, refreshRecList, getMoreRecList, getRecList, setList, browseLog, handleCompleteMode, readSecondAdd, readSecondPause, scrollTo, onTouchstart, onTouchend, handle_tab, handleShowTime, handleShowCommentAlt, handleShowCollectAlt, handleShowShareFirend, handleVideoOnPlay, handleVideoOnPause, videoLike, setAlarm, showLeftMenu, handleSpeed, showAlarm, ref, reactive, getCurrentInstance, computed, nextTick, get onLoad() {
return onLoad;
}, get onReady() {
return onReady;
@@ -7485,11 +7505,36 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
})
])
]),
+ createCommentVNode(" 优先任务结算 "),
+ $setup.completeKey == "complete1" ? (openBlock(), createElementBlock("u-image", {
+ key: 0,
+ class: "complete1",
+ src: _imports_2,
+ mode: "aspectFit"
+ })) : createCommentVNode("v-if", true),
+ createCommentVNode(" 有效读秒结算 "),
+ $setup.completeKey == "complete2" ? (openBlock(), createElementBlock(
+ "view",
+ {
+ key: 1,
+ class: "complete2",
+ style: normalizeStyle({ top: $setup.complete2Top + "px" })
+ },
+ [
+ createElementVNode("u-image", {
+ class: "image",
+ src: _imports_3,
+ mode: "aspectFit"
+ })
+ ],
+ 4
+ /* STYLE */
+ )) : createCommentVNode("v-if", true),
createCommentVNode(" 有效读秒唱片 "),
$setup.userinfo.id ? (openBlock(), createElementBlock(
"view",
{
- key: 0,
+ key: 2,
class: "disc pf r0",
style: normalizeStyle({ top: $setup.discOffsetTop + "px" })
},
@@ -7517,14 +7562,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
"view",
{
key: 0,
- class: "f1",
+ class: "container f1",
ref_for: true,
ref: "containerRef"
},
[
createCommentVNode(" 主要内容区域 "),
createElementVNode("list", {
- class: "container f1",
+ class: "listBox f1",
showScrollbar: false,
onTouchstart: ($event) => $setup.onTouchstart($event, index2),
onTouchend: ($event) => $setup.onTouchend($event, index2),
@@ -7590,7 +7635,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
$setup.oclockWindow ? (openBlock(), createElementBlock(
"view",
{
- key: 1,
+ key: 3,
class: "oclockHint pa pfull fmid",
onTouchstart: _cache[1] || (_cache[1] = withModifiers(() => {
}, ["stop"])),
@@ -7599,7 +7644,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
[
createElementVNode("u-image", {
class: "image",
- src: _imports_2,
+ src: _imports_4,
mode: "widthFix"
})
],
diff --git a/jiuyi2/unpackage/dist/dev/app-plus/app-service.js b/jiuyi2/unpackage/dist/dev/app-plus/app-service.js
index ad0cabdf..ddf08a47 100644
--- a/jiuyi2/unpackage/dist/dev/app-plus/app-service.js
+++ b/jiuyi2/unpackage/dist/dev/app-plus/app-service.js
@@ -58674,7 +58674,7 @@ ${i3}
};
function _sfc_render$2X(_ctx, _cache, $props, $setup, $data, $options) {
return _Vue.openBlock(), _Vue.createElementBlock("view", { class: "task pr mtb30 ptb20 plr40 f28 bFFFBF3 br20" }, [
- $setup.task === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
+ $setup.task.taskType === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
key: 0,
class: "title c333 f36"
}, "任务读秒")) : (_Vue.openBlock(), _Vue.createElementBlock("view", {
@@ -58700,7 +58700,7 @@ ${i3}
/* STYLE */
)
]),
- $setup.task === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
+ $setup.task.taskType === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
key: 2,
class: "label pa t0 r0 ptb5 plr20 cfff"
}, "优先")) : _Vue.createCommentVNode("v-if", true)
@@ -74876,303 +74876,296 @@ ${i3}
};
const searchMessageTimeDefault = searchMessageTimeList["all"];
var dayjs_min = { exports: {} };
- var hasRequiredDayjs_min;
- function requireDayjs_min() {
- if (hasRequiredDayjs_min)
- return dayjs_min.exports;
- hasRequiredDayjs_min = 1;
- (function(module, exports) {
- !function(t2, e2) {
- module.exports = e2();
- }(commonjsGlobal, function() {
- var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
- var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
- return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
- } }, m2 = function(t3, e3, n3) {
- var r3 = String(t3);
- return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
- }, v2 = { s: m2, z: function(t3) {
- var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
- return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
- }, m: function t3(e3, n3) {
- if (e3.date() < n3.date())
- return -t3(n3, e3);
- var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u3 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
- return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
- }, a: function(t3) {
- return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
- }, p: function(t3) {
- return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i2, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
- }, u: function(t3) {
- return void 0 === t3;
- } }, g2 = "en", D2 = {};
- D2[g2] = M2;
- var p2 = "$isDayjsObject", S2 = function(t3) {
- return t3 instanceof _2 || !(!t3 || !t3[p2]);
- }, w2 = function t3(e3, n3, r3) {
- var i3;
- if (!e3)
- return g2;
- if ("string" == typeof e3) {
- var s3 = e3.toLowerCase();
- D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
- var u3 = e3.split("-");
- if (!i3 && u3.length > 1)
- return t3(u3[0]);
- } else {
- var a3 = e3.name;
- D2[a3] = e3, i3 = a3;
- }
- return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
- }, O2 = function(t3, e3) {
- if (S2(t3))
- return t3.clone();
- var n3 = "object" == typeof e3 ? e3 : {};
- return n3.date = t3, n3.args = arguments, new _2(n3);
- }, b2 = v2;
- b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
- return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
- };
- var _2 = function() {
- function M3(t3) {
- this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
- }
- var m3 = M3.prototype;
- return m3.parse = function(t3) {
- this.$d = function(t4) {
- var e3 = t4.date, n3 = t4.utc;
- if (null === e3)
- return /* @__PURE__ */ new Date(NaN);
- if (b2.u(e3))
- return /* @__PURE__ */ new Date();
- if (e3 instanceof Date)
- return new Date(e3);
- if ("string" == typeof e3 && !/Z$/i.test(e3)) {
- var r3 = e3.match($2);
- if (r3) {
- var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
- return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
- }
- }
+ (function(module, exports) {
+ !function(t2, e2) {
+ module.exports = e2();
+ }(commonjsGlobal, function() {
+ var t2 = 1e3, e2 = 6e4, n2 = 36e5, r2 = "millisecond", i2 = "second", s2 = "minute", u2 = "hour", a2 = "day", o2 = "week", c2 = "month", f2 = "quarter", h2 = "year", d2 = "date", l2 = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t3) {
+ var e3 = ["th", "st", "nd", "rd"], n3 = t3 % 100;
+ return "[" + t3 + (e3[(n3 - 20) % 10] || e3[n3] || e3[0]) + "]";
+ } }, m2 = function(t3, e3, n3) {
+ var r3 = String(t3);
+ return !r3 || r3.length >= e3 ? t3 : "" + Array(e3 + 1 - r3.length).join(n3) + t3;
+ }, v2 = { s: m2, z: function(t3) {
+ var e3 = -t3.utcOffset(), n3 = Math.abs(e3), r3 = Math.floor(n3 / 60), i3 = n3 % 60;
+ return (e3 <= 0 ? "+" : "-") + m2(r3, 2, "0") + ":" + m2(i3, 2, "0");
+ }, m: function t3(e3, n3) {
+ if (e3.date() < n3.date())
+ return -t3(n3, e3);
+ var r3 = 12 * (n3.year() - e3.year()) + (n3.month() - e3.month()), i3 = e3.clone().add(r3, c2), s3 = n3 - i3 < 0, u3 = e3.clone().add(r3 + (s3 ? -1 : 1), c2);
+ return +(-(r3 + (n3 - i3) / (s3 ? i3 - u3 : u3 - i3)) || 0);
+ }, a: function(t3) {
+ return t3 < 0 ? Math.ceil(t3) || 0 : Math.floor(t3);
+ }, p: function(t3) {
+ return { M: c2, y: h2, w: o2, d: a2, D: d2, h: u2, m: s2, s: i2, ms: r2, Q: f2 }[t3] || String(t3 || "").toLowerCase().replace(/s$/, "");
+ }, u: function(t3) {
+ return void 0 === t3;
+ } }, g2 = "en", D2 = {};
+ D2[g2] = M2;
+ var p2 = "$isDayjsObject", S2 = function(t3) {
+ return t3 instanceof _2 || !(!t3 || !t3[p2]);
+ }, w2 = function t3(e3, n3, r3) {
+ var i3;
+ if (!e3)
+ return g2;
+ if ("string" == typeof e3) {
+ var s3 = e3.toLowerCase();
+ D2[s3] && (i3 = s3), n3 && (D2[s3] = n3, i3 = s3);
+ var u3 = e3.split("-");
+ if (!i3 && u3.length > 1)
+ return t3(u3[0]);
+ } else {
+ var a3 = e3.name;
+ D2[a3] = e3, i3 = a3;
+ }
+ return !r3 && i3 && (g2 = i3), i3 || !r3 && g2;
+ }, O2 = function(t3, e3) {
+ if (S2(t3))
+ return t3.clone();
+ var n3 = "object" == typeof e3 ? e3 : {};
+ return n3.date = t3, n3.args = arguments, new _2(n3);
+ }, b2 = v2;
+ b2.l = w2, b2.i = S2, b2.w = function(t3, e3) {
+ return O2(t3, { locale: e3.$L, utc: e3.$u, x: e3.$x, $offset: e3.$offset });
+ };
+ var _2 = function() {
+ function M3(t3) {
+ this.$L = w2(t3.locale, null, true), this.parse(t3), this.$x = this.$x || t3.x || {}, this[p2] = true;
+ }
+ var m3 = M3.prototype;
+ return m3.parse = function(t3) {
+ this.$d = function(t4) {
+ var e3 = t4.date, n3 = t4.utc;
+ if (null === e3)
+ return /* @__PURE__ */ new Date(NaN);
+ if (b2.u(e3))
+ return /* @__PURE__ */ new Date();
+ if (e3 instanceof Date)
return new Date(e3);
- }(t3), this.init();
- }, m3.init = function() {
- var t3 = this.$d;
- this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
- }, m3.$utils = function() {
- return b2;
- }, m3.isValid = function() {
- return !(this.$d.toString() === l2);
- }, m3.isSame = function(t3, e3) {
- var n3 = O2(t3);
- return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
- }, m3.isAfter = function(t3, e3) {
- return O2(t3) < this.startOf(e3);
- }, m3.isBefore = function(t3, e3) {
- return this.endOf(e3) < O2(t3);
- }, m3.$g = function(t3, e3, n3) {
- return b2.u(t3) ? this[e3] : this.set(n3, t3);
- }, m3.unix = function() {
- return Math.floor(this.valueOf() / 1e3);
- }, m3.valueOf = function() {
- return this.$d.getTime();
- }, m3.startOf = function(t3, e3) {
- var n3 = this, r3 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
- var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
- return r3 ? i3 : i3.endOf(a2);
- }, $3 = function(t4, e4) {
- return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
- }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
- switch (f3) {
- case h2:
- return r3 ? l3(1, 0) : l3(31, 11);
- case c2:
- return r3 ? l3(1, M4) : l3(0, M4 + 1);
- case o2:
- var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
- return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
- case a2:
- case d2:
- return $3(v3 + "Hours", 0);
- case u2:
- return $3(v3 + "Minutes", 1);
- case s2:
- return $3(v3 + "Seconds", 2);
- case i2:
- return $3(v3 + "Milliseconds", 3);
- default:
- return this.clone();
+ if ("string" == typeof e3 && !/Z$/i.test(e3)) {
+ var r3 = e3.match($2);
+ if (r3) {
+ var i3 = r3[2] - 1 || 0, s3 = (r3[7] || "0").substring(0, 3);
+ return n3 ? new Date(Date.UTC(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3)) : new Date(r3[1], i3, r3[3] || 1, r3[4] || 0, r3[5] || 0, r3[6] || 0, s3);
+ }
}
- }, m3.endOf = function(t3) {
- return this.startOf(t3, false);
- }, m3.$set = function(t3, e3) {
- var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i2] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
- if (o3 === c2 || o3 === h2) {
- var y3 = this.clone().set(d2, 1);
- y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
- } else
- l3 && this.$d[l3]($3);
- return this.init(), this;
- }, m3.set = function(t3, e3) {
- return this.clone().$set(t3, e3);
- }, m3.get = function(t3) {
- return this[b2.p(t3)]();
- }, m3.add = function(r3, f3) {
- var d3, l3 = this;
- r3 = Number(r3);
- var $3 = b2.p(f3), y3 = function(t3) {
- var e3 = O2(l3);
- return b2.w(e3.date(e3.date() + Math.round(t3 * r3)), l3);
- };
- if ($3 === c2)
- return this.set(c2, this.$M + r3);
- if ($3 === h2)
- return this.set(h2, this.$y + r3);
- if ($3 === a2)
- return y3(1);
- if ($3 === o2)
- return y3(7);
- var M4 = (d3 = {}, d3[s2] = e2, d3[u2] = n2, d3[i2] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r3 * M4;
- return b2.w(m4, this);
- }, m3.subtract = function(t3, e3) {
- return this.add(-1 * t3, e3);
- }, m3.format = function(t3) {
- var e3 = this, n3 = this.$locale();
- if (!this.isValid())
- return n3.invalidDate || l2;
- var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i4, s4) {
- return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
- }, d3 = function(t4) {
- return b2.s(s3 % 12 || 12, t4, "0");
- }, $3 = f3 || function(t4, e4, n4) {
- var r4 = t4 < 12 ? "AM" : "PM";
- return n4 ? r4.toLowerCase() : r4;
- };
- return r3.replace(y2, function(t4, r4) {
- return r4 || function(t5) {
- switch (t5) {
- case "YY":
- return String(e3.$y).slice(-2);
- case "YYYY":
- return b2.s(e3.$y, 4, "0");
- case "M":
- return a3 + 1;
- case "MM":
- return b2.s(a3 + 1, 2, "0");
- case "MMM":
- return h3(n3.monthsShort, a3, c3, 3);
- case "MMMM":
- return h3(c3, a3);
- case "D":
- return e3.$D;
- case "DD":
- return b2.s(e3.$D, 2, "0");
- case "d":
- return String(e3.$W);
- case "dd":
- return h3(n3.weekdaysMin, e3.$W, o3, 2);
- case "ddd":
- return h3(n3.weekdaysShort, e3.$W, o3, 3);
- case "dddd":
- return o3[e3.$W];
- case "H":
- return String(s3);
- case "HH":
- return b2.s(s3, 2, "0");
- case "h":
- return d3(1);
- case "hh":
- return d3(2);
- case "a":
- return $3(s3, u3, true);
- case "A":
- return $3(s3, u3, false);
- case "m":
- return String(u3);
- case "mm":
- return b2.s(u3, 2, "0");
- case "s":
- return String(e3.$s);
- case "ss":
- return b2.s(e3.$s, 2, "0");
- case "SSS":
- return b2.s(e3.$ms, 3, "0");
- case "Z":
- return i3;
- }
- return null;
- }(t4) || i3.replace(":", "");
- });
- }, m3.utcOffset = function() {
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
- }, m3.diff = function(r3, d3, l3) {
- var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
- return b2.m(y3, m4);
- };
- switch (M4) {
- case h2:
- $3 = D3() / 12;
- break;
- case c2:
- $3 = D3();
- break;
- case f2:
- $3 = D3() / 3;
- break;
- case o2:
- $3 = (g3 - v3) / 6048e5;
- break;
- case a2:
- $3 = (g3 - v3) / 864e5;
- break;
- case u2:
- $3 = g3 / n2;
- break;
- case s2:
- $3 = g3 / e2;
- break;
- case i2:
- $3 = g3 / t2;
- break;
- default:
- $3 = g3;
- }
- return l3 ? $3 : b2.a($3);
- }, m3.daysInMonth = function() {
- return this.endOf(c2).$D;
- }, m3.$locale = function() {
- return D2[this.$L];
- }, m3.locale = function(t3, e3) {
- if (!t3)
- return this.$L;
- var n3 = this.clone(), r3 = w2(t3, e3, true);
- return r3 && (n3.$L = r3), n3;
- }, m3.clone = function() {
- return b2.w(this.$d, this);
- }, m3.toDate = function() {
- return new Date(this.valueOf());
- }, m3.toJSON = function() {
- return this.isValid() ? this.toISOString() : null;
- }, m3.toISOString = function() {
- return this.$d.toISOString();
- }, m3.toString = function() {
- return this.$d.toUTCString();
- }, M3;
- }(), k2 = _2.prototype;
- return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
- k2[t3[1]] = function(e3) {
- return this.$g(e3, t3[0], t3[1]);
+ return new Date(e3);
+ }(t3), this.init();
+ }, m3.init = function() {
+ var t3 = this.$d;
+ this.$y = t3.getFullYear(), this.$M = t3.getMonth(), this.$D = t3.getDate(), this.$W = t3.getDay(), this.$H = t3.getHours(), this.$m = t3.getMinutes(), this.$s = t3.getSeconds(), this.$ms = t3.getMilliseconds();
+ }, m3.$utils = function() {
+ return b2;
+ }, m3.isValid = function() {
+ return !(this.$d.toString() === l2);
+ }, m3.isSame = function(t3, e3) {
+ var n3 = O2(t3);
+ return this.startOf(e3) <= n3 && n3 <= this.endOf(e3);
+ }, m3.isAfter = function(t3, e3) {
+ return O2(t3) < this.startOf(e3);
+ }, m3.isBefore = function(t3, e3) {
+ return this.endOf(e3) < O2(t3);
+ }, m3.$g = function(t3, e3, n3) {
+ return b2.u(t3) ? this[e3] : this.set(n3, t3);
+ }, m3.unix = function() {
+ return Math.floor(this.valueOf() / 1e3);
+ }, m3.valueOf = function() {
+ return this.$d.getTime();
+ }, m3.startOf = function(t3, e3) {
+ var n3 = this, r3 = !!b2.u(e3) || e3, f3 = b2.p(t3), l3 = function(t4, e4) {
+ var i3 = b2.w(n3.$u ? Date.UTC(n3.$y, e4, t4) : new Date(n3.$y, e4, t4), n3);
+ return r3 ? i3 : i3.endOf(a2);
+ }, $3 = function(t4, e4) {
+ return b2.w(n3.toDate()[t4].apply(n3.toDate("s"), (r3 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e4)), n3);
+ }, y3 = this.$W, M4 = this.$M, m4 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
+ switch (f3) {
+ case h2:
+ return r3 ? l3(1, 0) : l3(31, 11);
+ case c2:
+ return r3 ? l3(1, M4) : l3(0, M4 + 1);
+ case o2:
+ var g3 = this.$locale().weekStart || 0, D3 = (y3 < g3 ? y3 + 7 : y3) - g3;
+ return l3(r3 ? m4 - D3 : m4 + (6 - D3), M4);
+ case a2:
+ case d2:
+ return $3(v3 + "Hours", 0);
+ case u2:
+ return $3(v3 + "Minutes", 1);
+ case s2:
+ return $3(v3 + "Seconds", 2);
+ case i2:
+ return $3(v3 + "Milliseconds", 3);
+ default:
+ return this.clone();
+ }
+ }, m3.endOf = function(t3) {
+ return this.startOf(t3, false);
+ }, m3.$set = function(t3, e3) {
+ var n3, o3 = b2.p(t3), f3 = "set" + (this.$u ? "UTC" : ""), l3 = (n3 = {}, n3[a2] = f3 + "Date", n3[d2] = f3 + "Date", n3[c2] = f3 + "Month", n3[h2] = f3 + "FullYear", n3[u2] = f3 + "Hours", n3[s2] = f3 + "Minutes", n3[i2] = f3 + "Seconds", n3[r2] = f3 + "Milliseconds", n3)[o3], $3 = o3 === a2 ? this.$D + (e3 - this.$W) : e3;
+ if (o3 === c2 || o3 === h2) {
+ var y3 = this.clone().set(d2, 1);
+ y3.$d[l3]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
+ } else
+ l3 && this.$d[l3]($3);
+ return this.init(), this;
+ }, m3.set = function(t3, e3) {
+ return this.clone().$set(t3, e3);
+ }, m3.get = function(t3) {
+ return this[b2.p(t3)]();
+ }, m3.add = function(r3, f3) {
+ var d3, l3 = this;
+ r3 = Number(r3);
+ var $3 = b2.p(f3), y3 = function(t3) {
+ var e3 = O2(l3);
+ return b2.w(e3.date(e3.date() + Math.round(t3 * r3)), l3);
};
- }), O2.extend = function(t3, e3) {
- return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
- }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
- return O2(1e3 * t3);
- }, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
- });
- })(dayjs_min);
- return dayjs_min.exports;
- }
- var dayjs_minExports = requireDayjs_min();
+ if ($3 === c2)
+ return this.set(c2, this.$M + r3);
+ if ($3 === h2)
+ return this.set(h2, this.$y + r3);
+ if ($3 === a2)
+ return y3(1);
+ if ($3 === o2)
+ return y3(7);
+ var M4 = (d3 = {}, d3[s2] = e2, d3[u2] = n2, d3[i2] = t2, d3)[$3] || 1, m4 = this.$d.getTime() + r3 * M4;
+ return b2.w(m4, this);
+ }, m3.subtract = function(t3, e3) {
+ return this.add(-1 * t3, e3);
+ }, m3.format = function(t3) {
+ var e3 = this, n3 = this.$locale();
+ if (!this.isValid())
+ return n3.invalidDate || l2;
+ var r3 = t3 || "YYYY-MM-DDTHH:mm:ssZ", i3 = b2.z(this), s3 = this.$H, u3 = this.$m, a3 = this.$M, o3 = n3.weekdays, c3 = n3.months, f3 = n3.meridiem, h3 = function(t4, n4, i4, s4) {
+ return t4 && (t4[n4] || t4(e3, r3)) || i4[n4].slice(0, s4);
+ }, d3 = function(t4) {
+ return b2.s(s3 % 12 || 12, t4, "0");
+ }, $3 = f3 || function(t4, e4, n4) {
+ var r4 = t4 < 12 ? "AM" : "PM";
+ return n4 ? r4.toLowerCase() : r4;
+ };
+ return r3.replace(y2, function(t4, r4) {
+ return r4 || function(t5) {
+ switch (t5) {
+ case "YY":
+ return String(e3.$y).slice(-2);
+ case "YYYY":
+ return b2.s(e3.$y, 4, "0");
+ case "M":
+ return a3 + 1;
+ case "MM":
+ return b2.s(a3 + 1, 2, "0");
+ case "MMM":
+ return h3(n3.monthsShort, a3, c3, 3);
+ case "MMMM":
+ return h3(c3, a3);
+ case "D":
+ return e3.$D;
+ case "DD":
+ return b2.s(e3.$D, 2, "0");
+ case "d":
+ return String(e3.$W);
+ case "dd":
+ return h3(n3.weekdaysMin, e3.$W, o3, 2);
+ case "ddd":
+ return h3(n3.weekdaysShort, e3.$W, o3, 3);
+ case "dddd":
+ return o3[e3.$W];
+ case "H":
+ return String(s3);
+ case "HH":
+ return b2.s(s3, 2, "0");
+ case "h":
+ return d3(1);
+ case "hh":
+ return d3(2);
+ case "a":
+ return $3(s3, u3, true);
+ case "A":
+ return $3(s3, u3, false);
+ case "m":
+ return String(u3);
+ case "mm":
+ return b2.s(u3, 2, "0");
+ case "s":
+ return String(e3.$s);
+ case "ss":
+ return b2.s(e3.$s, 2, "0");
+ case "SSS":
+ return b2.s(e3.$ms, 3, "0");
+ case "Z":
+ return i3;
+ }
+ return null;
+ }(t4) || i3.replace(":", "");
+ });
+ }, m3.utcOffset = function() {
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
+ }, m3.diff = function(r3, d3, l3) {
+ var $3, y3 = this, M4 = b2.p(d3), m4 = O2(r3), v3 = (m4.utcOffset() - this.utcOffset()) * e2, g3 = this - m4, D3 = function() {
+ return b2.m(y3, m4);
+ };
+ switch (M4) {
+ case h2:
+ $3 = D3() / 12;
+ break;
+ case c2:
+ $3 = D3();
+ break;
+ case f2:
+ $3 = D3() / 3;
+ break;
+ case o2:
+ $3 = (g3 - v3) / 6048e5;
+ break;
+ case a2:
+ $3 = (g3 - v3) / 864e5;
+ break;
+ case u2:
+ $3 = g3 / n2;
+ break;
+ case s2:
+ $3 = g3 / e2;
+ break;
+ case i2:
+ $3 = g3 / t2;
+ break;
+ default:
+ $3 = g3;
+ }
+ return l3 ? $3 : b2.a($3);
+ }, m3.daysInMonth = function() {
+ return this.endOf(c2).$D;
+ }, m3.$locale = function() {
+ return D2[this.$L];
+ }, m3.locale = function(t3, e3) {
+ if (!t3)
+ return this.$L;
+ var n3 = this.clone(), r3 = w2(t3, e3, true);
+ return r3 && (n3.$L = r3), n3;
+ }, m3.clone = function() {
+ return b2.w(this.$d, this);
+ }, m3.toDate = function() {
+ return new Date(this.valueOf());
+ }, m3.toJSON = function() {
+ return this.isValid() ? this.toISOString() : null;
+ }, m3.toISOString = function() {
+ return this.$d.toISOString();
+ }, m3.toString = function() {
+ return this.$d.toUTCString();
+ }, M3;
+ }(), k2 = _2.prototype;
+ return O2.prototype = k2, [["$ms", r2], ["$s", i2], ["$m", s2], ["$H", u2], ["$W", a2], ["$M", c2], ["$y", h2], ["$D", d2]].forEach(function(t3) {
+ k2[t3[1]] = function(e3) {
+ return this.$g(e3, t3[0], t3[1]);
+ };
+ }), O2.extend = function(t3, e3) {
+ return t3.$i || (t3(e3, _2, O2), t3.$i = true), O2;
+ }, O2.locale = w2, O2.isDayjs = S2, O2.unix = function(t3) {
+ return O2(1e3 * t3);
+ }, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
+ });
+ })(dayjs_min);
+ var dayjs_minExports = dayjs_min.exports;
const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
var localeData$1 = { exports: {} };
(function(module, exports) {
@@ -75284,7 +75277,7 @@ ${i3}
var zhCn = { exports: {} };
(function(module, exports) {
!function(e2, _2) {
- module.exports = _2(requireDayjs_min());
+ module.exports = _2(dayjs_minExports);
}(commonjsGlobal, function(e2) {
function _2(e3) {
return e3 && "object" == typeof e3 && "default" in e3 ? e3 : { default: e3 };
diff --git a/jiuyi2/unpackage/dist/dev/app-plus/pages/index/index.js b/jiuyi2/unpackage/dist/dev/app-plus/pages/index/index.js
index 7e4fc304..a5dcd829 100644
--- a/jiuyi2/unpackage/dist/dev/app-plus/pages/index/index.js
+++ b/jiuyi2/unpackage/dist/dev/app-plus/pages/index/index.js
@@ -13029,8 +13029,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
var _imports_0$12 = "/static/leftMenu1.png";
var _imports_1$1 = "/static/leftMenu2.png";
var _imports_2$1 = "/static/leftMenu3.png";
- var _imports_32 = "/static/leftMenu5.png";
- var _imports_42 = "/static/leftMenu6.png";
+ var _imports_3$1 = "/static/leftMenu5.png";
+ var _imports_4$1 = "/static/leftMenu6.png";
var _style_0$52 = { "leftMenuAlt": { "": { "width": "600rpx", "backgroundColor": "#F4F4F4" } } };
var _sfc_main$52 = {
__name: "leftMenu",
@@ -13185,7 +13185,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
}, [
(0, import_vue3.createElementVNode)("u-image", {
class: "wh80 mr25",
- src: _imports_32,
+ src: _imports_3$1,
mode: "aspectFit"
}),
(0, import_vue3.createElementVNode)("u-text", { class: "text f1 c333 f28" }, "\u6211\u7684\u56E2\u961F")
@@ -13196,7 +13196,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
}, [
(0, import_vue3.createElementVNode)("u-image", {
class: "wh80 mr25",
- src: _imports_42,
+ src: _imports_4$1,
mode: "aspectFit"
}),
(0, import_vue3.createElementVNode)("u-text", { class: "text f1 c333 f28" }, "\u9080\u8BF7\u597D\u53CB\u5206\u4EABAPP")
@@ -13226,14 +13226,12 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
const step = (0, import_vue3.ref)(0.05);
const playState = (0, import_vue3.ref)(false);
const discStyle = (0, import_vue3.computed)(() => {
- let result = {
+ return {
transform: `rotate(${rotate.value}deg)`
};
- return result;
});
const userinfo = (0, import_vue3.computed)(() => {
- let result = uni.$store.state.userinfo;
- return result;
+ return uni.$store.state.userinfo;
});
(0, import_vue3.onMounted)(() => {
});
@@ -13699,8 +13697,10 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
var teen = /* @__PURE__ */ _export_sfc(_sfc_main$12, [["render", _sfc_render$12], ["styles", [_style_0$12]], ["__file", "D:/document/\u4E5D\u4EBF\u5546\u57CE/jy/jiuyi2/components/index/teen.vue"]]);
var _imports_02 = "/static/indexList.png";
var _imports_12 = "/static/indexSearch.png";
- var _imports_22 = "/static/indexOclock.png";
- var _style_02 = { "page": { "": { "backgroundColor": "#161616" } }, "top": { "": { "zIndex": 10 } }, "list": { ".tab ": { "marginTop": 0, "marginRight": "20rpx", "marginBottom": 0, "marginLeft": "20rpx" } }, "text": { ".tab .list.active ": { "color": "#ffffff" }, ".tab .list ": { "color": "rgba(255,255,255,0.7)" } }, "line": { ".tab .list.active ": { "opacity": 1 }, ".tab .list ": { "marginTop": 0, "marginRight": "10rpx", "marginBottom": 0, "marginLeft": "10rpx", "height": "5rpx", "backgroundColor": "#ffffff", "opacity": 0 } }, "oclockHint": { "": { "backgroundColor": "rgba(0,0,0,0.3)" } }, "image": { ".oclockHint ": { "marginTop": "300rpx", "width": "750rpx" } }, "disc": { "": { "marginRight": "20rpx" } } };
+ var _imports_22 = "/static/complete1.gif";
+ var _imports_32 = "/static/complete2.gif";
+ var _imports_42 = "/static/indexOclock.png";
+ var _style_02 = { "page": { "": { "backgroundColor": "#161616" } }, "complete1": { "": { "position": "fixed", "top": 0, "left": 0, "right": 0, "bottom": 0, "zIndex": 10, "transform": "translateY(100rpx)" } }, "complete2": { "": { "position": "fixed", "justifyContent": "flex-end", "right": "30rpx", "zIndex": 10 } }, "image": { ".complete2 ": { "width": "80rpx", "height": "80rpx" }, ".oclockHint ": { "marginTop": "300rpx", "width": "750rpx" } }, "top": { "": { "zIndex": 10 } }, "list": { ".tab ": { "marginTop": 0, "marginRight": "20rpx", "marginBottom": 0, "marginLeft": "20rpx" } }, "text": { ".tab .list.active ": { "color": "#ffffff" }, ".tab .list ": { "color": "rgba(255,255,255,0.7)" } }, "line": { ".tab .list.active ": { "opacity": 1 }, ".tab .list ": { "marginTop": 0, "marginRight": "10rpx", "marginBottom": 0, "marginLeft": "10rpx", "height": "5rpx", "backgroundColor": "#ffffff", "opacity": 0 } }, "oclockHint": { "": { "backgroundColor": "rgba(0,0,0,0.3)" } }, "disc": { "": { "marginRight": "20rpx" } } };
var _sfc_main2 = {
__name: "index",
setup(__props, { expose: __expose }) {
@@ -13761,6 +13761,16 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
width: 0
});
const discOffsetTop = (0, import_vue3.ref)(0);
+ const complete2Top = (0, import_vue3.ref)(0);
+ const completeConfig = {
+ "complete1": {
+ time: 2
+ },
+ "complete2": {
+ time: 1.5
+ }
+ };
+ const completeKey = (0, import_vue3.ref)("");
const footerMenuHeight = (0, import_vue3.ref)(0);
const task = (0, import_vue3.computed)(() => {
return uni.$store.state.task;
@@ -13777,6 +13787,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
onLoad(() => {
const systemInfo = uni.getSystemInfoSync();
discOffsetTop.value = systemInfo.safeAreaInsets.top + 44 + 30;
+ complete2Top.value = systemInfo.safeAreaInsets.top + 44 + 150;
if (!uni.getStorageSync("alarmAlt")) {
setTimeout(() => {
oclockWindow.value = true;
@@ -13812,10 +13823,13 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
});
});
onReady(() => {
- dom22.getComponentRect(proxy.$refs.containerRef[0], (option) => {
- viewSize.height = option.size.height;
- viewSize.width = option.size.width;
- });
+ setTimeout(() => {
+ dom22.getComponentRect(proxy.$refs.containerRef[0], (option) => {
+ formatAppLog("log", "at pages/index/index.nvue:212", "option", option);
+ viewSize.height = option.size.height;
+ viewSize.width = option.size.width;
+ });
+ }, 50);
});
onShow(() => {
uni.$emit("changeMine", "default");
@@ -13856,7 +13870,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
getRecList();
}
function getMoreRecList() {
- formatAppLog("log", "at pages/index/index.nvue:256", "recList", recList);
+ formatAppLog("log", "at pages/index/index.nvue:273", "recList", recList);
if (recList.total <= recList.data.length)
return;
recList.pageNum++;
@@ -13869,7 +13883,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
pageSize: recList.pageSize
}
}).then((rs) => {
- formatAppLog("log", "at pages/index/index.nvue:271", "getRecList then rs", recList, rs);
+ formatAppLog("log", "at pages/index/index.nvue:288", "getRecList then rs", recList, rs);
setList(rs, recList);
});
}
@@ -13883,14 +13897,14 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
item.readSecond = 0;
return item;
}));
- formatAppLog("log", "at pages/index/index.nvue:296", "result", obj.data, rs);
+ formatAppLog("log", "at pages/index/index.nvue:313", "result", obj.data, rs);
setTimeout(() => {
const pages = getCurrentPages();
- if (pages[pages.length - 1].route == "pages/index/index") {
- proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value = true;
- proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].play();
+ if (pages[pages.length - 1].route != "pages/index/index") {
+ proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value = false;
+ proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].pause();
}
- }, 50);
+ }, 500);
return;
}
util$1.alert({
@@ -13898,18 +13912,63 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
showCancel: false
});
}
+ function browseLog(element) {
+ util$1.isLogin().then((rs) => {
+ const data = {
+ // 视频id
+ videoId: element.item.id,
+ // 有效读秒时间统计
+ viewingDuration: Math.floor(element.item.readSecond),
+ // 视频秒数
+ videoDescription: Math.floor(element.videoTime.currentTime),
+ //
+ task: 0
+ };
+ formatAppLog("log", "at pages/index/index.nvue:353", "browseLog data", data);
+ api.video.browseLog({
+ data
+ }).then((rs2) => {
+ if (rs2.code == 200) {
+ const result = rs2.data;
+ const taskValue = task.value;
+ formatAppLog("log", "at pages/index/index.nvue:363", "browseLog result", rs2, taskValue);
+ if (taskValue.taskType == 0 && result.taskType == 1) {
+ formatAppLog("log", "at pages/index/index.nvue:368", "\u4F18\u5148\u4EFB\u52A1\u5B8C\u6210 \u64AD\u653E\u70DF\u82B1\u52A8\u753B");
+ handleCompleteMode("complete1");
+ } else if (result.taskType == 1 && result.viewingDuration < taskValue.viewingDuration) {
+ formatAppLog("log", "at pages/index/index.nvue:374", "\u6709\u6548\u8BFB\u79D2\u5B8C\u6210 \u64AD\u653E\u4EFB\u52A1\u5B8C\u6210\u52A8\u753B");
+ handleCompleteMode("complete2");
+ }
+ uni.$store.commit("setState", {
+ key: "task",
+ value: result
+ });
+ return;
+ } else {
+ formatAppLog("log", "at pages/index/index.nvue:385", "browseLog err", rs2);
+ }
+ });
+ });
+ }
+ function handleCompleteMode(mode) {
+ completeKey.value = mode;
+ setTimeout(() => {
+ completeKey.value = "";
+ }, completeConfig[mode].time * 1e3);
+ }
function readSecondAdd() {
clearInterval(readSecond.timer);
const item = tab[tabIndex.value].listData()[current[tabIndex.value]];
readSecond.timer = setInterval(() => {
- if (item.readSecond <= Math.min(Math.floor(item.videoDuration) - 2, 20)) {
+ if (item.readSecond < Math.min(Math.floor(item.videoDuration) - 2, 20)) {
item.readSecond++;
} else {
- clearInterval(readSecond.timer);
+ readSecondPause();
}
}, 1e3);
}
function readSecondPause() {
+ proxy.$refs.discRef.pause();
clearInterval(readSecond.timer);
}
function scrollTo(target) {
@@ -13994,45 +14053,6 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
if (proxy.$refs.discRef)
proxy.$refs.discRef.pause();
}
- function browseLog(element) {
- util$1.isLogin().then((rs) => {
- const data = {
- // 视频id
- videoId: element.item.id,
- // 有效读秒时间统计
- viewingDuration: Math.floor(element.item.readSecond),
- // 视频秒数
- videoDescription: Math.floor(element.videoTime.currentTime),
- //
- task: 0
- };
- formatAppLog("log", "at pages/index/index.nvue:506", "browseLog data", data);
- api.video.browseLog({
- data
- }).then((rs2) => {
- if (rs2.code == 200) {
- const result = rs2.data;
- const taskValue = task.value;
- formatAppLog("log", "at pages/index/index.nvue:516", "browseLog result", rs2, taskValue);
- if (taskValue.taskType == 0 && result.taskType == 1) {
- formatAppLog("log", "at pages/index/index.nvue:521", "\u4F18\u5148\u4EFB\u52A1\u5B8C\u6210 \u64AD\u653E\u70DF\u82B1\u52A8\u753B");
- }
- if (result.taskType == 1 && result.viewingDuration < taskValue.viewingDuration) {
- formatAppLog("log", "at pages/index/index.nvue:525", "\u6709\u6548\u8BFB\u79D2\u5B8C\u6210 \u64AD\u653E\u4EFB\u52A1\u5B8C\u6210\u52A8\u753B");
- }
- uni.$store.commit("setState", {
- key: "task",
- value: result
- });
- return;
- } else {
- formatAppLog("log", "at pages/index/index.nvue:535", "browseLog err", rs2);
- }
- }).catch((rs2) => {
- formatAppLog("log", "at pages/index/index.nvue:538", "browseLog err fail", rs2);
- });
- });
- }
function videoLike(param) {
const {
index: index2,
@@ -14088,7 +14108,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
function showAlarm() {
proxy.$refs.timeRef.open();
}
- const __returned__ = { proxy, dom: dom22, oclockWindow, readSecond, tab, tabIndex, startY, currentLast, current, recList, attList, viewSize, discOffsetTop, footerMenuHeight, task, userinfo, tabCurrent, currentVideoRef, refreshAttList, getMoreAttList, getAttList, refreshRecList, getMoreRecList, getRecList, setList, readSecondAdd, readSecondPause, scrollTo, onTouchstart, onTouchend, handle_tab, handleShowTime, handleShowCommentAlt, handleShowCollectAlt, handleShowShareFirend, handleVideoOnPlay, handleVideoOnPause, browseLog, videoLike, setAlarm, showLeftMenu, handleSpeed, showAlarm, ref: import_vue3.ref, reactive: import_vue3.reactive, getCurrentInstance: import_vue3.getCurrentInstance, computed: import_vue3.computed, nextTick: import_vue3.nextTick, get onLoad() {
+ const __returned__ = { proxy, dom: dom22, oclockWindow, readSecond, tab, tabIndex, startY, currentLast, current, recList, attList, viewSize, discOffsetTop, complete2Top, completeConfig, completeKey, footerMenuHeight, task, userinfo, tabCurrent, currentVideoRef, refreshAttList, getMoreAttList, getAttList, refreshRecList, getMoreRecList, getRecList, setList, browseLog, handleCompleteMode, readSecondAdd, readSecondPause, scrollTo, onTouchstart, onTouchend, handle_tab, handleShowTime, handleShowCommentAlt, handleShowCollectAlt, handleShowShareFirend, handleVideoOnPlay, handleVideoOnPause, videoLike, setAlarm, showLeftMenu, handleSpeed, showAlarm, ref: import_vue3.ref, reactive: import_vue3.reactive, getCurrentInstance: import_vue3.getCurrentInstance, computed: import_vue3.computed, nextTick: import_vue3.nextTick, get onLoad() {
return onLoad;
}, get onReady() {
return onReady;
@@ -14174,11 +14194,36 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
})
])
]),
+ (0, import_vue3.createCommentVNode)(" \u4F18\u5148\u4EFB\u52A1\u7ED3\u7B97 "),
+ $setup.completeKey == "complete1" ? ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)("u-image", {
+ key: 0,
+ class: "complete1",
+ src: _imports_22,
+ mode: "aspectFit"
+ })) : (0, import_vue3.createCommentVNode)("v-if", true),
+ (0, import_vue3.createCommentVNode)(" \u6709\u6548\u8BFB\u79D2\u7ED3\u7B97 "),
+ $setup.completeKey == "complete2" ? ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)(
+ "view",
+ {
+ key: 1,
+ class: "complete2",
+ style: (0, import_vue3.normalizeStyle)({ top: $setup.complete2Top + "px" })
+ },
+ [
+ (0, import_vue3.createElementVNode)("u-image", {
+ class: "image",
+ src: _imports_32,
+ mode: "aspectFit"
+ })
+ ],
+ 4
+ /* STYLE */
+ )) : (0, import_vue3.createCommentVNode)("v-if", true),
(0, import_vue3.createCommentVNode)(" \u6709\u6548\u8BFB\u79D2\u5531\u7247 "),
$setup.userinfo.id ? ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)(
"view",
{
- key: 0,
+ key: 2,
class: "disc pf r0",
style: (0, import_vue3.normalizeStyle)({ top: $setup.discOffsetTop + "px" })
},
@@ -14206,14 +14251,14 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
"view",
{
key: 0,
- class: "f1",
+ class: "container f1",
ref_for: true,
ref: "containerRef"
},
[
(0, import_vue3.createCommentVNode)(" \u4E3B\u8981\u5185\u5BB9\u533A\u57DF "),
(0, import_vue3.createElementVNode)("list", {
- class: "container f1",
+ class: "listBox f1",
showScrollbar: false,
onTouchstart: ($event) => $setup.onTouchstart($event, index2),
onTouchend: ($event) => $setup.onTouchend($event, index2),
@@ -14279,7 +14324,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
$setup.oclockWindow ? ((0, import_vue3.openBlock)(), (0, import_vue3.createElementBlock)(
"view",
{
- key: 1,
+ key: 3,
class: "oclockHint pa pfull fmid",
onTouchstart: _cache[1] || (_cache[1] = (0, import_vue3.withModifiers)(() => {
}, ["stop"])),
@@ -14288,7 +14333,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
[
(0, import_vue3.createElementVNode)("u-image", {
class: "image",
- src: _imports_22,
+ src: _imports_42,
mode: "widthFix"
})
],
|