chore: 更新视频音频播放组件

- 将 edu-core 依赖从本地文件改为 git 仓库引用 (v1.0.3)
- 在“我的”页面为特定列表项添加 Android 平台条件渲染
- 将应用版本号从 1.0.06 (1006) 更新至 1.0.07 (1007)
- 将开发环境的基础 API URL 从本地测试地址切换为线上正式地址
- 全局注册 CommonCourseVideo 组件,并在课程详情页用它替换原有视频组件
This commit is contained in:
2026-02-10 13:05:45 +08:00
parent 0e900d19be
commit 44eef4e0ed
6 changed files with 12 additions and 14 deletions

View File

@@ -3,8 +3,8 @@ let baseUrl = "";
let socketUrl = ""; let socketUrl = "";
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// 开发环境 // 开发环境
baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
// baseUrl = "https://api.nuttyreading.com/"; //线上正式 baseUrl = "https://api.nuttyreading.com/"; // 线上正式
} else if (process.env.NODE_ENV === 'production') { } else if (process.env.NODE_ENV === 'production') {
// baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川 // baseUrl = "http://192.168.110.100:9200/pb/"; // 张川川
baseUrl = "https://api.nuttyreading.com/"; //线上正式 baseUrl = "https://api.nuttyreading.com/"; //线上正式

View File

@@ -60,6 +60,10 @@ Vue.component('common-anchor-link', commonAnchorLink);
import commonVideo from '@/pages/component/commonComponents/video.vue' import commonVideo from '@/pages/component/commonComponents/video.vue'
Vue.component('common-video', commonVideo); Vue.component('common-video', commonVideo);
import CommonCourseVideo from 'edu-core/components/course-video'
Vue.component('CommonCourseVideo', CommonCourseVideo);
import commonCurriculumVideo from '@/pages/component/commonComponents/curriculumVideo.vue' import commonCurriculumVideo from '@/pages/component/commonComponents/curriculumVideo.vue'
Vue.component('common-curriculum-video', commonCurriculumVideo); Vue.component('common-curriculum-video', commonCurriculumVideo);
import commonRichDetail from '@/pages/component/commonComponents/richDetail.vue' import commonRichDetail from '@/pages/component/commonComponents/richDetail.vue'

View File

@@ -2,8 +2,8 @@
"name" : "太湖云医", "name" : "太湖云医",
"appid" : "__UNI__1B1584A", "appid" : "__UNI__1B1584A",
"description" : "太湖云医", "description" : "太湖云医",
"versionName" : "1.0.06", "versionName" : "1.0.07",
"versionCode" : 1006, "versionCode" : 1007,
"transformPx" : false, "transformPx" : false,
"sassImplementationName" : "node-sass", "sassImplementationName" : "node-sass",
/* 5+App */ /* 5+App */

View File

@@ -1,6 +1,6 @@
{ {
"dependencies": { "dependencies": {
"edu-core": "file:../edu-core", "edu-core": "git+https://git.nuttyreading.com/chenghuan/edu-core.git#v1.0.3",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"qs": "^6.14.0", "qs": "^6.14.0",

View File

@@ -3,10 +3,11 @@
<template v-show="!screenLoading"> <template v-show="!screenLoading">
<z-nav-bar title="教学内容"></z-nav-bar> <z-nav-bar title="教学内容"></z-nav-bar>
<CourseVideo <CommonCourseVideo
:video-list="videoArray" :video-list="videoArray"
:current-index="currentVideoIndex !== null ? currentVideoIndex : 0" :current-index="currentVideoIndex !== null ? currentVideoIndex : 0"
:course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title}" :course="{courseTitle:options.navTitle, chapterTitle: curriculumData.title}"
:cover="options.curriculumImgUrl"
:http="$http" :http="$http"
/> />
@@ -55,19 +56,11 @@
<script> <script>
import courseDescription from "@/pages/component/commonComponents/list"; import courseDescription from "@/pages/component/commonComponents/list";
import VideoPlayer from "edu-core/components/video-player";
import CourseVideo from "edu-core/components/course-video";
import AudioPlayer from "edu-core/src/components/audio-player";
import curriculumMp3 from "./mp3Detail.vue";
import $http from "@/config/requestConfig.js"; import $http from "@/config/requestConfig.js";
import { mapState } from "vuex"; import { mapState } from "vuex";
export default { export default {
components: { components: {
courseDescription, //课程说明 courseDescription, //课程说明
curriculumMp3, //mp3
VideoPlayer, // 视频播放组件
AudioPlayer, // 音频播放组件
CourseVideo,
}, },
data() { data() {
return { return {

View File

@@ -107,6 +107,7 @@
</view> </view>
<view <view
v-if="$platform == 'android'"
class="chong_list_item" class="chong_list_item"
style="flex-direction: initial; margin-right: 0" style="flex-direction: initial; margin-right: 0"
> >