From 42ab006a83831e72ab171a4e77b069904089c008 Mon Sep 17 00:00:00 2001 From: sx <2427911852@qq.com> Date: Thu, 2 Jan 2025 00:59:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi/api/video.js | 2 +- jiuyi/components/index/indexVideo.vue | 25 +- jiuyi/manifest.json | 367 ++++--- jiuyi/pages/index/index.nvue | 24 +- jiuyi/static/statistics.jpg | Bin 47827 -> 0 bytes jiuyi/static/statistics.png | Bin 0 -> 473 bytes .../dist/cache/.vite/deps/_metadata.json | 20 +- .../dist/cache/.vite/deps/js-pinyin.js | 947 ------------------ .../dist/cache/.vite/deps/js-pinyin.js.map | 7 - 9 files changed, 226 insertions(+), 1166 deletions(-) delete mode 100644 jiuyi/static/statistics.jpg create mode 100644 jiuyi/static/statistics.png delete mode 100644 jiuyi/unpackage/dist/cache/.vite/deps/js-pinyin.js delete mode 100644 jiuyi/unpackage/dist/cache/.vite/deps/js-pinyin.js.map diff --git a/jiuyi/api/video.js b/jiuyi/api/video.js index 474370d7..e108ace8 100644 --- a/jiuyi/api/video.js +++ b/jiuyi/api/video.js @@ -225,7 +225,7 @@ const video = { */ publishVideo(param) { return util.request({ - url: `/homecommon/publishVideo`, + url: `/video/video/add`, data: param.data, method: 'POST', }) diff --git a/jiuyi/components/index/indexVideo.vue b/jiuyi/components/index/indexVideo.vue index 11f87534..c48a36dd 100644 --- a/jiuyi/components/index/indexVideo.vue +++ b/jiuyi/components/index/indexVideo.vue @@ -60,7 +60,9 @@ }, }) // - const emit = defineEmits(['showTime', 'showComment', 'showCollect', 'showFastCollect', 'showShareFirend', 'onPlay', 'onPause', 'like', 'detailMenu', 'onEnd', 'longtap']) + const emit = defineEmits(['showTime', 'showComment', 'showCollect', 'showFastCollect', 'showShareFirend', 'onPlay', + 'onPause', 'like', 'detailMenu', 'onEnd', 'longtap' + ]) // 视频上下文对象 const videoCtx = ref(null) @@ -414,10 +416,15 @@ - + - @@ -454,10 +461,13 @@ - - + + - + {{ item.likes }} @@ -478,7 +488,8 @@ - + {{ item.collect }} diff --git a/jiuyi/manifest.json b/jiuyi/manifest.json index 56007ae4..08d38eb2 100644 --- a/jiuyi/manifest.json +++ b/jiuyi/manifest.json @@ -1,185 +1,184 @@ { - "name" : "九亿", - "appid" : "__UNI__08B31BC", - "description" : "", - "versionName" : "1.0.2", - "versionCode" : 1002, - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : { - "Camera" : {}, - "Payment" : {}, - "Share" : {}, - "VideoPlayer" : {}, - "Barcode" : {}, - "Record" : {} - }, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "plugins" : [ - { - "type" : "module", - "name" : "Agora-RTC-EngineModule", - "class" : "io.agora.rtc.uni.AgoraRtcEngineModule" - }, - { - "type" : "module", - "name" : "Agora-RTC-ChannelModule", - "class" : "io.agora.rtc.uni.AgoraRtcChannelModule" - }, - { - "type" : "component", - "name" : "Agora-RTC-SurfaceView", - "class" : "io.agora.rtc.uni.AgoraRtcSurfaceView" - }, - { - "type" : "component", - "name" : "Agora-RTC-TextureView", - "class" : "io.agora.rtc.uni.AgoraRtcTextureView" - } - ], - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ], - "abiFilters" : [ "arm64-v8a" ], - "minSdkVersion" : 27, - "targetSdkVersion" : 31 - }, - /* ios打包配置 */ - "ios" : { - "dSYMs" : false, - "idfa" : false - }, - /* SDK配置 */ - "sdkConfigs" : { - "payment" : { - "alipay" : { - "__platform__" : [ "ios", "android" ] - } - }, - "share" : {}, - "ad" : {}, - "geolocation" : {}, - "oauth" : {}, - "push" : {}, - "maps" : {} - }, - "icons" : { - "android" : { - "hdpi" : "unpackage/res/icons/72x72.png", - "xhdpi" : "unpackage/res/icons/96x96.png", - "xxhdpi" : "unpackage/res/icons/144x144.png", - "xxxhdpi" : "unpackage/res/icons/192x192.png" - }, - "ios" : { - "appstore" : "unpackage/res/icons/1024x1024.png", - "ipad" : { - "app" : "unpackage/res/icons/76x76.png", - "app@2x" : "unpackage/res/icons/152x152.png", - "notification" : "unpackage/res/icons/20x20.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "proapp@2x" : "unpackage/res/icons/167x167.png", - "settings" : "unpackage/res/icons/29x29.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "spotlight" : "unpackage/res/icons/40x40.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png" - }, - "iphone" : { - "app@2x" : "unpackage/res/icons/120x120.png", - "app@3x" : "unpackage/res/icons/180x180.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "notification@3x" : "unpackage/res/icons/60x60.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "settings@3x" : "unpackage/res/icons/87x87.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png", - "spotlight@3x" : "unpackage/res/icons/120x120.png" - } - } - }, - "splashscreen" : { - "useOriginalMsgbox" : true - } - }, - "nativePlugins" : { - "HisignFaceLivePlugin" : { - "__plugin_info__" : { - "name" : "HisignFaceLive", - "description" : "鑫模态人脸活体检测移动版", - "platforms" : "Android,iOS", - "url" : "", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : false, - "bought" : -1, - "pid" : "", - "parameters" : {} - } - }, - "TencentCloud-TUICallKit" : { - "__plugin_info__" : { - "name" : "【官方】腾讯云音视频通话插件TencentCloud-TUICallKit", - "description" : "TUICallKit 是腾讯云官方推出的音视频通话插件,支持 1v1 通话和群组通话,并提供“类微信\"的 UI 交互,开发者仅需三个 API 就可实现。", - "platforms" : "Android,iOS", - "url" : "https://ext.dcloud.net.cn/plugin?id=9035", - "android_package_name" : "", - "ios_bundle_id" : "", - "isCloud" : true, - "bought" : 1, - "pid" : "9035", - "parameters" : {} - } - } - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3" -} + "name": "九亿", + "appid": "__UNI__08B31BC", + "description": "", + "versionName": "1.0.2", + "versionCode": 1002, + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + /* 模块配置 */ + "modules": { + "Camera": {}, + "Payment": {}, + "Share": {}, + "VideoPlayer": {}, + "Barcode": {}, + "Record": {} + }, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "plugins": [{ + "type": "module", + "name": "Agora-RTC-EngineModule", + "class": "io.agora.rtc.uni.AgoraRtcEngineModule" + }, + { + "type": "module", + "name": "Agora-RTC-ChannelModule", + "class": "io.agora.rtc.uni.AgoraRtcChannelModule" + }, + { + "type": "component", + "name": "Agora-RTC-SurfaceView", + "class": "io.agora.rtc.uni.AgoraRtcSurfaceView" + }, + { + "type": "component", + "name": "Agora-RTC-TextureView", + "class": "io.agora.rtc.uni.AgoraRtcTextureView" + } + ], + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ], + "abiFilters": ["arm64-v8a"], + "minSdkVersion": 27, + "targetSdkVersion": 31 + }, + /* ios打包配置 */ + "ios": { + "dSYMs": false, + "idfa": false + }, + /* SDK配置 */ + "sdkConfigs": { + "payment": { + "alipay": { + "__platform__": ["ios", "android"] + } + }, + "share": {}, + "ad": {}, + "geolocation": {}, + "oauth": {}, + "push": {}, + "maps": {} + }, + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" + }, + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" + }, + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" + } + } + }, + "splashscreen": { + "useOriginalMsgbox": true + } + }, + "nativePlugins": { + "HisignFaceLivePlugin": { + "__plugin_info__": { + "name": "HisignFaceLive", + "description": "鑫模态人脸活体检测移动版", + "platforms": "Android,iOS", + "url": "", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": false, + "bought": -1, + "pid": "", + "parameters": {} + } + }, + "TencentCloud-TUICallKit": { + "__plugin_info__": { + "name": "【官方】腾讯云音视频通话插件TencentCloud-TUICallKit", + "description": "TUICallKit 是腾讯云官方推出的音视频通话插件,支持 1v1 通话和群组通话,并提供“类微信\"的 UI 交互,开发者仅需三个 API 就可实现。", + "platforms": "Android,iOS", + "url": "https://ext.dcloud.net.cn/plugin?id=9035", + "android_package_name": "", + "ios_bundle_id": "", + "isCloud": true, + "bought": 1, + "pid": "9035", + "parameters": {} + } + } + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3" +} \ No newline at end of file diff --git a/jiuyi/pages/index/index.nvue b/jiuyi/pages/index/index.nvue index 24494cfa..69af2a23 100644 --- a/jiuyi/pages/index/index.nvue +++ b/jiuyi/pages/index/index.nvue @@ -329,7 +329,7 @@ function getRecList() { Promise.all([getHomeVideo(), getShopVideo(), getOtherVideo()]).then(rs => { // 列表 - const list = rs.reduce((last, now) => last.concat(now.rows), []).sort(() => Math.random() - 0.5) + const list = rs.rows.sort(() => Math.random() - 0.5) // 总数 recList.total = rs.reduce((last, now) => last + now.total, 0) // 第一页 @@ -352,7 +352,8 @@ const pages = getCurrentPages() // 判断是否当前页 if (pages[pages.length - 1].route == 'pages/index/index') { - proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value = true + proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].playState.value = + true proxy.$refs[`videoRef${tabIndex.value}`][current[tabIndex.value]].play() } }, 50) @@ -542,7 +543,8 @@ } tabIndex.value = index // 根据是否加载过判断 播放还是获取 - if (tabCurrent.value.load && proxy.$refs[`videoRef${index}`]) proxy.$refs[`videoRef${index}`][current[index]].play() + if (tabCurrent.value.load && proxy.$refs[`videoRef${index}`]) proxy.$refs[`videoRef${index}`][current[index]] + .play() else tabCurrent.value.getList() // 已加载 tab[tabIndex.value].load = true @@ -729,7 +731,8 @@ - + {{item.name}} @@ -752,10 +755,17 @@