合并代码
This commit is contained in:
parent
e5307207ec
commit
bcc6d23092
|
@ -12,6 +12,8 @@ import news from '@/api/news.js'
|
||||||
import team from '@/api/team.js'
|
import team from '@/api/team.js'
|
||||||
// 消息
|
// 消息
|
||||||
import intergral from '@/api/intergral.js'
|
import intergral from '@/api/intergral.js'
|
||||||
|
// 榴莲区
|
||||||
|
import durian from '@/api/durian.js'
|
||||||
// 商城
|
// 商城
|
||||||
import shop from '@/api/shop.js'
|
import shop from '@/api/shop.js'
|
||||||
|
|
||||||
|
|
|
@ -83,8 +83,8 @@ const intergral = {
|
||||||
*/
|
*/
|
||||||
viewingTasks(param) {
|
viewingTasks(param) {
|
||||||
return util.request({
|
return util.request({
|
||||||
url: `/home/viewingTasks`,
|
url: `/video/Effective/return`,
|
||||||
method: 'post',
|
method: 'GET',
|
||||||
query: param.query,
|
query: param.query,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -96,7 +96,7 @@ const intergral = {
|
||||||
buyScroll(param) {
|
buyScroll(param) {
|
||||||
return util.request({
|
return util.request({
|
||||||
url: `/coreplay/app/scrollinfo/buyScroll`,
|
url: `/coreplay/app/scrollinfo/buyScroll`,
|
||||||
method: 'post',
|
method: 'G',
|
||||||
data: param.data,
|
data: param.data,
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -284,8 +284,8 @@ const video = {
|
||||||
*/
|
*/
|
||||||
browseLog(param) {
|
browseLog(param) {
|
||||||
return util.request({
|
return util.request({
|
||||||
url: `/home/browseLog`,
|
url: `/video/Effective/second`,
|
||||||
query: param.query,
|
data: param.data,
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,8 @@ const config = {
|
||||||
host: 'http://localhost:5173',
|
host: 'http://localhost:5173',
|
||||||
// #endif
|
// #endif
|
||||||
// #ifndef H5
|
// #ifndef H5
|
||||||
host: 'http://192.168.1.236:8080',
|
host: 'http://192.168.1.235:8080',
|
||||||
|
// host: 'http://192.168.1.236:8080',
|
||||||
// #endif
|
// #endif
|
||||||
// 上传文件二级路径
|
// 上传文件二级路径
|
||||||
uploadFilePath: "/homecommon/file/preview?fileName=",
|
uploadFilePath: "/homecommon/file/preview?fileName=",
|
||||||
|
|
|
@ -74,8 +74,6 @@
|
||||||
|
|
||||||
switch (mode.value) {
|
switch (mode.value) {
|
||||||
case 'default':
|
case 'default':
|
||||||
// 发布视频
|
|
||||||
// arr[2].pagePath = 'pages/release/video'
|
|
||||||
arr.push({
|
arr.push({
|
||||||
page: 'homepage',
|
page: 'homepage',
|
||||||
type: 'option',
|
type: 'option',
|
||||||
|
@ -85,7 +83,6 @@
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
case 'shop':
|
case 'shop':
|
||||||
// arr[2].pagePath = 'pages/merchant/commodity-release/index'
|
|
||||||
arr.push({
|
arr.push({
|
||||||
page: 'mine',
|
page: 'mine',
|
||||||
type: 'option',
|
type: 'option',
|
||||||
|
|
|
@ -141,21 +141,25 @@
|
||||||
|
|
||||||
// 手指离开视频容器
|
// 手指离开视频容器
|
||||||
function onTouchEnd() {
|
function onTouchEnd() {
|
||||||
// 取消视频倍速播放的状态
|
|
||||||
if (isLong.value) {
|
|
||||||
isLong.value = false
|
|
||||||
videoCtx.value.playbackRate(1)
|
|
||||||
}
|
|
||||||
|
|
||||||
// 如果不是重复点击的状态
|
// 如果不是重复点击的状态
|
||||||
if (!isTap.value) {
|
if (isTap.value) {
|
||||||
isTap.value = false
|
isTap.value = false
|
||||||
|
|
||||||
let time = new Date().getTime()
|
let time = new Date().getTime()
|
||||||
let diff = time - tapList[tapList.length - 1]
|
let diff = time - tapList[tapList.length - 1]
|
||||||
|
|
||||||
// 判断长按
|
// 判断长按
|
||||||
if (diff > 350) return
|
if (diff > 350) {
|
||||||
|
// 取消视频倍速播放的状态
|
||||||
|
if (isLong.value) {
|
||||||
|
isLong.value = false
|
||||||
|
videoCtx.value.playbackRate(1)
|
||||||
|
}
|
||||||
|
// 清空计数
|
||||||
|
tapList.length = 0
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
tapTimer.value = setTimeout(() => {
|
tapTimer.value = setTimeout(() => {
|
||||||
// 是否点赞
|
// 是否点赞
|
||||||
|
@ -165,11 +169,12 @@
|
||||||
tapList.length = 0
|
tapList.length = 0
|
||||||
|
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case 0:
|
case 1:
|
||||||
changeVideoPlay()
|
changeVideoPlay()
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
console.log('公开赞')
|
console.log('公开赞')
|
||||||
|
return
|
||||||
emit('like', {
|
emit('like', {
|
||||||
index: props.index,
|
index: props.index,
|
||||||
isLike: isLike == 0 ? 0 : 1
|
isLike: isLike == 0 ? 0 : 1
|
||||||
|
@ -177,6 +182,7 @@
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
console.log('隐私赞')
|
console.log('隐私赞')
|
||||||
|
return
|
||||||
emit('like', {
|
emit('like', {
|
||||||
index: props.index,
|
index: props.index,
|
||||||
isLike: isLike == 0 ? 3 : 1
|
isLike: isLike == 0 ? 3 : 1
|
||||||
|
@ -187,6 +193,13 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 手指中断视频容器
|
||||||
|
function onTouchCancel() {
|
||||||
|
isTap.value = false
|
||||||
|
tapList.length = 0
|
||||||
|
clearTimeout(tapTimer.value)
|
||||||
|
}
|
||||||
|
|
||||||
// 切换视频播放
|
// 切换视频播放
|
||||||
function changeVideoPlay() {
|
function changeVideoPlay() {
|
||||||
// 根据播放状态切换播放暂停
|
// 根据播放状态切换播放暂停
|
||||||
|
@ -427,6 +440,7 @@
|
||||||
// 长按
|
// 长按
|
||||||
function longtap(ev) {
|
function longtap(ev) {
|
||||||
if (isLong.value) return
|
if (isLong.value) return
|
||||||
|
play()
|
||||||
isLong.value = true
|
isLong.value = true
|
||||||
videoCtx.value.playbackRate(2)
|
videoCtx.value.playbackRate(2)
|
||||||
}
|
}
|
||||||
|
@ -447,7 +461,7 @@
|
||||||
<!-- 视频层 -->
|
<!-- 视频层 -->
|
||||||
<view class="main f1">
|
<view class="main f1">
|
||||||
<view class="videoBox f1" @touchmove.stop="" @touchstart="onTouchStart" @touchend="onTouchEnd"
|
<view class="videoBox f1" @touchmove.stop="" @touchstart="onTouchStart" @touchend="onTouchEnd"
|
||||||
@touchcancel="onTouchEnd" @longpress="longtap">
|
@touchcancel="onTouchCancel" @longpress="longtap">
|
||||||
<statusBar />
|
<statusBar />
|
||||||
|
|
||||||
<video class="video f1" :id="'video' + tabIndex + index" :src="item.videoUrl" :poster="item.coverUrl"
|
<video class="video f1" :id="'video' + tabIndex + index" :src="item.videoUrl" :poster="item.coverUrl"
|
||||||
|
@ -463,6 +477,13 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- 倍速播放提示 -->
|
||||||
|
<view class="speedBox" v-if="isLong">
|
||||||
|
<view class="speed ptb5 plr10">
|
||||||
|
<text class="f22 cfff">2倍速播放中...</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 暂停蒙版 -->
|
<!-- 暂停蒙版 -->
|
||||||
<view class="pausePanel pfull fmid" v-if="!playState">
|
<view class="pausePanel pfull fmid" v-if="!playState">
|
||||||
<!-- 暂停按钮 -->
|
<!-- 暂停按钮 -->
|
||||||
|
@ -480,7 +501,7 @@
|
||||||
<!-- 用户头像 -->
|
<!-- 用户头像 -->
|
||||||
<navigator :url="util.setUrl('/pages/index/videoHome',{userId:item.userId})" class="item pr mb10">
|
<navigator :url="util.setUrl('/pages/index/videoHome',{userId:item.userId})" class="item pr mb10">
|
||||||
<view class="col">
|
<view class="col">
|
||||||
<image class="wh80 cir" :src="item.format_header" mode="aspectFill" />
|
<image class="wh80 cir" :src="item.avatar" mode="aspectFill" />
|
||||||
<view class="focus pa" v-if="!item.isAttention">
|
<view class="focus pa" v-if="!item.isAttention">
|
||||||
<image class="wh40" src="@/static/indexAtt.png" mode="aspectFit" />
|
<image class="wh40" src="@/static/indexAtt.png" mode="aspectFit" />
|
||||||
</view>
|
</view>
|
||||||
|
@ -576,7 +597,7 @@
|
||||||
|
|
||||||
<!-- 用户 -->
|
<!-- 用户 -->
|
||||||
<view class="user" @click="handleUser(item)">
|
<view class="user" @click="handleUser(item)">
|
||||||
<text class="cfff f36">@{{ item.userName }}</text>
|
<text class="cfff f36">@{{ item.userNickname }}</text>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 简介 -->
|
<!-- 简介 -->
|
||||||
|
@ -608,6 +629,22 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 倍速播放
|
||||||
|
.speedBox {
|
||||||
|
position: absolute;
|
||||||
|
top: 200rpx;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
// 倍速
|
||||||
|
.speed {
|
||||||
|
background-color: rgba(0, 0, 0, .8);
|
||||||
|
border-radius: 5rpx;
|
||||||
|
opacity: .6;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 暂停蒙层
|
// 暂停蒙层
|
||||||
.pausePanel {
|
.pausePanel {
|
||||||
background-color: rgba(0, 0, 0, .5);
|
background-color: rgba(0, 0, 0, .5);
|
||||||
|
|
|
@ -12,23 +12,17 @@
|
||||||
import {
|
import {
|
||||||
useStore,
|
useStore,
|
||||||
} from 'vuex'
|
} from 'vuex'
|
||||||
import intergralApi from '@/api/intergral.js';
|
//
|
||||||
// vuex
|
import api from '@/api/index.js'
|
||||||
const store = useStore()
|
const store = useStore()
|
||||||
//读秒记录
|
//读秒记录
|
||||||
const viewData = ref({
|
const viewData = ref({
|
||||||
// 有效读秒任务
|
// 有效读秒任务
|
||||||
seconds: 0,
|
seconds: 0,
|
||||||
// 卷轴任务
|
|
||||||
scrollFlag: false,
|
|
||||||
// 榴莲果树任务
|
|
||||||
treeFlag: false,
|
|
||||||
})
|
})
|
||||||
// 类型
|
// 当前任务
|
||||||
const type = computed(() => {
|
const task = computed(() => {
|
||||||
let result = viewData.value.scrollFlag || viewData.value.treeFlag
|
return store.state.task
|
||||||
if (result && Number(viewData.value.seconds) > 300) result = false
|
|
||||||
return result
|
|
||||||
})
|
})
|
||||||
// 进度条
|
// 进度条
|
||||||
const progress = computed(() => {
|
const progress = computed(() => {
|
||||||
|
@ -45,8 +39,8 @@
|
||||||
|
|
||||||
// 今日任务读秒记录
|
// 今日任务读秒记录
|
||||||
function getTasks() {
|
function getTasks() {
|
||||||
intergralApi.viewingTasks({}).then(rs => {
|
api.intergral.viewingTasks({}).then(rs => {
|
||||||
if (rs.code == 200 && rs.data) {
|
if (rs.code == 200) {
|
||||||
viewData.value = rs.data
|
viewData.value = rs.data
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -56,14 +50,14 @@
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="task pr mtb30 ptb20 plr40 f28 bFFFBF3 br20">
|
<view class="task pr mtb30 ptb20 plr40 f28 bFFFBF3 br20">
|
||||||
<view class="title c333 f36" v-if="type">任务读秒</view>
|
<view class="title c333 f36" v-if="task === 0">任务读秒</view>
|
||||||
<view class="title c333 f36" v-else>有效读秒</view>
|
<view class="title c333 f36" v-else>有效读秒</view>
|
||||||
|
|
||||||
<view class="progressBox oh bar mt60">
|
<view class="progressBox oh bar mt60">
|
||||||
<view class="progress bar" :style="{width: progress + '%'}"></view>
|
<view class="progress bar" :style="{width: progress + '%'}"></view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="label pa t0 r0 ptb5 plr20 cfff" v-if="type">优先</view>
|
<view class="label pa t0 r0 ptb5 plr20 cfff" v-if="task === 0">优先</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -70,15 +70,6 @@
|
||||||
util.getPurse()
|
util.getPurse()
|
||||||
})
|
})
|
||||||
|
|
||||||
// 今日任务读秒记录
|
|
||||||
function viewingTasks() {
|
|
||||||
intergralApi.viewingTasks({}).then(rs => {
|
|
||||||
if (rs.code == 200 && rs.data) {
|
|
||||||
viewData.value = rs.data
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// 榴莲果交易
|
// 榴莲果交易
|
||||||
function transfer() {
|
function transfer() {
|
||||||
durianlApi.transfer({
|
durianlApi.transfer({
|
||||||
|
|
|
@ -205,11 +205,12 @@
|
||||||
// console.log('footerMenuRef', option)
|
// console.log('footerMenuRef', option)
|
||||||
// // footerMenuHeight.value = option.size.height
|
// // footerMenuHeight.value = option.size.height
|
||||||
// })
|
// })
|
||||||
|
nextTick(() => {
|
||||||
// 获取视频容器节点信息
|
// 获取视频容器节点信息
|
||||||
dom.getComponentRect(proxy.$refs.containerRef[0], (option) => {
|
dom.getComponentRect(proxy.$refs.containerRef[0], (option) => {
|
||||||
viewSize.height = option.size.height
|
viewSize.height = option.size.height
|
||||||
viewSize.width = option.size.width
|
viewSize.width = option.size.width
|
||||||
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -320,6 +321,7 @@
|
||||||
|
|
||||||
// 获取更多推荐视频
|
// 获取更多推荐视频
|
||||||
function getMoreRecList() {
|
function getMoreRecList() {
|
||||||
|
console.log('recList', recList)
|
||||||
if (recList.total <= recList.data.length) return
|
if (recList.total <= recList.data.length) return
|
||||||
recList.pageNum++
|
recList.pageNum++
|
||||||
getRecList()
|
getRecList()
|
||||||
|
@ -334,6 +336,7 @@
|
||||||
pageSize: recList.pageSize,
|
pageSize: recList.pageSize,
|
||||||
}
|
}
|
||||||
}).then(rs => {
|
}).then(rs => {
|
||||||
|
console.log('getRecList then rs', recList, rs)
|
||||||
if (rs.code == 200) {
|
if (rs.code == 200) {
|
||||||
// 总数
|
// 总数
|
||||||
recList.total = rs.total
|
recList.total = rs.total
|
||||||
|
@ -526,21 +529,40 @@
|
||||||
// 视频暂停
|
// 视频暂停
|
||||||
function handleVideoOnPause() {
|
function handleVideoOnPause() {
|
||||||
if (proxy.$refs.discRef) proxy.$refs.discRef.pause()
|
if (proxy.$refs.discRef) proxy.$refs.discRef.pause()
|
||||||
readSecondPause()
|
// readSecondPause()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 观看视频记录
|
/**
|
||||||
|
* 观看视频记录
|
||||||
|
* @param {Object} element 记录的视频元素对象
|
||||||
|
*/
|
||||||
function browseLog(element) {
|
function browseLog(element) {
|
||||||
return
|
|
||||||
util.isLogin().then(rs => {
|
util.isLogin().then(rs => {
|
||||||
if (readSecond.count == 0) return
|
// if (readSecond.count == 0) return
|
||||||
|
console.log('data', {
|
||||||
|
// 视频id
|
||||||
|
videoId: element.item.id,
|
||||||
|
// 有效读秒时间统计
|
||||||
|
viewingDuration: Math.floor(readSecond.count),
|
||||||
|
// 视频秒数
|
||||||
|
videoDescription: Math.floor(element.videoTime.currentTime),
|
||||||
|
//
|
||||||
|
task: 0,
|
||||||
|
})
|
||||||
//
|
//
|
||||||
api.video.browseLog({
|
api.video.browseLog({
|
||||||
query: {
|
data: {
|
||||||
videoId: element.item.videoId,
|
// 视频id
|
||||||
seconds: readSecond.count,
|
videoId: element.item.id,
|
||||||
|
// 有效读秒时间统计
|
||||||
|
viewingDuration: Math.floor(readSecond.count),
|
||||||
|
// 视频秒数
|
||||||
|
videoDescription: Math.floor(element.videoTime.currentTime),
|
||||||
|
//
|
||||||
|
task: 0,
|
||||||
}
|
}
|
||||||
}).then(rs => {
|
}).then(rs => {
|
||||||
|
console.log('browseLog', rs)
|
||||||
if (rs.code != 200) {
|
if (rs.code != 200) {
|
||||||
console.log('browseLog err', rs)
|
console.log('browseLog err', rs)
|
||||||
}
|
}
|
||||||
|
|
|
@ -373,6 +373,12 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script lang="renderjs" module="video">
|
||||||
|
export default {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<view class="appbw">
|
<view class="appbw">
|
||||||
<view class="form mtb30 mlr30 c666 f32">
|
<view class="form mtb30 mlr30 c666 f32">
|
||||||
|
|
|
@ -353,3 +353,5 @@ call_type 通话类型 2为视频,1是音频
|
||||||
释放榴莲果
|
释放榴莲果
|
||||||
钱包
|
钱包
|
||||||
释放
|
释放
|
||||||
|
|
||||||
|
选择视频截帧
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 552 KiB |
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
Binary file not shown.
Before Width: | Height: | Size: 47 KiB |
|
@ -17,6 +17,13 @@ export default createStore({
|
||||||
score: 0,
|
score: 0,
|
||||||
seed: 0,
|
seed: 0,
|
||||||
},
|
},
|
||||||
|
// 任务
|
||||||
|
task: {
|
||||||
|
//任务类型 0.任务读秒 1.流量点(种子)读秒
|
||||||
|
taskType: 0,
|
||||||
|
//有效时长
|
||||||
|
viewingDuration: 0,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mutations: {
|
mutations: {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { r as requireNativePlugin, a as resolveEasycom, f as formatAppLog, o as onLoad, b as onReady, c as onShow, d as onHide, e as onUnload } from "../../uni-app.es.js";
|
import { r as requireNativePlugin, a as resolveEasycom, f as formatAppLog, o as onLoad, b as onReady, c as onShow, d as onHide, e as onUnload } from "../../uni-app.es.js";
|
||||||
import { openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot, createCommentVNode, getCurrentInstance, computed, ref, onMounted, onUnmounted, resolveDynamicComponent, Fragment, renderList, toDisplayString, createVNode, withCtx, createBlock, reactive, watch, resolveComponent, withModifiers, nextTick } from "vue";
|
import { openBlock, createElementBlock, normalizeStyle, createElementVNode, normalizeClass, renderSlot, createCommentVNode, getCurrentInstance, computed, ref, onMounted, onUnmounted, resolveDynamicComponent, Fragment, renderList, toDisplayString, createVNode, withCtx, createBlock, reactive, watch, resolveComponent, nextTick, withModifiers } from "vue";
|
||||||
import { _ as _export_sfc } from "../../_plugin-vue_export-helper.js";
|
import { _ as _export_sfc } from "../../_plugin-vue_export-helper.js";
|
||||||
import { _ as __easycom_0$2, a as __easycom_1$1, u as util, b as api, v as video, s as statusBar, c as __easycom_1$2, d as collectAdd, i as indexVideo, e as commentAlt, f as collectAlt, g as shareFirendAlt } from "../../shareFirend.js";
|
import { _ as __easycom_0$2, a as __easycom_1$1, u as util, b as api, v as video, s as statusBar, c as __easycom_1$2, d as collectAdd, i as indexVideo, e as commentAlt, f as collectAlt, g as shareFirendAlt } from "../../shareFirend.js";
|
||||||
const _style_0$9 = { "uni-grid-item__box": { "": { "position": "relative", "flex": 1, "flexDirection": "column" } }, "uni-grid-item--border": { "": { "position": "relative", "borderBottomColor": "#D2D2D2", "borderBottomStyle": "solid", "borderBottomWidth": 0.5, "borderRightColor": "#D2D2D2", "borderRightStyle": "solid", "borderRightWidth": 0.5 } }, "uni-grid-item--border-top": { "": { "position": "relative", "borderTopColor": "#D2D2D2", "borderTopStyle": "solid", "borderTopWidth": 0.5 } }, "uni-highlight": { "": { "backgroundColor:active": "#f1f1f1" } } };
|
const _style_0$9 = { "uni-grid-item__box": { "": { "position": "relative", "flex": 1, "flexDirection": "column" } }, "uni-grid-item--border": { "": { "position": "relative", "borderBottomColor": "#D2D2D2", "borderBottomStyle": "solid", "borderBottomWidth": 0.5, "borderRightColor": "#D2D2D2", "borderRightStyle": "solid", "borderRightWidth": 0.5 } }, "uni-grid-item--border-top": { "": { "position": "relative", "borderTopColor": "#D2D2D2", "borderTopStyle": "solid", "borderTopWidth": 0.5 } }, "uni-highlight": { "": { "backgroundColor:active": "#f1f1f1" } } };
|
||||||
|
@ -7130,9 +7130,11 @@ const _sfc_main = {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
dom2.getComponentRect(proxy.$refs.containerRef[0], (option) => {
|
nextTick(() => {
|
||||||
viewSize.height = option.size.height;
|
dom2.getComponentRect(proxy.$refs.containerRef[0], (option) => {
|
||||||
viewSize.width = option.size.width;
|
viewSize.height = option.size.height;
|
||||||
|
viewSize.width = option.size.width;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
@ -7217,6 +7219,7 @@ const _sfc_main = {
|
||||||
getRecList();
|
getRecList();
|
||||||
}
|
}
|
||||||
function getMoreRecList() {
|
function getMoreRecList() {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:324", "recList", recList);
|
||||||
if (recList.total <= recList.data.length)
|
if (recList.total <= recList.data.length)
|
||||||
return;
|
return;
|
||||||
recList.pageNum++;
|
recList.pageNum++;
|
||||||
|
@ -7229,6 +7232,7 @@ const _sfc_main = {
|
||||||
pageSize: recList.pageSize
|
pageSize: recList.pageSize
|
||||||
}
|
}
|
||||||
}).then((rs) => {
|
}).then((rs) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:339", "getRecList then rs", recList, rs);
|
||||||
if (rs.code == 200) {
|
if (rs.code == 200) {
|
||||||
recList.total = rs.total;
|
recList.total = rs.total;
|
||||||
const list = rs.rows.sort(() => Math.random() - Math.random());
|
const list = rs.rows.sort(() => Math.random() - Math.random());
|
||||||
|
@ -7238,7 +7242,7 @@ const _sfc_main = {
|
||||||
item.speed = 1;
|
item.speed = 1;
|
||||||
return item;
|
return item;
|
||||||
}));
|
}));
|
||||||
formatAppLog("log", "at pages/index/index.nvue:349", "result", recList.data, rs);
|
formatAppLog("log", "at pages/index/index.nvue:352", "result", recList.data, rs);
|
||||||
if (recList.total > 1 && recList.data.length <= 1)
|
if (recList.total > 1 && recList.data.length <= 1)
|
||||||
getMoreRecList();
|
getMoreRecList();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -7271,6 +7275,7 @@ const _sfc_main = {
|
||||||
proxy.$refs[`videoRef${tab_index}`][current[tab_index]].play();
|
proxy.$refs[`videoRef${tab_index}`][current[tab_index]].play();
|
||||||
});
|
});
|
||||||
readSecondPause();
|
readSecondPause();
|
||||||
|
browseLog(lastVideoRef);
|
||||||
readSecond.total += readSecond.count;
|
readSecond.total += readSecond.count;
|
||||||
if (readSecond.total < readSecond.totalMax)
|
if (readSecond.total < readSecond.totalMax)
|
||||||
readSecondAdd();
|
readSecondAdd();
|
||||||
|
@ -7312,6 +7317,7 @@ const _sfc_main = {
|
||||||
const lastVideoRef = proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]];
|
const lastVideoRef = proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]];
|
||||||
lastVideoRef.pause();
|
lastVideoRef.pause();
|
||||||
readSecondPause();
|
readSecondPause();
|
||||||
|
browseLog(lastVideoRef);
|
||||||
readSecond.total += readSecond.count;
|
readSecond.total += readSecond.count;
|
||||||
if (readSecond.total < readSecond.totalMax)
|
if (readSecond.total < readSecond.totalMax)
|
||||||
readSecondAdd();
|
readSecondAdd();
|
||||||
|
@ -7345,10 +7351,37 @@ const _sfc_main = {
|
||||||
function handleVideoOnPause() {
|
function handleVideoOnPause() {
|
||||||
if (proxy.$refs.discRef)
|
if (proxy.$refs.discRef)
|
||||||
proxy.$refs.discRef.pause();
|
proxy.$refs.discRef.pause();
|
||||||
readSecondPause();
|
|
||||||
}
|
}
|
||||||
function browseLog(element) {
|
function browseLog(element) {
|
||||||
return;
|
util.isLogin().then((rs) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:542", "data", {
|
||||||
|
// 视频id
|
||||||
|
videoId: element.item.id,
|
||||||
|
// 有效读秒时间统计
|
||||||
|
viewingDuration: Math.floor(readSecond.count),
|
||||||
|
// 视频秒数
|
||||||
|
videoDescription: Math.floor(element.videoTime.currentTime),
|
||||||
|
//
|
||||||
|
task: 0
|
||||||
|
});
|
||||||
|
api.video.browseLog({
|
||||||
|
data: {
|
||||||
|
// 视频id
|
||||||
|
videoId: element.item.id,
|
||||||
|
// 有效读秒时间统计
|
||||||
|
viewingDuration: Math.floor(readSecond.count),
|
||||||
|
// 视频秒数
|
||||||
|
videoDescription: Math.floor(element.videoTime.currentTime),
|
||||||
|
//
|
||||||
|
task: 0
|
||||||
|
}
|
||||||
|
}).then((rs2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:565", "browseLog", rs2);
|
||||||
|
if (rs2.code != 200) {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:567", "browseLog err", rs2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function videoLike(param) {
|
function videoLike(param) {
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -1535,6 +1535,13 @@ const store = createStore({
|
||||||
fruit: 0,
|
fruit: 0,
|
||||||
score: 0,
|
score: 0,
|
||||||
seed: 0
|
seed: 0
|
||||||
|
},
|
||||||
|
// 任务
|
||||||
|
task: {
|
||||||
|
//任务类型 0.任务读秒 1.流量点(种子)读秒
|
||||||
|
taskType: 0,
|
||||||
|
//有效时长
|
||||||
|
viewingDuration: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
@ -1576,7 +1583,8 @@ const store = createStore({
|
||||||
});
|
});
|
||||||
const config = {
|
const config = {
|
||||||
// 接口域名
|
// 接口域名
|
||||||
host: "http://192.168.1.236:8080",
|
host: "http://192.168.1.235:8080",
|
||||||
|
// host: 'http://192.168.1.236:8080',
|
||||||
// 上传文件二级路径
|
// 上传文件二级路径
|
||||||
uploadFilePath: "/homecommon/file/preview?fileName=",
|
uploadFilePath: "/homecommon/file/preview?fileName=",
|
||||||
// 上传视频二级路径
|
// 上传视频二级路径
|
||||||
|
@ -2004,8 +2012,8 @@ const video = {
|
||||||
*/
|
*/
|
||||||
browseLog(param) {
|
browseLog(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/browseLog`,
|
url: `/video/Effective/second`,
|
||||||
query: param.query,
|
data: param.data,
|
||||||
method: "POST"
|
method: "POST"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2411,8 +2419,8 @@ const intergral = {
|
||||||
*/
|
*/
|
||||||
viewingTasks(param) {
|
viewingTasks(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/viewingTasks`,
|
url: `/video/Effective/return`,
|
||||||
method: "post",
|
method: "GET",
|
||||||
query: param.query
|
query: param.query
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2423,7 +2431,7 @@ const intergral = {
|
||||||
buyScroll(param) {
|
buyScroll(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/coreplay/app/scrollinfo/buyScroll`,
|
url: `/coreplay/app/scrollinfo/buyScroll`,
|
||||||
method: "post",
|
method: "G",
|
||||||
data: param.data
|
data: param.data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -4051,7 +4059,7 @@ const _imports_7 = "/static/indexCollect.png";
|
||||||
const _imports_8 = "/static/indexShare.png";
|
const _imports_8 = "/static/indexShare.png";
|
||||||
const _imports_9 = "/static/indexMoney1.png";
|
const _imports_9 = "/static/indexMoney1.png";
|
||||||
const _imports_10 = "/static/indexMoney.png";
|
const _imports_10 = "/static/indexMoney.png";
|
||||||
const _style_0$6 = { "container": { "": { "backgroundColor": "#000000" } }, "duration": { "": { "marginTop": "120rpx", "width": "750rpx", "backgroundColor": "rgba(255,255,255,0.3)" } }, "line": { ".duration ": { "width": 0, "height": "2rpx", "backgroundColor": "rgba(255,255,255,0.8)", "transitionDuration": 250 } }, "pausePanel": { "": { "backgroundColor": "rgba(0,0,0,0.5)" } }, "pauseImg": { ".pausePanel ": { "width": "140rpx", "height": "140rpx" } }, "panelRight": { "": { "alignItems": "flex-end" } }, "text": { ".panelRight ": { "textAlign": "center", "color": "#ffffff", "fontSize": "24rpx" } }, "operate": { ".panelRight ": { "flex": 1, "justifyContent": "flex-end", "alignItems": "flex-end", "textAlign": "center", "paddingBottom": "130rpx" } }, "item": { ".panelRight .operate ": { "marginTop": "5rpx", "marginRight": 0, "marginBottom": "5rpx", "marginLeft": 0, "paddingTop": "10rpx", "paddingRight": "5rpx", "paddingBottom": "10rpx", "paddingLeft": "5rpx" }, ".panelRight .operate .money": { "paddingTop": 0, "paddingRight": 0, "paddingBottom": 0, "paddingLeft": 0 } }, "col": { ".panelRight .operate .item ": { "alignItems": "center", "justifyContent": "center", "width": "80rpx" } }, "focus": { ".panelRight ": { "alignItems": "center", "left": 0, "right": 0, "bottom": 0 } }, "panelBottom": { "": { "paddingRight": "150rpx" } }, "goods": { ".panelBottom ": { "paddingTop": "10rpx", "paddingRight": "10rpx", "paddingBottom": "10rpx", "paddingLeft": "10rpx", "width": "480rpx", "marginBottom": "20rpx", "backgroundColor": "rgba(0,0,0,0.3)" } }, "videoProgress": { "": { "position": "absolute", "left": 0, "right": 0, "bottom": 0 } }, "@TRANSITION": { "line": { "duration": 250 } } };
|
const _style_0$6 = { "container": { "": { "backgroundColor": "#000000" } }, "duration": { "": { "marginTop": "120rpx", "width": "750rpx", "backgroundColor": "rgba(255,255,255,0.3)" } }, "line": { ".duration ": { "width": 0, "height": "2rpx", "backgroundColor": "rgba(255,255,255,0.8)", "transitionDuration": 250 } }, "speedBox": { "": { "position": "absolute", "top": "200rpx", "left": 0, "right": 0, "alignItems": "center" } }, "speed": { ".speedBox ": { "backgroundColor": "rgba(0,0,0,0.8)", "borderRadius": "5rpx", "opacity": 0.6 } }, "pausePanel": { "": { "backgroundColor": "rgba(0,0,0,0.5)" } }, "pauseImg": { ".pausePanel ": { "width": "140rpx", "height": "140rpx" } }, "panelRight": { "": { "alignItems": "flex-end" } }, "text": { ".panelRight ": { "textAlign": "center", "color": "#ffffff", "fontSize": "24rpx" } }, "operate": { ".panelRight ": { "flex": 1, "justifyContent": "flex-end", "alignItems": "flex-end", "textAlign": "center", "paddingBottom": "130rpx" } }, "item": { ".panelRight .operate ": { "marginTop": "5rpx", "marginRight": 0, "marginBottom": "5rpx", "marginLeft": 0, "paddingTop": "10rpx", "paddingRight": "5rpx", "paddingBottom": "10rpx", "paddingLeft": "5rpx" }, ".panelRight .operate .money": { "paddingTop": 0, "paddingRight": 0, "paddingBottom": 0, "paddingLeft": 0 } }, "col": { ".panelRight .operate .item ": { "alignItems": "center", "justifyContent": "center", "width": "80rpx" } }, "focus": { ".panelRight ": { "alignItems": "center", "left": 0, "right": 0, "bottom": 0 } }, "panelBottom": { "": { "paddingRight": "150rpx" } }, "goods": { ".panelBottom ": { "paddingTop": "10rpx", "paddingRight": "10rpx", "paddingBottom": "10rpx", "paddingLeft": "10rpx", "width": "480rpx", "marginBottom": "20rpx", "backgroundColor": "rgba(0,0,0,0.3)" } }, "videoProgress": { "": { "position": "absolute", "left": 0, "right": 0, "bottom": 0 } }, "@TRANSITION": { "line": { "duration": 250 } } };
|
||||||
const _sfc_main$7 = {
|
const _sfc_main$7 = {
|
||||||
__name: "indexVideo",
|
__name: "indexVideo",
|
||||||
props: {
|
props: {
|
||||||
|
@ -4159,42 +4167,41 @@ const _sfc_main$7 = {
|
||||||
clearTimeout(tapTimer.value);
|
clearTimeout(tapTimer.value);
|
||||||
}
|
}
|
||||||
function onTouchEnd() {
|
function onTouchEnd() {
|
||||||
if (isLong.value) {
|
if (isTap.value) {
|
||||||
isLong.value = false;
|
|
||||||
videoCtx.value.playbackRate(1);
|
|
||||||
}
|
|
||||||
if (!isTap.value) {
|
|
||||||
isTap.value = false;
|
isTap.value = false;
|
||||||
let time2 = (/* @__PURE__ */ new Date()).getTime();
|
let time2 = (/* @__PURE__ */ new Date()).getTime();
|
||||||
let diff = time2 - tapList[tapList.length - 1];
|
let diff = time2 - tapList[tapList.length - 1];
|
||||||
if (diff > 350)
|
if (diff > 350) {
|
||||||
|
if (isLong.value) {
|
||||||
|
isLong.value = false;
|
||||||
|
videoCtx.value.playbackRate(1);
|
||||||
|
}
|
||||||
|
tapList.length = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
tapTimer.value = setTimeout(() => {
|
tapTimer.value = setTimeout(() => {
|
||||||
const isLike = props.item.isLike;
|
props.item.isLike;
|
||||||
let a = tapList.length;
|
let a = tapList.length;
|
||||||
tapList.length = 0;
|
tapList.length = 0;
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case 0:
|
case 1:
|
||||||
changeVideoPlay();
|
changeVideoPlay();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
formatAppLog("log", "at components/index/indexVideo.vue:172", "公开赞");
|
formatAppLog("log", "at components/index/indexVideo.vue:176", "公开赞");
|
||||||
emit("like", {
|
return;
|
||||||
index: props.index,
|
|
||||||
isLike: isLike == 0 ? 0 : 1
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
case 3:
|
case 3:
|
||||||
formatAppLog("log", "at components/index/indexVideo.vue:179", "隐私赞");
|
formatAppLog("log", "at components/index/indexVideo.vue:184", "隐私赞");
|
||||||
emit("like", {
|
return;
|
||||||
index: props.index,
|
|
||||||
isLike: isLike == 0 ? 3 : 1
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function onTouchCancel() {
|
||||||
|
isTap.value = false;
|
||||||
|
tapList.length = 0;
|
||||||
|
clearTimeout(tapTimer.value);
|
||||||
|
}
|
||||||
function changeVideoPlay() {
|
function changeVideoPlay() {
|
||||||
if (playState.value)
|
if (playState.value)
|
||||||
pause();
|
pause();
|
||||||
|
@ -4369,6 +4376,7 @@ const _sfc_main$7 = {
|
||||||
function longtap(ev) {
|
function longtap(ev) {
|
||||||
if (isLong.value)
|
if (isLong.value)
|
||||||
return;
|
return;
|
||||||
|
play();
|
||||||
isLong.value = true;
|
isLong.value = true;
|
||||||
videoCtx.value.playbackRate(2);
|
videoCtx.value.playbackRate(2);
|
||||||
}
|
}
|
||||||
|
@ -4380,7 +4388,7 @@ const _sfc_main$7 = {
|
||||||
playState,
|
playState,
|
||||||
videoCtx: () => videoCtx.value
|
videoCtx: () => videoCtx.value
|
||||||
});
|
});
|
||||||
const __returned__ = { proxy, props, emit, videoCtx, playState, collectFirst, videoTime, tapList, tapTimer, isTap, isLong, collectBtnActive, alarmTime, fit, formatNumber, onTouchStart, onTouchEnd, changeVideoPlay, play, pause, onVideoPlay, onVideoPause, handleComment, handleTime, showCollect, handleCollectFirst, handleCollectStar, handleCollectEnd, getNumber, cancelCollect, handleShareFirend, handleLike, handlePrivateLike, handleDetailMenu, handleTimeupdate, onProgressEnd, handleUser, handleWaiting, longtap, onMounted, ref, reactive, getCurrentInstance, watch, computed, nextTick, statusBar, get util() {
|
const __returned__ = { proxy, props, emit, videoCtx, playState, collectFirst, videoTime, tapList, tapTimer, isTap, isLong, collectBtnActive, alarmTime, fit, formatNumber, onTouchStart, onTouchEnd, onTouchCancel, changeVideoPlay, play, pause, onVideoPlay, onVideoPause, handleComment, handleTime, showCollect, handleCollectFirst, handleCollectStar, handleCollectEnd, getNumber, cancelCollect, handleShareFirend, handleLike, handlePrivateLike, handleDetailMenu, handleTimeupdate, onProgressEnd, handleUser, handleWaiting, longtap, onMounted, ref, reactive, getCurrentInstance, watch, computed, nextTick, statusBar, get util() {
|
||||||
return util$1;
|
return util$1;
|
||||||
}, get api() {
|
}, get api() {
|
||||||
return api;
|
return api;
|
||||||
|
@ -4412,7 +4420,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
}, ["stop"])),
|
}, ["stop"])),
|
||||||
onTouchstart: $setup.onTouchStart,
|
onTouchstart: $setup.onTouchStart,
|
||||||
onTouchend: $setup.onTouchEnd,
|
onTouchend: $setup.onTouchEnd,
|
||||||
onTouchcancel: $setup.onTouchEnd,
|
onTouchcancel: $setup.onTouchCancel,
|
||||||
onLongpress: $setup.longtap
|
onLongpress: $setup.longtap
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
@ -4462,9 +4470,18 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
/* NEED_HYDRATION */
|
/* NEED_HYDRATION */
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
|
createCommentVNode(" 倍速播放提示 "),
|
||||||
|
$setup.isLong ? (openBlock(), createElementBlock("view", {
|
||||||
|
key: 0,
|
||||||
|
class: "speedBox"
|
||||||
|
}, [
|
||||||
|
createElementVNode("view", { class: "speed ptb5 plr10" }, [
|
||||||
|
createElementVNode("u-text", { class: "f22 cfff" }, "2倍速播放中...")
|
||||||
|
])
|
||||||
|
])) : createCommentVNode("v-if", true),
|
||||||
createCommentVNode(" 暂停蒙版 "),
|
createCommentVNode(" 暂停蒙版 "),
|
||||||
!$setup.playState ? (openBlock(), createElementBlock("view", {
|
!$setup.playState ? (openBlock(), createElementBlock("view", {
|
||||||
key: 0,
|
key: 1,
|
||||||
class: "pausePanel pfull fmid"
|
class: "pausePanel pfull fmid"
|
||||||
}, [
|
}, [
|
||||||
createCommentVNode(" 暂停按钮 "),
|
createCommentVNode(" 暂停按钮 "),
|
||||||
|
@ -4490,7 +4507,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
createElementVNode("view", { class: "col" }, [
|
createElementVNode("view", { class: "col" }, [
|
||||||
createElementVNode("u-image", {
|
createElementVNode("u-image", {
|
||||||
class: "wh80 cir",
|
class: "wh80 cir",
|
||||||
src: $props.item.format_header,
|
src: $props.item.avatar,
|
||||||
mode: "aspectFill"
|
mode: "aspectFill"
|
||||||
}, null, 8, ["src"]),
|
}, null, 8, ["src"]),
|
||||||
!$props.item.isAttention ? (openBlock(), createElementBlock("view", {
|
!$props.item.isAttention ? (openBlock(), createElementBlock("view", {
|
||||||
|
@ -4684,7 +4701,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
||||||
createElementVNode(
|
createElementVNode(
|
||||||
"u-text",
|
"u-text",
|
||||||
{ class: "cfff f36" },
|
{ class: "cfff f36" },
|
||||||
"@" + toDisplayString($props.item.userName),
|
"@" + toDisplayString($props.item.userNickname),
|
||||||
1
|
1
|
||||||
/* TEXT */
|
/* TEXT */
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +1,36 @@
|
||||||
var __renderjsModules={};
|
var __renderjsModules={};
|
||||||
|
|
||||||
|
__renderjsModules.ddd4bc48 = (() => {
|
||||||
|
var __defProp = Object.defineProperty;
|
||||||
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||||
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||||
|
var __export = (target, all) => {
|
||||||
|
for (var name in all)
|
||||||
|
__defProp(target, name, { get: all[name], enumerable: true });
|
||||||
|
};
|
||||||
|
var __copyProps = (to, from, except, desc) => {
|
||||||
|
if (from && typeof from === "object" || typeof from === "function") {
|
||||||
|
for (let key of __getOwnPropNames(from))
|
||||||
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||||
|
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||||
|
}
|
||||||
|
return to;
|
||||||
|
};
|
||||||
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||||
|
|
||||||
|
// <stdin>
|
||||||
|
var stdin_exports = {};
|
||||||
|
__export(stdin_exports, {
|
||||||
|
default: () => stdin_default
|
||||||
|
});
|
||||||
|
var stdin_default = {
|
||||||
|
//
|
||||||
|
};
|
||||||
|
return __toCommonJS(stdin_exports);
|
||||||
|
})();
|
||||||
|
|
||||||
|
|
||||||
__renderjsModules["5a1e922e"] = (() => {
|
__renderjsModules["5a1e922e"] = (() => {
|
||||||
var __defProp = Object.defineProperty;
|
var __defProp = Object.defineProperty;
|
||||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||||
|
|
|
@ -2179,6 +2179,13 @@ if (uni.restoreGlobal) {
|
||||||
fruit: 0,
|
fruit: 0,
|
||||||
score: 0,
|
score: 0,
|
||||||
seed: 0
|
seed: 0
|
||||||
|
},
|
||||||
|
// 任务
|
||||||
|
task: {
|
||||||
|
//任务类型 0.任务读秒 1.流量点(种子)读秒
|
||||||
|
taskType: 0,
|
||||||
|
//有效时长
|
||||||
|
viewingDuration: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
@ -2220,7 +2227,8 @@ if (uni.restoreGlobal) {
|
||||||
});
|
});
|
||||||
const config = {
|
const config = {
|
||||||
// 接口域名
|
// 接口域名
|
||||||
host: "http://192.168.1.236:8080",
|
host: "http://192.168.1.235:8080",
|
||||||
|
// host: 'http://192.168.1.236:8080',
|
||||||
// 上传文件二级路径
|
// 上传文件二级路径
|
||||||
uploadFilePath: "/homecommon/file/preview?fileName=",
|
uploadFilePath: "/homecommon/file/preview?fileName=",
|
||||||
// 上传视频二级路径
|
// 上传视频二级路径
|
||||||
|
@ -2648,8 +2656,8 @@ if (uni.restoreGlobal) {
|
||||||
*/
|
*/
|
||||||
browseLog(param) {
|
browseLog(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/browseLog`,
|
url: `/video/Effective/second`,
|
||||||
query: param.query,
|
data: param.data,
|
||||||
method: "POST"
|
method: "POST"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -3055,8 +3063,8 @@ if (uni.restoreGlobal) {
|
||||||
*/
|
*/
|
||||||
viewingTasks(param) {
|
viewingTasks(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/viewingTasks`,
|
url: `/video/Effective/return`,
|
||||||
method: "post",
|
method: "GET",
|
||||||
query: param.query
|
query: param.query
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -3067,7 +3075,7 @@ if (uni.restoreGlobal) {
|
||||||
buyScroll(param) {
|
buyScroll(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/coreplay/app/scrollinfo/buyScroll`,
|
url: `/coreplay/app/scrollinfo/buyScroll`,
|
||||||
method: "post",
|
method: "G",
|
||||||
data: param.data
|
data: param.data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -3095,6 +3103,136 @@ if (uni.restoreGlobal) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
const durian = {
|
||||||
|
/**
|
||||||
|
* 果树列表
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
durianList(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/coreplay/duriantreeinfo/tree-list`,
|
||||||
|
method: "GET",
|
||||||
|
query: param.query
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 我的榴莲果树
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
buyDurianList(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/coreplay/duriantreeinfo/boughtListByUser`,
|
||||||
|
method: "GET",
|
||||||
|
query: param.query
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 查看我的榴莲果明细
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
DurianChange(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/getMyFruitLog`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 榴莲果置换
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
exchange(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/coreplay/duriantreeinfo/exchange`,
|
||||||
|
method: "POST",
|
||||||
|
data: param.data,
|
||||||
|
load: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 交易市场
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
getOrderList(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/getOrderList`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query,
|
||||||
|
load: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 订单交易
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
orderSale(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/orderSale`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query,
|
||||||
|
load: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 榴莲果互转化
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
transfer(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/transfer`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 榴莲果挂卖
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
fruitForSale(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/fruitForSale`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query,
|
||||||
|
load: true
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 取消订单
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
cancelSale(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/cancelSale`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query,
|
||||||
|
load: 1
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 入驻商家
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
shopApply(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/home/shopApply`,
|
||||||
|
method: "post",
|
||||||
|
query: param.query,
|
||||||
|
data: param.data
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 榴莲果明细
|
||||||
|
* @param {Object} param
|
||||||
|
*/
|
||||||
|
getMyFruitLog(param) {
|
||||||
|
return util$1.request({
|
||||||
|
url: `/duriantreeinfo`,
|
||||||
|
method: "GET",
|
||||||
|
path: param.path,
|
||||||
|
query: param.query
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
const shop = {
|
const shop = {
|
||||||
/**
|
/**
|
||||||
* 商品列表
|
* 商品列表
|
||||||
|
@ -25222,7 +25360,7 @@ ${i3}
|
||||||
const mpwxs = mpMixins;
|
const mpwxs = mpMixins;
|
||||||
let bindIngXMixins = {};
|
let bindIngXMixins = {};
|
||||||
let otherMixins = {};
|
let otherMixins = {};
|
||||||
const block0$1 = (Comp) => {
|
const block0$2 = (Comp) => {
|
||||||
(Comp.$wxs || (Comp.$wxs = [])).push("wxsswipe");
|
(Comp.$wxs || (Comp.$wxs = [])).push("wxsswipe");
|
||||||
(Comp.$wxsModules || (Comp.$wxsModules = {}))["wxsswipe"] = "afd46426";
|
(Comp.$wxsModules || (Comp.$wxsModules = {}))["wxsswipe"] = "afd46426";
|
||||||
};
|
};
|
||||||
|
@ -25396,8 +25534,8 @@ ${i3}
|
||||||
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (typeof block0$1 === "function")
|
if (typeof block0$2 === "function")
|
||||||
block0$1(_sfc_main$3C);
|
block0$2(_sfc_main$3C);
|
||||||
if (typeof block1 === "function")
|
if (typeof block1 === "function")
|
||||||
block1(_sfc_main$3C);
|
block1(_sfc_main$3C);
|
||||||
const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3C, [["render", _sfc_render$3B], ["__scopeId", "data-v-8ff2a577"], ["__file", "D:/document/九亿商城/jy/jiuyi2/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue"]]);
|
const __easycom_1$1 = /* @__PURE__ */ _export_sfc(_sfc_main$3C, [["render", _sfc_render$3B], ["__scopeId", "data-v-8ff2a577"], ["__file", "D:/document/九亿商城/jy/jiuyi2/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue"]]);
|
||||||
|
@ -55431,6 +55569,10 @@ ${i3}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
const PagesMineHomepage = /* @__PURE__ */ _export_sfc(_sfc_main$37, [["render", _sfc_render$36], ["__file", "D:/document/九亿商城/jy/jiuyi2/pages/mine/homepage.vue"]]);
|
const PagesMineHomepage = /* @__PURE__ */ _export_sfc(_sfc_main$37, [["render", _sfc_render$36], ["__file", "D:/document/九亿商城/jy/jiuyi2/pages/mine/homepage.vue"]]);
|
||||||
|
const block0$1 = (Comp) => {
|
||||||
|
(Comp.$renderjs || (Comp.$renderjs = [])).push("video");
|
||||||
|
(Comp.$renderjsModules || (Comp.$renderjsModules = {}))["video"] = "ddd4bc48";
|
||||||
|
};
|
||||||
const _sfc_main$36 = {
|
const _sfc_main$36 = {
|
||||||
__name: "video",
|
__name: "video",
|
||||||
setup(__props, { expose: __expose }) {
|
setup(__props, { expose: __expose }) {
|
||||||
|
@ -56114,6 +56256,8 @@ ${i3}
|
||||||
)
|
)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
if (typeof block0$1 === "function")
|
||||||
|
block0$1(_sfc_main$36);
|
||||||
const PagesReleaseVideo = /* @__PURE__ */ _export_sfc(_sfc_main$36, [["render", _sfc_render$35], ["__file", "D:/document/九亿商城/jy/jiuyi2/pages/release/video.vue"]]);
|
const PagesReleaseVideo = /* @__PURE__ */ _export_sfc(_sfc_main$36, [["render", _sfc_render$35], ["__file", "D:/document/九亿商城/jy/jiuyi2/pages/release/video.vue"]]);
|
||||||
const _sfc_main$35 = {
|
const _sfc_main$35 = {
|
||||||
__name: "wallet",
|
__name: "wallet",
|
||||||
|
@ -58229,136 +58373,6 @@ ${i3}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
const PagesIndexMyQrCode = /* @__PURE__ */ _export_sfc(_sfc_main$2_, [["render", _sfc_render$2Z], ["__file", "D:/document/九亿商城/jy/jiuyi2/pages/index/myQrCode.vue"]]);
|
const PagesIndexMyQrCode = /* @__PURE__ */ _export_sfc(_sfc_main$2_, [["render", _sfc_render$2Z], ["__file", "D:/document/九亿商城/jy/jiuyi2/pages/index/myQrCode.vue"]]);
|
||||||
const durian = {
|
|
||||||
/**
|
|
||||||
* 果树列表
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
durianList(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/coreplay/duriantreeinfo/tree-list`,
|
|
||||||
method: "GET",
|
|
||||||
query: param.query
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 我的榴莲果树
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
buyDurianList(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/coreplay/duriantreeinfo/boughtListByUser`,
|
|
||||||
method: "GET",
|
|
||||||
query: param.query
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 查看我的榴莲果明细
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
DurianChange(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/getMyFruitLog`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 榴莲果置换
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
exchange(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/coreplay/duriantreeinfo/exchange`,
|
|
||||||
method: "POST",
|
|
||||||
data: param.data,
|
|
||||||
load: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 交易市场
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
getOrderList(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/getOrderList`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query,
|
|
||||||
load: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 订单交易
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
orderSale(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/orderSale`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query,
|
|
||||||
load: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 榴莲果互转化
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
transfer(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/transfer`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 榴莲果挂卖
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
fruitForSale(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/fruitForSale`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query,
|
|
||||||
load: true
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 取消订单
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
cancelSale(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/cancelSale`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query,
|
|
||||||
load: 1
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 入驻商家
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
shopApply(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/home/shopApply`,
|
|
||||||
method: "post",
|
|
||||||
query: param.query,
|
|
||||||
data: param.data
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
|
||||||
* 榴莲果明细
|
|
||||||
* @param {Object} param
|
|
||||||
*/
|
|
||||||
getMyFruitLog(param) {
|
|
||||||
return util$1.request({
|
|
||||||
url: `/duriantreeinfo`,
|
|
||||||
method: "GET",
|
|
||||||
path: param.path,
|
|
||||||
query: param.query
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
|
||||||
const _sfc_main$2Z = {
|
const _sfc_main$2Z = {
|
||||||
__name: "deal",
|
__name: "deal",
|
||||||
setup(__props, { expose: __expose }) {
|
setup(__props, { expose: __expose }) {
|
||||||
|
@ -58614,17 +58628,10 @@ ${i3}
|
||||||
const store2 = useStore();
|
const store2 = useStore();
|
||||||
const viewData = _Vue.ref({
|
const viewData = _Vue.ref({
|
||||||
// 有效读秒任务
|
// 有效读秒任务
|
||||||
seconds: 0,
|
seconds: 0
|
||||||
// 卷轴任务
|
|
||||||
scrollFlag: false,
|
|
||||||
// 榴莲果树任务
|
|
||||||
treeFlag: false
|
|
||||||
});
|
});
|
||||||
const type = _Vue.computed(() => {
|
const task2 = _Vue.computed(() => {
|
||||||
let result = viewData.value.scrollFlag || viewData.value.treeFlag;
|
return store2.state.task;
|
||||||
if (result && Number(viewData.value.seconds) > 300)
|
|
||||||
result = false;
|
|
||||||
return result;
|
|
||||||
});
|
});
|
||||||
const progress = _Vue.computed(() => {
|
const progress = _Vue.computed(() => {
|
||||||
let result = viewData.value.seconds;
|
let result = viewData.value.seconds;
|
||||||
|
@ -58637,19 +58644,19 @@ ${i3}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
function getTasks() {
|
function getTasks() {
|
||||||
intergral.viewingTasks({}).then((rs2) => {
|
api.intergral.viewingTasks({}).then((rs2) => {
|
||||||
if (rs2.code == 200 && rs2.data) {
|
if (rs2.code == 200) {
|
||||||
viewData.value = rs2.data;
|
viewData.value = rs2.data;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const __returned__ = { store: store2, viewData, type, progress, getTasks, ref: _Vue.ref, computed: _Vue.computed, onMounted: _Vue.onMounted, get util() {
|
const __returned__ = { store: store2, viewData, task: task2, progress, getTasks, ref: _Vue.ref, computed: _Vue.computed, onMounted: _Vue.onMounted, get util() {
|
||||||
return util$1;
|
return util$1;
|
||||||
}, get useStore() {
|
}, get useStore() {
|
||||||
return useStore;
|
return useStore;
|
||||||
}, get intergralApi() {
|
}, get api() {
|
||||||
return intergral;
|
return api;
|
||||||
} };
|
} };
|
||||||
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
||||||
return __returned__;
|
return __returned__;
|
||||||
|
@ -58657,7 +58664,7 @@ ${i3}
|
||||||
};
|
};
|
||||||
function _sfc_render$2X(_ctx, _cache, $props, $setup, $data, $options) {
|
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" }, [
|
return _Vue.openBlock(), _Vue.createElementBlock("view", { class: "task pr mtb30 ptb20 plr40 f28 bFFFBF3 br20" }, [
|
||||||
$setup.type ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
|
$setup.task === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
|
||||||
key: 0,
|
key: 0,
|
||||||
class: "title c333 f36"
|
class: "title c333 f36"
|
||||||
}, "任务读秒")) : (_Vue.openBlock(), _Vue.createElementBlock("view", {
|
}, "任务读秒")) : (_Vue.openBlock(), _Vue.createElementBlock("view", {
|
||||||
|
@ -58676,7 +58683,7 @@ ${i3}
|
||||||
/* STYLE */
|
/* STYLE */
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
$setup.type ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
|
$setup.task === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
|
||||||
key: 2,
|
key: 2,
|
||||||
class: "label pa t0 r0 ptb5 plr20 cfff"
|
class: "label pa t0 r0 ptb5 plr20 cfff"
|
||||||
}, "优先")) : _Vue.createCommentVNode("v-if", true)
|
}, "优先")) : _Vue.createCommentVNode("v-if", true)
|
||||||
|
@ -58721,13 +58728,6 @@ ${i3}
|
||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
util$1.getPurse();
|
util$1.getPurse();
|
||||||
});
|
});
|
||||||
function viewingTasks() {
|
|
||||||
intergral.viewingTasks({}).then((rs2) => {
|
|
||||||
if (rs2.code == 200 && rs2.data) {
|
|
||||||
viewData.value = rs2.data;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
function transfer() {
|
function transfer() {
|
||||||
durian.transfer({
|
durian.transfer({
|
||||||
query: {
|
query: {
|
||||||
|
@ -58751,7 +58751,7 @@ ${i3}
|
||||||
url: path
|
url: path
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
const __returned__ = { proxy: proxy2, store: store2, form, viewData, userinfo, progress, purse, viewingTasks, transfer, navigateToPage, get useStore() {
|
const __returned__ = { proxy: proxy2, store: store2, form, viewData, userinfo, progress, purse, transfer, navigateToPage, get useStore() {
|
||||||
return useStore;
|
return useStore;
|
||||||
}, onMounted: _Vue.onMounted, ref: _Vue.ref, reactive: _Vue.reactive, computed: _Vue.computed, getCurrentInstance: _Vue.getCurrentInstance, watch: _Vue.watch, get onLoad() {
|
}, onMounted: _Vue.onMounted, ref: _Vue.ref, reactive: _Vue.reactive, computed: _Vue.computed, getCurrentInstance: _Vue.getCurrentInstance, watch: _Vue.watch, get onLoad() {
|
||||||
return onLoad;
|
return onLoad;
|
||||||
|
|
|
@ -1660,6 +1660,13 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
fruit: 0,
|
fruit: 0,
|
||||||
score: 0,
|
score: 0,
|
||||||
seed: 0
|
seed: 0
|
||||||
|
},
|
||||||
|
// 任务
|
||||||
|
task: {
|
||||||
|
//任务类型 0.任务读秒 1.流量点(种子)读秒
|
||||||
|
taskType: 0,
|
||||||
|
//有效时长
|
||||||
|
viewingDuration: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
@ -1701,7 +1708,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
});
|
});
|
||||||
var config = {
|
var config = {
|
||||||
// 接口域名
|
// 接口域名
|
||||||
host: "http://192.168.1.236:8080",
|
host: "http://192.168.1.235:8080",
|
||||||
|
// host: 'http://192.168.1.236:8080',
|
||||||
// 上传文件二级路径
|
// 上传文件二级路径
|
||||||
uploadFilePath: "/homecommon/file/preview?fileName=",
|
uploadFilePath: "/homecommon/file/preview?fileName=",
|
||||||
// 上传视频二级路径
|
// 上传视频二级路径
|
||||||
|
@ -2129,8 +2137,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
*/
|
*/
|
||||||
browseLog(param) {
|
browseLog(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/browseLog`,
|
url: `/video/Effective/second`,
|
||||||
query: param.query,
|
data: param.data,
|
||||||
method: "POST"
|
method: "POST"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2536,8 +2544,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
*/
|
*/
|
||||||
viewingTasks(param) {
|
viewingTasks(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/viewingTasks`,
|
url: `/video/Effective/return`,
|
||||||
method: "post",
|
method: "GET",
|
||||||
query: param.query
|
query: param.query
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2548,7 +2556,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
buyScroll(param) {
|
buyScroll(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/coreplay/app/scrollinfo/buyScroll`,
|
url: `/coreplay/app/scrollinfo/buyScroll`,
|
||||||
method: "post",
|
method: "G",
|
||||||
data: param.data
|
data: param.data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -4169,7 +4177,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
var _imports_8 = "/static/indexShare.png";
|
var _imports_8 = "/static/indexShare.png";
|
||||||
var _imports_9 = "/static/indexMoney1.png";
|
var _imports_9 = "/static/indexMoney1.png";
|
||||||
var _imports_10 = "/static/indexMoney.png";
|
var _imports_10 = "/static/indexMoney.png";
|
||||||
var _style_0$6 = { "container": { "": { "backgroundColor": "#000000" } }, "duration": { "": { "marginTop": "120rpx", "width": "750rpx", "backgroundColor": "rgba(255,255,255,0.3)" } }, "line": { ".duration ": { "width": 0, "height": "2rpx", "backgroundColor": "rgba(255,255,255,0.8)", "transitionDuration": 250 } }, "pausePanel": { "": { "backgroundColor": "rgba(0,0,0,0.5)" } }, "pauseImg": { ".pausePanel ": { "width": "140rpx", "height": "140rpx" } }, "panelRight": { "": { "alignItems": "flex-end" } }, "text": { ".panelRight ": { "textAlign": "center", "color": "#ffffff", "fontSize": "24rpx" } }, "operate": { ".panelRight ": { "flex": 1, "justifyContent": "flex-end", "alignItems": "flex-end", "textAlign": "center", "paddingBottom": "130rpx" } }, "item": { ".panelRight .operate ": { "marginTop": "5rpx", "marginRight": 0, "marginBottom": "5rpx", "marginLeft": 0, "paddingTop": "10rpx", "paddingRight": "5rpx", "paddingBottom": "10rpx", "paddingLeft": "5rpx" }, ".panelRight .operate .money": { "paddingTop": 0, "paddingRight": 0, "paddingBottom": 0, "paddingLeft": 0 } }, "col": { ".panelRight .operate .item ": { "alignItems": "center", "justifyContent": "center", "width": "80rpx" } }, "focus": { ".panelRight ": { "alignItems": "center", "left": 0, "right": 0, "bottom": 0 } }, "panelBottom": { "": { "paddingRight": "150rpx" } }, "goods": { ".panelBottom ": { "paddingTop": "10rpx", "paddingRight": "10rpx", "paddingBottom": "10rpx", "paddingLeft": "10rpx", "width": "480rpx", "marginBottom": "20rpx", "backgroundColor": "rgba(0,0,0,0.3)" } }, "videoProgress": { "": { "position": "absolute", "left": 0, "right": 0, "bottom": 0 } }, "@TRANSITION": { "line": { "duration": 250 } } };
|
var _style_0$6 = { "container": { "": { "backgroundColor": "#000000" } }, "duration": { "": { "marginTop": "120rpx", "width": "750rpx", "backgroundColor": "rgba(255,255,255,0.3)" } }, "line": { ".duration ": { "width": 0, "height": "2rpx", "backgroundColor": "rgba(255,255,255,0.8)", "transitionDuration": 250 } }, "speedBox": { "": { "position": "absolute", "top": "200rpx", "left": 0, "right": 0, "alignItems": "center" } }, "speed": { ".speedBox ": { "backgroundColor": "rgba(0,0,0,0.8)", "borderRadius": "5rpx", "opacity": 0.6 } }, "pausePanel": { "": { "backgroundColor": "rgba(0,0,0,0.5)" } }, "pauseImg": { ".pausePanel ": { "width": "140rpx", "height": "140rpx" } }, "panelRight": { "": { "alignItems": "flex-end" } }, "text": { ".panelRight ": { "textAlign": "center", "color": "#ffffff", "fontSize": "24rpx" } }, "operate": { ".panelRight ": { "flex": 1, "justifyContent": "flex-end", "alignItems": "flex-end", "textAlign": "center", "paddingBottom": "130rpx" } }, "item": { ".panelRight .operate ": { "marginTop": "5rpx", "marginRight": 0, "marginBottom": "5rpx", "marginLeft": 0, "paddingTop": "10rpx", "paddingRight": "5rpx", "paddingBottom": "10rpx", "paddingLeft": "5rpx" }, ".panelRight .operate .money": { "paddingTop": 0, "paddingRight": 0, "paddingBottom": 0, "paddingLeft": 0 } }, "col": { ".panelRight .operate .item ": { "alignItems": "center", "justifyContent": "center", "width": "80rpx" } }, "focus": { ".panelRight ": { "alignItems": "center", "left": 0, "right": 0, "bottom": 0 } }, "panelBottom": { "": { "paddingRight": "150rpx" } }, "goods": { ".panelBottom ": { "paddingTop": "10rpx", "paddingRight": "10rpx", "paddingBottom": "10rpx", "paddingLeft": "10rpx", "width": "480rpx", "marginBottom": "20rpx", "backgroundColor": "rgba(0,0,0,0.3)" } }, "videoProgress": { "": { "position": "absolute", "left": 0, "right": 0, "bottom": 0 } }, "@TRANSITION": { "line": { "duration": 250 } } };
|
||||||
var _sfc_main$7 = {
|
var _sfc_main$7 = {
|
||||||
__name: "indexVideo",
|
__name: "indexVideo",
|
||||||
props: {
|
props: {
|
||||||
|
@ -4277,42 +4285,41 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
clearTimeout(tapTimer.value);
|
clearTimeout(tapTimer.value);
|
||||||
}
|
}
|
||||||
function onTouchEnd() {
|
function onTouchEnd() {
|
||||||
if (isLong.value) {
|
if (isTap.value) {
|
||||||
isLong.value = false;
|
|
||||||
videoCtx.value.playbackRate(1);
|
|
||||||
}
|
|
||||||
if (!isTap.value) {
|
|
||||||
isTap.value = false;
|
isTap.value = false;
|
||||||
let time2 = (/* @__PURE__ */ new Date()).getTime();
|
let time2 = (/* @__PURE__ */ new Date()).getTime();
|
||||||
let diff = time2 - tapList[tapList.length - 1];
|
let diff = time2 - tapList[tapList.length - 1];
|
||||||
if (diff > 350)
|
if (diff > 350) {
|
||||||
|
if (isLong.value) {
|
||||||
|
isLong.value = false;
|
||||||
|
videoCtx.value.playbackRate(1);
|
||||||
|
}
|
||||||
|
tapList.length = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
tapTimer.value = setTimeout(() => {
|
tapTimer.value = setTimeout(() => {
|
||||||
const isLike = props.item.isLike;
|
props.item.isLike;
|
||||||
let a = tapList.length;
|
let a = tapList.length;
|
||||||
tapList.length = 0;
|
tapList.length = 0;
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case 0:
|
case 1:
|
||||||
changeVideoPlay();
|
changeVideoPlay();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
formatAppLog("log", "at components/index/indexVideo.vue:172", "\u516C\u5F00\u8D5E");
|
formatAppLog("log", "at components/index/indexVideo.vue:176", "\u516C\u5F00\u8D5E");
|
||||||
emit("like", {
|
return;
|
||||||
index: props.index,
|
|
||||||
isLike: isLike == 0 ? 0 : 1
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
case 3:
|
case 3:
|
||||||
formatAppLog("log", "at components/index/indexVideo.vue:179", "\u9690\u79C1\u8D5E");
|
formatAppLog("log", "at components/index/indexVideo.vue:184", "\u9690\u79C1\u8D5E");
|
||||||
emit("like", {
|
return;
|
||||||
index: props.index,
|
|
||||||
isLike: isLike == 0 ? 3 : 1
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function onTouchCancel() {
|
||||||
|
isTap.value = false;
|
||||||
|
tapList.length = 0;
|
||||||
|
clearTimeout(tapTimer.value);
|
||||||
|
}
|
||||||
function changeVideoPlay() {
|
function changeVideoPlay() {
|
||||||
if (playState.value)
|
if (playState.value)
|
||||||
pause();
|
pause();
|
||||||
|
@ -4485,6 +4492,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
function longtap(ev) {
|
function longtap(ev) {
|
||||||
if (isLong.value)
|
if (isLong.value)
|
||||||
return;
|
return;
|
||||||
|
play();
|
||||||
isLong.value = true;
|
isLong.value = true;
|
||||||
videoCtx.value.playbackRate(2);
|
videoCtx.value.playbackRate(2);
|
||||||
}
|
}
|
||||||
|
@ -4496,7 +4504,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
playState,
|
playState,
|
||||||
videoCtx: () => videoCtx.value
|
videoCtx: () => videoCtx.value
|
||||||
});
|
});
|
||||||
const __returned__ = { proxy, props, emit, videoCtx, playState, collectFirst, videoTime, tapList, tapTimer, isTap, isLong, collectBtnActive, alarmTime, fit, formatNumber, onTouchStart, onTouchEnd, changeVideoPlay, play, pause, onVideoPlay, onVideoPause, handleComment, handleTime, showCollect, handleCollectFirst, handleCollectStar, handleCollectEnd, getNumber, cancelCollect, handleShareFirend, handleLike, handlePrivateLike, handleDetailMenu, handleTimeupdate, onProgressEnd, handleUser, handleWaiting, longtap, onMounted: import_vue2.onMounted, ref: import_vue2.ref, reactive: import_vue2.reactive, getCurrentInstance: import_vue2.getCurrentInstance, watch: import_vue2.watch, computed: import_vue2.computed, nextTick: import_vue2.nextTick, statusBar, get util() {
|
const __returned__ = { proxy, props, emit, videoCtx, playState, collectFirst, videoTime, tapList, tapTimer, isTap, isLong, collectBtnActive, alarmTime, fit, formatNumber, onTouchStart, onTouchEnd, onTouchCancel, changeVideoPlay, play, pause, onVideoPlay, onVideoPause, handleComment, handleTime, showCollect, handleCollectFirst, handleCollectStar, handleCollectEnd, getNumber, cancelCollect, handleShareFirend, handleLike, handlePrivateLike, handleDetailMenu, handleTimeupdate, onProgressEnd, handleUser, handleWaiting, longtap, onMounted: import_vue2.onMounted, ref: import_vue2.ref, reactive: import_vue2.reactive, getCurrentInstance: import_vue2.getCurrentInstance, watch: import_vue2.watch, computed: import_vue2.computed, nextTick: import_vue2.nextTick, statusBar, get util() {
|
||||||
return util$1;
|
return util$1;
|
||||||
}, get api() {
|
}, get api() {
|
||||||
return api;
|
return api;
|
||||||
|
@ -4528,7 +4536,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}, ["stop"])),
|
}, ["stop"])),
|
||||||
onTouchstart: $setup.onTouchStart,
|
onTouchstart: $setup.onTouchStart,
|
||||||
onTouchend: $setup.onTouchEnd,
|
onTouchend: $setup.onTouchEnd,
|
||||||
onTouchcancel: $setup.onTouchEnd,
|
onTouchcancel: $setup.onTouchCancel,
|
||||||
onLongpress: $setup.longtap
|
onLongpress: $setup.longtap
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
@ -4578,9 +4586,18 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
/* NEED_HYDRATION */
|
/* NEED_HYDRATION */
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
|
(0, import_vue2.createCommentVNode)(" \u500D\u901F\u64AD\u653E\u63D0\u793A "),
|
||||||
|
$setup.isLong ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
||||||
|
key: 0,
|
||||||
|
class: "speedBox"
|
||||||
|
}, [
|
||||||
|
(0, import_vue2.createElementVNode)("view", { class: "speed ptb5 plr10" }, [
|
||||||
|
(0, import_vue2.createElementVNode)("u-text", { class: "f22 cfff" }, "2\u500D\u901F\u64AD\u653E\u4E2D...")
|
||||||
|
])
|
||||||
|
])) : (0, import_vue2.createCommentVNode)("v-if", true),
|
||||||
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u8499\u7248 "),
|
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u8499\u7248 "),
|
||||||
!$setup.playState ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
!$setup.playState ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
||||||
key: 0,
|
key: 1,
|
||||||
class: "pausePanel pfull fmid"
|
class: "pausePanel pfull fmid"
|
||||||
}, [
|
}, [
|
||||||
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u6309\u94AE "),
|
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u6309\u94AE "),
|
||||||
|
@ -4606,7 +4623,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
(0, import_vue2.createElementVNode)("view", { class: "col" }, [
|
(0, import_vue2.createElementVNode)("view", { class: "col" }, [
|
||||||
(0, import_vue2.createElementVNode)("u-image", {
|
(0, import_vue2.createElementVNode)("u-image", {
|
||||||
class: "wh80 cir",
|
class: "wh80 cir",
|
||||||
src: $props.item.format_header,
|
src: $props.item.avatar,
|
||||||
mode: "aspectFill"
|
mode: "aspectFill"
|
||||||
}, null, 8, ["src"]),
|
}, null, 8, ["src"]),
|
||||||
!$props.item.isAttention ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
!$props.item.isAttention ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
||||||
|
@ -4800,7 +4817,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
(0, import_vue2.createElementVNode)(
|
(0, import_vue2.createElementVNode)(
|
||||||
"u-text",
|
"u-text",
|
||||||
{ class: "cfff f36" },
|
{ class: "cfff f36" },
|
||||||
"@" + (0, import_vue2.toDisplayString)($props.item.userName),
|
"@" + (0, import_vue2.toDisplayString)($props.item.userNickname),
|
||||||
1
|
1
|
||||||
/* TEXT */
|
/* TEXT */
|
||||||
)
|
)
|
||||||
|
@ -13776,9 +13793,11 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
dom22.getComponentRect(proxy.$refs.containerRef[0], (option) => {
|
(0, import_vue3.nextTick)(() => {
|
||||||
viewSize.height = option.size.height;
|
dom22.getComponentRect(proxy.$refs.containerRef[0], (option) => {
|
||||||
viewSize.width = option.size.width;
|
viewSize.height = option.size.height;
|
||||||
|
viewSize.width = option.size.width;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
onShow(() => {
|
onShow(() => {
|
||||||
|
@ -13863,6 +13882,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
getRecList();
|
getRecList();
|
||||||
}
|
}
|
||||||
function getMoreRecList() {
|
function getMoreRecList() {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:324", "recList", recList);
|
||||||
if (recList.total <= recList.data.length)
|
if (recList.total <= recList.data.length)
|
||||||
return;
|
return;
|
||||||
recList.pageNum++;
|
recList.pageNum++;
|
||||||
|
@ -13875,6 +13895,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
pageSize: recList.pageSize
|
pageSize: recList.pageSize
|
||||||
}
|
}
|
||||||
}).then((rs) => {
|
}).then((rs) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:339", "getRecList then rs", recList, rs);
|
||||||
if (rs.code == 200) {
|
if (rs.code == 200) {
|
||||||
recList.total = rs.total;
|
recList.total = rs.total;
|
||||||
const list = rs.rows.sort(() => Math.random() - Math.random());
|
const list = rs.rows.sort(() => Math.random() - Math.random());
|
||||||
|
@ -13884,7 +13905,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
item.speed = 1;
|
item.speed = 1;
|
||||||
return item;
|
return item;
|
||||||
}));
|
}));
|
||||||
formatAppLog("log", "at pages/index/index.nvue:349", "result", recList.data, rs);
|
formatAppLog("log", "at pages/index/index.nvue:352", "result", recList.data, rs);
|
||||||
if (recList.total > 1 && recList.data.length <= 1)
|
if (recList.total > 1 && recList.data.length <= 1)
|
||||||
getMoreRecList();
|
getMoreRecList();
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -13917,6 +13938,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
proxy.$refs[`videoRef${tab_index}`][current[tab_index]].play();
|
proxy.$refs[`videoRef${tab_index}`][current[tab_index]].play();
|
||||||
});
|
});
|
||||||
readSecondPause();
|
readSecondPause();
|
||||||
|
browseLog(lastVideoRef);
|
||||||
readSecond.total += readSecond.count;
|
readSecond.total += readSecond.count;
|
||||||
if (readSecond.total < readSecond.totalMax)
|
if (readSecond.total < readSecond.totalMax)
|
||||||
readSecondAdd();
|
readSecondAdd();
|
||||||
|
@ -13958,6 +13980,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
const lastVideoRef = proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]];
|
const lastVideoRef = proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]];
|
||||||
lastVideoRef.pause();
|
lastVideoRef.pause();
|
||||||
readSecondPause();
|
readSecondPause();
|
||||||
|
browseLog(lastVideoRef);
|
||||||
readSecond.total += readSecond.count;
|
readSecond.total += readSecond.count;
|
||||||
if (readSecond.total < readSecond.totalMax)
|
if (readSecond.total < readSecond.totalMax)
|
||||||
readSecondAdd();
|
readSecondAdd();
|
||||||
|
@ -13991,10 +14014,37 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
function handleVideoOnPause() {
|
function handleVideoOnPause() {
|
||||||
if (proxy.$refs.discRef)
|
if (proxy.$refs.discRef)
|
||||||
proxy.$refs.discRef.pause();
|
proxy.$refs.discRef.pause();
|
||||||
readSecondPause();
|
|
||||||
}
|
}
|
||||||
function browseLog(element) {
|
function browseLog(element) {
|
||||||
return;
|
util$1.isLogin().then((rs) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:542", "data", {
|
||||||
|
// 视频id
|
||||||
|
videoId: element.item.id,
|
||||||
|
// 有效读秒时间统计
|
||||||
|
viewingDuration: Math.floor(readSecond.count),
|
||||||
|
// 视频秒数
|
||||||
|
videoDescription: Math.floor(element.videoTime.currentTime),
|
||||||
|
//
|
||||||
|
task: 0
|
||||||
|
});
|
||||||
|
api.video.browseLog({
|
||||||
|
data: {
|
||||||
|
// 视频id
|
||||||
|
videoId: element.item.id,
|
||||||
|
// 有效读秒时间统计
|
||||||
|
viewingDuration: Math.floor(readSecond.count),
|
||||||
|
// 视频秒数
|
||||||
|
videoDescription: Math.floor(element.videoTime.currentTime),
|
||||||
|
//
|
||||||
|
task: 0
|
||||||
|
}
|
||||||
|
}).then((rs2) => {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:565", "browseLog", rs2);
|
||||||
|
if (rs2.code != 200) {
|
||||||
|
formatAppLog("log", "at pages/index/index.nvue:567", "browseLog err", rs2);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
function videoLike(param) {
|
function videoLike(param) {
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -1656,6 +1656,13 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
fruit: 0,
|
fruit: 0,
|
||||||
score: 0,
|
score: 0,
|
||||||
seed: 0
|
seed: 0
|
||||||
|
},
|
||||||
|
// 任务
|
||||||
|
task: {
|
||||||
|
//任务类型 0.任务读秒 1.流量点(种子)读秒
|
||||||
|
taskType: 0,
|
||||||
|
//有效时长
|
||||||
|
viewingDuration: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
|
@ -1697,7 +1704,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
});
|
});
|
||||||
var config = {
|
var config = {
|
||||||
// 接口域名
|
// 接口域名
|
||||||
host: "http://192.168.1.236:8080",
|
host: "http://192.168.1.235:8080",
|
||||||
|
// host: 'http://192.168.1.236:8080',
|
||||||
// 上传文件二级路径
|
// 上传文件二级路径
|
||||||
uploadFilePath: "/homecommon/file/preview?fileName=",
|
uploadFilePath: "/homecommon/file/preview?fileName=",
|
||||||
// 上传视频二级路径
|
// 上传视频二级路径
|
||||||
|
@ -2125,8 +2133,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
*/
|
*/
|
||||||
browseLog(param) {
|
browseLog(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/browseLog`,
|
url: `/video/Effective/second`,
|
||||||
query: param.query,
|
data: param.data,
|
||||||
method: "POST"
|
method: "POST"
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2532,8 +2540,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
*/
|
*/
|
||||||
viewingTasks(param) {
|
viewingTasks(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/home/viewingTasks`,
|
url: `/video/Effective/return`,
|
||||||
method: "post",
|
method: "GET",
|
||||||
query: param.query
|
query: param.query
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -2544,7 +2552,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
buyScroll(param) {
|
buyScroll(param) {
|
||||||
return util$1.request({
|
return util$1.request({
|
||||||
url: `/coreplay/app/scrollinfo/buyScroll`,
|
url: `/coreplay/app/scrollinfo/buyScroll`,
|
||||||
method: "post",
|
method: "G",
|
||||||
data: param.data
|
data: param.data
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -4165,7 +4173,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
var _imports_8 = "/static/indexShare.png";
|
var _imports_8 = "/static/indexShare.png";
|
||||||
var _imports_9 = "/static/indexMoney1.png";
|
var _imports_9 = "/static/indexMoney1.png";
|
||||||
var _imports_10 = "/static/indexMoney.png";
|
var _imports_10 = "/static/indexMoney.png";
|
||||||
var _style_0$6 = { "container": { "": { "backgroundColor": "#000000" } }, "duration": { "": { "marginTop": "120rpx", "width": "750rpx", "backgroundColor": "rgba(255,255,255,0.3)" } }, "line": { ".duration ": { "width": 0, "height": "2rpx", "backgroundColor": "rgba(255,255,255,0.8)", "transitionDuration": 250 } }, "pausePanel": { "": { "backgroundColor": "rgba(0,0,0,0.5)" } }, "pauseImg": { ".pausePanel ": { "width": "140rpx", "height": "140rpx" } }, "panelRight": { "": { "alignItems": "flex-end" } }, "text": { ".panelRight ": { "textAlign": "center", "color": "#ffffff", "fontSize": "24rpx" } }, "operate": { ".panelRight ": { "flex": 1, "justifyContent": "flex-end", "alignItems": "flex-end", "textAlign": "center", "paddingBottom": "130rpx" } }, "item": { ".panelRight .operate ": { "marginTop": "5rpx", "marginRight": 0, "marginBottom": "5rpx", "marginLeft": 0, "paddingTop": "10rpx", "paddingRight": "5rpx", "paddingBottom": "10rpx", "paddingLeft": "5rpx" }, ".panelRight .operate .money": { "paddingTop": 0, "paddingRight": 0, "paddingBottom": 0, "paddingLeft": 0 } }, "col": { ".panelRight .operate .item ": { "alignItems": "center", "justifyContent": "center", "width": "80rpx" } }, "focus": { ".panelRight ": { "alignItems": "center", "left": 0, "right": 0, "bottom": 0 } }, "panelBottom": { "": { "paddingRight": "150rpx" } }, "goods": { ".panelBottom ": { "paddingTop": "10rpx", "paddingRight": "10rpx", "paddingBottom": "10rpx", "paddingLeft": "10rpx", "width": "480rpx", "marginBottom": "20rpx", "backgroundColor": "rgba(0,0,0,0.3)" } }, "videoProgress": { "": { "position": "absolute", "left": 0, "right": 0, "bottom": 0 } }, "@TRANSITION": { "line": { "duration": 250 } } };
|
var _style_0$6 = { "container": { "": { "backgroundColor": "#000000" } }, "duration": { "": { "marginTop": "120rpx", "width": "750rpx", "backgroundColor": "rgba(255,255,255,0.3)" } }, "line": { ".duration ": { "width": 0, "height": "2rpx", "backgroundColor": "rgba(255,255,255,0.8)", "transitionDuration": 250 } }, "speedBox": { "": { "position": "absolute", "top": "200rpx", "left": 0, "right": 0, "alignItems": "center" } }, "speed": { ".speedBox ": { "backgroundColor": "rgba(0,0,0,0.8)", "borderRadius": "5rpx", "opacity": 0.6 } }, "pausePanel": { "": { "backgroundColor": "rgba(0,0,0,0.5)" } }, "pauseImg": { ".pausePanel ": { "width": "140rpx", "height": "140rpx" } }, "panelRight": { "": { "alignItems": "flex-end" } }, "text": { ".panelRight ": { "textAlign": "center", "color": "#ffffff", "fontSize": "24rpx" } }, "operate": { ".panelRight ": { "flex": 1, "justifyContent": "flex-end", "alignItems": "flex-end", "textAlign": "center", "paddingBottom": "130rpx" } }, "item": { ".panelRight .operate ": { "marginTop": "5rpx", "marginRight": 0, "marginBottom": "5rpx", "marginLeft": 0, "paddingTop": "10rpx", "paddingRight": "5rpx", "paddingBottom": "10rpx", "paddingLeft": "5rpx" }, ".panelRight .operate .money": { "paddingTop": 0, "paddingRight": 0, "paddingBottom": 0, "paddingLeft": 0 } }, "col": { ".panelRight .operate .item ": { "alignItems": "center", "justifyContent": "center", "width": "80rpx" } }, "focus": { ".panelRight ": { "alignItems": "center", "left": 0, "right": 0, "bottom": 0 } }, "panelBottom": { "": { "paddingRight": "150rpx" } }, "goods": { ".panelBottom ": { "paddingTop": "10rpx", "paddingRight": "10rpx", "paddingBottom": "10rpx", "paddingLeft": "10rpx", "width": "480rpx", "marginBottom": "20rpx", "backgroundColor": "rgba(0,0,0,0.3)" } }, "videoProgress": { "": { "position": "absolute", "left": 0, "right": 0, "bottom": 0 } }, "@TRANSITION": { "line": { "duration": 250 } } };
|
||||||
var _sfc_main$7 = {
|
var _sfc_main$7 = {
|
||||||
__name: "indexVideo",
|
__name: "indexVideo",
|
||||||
props: {
|
props: {
|
||||||
|
@ -4273,42 +4281,41 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
clearTimeout(tapTimer.value);
|
clearTimeout(tapTimer.value);
|
||||||
}
|
}
|
||||||
function onTouchEnd() {
|
function onTouchEnd() {
|
||||||
if (isLong.value) {
|
if (isTap.value) {
|
||||||
isLong.value = false;
|
|
||||||
videoCtx.value.playbackRate(1);
|
|
||||||
}
|
|
||||||
if (!isTap.value) {
|
|
||||||
isTap.value = false;
|
isTap.value = false;
|
||||||
let time2 = (/* @__PURE__ */ new Date()).getTime();
|
let time2 = (/* @__PURE__ */ new Date()).getTime();
|
||||||
let diff = time2 - tapList[tapList.length - 1];
|
let diff = time2 - tapList[tapList.length - 1];
|
||||||
if (diff > 350)
|
if (diff > 350) {
|
||||||
|
if (isLong.value) {
|
||||||
|
isLong.value = false;
|
||||||
|
videoCtx.value.playbackRate(1);
|
||||||
|
}
|
||||||
|
tapList.length = 0;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
tapTimer.value = setTimeout(() => {
|
tapTimer.value = setTimeout(() => {
|
||||||
const isLike = props.item.isLike;
|
props.item.isLike;
|
||||||
let a = tapList.length;
|
let a = tapList.length;
|
||||||
tapList.length = 0;
|
tapList.length = 0;
|
||||||
switch (a) {
|
switch (a) {
|
||||||
case 0:
|
case 1:
|
||||||
changeVideoPlay();
|
changeVideoPlay();
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
formatAppLog("log", "at components/index/indexVideo.vue:172", "\u516C\u5F00\u8D5E");
|
formatAppLog("log", "at components/index/indexVideo.vue:176", "\u516C\u5F00\u8D5E");
|
||||||
emit("like", {
|
return;
|
||||||
index: props.index,
|
|
||||||
isLike: isLike == 0 ? 0 : 1
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
case 3:
|
case 3:
|
||||||
formatAppLog("log", "at components/index/indexVideo.vue:179", "\u9690\u79C1\u8D5E");
|
formatAppLog("log", "at components/index/indexVideo.vue:184", "\u9690\u79C1\u8D5E");
|
||||||
emit("like", {
|
return;
|
||||||
index: props.index,
|
|
||||||
isLike: isLike == 0 ? 3 : 1
|
|
||||||
});
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}, 200);
|
}, 200);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
function onTouchCancel() {
|
||||||
|
isTap.value = false;
|
||||||
|
tapList.length = 0;
|
||||||
|
clearTimeout(tapTimer.value);
|
||||||
|
}
|
||||||
function changeVideoPlay() {
|
function changeVideoPlay() {
|
||||||
if (playState.value)
|
if (playState.value)
|
||||||
pause();
|
pause();
|
||||||
|
@ -4481,6 +4488,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
function longtap(ev) {
|
function longtap(ev) {
|
||||||
if (isLong.value)
|
if (isLong.value)
|
||||||
return;
|
return;
|
||||||
|
play();
|
||||||
isLong.value = true;
|
isLong.value = true;
|
||||||
videoCtx.value.playbackRate(2);
|
videoCtx.value.playbackRate(2);
|
||||||
}
|
}
|
||||||
|
@ -4492,7 +4500,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
playState,
|
playState,
|
||||||
videoCtx: () => videoCtx.value
|
videoCtx: () => videoCtx.value
|
||||||
});
|
});
|
||||||
const __returned__ = { proxy, props, emit, videoCtx, playState, collectFirst, videoTime, tapList, tapTimer, isTap, isLong, collectBtnActive, alarmTime, fit, formatNumber, onTouchStart, onTouchEnd, changeVideoPlay, play, pause, onVideoPlay, onVideoPause, handleComment, handleTime, showCollect, handleCollectFirst, handleCollectStar, handleCollectEnd, getNumber, cancelCollect, handleShareFirend, handleLike, handlePrivateLike, handleDetailMenu, handleTimeupdate, onProgressEnd, handleUser, handleWaiting, longtap, onMounted: import_vue2.onMounted, ref: import_vue2.ref, reactive: import_vue2.reactive, getCurrentInstance: import_vue2.getCurrentInstance, watch: import_vue2.watch, computed: import_vue2.computed, nextTick: import_vue2.nextTick, statusBar, get util() {
|
const __returned__ = { proxy, props, emit, videoCtx, playState, collectFirst, videoTime, tapList, tapTimer, isTap, isLong, collectBtnActive, alarmTime, fit, formatNumber, onTouchStart, onTouchEnd, onTouchCancel, changeVideoPlay, play, pause, onVideoPlay, onVideoPause, handleComment, handleTime, showCollect, handleCollectFirst, handleCollectStar, handleCollectEnd, getNumber, cancelCollect, handleShareFirend, handleLike, handlePrivateLike, handleDetailMenu, handleTimeupdate, onProgressEnd, handleUser, handleWaiting, longtap, onMounted: import_vue2.onMounted, ref: import_vue2.ref, reactive: import_vue2.reactive, getCurrentInstance: import_vue2.getCurrentInstance, watch: import_vue2.watch, computed: import_vue2.computed, nextTick: import_vue2.nextTick, statusBar, get util() {
|
||||||
return util$1;
|
return util$1;
|
||||||
}, get api() {
|
}, get api() {
|
||||||
return api;
|
return api;
|
||||||
|
@ -4524,7 +4532,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
}, ["stop"])),
|
}, ["stop"])),
|
||||||
onTouchstart: $setup.onTouchStart,
|
onTouchstart: $setup.onTouchStart,
|
||||||
onTouchend: $setup.onTouchEnd,
|
onTouchend: $setup.onTouchEnd,
|
||||||
onTouchcancel: $setup.onTouchEnd,
|
onTouchcancel: $setup.onTouchCancel,
|
||||||
onLongpress: $setup.longtap
|
onLongpress: $setup.longtap
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
|
@ -4574,9 +4582,18 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
/* NEED_HYDRATION */
|
/* NEED_HYDRATION */
|
||||||
)
|
)
|
||||||
]),
|
]),
|
||||||
|
(0, import_vue2.createCommentVNode)(" \u500D\u901F\u64AD\u653E\u63D0\u793A "),
|
||||||
|
$setup.isLong ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
||||||
|
key: 0,
|
||||||
|
class: "speedBox"
|
||||||
|
}, [
|
||||||
|
(0, import_vue2.createElementVNode)("view", { class: "speed ptb5 plr10" }, [
|
||||||
|
(0, import_vue2.createElementVNode)("u-text", { class: "f22 cfff" }, "2\u500D\u901F\u64AD\u653E\u4E2D...")
|
||||||
|
])
|
||||||
|
])) : (0, import_vue2.createCommentVNode)("v-if", true),
|
||||||
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u8499\u7248 "),
|
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u8499\u7248 "),
|
||||||
!$setup.playState ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
!$setup.playState ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
||||||
key: 0,
|
key: 1,
|
||||||
class: "pausePanel pfull fmid"
|
class: "pausePanel pfull fmid"
|
||||||
}, [
|
}, [
|
||||||
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u6309\u94AE "),
|
(0, import_vue2.createCommentVNode)(" \u6682\u505C\u6309\u94AE "),
|
||||||
|
@ -4602,7 +4619,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
(0, import_vue2.createElementVNode)("view", { class: "col" }, [
|
(0, import_vue2.createElementVNode)("view", { class: "col" }, [
|
||||||
(0, import_vue2.createElementVNode)("u-image", {
|
(0, import_vue2.createElementVNode)("u-image", {
|
||||||
class: "wh80 cir",
|
class: "wh80 cir",
|
||||||
src: $props.item.format_header,
|
src: $props.item.avatar,
|
||||||
mode: "aspectFill"
|
mode: "aspectFill"
|
||||||
}, null, 8, ["src"]),
|
}, null, 8, ["src"]),
|
||||||
!$props.item.isAttention ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
!$props.item.isAttention ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
|
||||||
|
@ -4796,7 +4813,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
|
||||||
(0, import_vue2.createElementVNode)(
|
(0, import_vue2.createElementVNode)(
|
||||||
"u-text",
|
"u-text",
|
||||||
{ class: "cfff f36" },
|
{ class: "cfff f36" },
|
||||||
"@" + (0, import_vue2.toDisplayString)($props.item.userName),
|
"@" + (0, import_vue2.toDisplayString)($props.item.userNickname),
|
||||||
1
|
1
|
||||||
/* TEXT */
|
/* TEXT */
|
||||||
)
|
)
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 552 KiB |
Binary file not shown.
After Width: | Height: | Size: 188 KiB |
Binary file not shown.
Before Width: | Height: | Size: 47 KiB |
|
@ -15,7 +15,7 @@ export default defineConfig({
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
"/user": {
|
"/user": {
|
||||||
target: "http://192.168.1.236:8080",
|
target: "http://192.168.1.235:8080",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
"/coreplay": {
|
"/coreplay": {
|
||||||
|
@ -27,7 +27,7 @@ export default defineConfig({
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
"/video": {
|
"/video": {
|
||||||
target: "http://192.168.1.236:8080",
|
target: "http://192.168.1.235:8080",
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue