合并代码
This commit is contained in:
parent
91a9b5b626
commit
7a72bb3349
|
@ -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
|
|
@ -30,6 +30,8 @@ const api = {
|
|||
team,
|
||||
// 积分
|
||||
intergral,
|
||||
// 榴莲果
|
||||
durian,
|
||||
// 商城模块
|
||||
shop,
|
||||
// 上传图片地址
|
||||
|
|
|
@ -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
|
|
@ -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(() => {})
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
<template>
|
||||
<view class="task pr mtb30 ptb20 plr40 f28 bFFFBF3 br20">
|
||||
<view class="title c333 f36" v-if="task === 0">任务读秒</view>
|
||||
<view class="title c333 f36" v-if="task.taskType === 0">任务读秒</view>
|
||||
<view class="title c333 f36" v-else>有效读秒</view>
|
||||
<view>{{task.viewingDuration}}</view>
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
|||
<view class="progress bar" :style="{width: progress + '%'}"></view>
|
||||
</view>
|
||||
|
||||
<view class="label pa t0 r0 ptb5 plr20 cfff" v-if="task === 0">优先</view>
|
||||
<view class="label pa t0 r0 ptb5 plr20 cfff" v-if="task.taskType === 0">优先</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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(() => {
|
||||
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 @@
|
|||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 优先任务结算 -->
|
||||
<template v-if="completeKey == 'complete1'">
|
||||
<image class="complete1" src="/static/complete1.gif" mode="aspectFit" />
|
||||
</template>
|
||||
|
||||
<!-- 有效读秒结算 -->
|
||||
<view class="complete2" :style="{top: complete2Top + 'px'}" v-if="completeKey == 'complete2'">
|
||||
<image class="image" src="/static/complete2.gif" mode="aspectFit" />
|
||||
</view>
|
||||
|
||||
<!-- 有效读秒唱片 -->
|
||||
<view class="disc pf r0" :style="{top: discOffsetTop+'px'}" v-if="userinfo.id">
|
||||
<disc ref="discRef" />
|
||||
</view>
|
||||
|
||||
<template v-for="(item, index) in tab" :key="index">
|
||||
<view class="f1" v-if="tabIndex == index" ref="containerRef">
|
||||
<view class="container f1" v-if="tabIndex == index" ref="containerRef">
|
||||
<!-- 主要内容区域 -->
|
||||
<list class="container f1" :show-scrollbar="false" @touchstart="onTouchstart($event,index)"
|
||||
<list class="listBox f1" :show-scrollbar="false" @touchstart="onTouchstart($event,index)"
|
||||
@touchend="onTouchend($event,index)" @loadmore="item.getMoreList">
|
||||
<cell class="cell" :style="[{height: viewSize.height + 'px'}]" :ref="`cellRef` + index"
|
||||
v-for="(secItem,secIndex) in item.listData()" :key="secIndex" @click.stop>
|
||||
|
@ -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;
|
||||
|
|
|
@ -355,3 +355,16 @@ call_type 通话类型 2为视频,1是音频
|
|||
释放
|
||||
|
||||
选择视频截帧
|
||||
|
||||
榴莲果交易类型id
|
||||
1 兑换榴莲果树
|
||||
2 商城评论
|
||||
3 查看他人评论
|
||||
4 查看视频分析
|
||||
5 兑换视频展播量
|
||||
6 推广他人视频
|
||||
7 申请完播量
|
||||
8 挂卖榴莲果
|
||||
9 挂买榴莲果
|
||||
10 用户互转
|
||||
|
||||
|
|
|
@ -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(() => {
|
||||
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"
|
||||
})
|
||||
],
|
||||
|
|
|
@ -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,11 +74876,6 @@ ${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();
|
||||
|
@ -75170,9 +75165,7 @@ ${i3}
|
|||
}, O2.en = D2[g2], O2.Ls = D2, O2.p = {}, O2;
|
||||
});
|
||||
})(dayjs_min);
|
||||
return dayjs_min.exports;
|
||||
}
|
||||
var dayjs_minExports = requireDayjs_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 };
|
||||
|
|
|
@ -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(() => {
|
||||
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"
|
||||
})
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue