合并代码

This commit is contained in:
sx 2025-01-02 23:36:48 +08:00
parent e5307207ec
commit bcc6d23092
25 changed files with 539 additions and 332 deletions

View File

@ -12,6 +12,8 @@ import news from '@/api/news.js'
import team from '@/api/team.js'
// 消息
import intergral from '@/api/intergral.js'
// 榴莲区
import durian from '@/api/durian.js'
// 商城
import shop from '@/api/shop.js'

View File

@ -83,8 +83,8 @@ const intergral = {
*/
viewingTasks(param) {
return util.request({
url: `/home/viewingTasks`,
method: 'post',
url: `/video/Effective/return`,
method: 'GET',
query: param.query,
})
},
@ -96,7 +96,7 @@ const intergral = {
buyScroll(param) {
return util.request({
url: `/coreplay/app/scrollinfo/buyScroll`,
method: 'post',
method: 'G',
data: param.data,
})
},

View File

@ -284,8 +284,8 @@ const video = {
*/
browseLog(param) {
return util.request({
url: `/home/browseLog`,
query: param.query,
url: `/video/Effective/second`,
data: param.data,
method: 'POST',
})
},

View File

@ -5,7 +5,8 @@ const config = {
host: 'http://localhost:5173',
// #endif
// #ifndef H5
host: 'http://192.168.1.236:8080',
host: 'http://192.168.1.235:8080',
// host: 'http://192.168.1.236:8080',
// #endif
// 上传文件二级路径
uploadFilePath: "/homecommon/file/preview?fileName=",

View File

@ -74,8 +74,6 @@
switch (mode.value) {
case 'default':
//
// arr[2].pagePath = 'pages/release/video'
arr.push({
page: 'homepage',
type: 'option',
@ -85,7 +83,6 @@
})
break;
case 'shop':
// arr[2].pagePath = 'pages/merchant/commodity-release/index'
arr.push({
page: 'mine',
type: 'option',

View File

@ -141,21 +141,25 @@
//
function onTouchEnd() {
//
if (isLong.value) {
isLong.value = false
videoCtx.value.playbackRate(1)
}
//
if (!isTap.value) {
if (isTap.value) {
isTap.value = false
let time = new Date().getTime()
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(() => {
//
@ -165,11 +169,12 @@
tapList.length = 0
switch (a) {
case 0:
case 1:
changeVideoPlay()
break;
case 2:
console.log('公开赞')
return
emit('like', {
index: props.index,
isLike: isLike == 0 ? 0 : 1
@ -177,6 +182,7 @@
break;
case 3:
console.log('隐私赞')
return
emit('like', {
index: props.index,
isLike: isLike == 0 ? 3 : 1
@ -187,6 +193,13 @@
}
}
//
function onTouchCancel() {
isTap.value = false
tapList.length = 0
clearTimeout(tapTimer.value)
}
//
function changeVideoPlay() {
//
@ -427,6 +440,7 @@
//
function longtap(ev) {
if (isLong.value) return
play()
isLong.value = true
videoCtx.value.playbackRate(2)
}
@ -447,7 +461,7 @@
<!-- 视频层 -->
<view class="main f1">
<view class="videoBox f1" @touchmove.stop="" @touchstart="onTouchStart" @touchend="onTouchEnd"
@touchcancel="onTouchEnd" @longpress="longtap">
@touchcancel="onTouchCancel" @longpress="longtap">
<statusBar />
<video class="video f1" :id="'video' + tabIndex + index" :src="item.videoUrl" :poster="item.coverUrl"
@ -463,6 +477,13 @@
</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">
<!-- 暂停按钮 -->
@ -480,7 +501,7 @@
<!-- 用户头像 -->
<navigator :url="util.setUrl('/pages/index/videoHome',{userId:item.userId})" class="item pr mb10">
<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">
<image class="wh40" src="@/static/indexAtt.png" mode="aspectFit" />
</view>
@ -576,7 +597,7 @@
<!-- 用户 -->
<view class="user" @click="handleUser(item)">
<text class="cfff f36">@{{ item.userName }}</text>
<text class="cfff f36">@{{ item.userNickname }}</text>
</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 {
background-color: rgba(0, 0, 0, .5);

View File

@ -12,23 +12,17 @@
import {
useStore,
} from 'vuex'
import intergralApi from '@/api/intergral.js';
// vuex
//
import api from '@/api/index.js'
const store = useStore()
//
const viewData = ref({
//
seconds: 0,
//
scrollFlag: false,
//
treeFlag: false,
})
//
const type = computed(() => {
let result = viewData.value.scrollFlag || viewData.value.treeFlag
if (result && Number(viewData.value.seconds) > 300) result = false
return result
//
const task = computed(() => {
return store.state.task
})
//
const progress = computed(() => {
@ -45,8 +39,8 @@
//
function getTasks() {
intergralApi.viewingTasks({}).then(rs => {
if (rs.code == 200 && rs.data) {
api.intergral.viewingTasks({}).then(rs => {
if (rs.code == 200) {
viewData.value = rs.data
return
}
@ -56,14 +50,14 @@
<template>
<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="progressBox oh bar mt60">
<view class="progress bar" :style="{width: progress + '%'}"></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>
</template>

View File

@ -70,15 +70,6 @@
util.getPurse()
})
//
function viewingTasks() {
intergralApi.viewingTasks({}).then(rs => {
if (rs.code == 200 && rs.data) {
viewData.value = rs.data
}
})
}
//
function transfer() {
durianlApi.transfer({

View File

@ -205,11 +205,12 @@
// console.log('footerMenuRef', option)
// // footerMenuHeight.value = option.size.height
// })
// 获取视频容器节点信息
dom.getComponentRect(proxy.$refs.containerRef[0], (option) => {
viewSize.height = option.size.height
viewSize.width = option.size.width
nextTick(() => {
// 获取视频容器节点信息
dom.getComponentRect(proxy.$refs.containerRef[0], (option) => {
viewSize.height = option.size.height
viewSize.width = option.size.width
})
})
})
@ -320,6 +321,7 @@
// 获取更多推荐视频
function getMoreRecList() {
console.log('recList', recList)
if (recList.total <= recList.data.length) return
recList.pageNum++
getRecList()
@ -334,6 +336,7 @@
pageSize: recList.pageSize,
}
}).then(rs => {
console.log('getRecList then rs', recList, rs)
if (rs.code == 200) {
// 总数
recList.total = rs.total
@ -526,21 +529,40 @@
// 视频暂停
function handleVideoOnPause() {
if (proxy.$refs.discRef) proxy.$refs.discRef.pause()
readSecondPause()
// readSecondPause()
}
// 观看视频记录
/**
* 观看视频记录
* @param {Object} element 记录的视频元素对象
*/
function browseLog(element) {
return
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({
query: {
videoId: element.item.videoId,
seconds: readSecond.count,
data: {
// 视频id
videoId: element.item.id,
// 有效读秒时间统计
viewingDuration: Math.floor(readSecond.count),
// 视频秒数
videoDescription: Math.floor(element.videoTime.currentTime),
//
task: 0,
}
}).then(rs => {
console.log('browseLog', rs)
if (rs.code != 200) {
console.log('browseLog err', rs)
}

View File

@ -373,6 +373,12 @@
}
</script>
<script lang="renderjs" module="video">
export default {
//
}
</script>
<template>
<view class="appbw">
<view class="form mtb30 mlr30 c666 f32">

View File

@ -353,3 +353,5 @@ call_type 通话类型 2为视频1是音频
释放榴莲果
钱包
释放
选择视频截帧

BIN
jiuyi2/static/complete1.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 552 KiB

BIN
jiuyi2/static/complete2.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

View File

@ -17,6 +17,13 @@ export default createStore({
score: 0,
seed: 0,
},
// 任务
task: {
//任务类型 0.任务读秒 1.流量点(种子)读秒
taskType: 0,
//有效时长
viewingDuration: 0,
},
},
mutations: {

View File

@ -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 { 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 __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" } } };
@ -7130,9 +7130,11 @@ const _sfc_main = {
});
});
onReady(() => {
dom2.getComponentRect(proxy.$refs.containerRef[0], (option) => {
viewSize.height = option.size.height;
viewSize.width = option.size.width;
nextTick(() => {
dom2.getComponentRect(proxy.$refs.containerRef[0], (option) => {
viewSize.height = option.size.height;
viewSize.width = option.size.width;
});
});
});
onShow(() => {
@ -7217,6 +7219,7 @@ const _sfc_main = {
getRecList();
}
function getMoreRecList() {
formatAppLog("log", "at pages/index/index.nvue:324", "recList", recList);
if (recList.total <= recList.data.length)
return;
recList.pageNum++;
@ -7229,6 +7232,7 @@ const _sfc_main = {
pageSize: recList.pageSize
}
}).then((rs) => {
formatAppLog("log", "at pages/index/index.nvue:339", "getRecList then rs", recList, rs);
if (rs.code == 200) {
recList.total = rs.total;
const list = rs.rows.sort(() => Math.random() - Math.random());
@ -7238,7 +7242,7 @@ const _sfc_main = {
item.speed = 1;
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)
getMoreRecList();
setTimeout(() => {
@ -7271,6 +7275,7 @@ const _sfc_main = {
proxy.$refs[`videoRef${tab_index}`][current[tab_index]].play();
});
readSecondPause();
browseLog(lastVideoRef);
readSecond.total += readSecond.count;
if (readSecond.total < readSecond.totalMax)
readSecondAdd();
@ -7312,6 +7317,7 @@ const _sfc_main = {
const lastVideoRef = proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]];
lastVideoRef.pause();
readSecondPause();
browseLog(lastVideoRef);
readSecond.total += readSecond.count;
if (readSecond.total < readSecond.totalMax)
readSecondAdd();
@ -7345,10 +7351,37 @@ const _sfc_main = {
function handleVideoOnPause() {
if (proxy.$refs.discRef)
proxy.$refs.discRef.pause();
readSecondPause();
}
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) {
const {

View File

@ -1535,6 +1535,13 @@ const store = createStore({
fruit: 0,
score: 0,
seed: 0
},
// 任务
task: {
//任务类型 0.任务读秒 1.流量点(种子)读秒
taskType: 0,
//有效时长
viewingDuration: 0
}
},
mutations: {
@ -1576,7 +1583,8 @@ const store = createStore({
});
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=",
// 上传视频二级路径
@ -2004,8 +2012,8 @@ const video = {
*/
browseLog(param) {
return util$1.request({
url: `/home/browseLog`,
query: param.query,
url: `/video/Effective/second`,
data: param.data,
method: "POST"
});
},
@ -2411,8 +2419,8 @@ const intergral = {
*/
viewingTasks(param) {
return util$1.request({
url: `/home/viewingTasks`,
method: "post",
url: `/video/Effective/return`,
method: "GET",
query: param.query
});
},
@ -2423,7 +2431,7 @@ const intergral = {
buyScroll(param) {
return util$1.request({
url: `/coreplay/app/scrollinfo/buyScroll`,
method: "post",
method: "G",
data: param.data
});
},
@ -4051,7 +4059,7 @@ const _imports_7 = "/static/indexCollect.png";
const _imports_8 = "/static/indexShare.png";
const _imports_9 = "/static/indexMoney1.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 = {
__name: "indexVideo",
props: {
@ -4159,42 +4167,41 @@ const _sfc_main$7 = {
clearTimeout(tapTimer.value);
}
function onTouchEnd() {
if (isLong.value) {
isLong.value = false;
videoCtx.value.playbackRate(1);
}
if (!isTap.value) {
if (isTap.value) {
isTap.value = false;
let time2 = (/* @__PURE__ */ new Date()).getTime();
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;
}
tapTimer.value = setTimeout(() => {
const isLike = props.item.isLike;
props.item.isLike;
let a = tapList.length;
tapList.length = 0;
switch (a) {
case 0:
case 1:
changeVideoPlay();
break;
case 2:
formatAppLog("log", "at components/index/indexVideo.vue:172", "公开赞");
emit("like", {
index: props.index,
isLike: isLike == 0 ? 0 : 1
});
break;
formatAppLog("log", "at components/index/indexVideo.vue:176", "公开赞");
return;
case 3:
formatAppLog("log", "at components/index/indexVideo.vue:179", "隐私赞");
emit("like", {
index: props.index,
isLike: isLike == 0 ? 3 : 1
});
break;
formatAppLog("log", "at components/index/indexVideo.vue:184", "隐私赞");
return;
}
}, 200);
}
}
function onTouchCancel() {
isTap.value = false;
tapList.length = 0;
clearTimeout(tapTimer.value);
}
function changeVideoPlay() {
if (playState.value)
pause();
@ -4369,6 +4376,7 @@ const _sfc_main$7 = {
function longtap(ev) {
if (isLong.value)
return;
play();
isLong.value = true;
videoCtx.value.playbackRate(2);
}
@ -4380,7 +4388,7 @@ const _sfc_main$7 = {
playState,
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;
}, get api() {
return api;
@ -4412,7 +4420,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
}, ["stop"])),
onTouchstart: $setup.onTouchStart,
onTouchend: $setup.onTouchEnd,
onTouchcancel: $setup.onTouchEnd,
onTouchcancel: $setup.onTouchCancel,
onLongpress: $setup.longtap
},
[
@ -4462,9 +4470,18 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
/* 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(" 暂停蒙版 "),
!$setup.playState ? (openBlock(), createElementBlock("view", {
key: 0,
key: 1,
class: "pausePanel pfull fmid"
}, [
createCommentVNode(" 暂停按钮 "),
@ -4490,7 +4507,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
createElementVNode("view", { class: "col" }, [
createElementVNode("u-image", {
class: "wh80 cir",
src: $props.item.format_header,
src: $props.item.avatar,
mode: "aspectFill"
}, null, 8, ["src"]),
!$props.item.isAttention ? (openBlock(), createElementBlock("view", {
@ -4684,7 +4701,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
createElementVNode(
"u-text",
{ class: "cfff f36" },
"@" + toDisplayString($props.item.userName),
"@" + toDisplayString($props.item.userNickname),
1
/* TEXT */
)

View File

@ -1,5 +1,36 @@
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"] = (() => {
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;

View File

@ -2179,6 +2179,13 @@ if (uni.restoreGlobal) {
fruit: 0,
score: 0,
seed: 0
},
// 任务
task: {
//任务类型 0.任务读秒 1.流量点(种子)读秒
taskType: 0,
//有效时长
viewingDuration: 0
}
},
mutations: {
@ -2220,7 +2227,8 @@ if (uni.restoreGlobal) {
});
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=",
// 上传视频二级路径
@ -2648,8 +2656,8 @@ if (uni.restoreGlobal) {
*/
browseLog(param) {
return util$1.request({
url: `/home/browseLog`,
query: param.query,
url: `/video/Effective/second`,
data: param.data,
method: "POST"
});
},
@ -3055,8 +3063,8 @@ if (uni.restoreGlobal) {
*/
viewingTasks(param) {
return util$1.request({
url: `/home/viewingTasks`,
method: "post",
url: `/video/Effective/return`,
method: "GET",
query: param.query
});
},
@ -3067,7 +3075,7 @@ if (uni.restoreGlobal) {
buyScroll(param) {
return util$1.request({
url: `/coreplay/app/scrollinfo/buyScroll`,
method: "post",
method: "G",
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 = {
/**
* 商品列表
@ -25222,7 +25360,7 @@ ${i3}
const mpwxs = mpMixins;
let bindIngXMixins = {};
let otherMixins = {};
const block0$1 = (Comp) => {
const block0$2 = (Comp) => {
(Comp.$wxs || (Comp.$wxs = [])).push("wxsswipe");
(Comp.$wxsModules || (Comp.$wxsModules = {}))["wxsswipe"] = "afd46426";
};
@ -25396,8 +25534,8 @@ ${i3}
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
);
}
if (typeof block0$1 === "function")
block0$1(_sfc_main$3C);
if (typeof block0$2 === "function")
block0$2(_sfc_main$3C);
if (typeof block1 === "function")
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"]]);
@ -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 block0$1 = (Comp) => {
(Comp.$renderjs || (Comp.$renderjs = [])).push("video");
(Comp.$renderjsModules || (Comp.$renderjsModules = {}))["video"] = "ddd4bc48";
};
const _sfc_main$36 = {
__name: "video",
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 _sfc_main$35 = {
__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 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 = {
__name: "deal",
setup(__props, { expose: __expose }) {
@ -58614,17 +58628,10 @@ ${i3}
const store2 = useStore();
const viewData = _Vue.ref({
// 有效读秒任务
seconds: 0,
// 卷轴任务
scrollFlag: false,
// 榴莲果树任务
treeFlag: false
seconds: 0
});
const type = _Vue.computed(() => {
let result = viewData.value.scrollFlag || viewData.value.treeFlag;
if (result && Number(viewData.value.seconds) > 300)
result = false;
return result;
const task2 = _Vue.computed(() => {
return store2.state.task;
});
const progress = _Vue.computed(() => {
let result = viewData.value.seconds;
@ -58637,19 +58644,19 @@ ${i3}
});
});
function getTasks() {
intergral.viewingTasks({}).then((rs2) => {
if (rs2.code == 200 && rs2.data) {
api.intergral.viewingTasks({}).then((rs2) => {
if (rs2.code == 200) {
viewData.value = rs2.data;
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;
}, get useStore() {
return useStore;
}, get intergralApi() {
return intergral;
}, get api() {
return api;
} };
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
return __returned__;
@ -58657,7 +58664,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.type ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
$setup.task === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
key: 0,
class: "title c333 f36"
}, "任务读秒")) : (_Vue.openBlock(), _Vue.createElementBlock("view", {
@ -58676,7 +58683,7 @@ ${i3}
/* STYLE */
)
]),
$setup.type ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
$setup.task === 0 ? (_Vue.openBlock(), _Vue.createElementBlock("view", {
key: 2,
class: "label pa t0 r0 ptb5 plr20 cfff"
}, "优先")) : _Vue.createCommentVNode("v-if", true)
@ -58721,13 +58728,6 @@ ${i3}
onLoad(() => {
util$1.getPurse();
});
function viewingTasks() {
intergral.viewingTasks({}).then((rs2) => {
if (rs2.code == 200 && rs2.data) {
viewData.value = rs2.data;
}
});
}
function transfer() {
durian.transfer({
query: {
@ -58751,7 +58751,7 @@ ${i3}
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;
}, onMounted: _Vue.onMounted, ref: _Vue.ref, reactive: _Vue.reactive, computed: _Vue.computed, getCurrentInstance: _Vue.getCurrentInstance, watch: _Vue.watch, get onLoad() {
return onLoad;

View File

@ -1660,6 +1660,13 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
fruit: 0,
score: 0,
seed: 0
},
// 任务
task: {
//任务类型 0.任务读秒 1.流量点(种子)读秒
taskType: 0,
//有效时长
viewingDuration: 0
}
},
mutations: {
@ -1701,7 +1708,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
});
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=",
// 上传视频二级路径
@ -2129,8 +2137,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
*/
browseLog(param) {
return util$1.request({
url: `/home/browseLog`,
query: param.query,
url: `/video/Effective/second`,
data: param.data,
method: "POST"
});
},
@ -2536,8 +2544,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
*/
viewingTasks(param) {
return util$1.request({
url: `/home/viewingTasks`,
method: "post",
url: `/video/Effective/return`,
method: "GET",
query: param.query
});
},
@ -2548,7 +2556,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
buyScroll(param) {
return util$1.request({
url: `/coreplay/app/scrollinfo/buyScroll`,
method: "post",
method: "G",
data: param.data
});
},
@ -4169,7 +4177,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
var _imports_8 = "/static/indexShare.png";
var _imports_9 = "/static/indexMoney1.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 = {
__name: "indexVideo",
props: {
@ -4277,42 +4285,41 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
clearTimeout(tapTimer.value);
}
function onTouchEnd() {
if (isLong.value) {
isLong.value = false;
videoCtx.value.playbackRate(1);
}
if (!isTap.value) {
if (isTap.value) {
isTap.value = false;
let time2 = (/* @__PURE__ */ new Date()).getTime();
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;
}
tapTimer.value = setTimeout(() => {
const isLike = props.item.isLike;
props.item.isLike;
let a = tapList.length;
tapList.length = 0;
switch (a) {
case 0:
case 1:
changeVideoPlay();
break;
case 2:
formatAppLog("log", "at components/index/indexVideo.vue:172", "\u516C\u5F00\u8D5E");
emit("like", {
index: props.index,
isLike: isLike == 0 ? 0 : 1
});
break;
formatAppLog("log", "at components/index/indexVideo.vue:176", "\u516C\u5F00\u8D5E");
return;
case 3:
formatAppLog("log", "at components/index/indexVideo.vue:179", "\u9690\u79C1\u8D5E");
emit("like", {
index: props.index,
isLike: isLike == 0 ? 3 : 1
});
break;
formatAppLog("log", "at components/index/indexVideo.vue:184", "\u9690\u79C1\u8D5E");
return;
}
}, 200);
}
}
function onTouchCancel() {
isTap.value = false;
tapList.length = 0;
clearTimeout(tapTimer.value);
}
function changeVideoPlay() {
if (playState.value)
pause();
@ -4485,6 +4492,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
function longtap(ev) {
if (isLong.value)
return;
play();
isLong.value = true;
videoCtx.value.playbackRate(2);
}
@ -4496,7 +4504,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
playState,
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;
}, get api() {
return api;
@ -4528,7 +4536,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
}, ["stop"])),
onTouchstart: $setup.onTouchStart,
onTouchend: $setup.onTouchEnd,
onTouchcancel: $setup.onTouchEnd,
onTouchcancel: $setup.onTouchCancel,
onLongpress: $setup.longtap
},
[
@ -4578,9 +4586,18 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
/* 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 "),
!$setup.playState ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
key: 0,
key: 1,
class: "pausePanel pfull fmid"
}, [
(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)("u-image", {
class: "wh80 cir",
src: $props.item.format_header,
src: $props.item.avatar,
mode: "aspectFill"
}, null, 8, ["src"]),
!$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)(
"u-text",
{ class: "cfff f36" },
"@" + (0, import_vue2.toDisplayString)($props.item.userName),
"@" + (0, import_vue2.toDisplayString)($props.item.userNickname),
1
/* TEXT */
)
@ -13776,9 +13793,11 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
});
});
onReady(() => {
dom22.getComponentRect(proxy.$refs.containerRef[0], (option) => {
viewSize.height = option.size.height;
viewSize.width = option.size.width;
(0, import_vue3.nextTick)(() => {
dom22.getComponentRect(proxy.$refs.containerRef[0], (option) => {
viewSize.height = option.size.height;
viewSize.width = option.size.width;
});
});
});
onShow(() => {
@ -13863,6 +13882,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
getRecList();
}
function getMoreRecList() {
formatAppLog("log", "at pages/index/index.nvue:324", "recList", recList);
if (recList.total <= recList.data.length)
return;
recList.pageNum++;
@ -13875,6 +13895,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
pageSize: recList.pageSize
}
}).then((rs) => {
formatAppLog("log", "at pages/index/index.nvue:339", "getRecList then rs", recList, rs);
if (rs.code == 200) {
recList.total = rs.total;
const list = rs.rows.sort(() => Math.random() - Math.random());
@ -13884,7 +13905,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
item.speed = 1;
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)
getMoreRecList();
setTimeout(() => {
@ -13917,6 +13938,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
proxy.$refs[`videoRef${tab_index}`][current[tab_index]].play();
});
readSecondPause();
browseLog(lastVideoRef);
readSecond.total += readSecond.count;
if (readSecond.total < readSecond.totalMax)
readSecondAdd();
@ -13958,6 +13980,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
const lastVideoRef = proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]];
lastVideoRef.pause();
readSecondPause();
browseLog(lastVideoRef);
readSecond.total += readSecond.count;
if (readSecond.total < readSecond.totalMax)
readSecondAdd();
@ -13991,10 +14014,37 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
function handleVideoOnPause() {
if (proxy.$refs.discRef)
proxy.$refs.discRef.pause();
readSecondPause();
}
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) {
const {

View File

@ -1656,6 +1656,13 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
fruit: 0,
score: 0,
seed: 0
},
// 任务
task: {
//任务类型 0.任务读秒 1.流量点(种子)读秒
taskType: 0,
//有效时长
viewingDuration: 0
}
},
mutations: {
@ -1697,7 +1704,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
});
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=",
// 上传视频二级路径
@ -2125,8 +2133,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
*/
browseLog(param) {
return util$1.request({
url: `/home/browseLog`,
query: param.query,
url: `/video/Effective/second`,
data: param.data,
method: "POST"
});
},
@ -2532,8 +2540,8 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
*/
viewingTasks(param) {
return util$1.request({
url: `/home/viewingTasks`,
method: "post",
url: `/video/Effective/return`,
method: "GET",
query: param.query
});
},
@ -2544,7 +2552,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
buyScroll(param) {
return util$1.request({
url: `/coreplay/app/scrollinfo/buyScroll`,
method: "post",
method: "G",
data: param.data
});
},
@ -4165,7 +4173,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
var _imports_8 = "/static/indexShare.png";
var _imports_9 = "/static/indexMoney1.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 = {
__name: "indexVideo",
props: {
@ -4273,42 +4281,41 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
clearTimeout(tapTimer.value);
}
function onTouchEnd() {
if (isLong.value) {
isLong.value = false;
videoCtx.value.playbackRate(1);
}
if (!isTap.value) {
if (isTap.value) {
isTap.value = false;
let time2 = (/* @__PURE__ */ new Date()).getTime();
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;
}
tapTimer.value = setTimeout(() => {
const isLike = props.item.isLike;
props.item.isLike;
let a = tapList.length;
tapList.length = 0;
switch (a) {
case 0:
case 1:
changeVideoPlay();
break;
case 2:
formatAppLog("log", "at components/index/indexVideo.vue:172", "\u516C\u5F00\u8D5E");
emit("like", {
index: props.index,
isLike: isLike == 0 ? 0 : 1
});
break;
formatAppLog("log", "at components/index/indexVideo.vue:176", "\u516C\u5F00\u8D5E");
return;
case 3:
formatAppLog("log", "at components/index/indexVideo.vue:179", "\u9690\u79C1\u8D5E");
emit("like", {
index: props.index,
isLike: isLike == 0 ? 3 : 1
});
break;
formatAppLog("log", "at components/index/indexVideo.vue:184", "\u9690\u79C1\u8D5E");
return;
}
}, 200);
}
}
function onTouchCancel() {
isTap.value = false;
tapList.length = 0;
clearTimeout(tapTimer.value);
}
function changeVideoPlay() {
if (playState.value)
pause();
@ -4481,6 +4488,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
function longtap(ev) {
if (isLong.value)
return;
play();
isLong.value = true;
videoCtx.value.playbackRate(2);
}
@ -4492,7 +4500,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
playState,
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;
}, get api() {
return api;
@ -4524,7 +4532,7 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
}, ["stop"])),
onTouchstart: $setup.onTouchStart,
onTouchend: $setup.onTouchEnd,
onTouchcancel: $setup.onTouchEnd,
onTouchcancel: $setup.onTouchCancel,
onLongpress: $setup.longtap
},
[
@ -4574,9 +4582,18 @@ if (typeof uni !== 'undefined' && uni && uni.requireGlobal) {
/* 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 "),
!$setup.playState ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)("view", {
key: 0,
key: 1,
class: "pausePanel pfull fmid"
}, [
(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)("u-image", {
class: "wh80 cir",
src: $props.item.format_header,
src: $props.item.avatar,
mode: "aspectFill"
}, null, 8, ["src"]),
!$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)(
"u-text",
{ class: "cfff f36" },
"@" + (0, import_vue2.toDisplayString)($props.item.userName),
"@" + (0, import_vue2.toDisplayString)($props.item.userNickname),
1
/* 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

View File

@ -15,7 +15,7 @@ export default defineConfig({
changeOrigin: true,
},
"/user": {
target: "http://192.168.1.236:8080",
target: "http://192.168.1.235:8080",
changeOrigin: true,
},
"/coreplay": {
@ -27,7 +27,7 @@ export default defineConfig({
changeOrigin: true,
},
"/video": {
target: "http://192.168.1.236:8080",
target: "http://192.168.1.235:8080",
changeOrigin: true,
},
}