XSLu08042 1 روز پیش
والد
کامیت
84dbebfdda

+ 1 - 1
App.vue

@@ -1,7 +1,7 @@
 <script>
 	export default {
 		globalData: {
-			wsUrl: 'ws://h5api.muyi88.com',
+			wsUrl: 'ws://h5api.his.cdwjyyh.com',
 		},
 		onLaunch: function() {
 			console.log('App Launch')

+ 2 - 2
common/request.js

@@ -4,7 +4,7 @@ import {TOKEN_KEY} from '@/utils/common.js'
 export default class Request {
 	http(router, data = {}, method,contentType,type) {
 		let that = this;
-		let path ='http://h5api.muyi88.com';//server
+		// let path ='http://h5api.muyi88.com';//server
 		// let path = 'http://h5api.ylrztop.com'
 		// let path = 'http://h5.baohetangjinyue.cn'
 		// let path = 'http://h5api.jiuzhouzaixian.com'
@@ -14,7 +14,7 @@ export default class Request {
 		// let path = 'http://h5api.yizhenylfw.com'
 		// let path = 'http://h5api.ylrztop.com'
 		// let path = "http://h5api.cqsft.vip"
-		// let path = 'https://h5api.his.cdwjyyh.com'
+		let path = 'https://h5api.his.cdwjyyh.com'
 		// let path = 'http://h5.xiaofangke.com'
 		// let path = 'https://userapp.ashyisheng.com'
 		// uni.setStorageSync('requestPath',path);

+ 1 - 1
manifest.json

@@ -76,7 +76,7 @@
         },
         "router" : {
             "mode" : "history",
-            "base" : "/auth"
+            "base" : "/appcourse"
         },
         "template" : "template.h5.html",
         "title" : " "

+ 7 - 11
pages/course/learning.vue

@@ -674,7 +674,6 @@
 							this.isFinish = res.isFinish || 0
 							this.duration = res.course && res.course.duration ? res.course.duration : 0
 							this.playDuration = res.playDuration || 0
-							this.playDurationSeek = res.playDuration || 0
 							this.tipsTime = res.tipsTime || 0
 							let lineList = []
 							if (res.course && res.course.lineOne) {
@@ -707,6 +706,7 @@
 								this.videoUrl = lineList[this.lineIndex]
 								this.poster= res.course && res.course.imgUrl ? res.course.imgUrl : ''
 								this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								setTimeout(()=>{
 									this.player = uni.createVideoContext('video-content-box');
 									this.player.seek(this.playTime)
@@ -714,6 +714,7 @@
 								},500);
 							} else {
 								this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								this.player.seek(this.playTime)
 								this.player.play();
 							}
@@ -1498,22 +1499,17 @@
 	}
 
 	.video-controls-box {
-		width: 100%;
-		height: calc(100% - 44px);
+		height: 72rpx;
+		width: 72rpx;
 		overflow: hidden;
 		position: absolute;
-		top: 0;
-		left: 0;
+		top: 50%;
+		left: 50%;
 		z-index: 2;
-		// background: rgba(0, 0, 0, 0.2);
-
+		transform: translate(-50%, -50%);
 		.video-play {
 			height: 72rpx;
 			width: 72rpx;
-			position: absolute;
-			top: calc(50% + 22px);
-			left: 50%;
-			transform: translate(-50%, -50%);
 		}
 	}
 

+ 7 - 11
pages/course/learningBase.vue

@@ -569,7 +569,6 @@
 							this.isFinish = res.isFinish || 0
 							this.duration = res.course && res.course.duration ? res.course.duration : 0
 							this.playDuration = res.playDuration || 0
-							this.playDurationSeek = res.playDuration || 0
 							this.tipsTime = res.tipsTime || 0
 							let lineList = []
 							if (res.course && res.course.lineOne) {
@@ -587,6 +586,7 @@
 								this.videoUrl = lineList[this.lineIndex]
 								this.poster= res.course && res.course.imgUrl ? res.course.imgUrl : ''
 								this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								setTimeout(()=>{
 									this.player = uni.createVideoContext('video-content-box');
 									this.player.seek(this.playTime)
@@ -594,6 +594,7 @@
 								},500);
 							} else {
 								this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								this.player.seek(this.playTime)
 								this.player.play();
 							}
@@ -1274,22 +1275,17 @@
 	}
 
 	.video-controls-box {
-		width: 100%;
-		height: calc(100% - 44px);
+		height: 72rpx;
+		width: 72rpx;
 		overflow: hidden;
 		position: absolute;
-		top: 0;
-		left: 0;
+		top: 50%;
+		left: 50%;
 		z-index: 2;
-		// background: rgba(0, 0, 0, 0.2);
-
+		transform: translate(-50%, -50%);
 		.video-play {
 			height: 72rpx;
 			width: 72rpx;
-			position: absolute;
-			top: calc(50% + 22px);
-			left: 50%;
-			transform: translate(-50%, -50%);
 		}
 	}
 

+ 7 - 11
pages/course/learningNew.vue

@@ -674,7 +674,6 @@
 							this.isFinish = res.isFinish || 0
 							this.duration = res.course && res.course.duration ? res.course.duration : 0
 							this.playDuration = res.playDuration || 0
-							this.playDurationSeek = res.playDuration || 0
 							this.tipsTime = res.tipsTime || 0
 							let lineList = []
 							if (res.course && res.course.lineOne) {
@@ -707,6 +706,7 @@
 								this.videoUrl = lineList[this.lineIndex]
 								this.poster= res.course && res.course.imgUrl ? res.course.imgUrl : ''
 								this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								setTimeout(()=>{
 									this.player = uni.createVideoContext('video-content-box');
 									this.player.seek(this.playTime)
@@ -714,6 +714,7 @@
 								},500);
 							} else {
 								this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								this.player.seek(this.playTime)
 								this.player.play();
 							}
@@ -1498,22 +1499,17 @@
 	}
 
 	.video-controls-box {
-		width: 100%;
-		height: calc(100% - 44px);
+		height: 72rpx;
+		width: 72rpx;
 		overflow: hidden;
 		position: absolute;
-		top: 0;
-		left: 0;
+		top: 50%;
+		left: 50%;
 		z-index: 2;
-		// background: rgba(0, 0, 0, 0.2);
-
+		transform: translate(-50%, -50%);
 		.video-play {
 			height: 72rpx;
 			width: 72rpx;
-			position: absolute;
-			top: calc(50% + 22px);
-			left: 50%;
-			transform: translate(-50%, -50%);
 		}
 	}
 

+ 7 - 11
pages/course/learningNewApp.vue

@@ -692,7 +692,6 @@
 							this.isFinish = res.isFinish || 0
 							this.duration = res.course && res.course.duration ? res.course.duration : 0
 							this.playDuration = res.playDuration || 0
-							this.playDurationSeek = res.playDuration || 0
 							this.tipsTime = res.tipsTime || 0
 							let lineList = []
 							if (res.course && res.course.lineOne) {
@@ -725,6 +724,7 @@
 								this.videoUrl = lineList[this.lineIndex]
 								this.poster= res.course && res.course.imgUrl ? res.course.imgUrl : ''
 								this.playTime = this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								setTimeout(()=>{
 									this.player = uni.createVideoContext('video-content-box');
 									this.player.seek(this.playTime)
@@ -732,6 +732,7 @@
 								},500);
 							} else {
 								this.playTime = this.playTime > this.playDuration ? this.playTime : this.playDuration >= this.duration ? 0 : this.playDuration
+								this.playDurationSeek = this.playTime
 								this.player.seek(this.playTime)
 								this.player.play();
 							}
@@ -1560,22 +1561,17 @@
 	}
 
 	.video-controls-box {
-		width: 100%;
-		height: calc(100% - 44px);
+		height: 72rpx;
+		width: 72rpx;
 		overflow: hidden;
 		position: absolute;
-		top: 0;
-		left: 0;
+		top: 50%;
+		left: 50%;
 		z-index: 2;
-		// background: rgba(0, 0, 0, 0.2);
-
+		transform: translate(-50%, -50%);
 		.video-play {
 			height: 72rpx;
 			width: 72rpx;
-			position: absolute;
-			top: calc(50% + 22px);
-			left: 50%;
-			transform: translate(-50%, -50%);
 		}
 	}
 

BIN
unpackage/dist/build/appcourse.zip


+ 1 - 1
unpackage/dist/build/web/index.html

@@ -1,2 +1,2 @@
 <!DOCTYPE html><html lang=zh-CN><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta http-equiv=Cache-Control content="no-cache, no-store, must-revalidate"><meta http-equiv=Pragma content=no-cache><meta http-equiv=Expires content=0><title></title><script>var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
-            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/auth/static/index.2da1efab.css></head><body><div id=app></div><script src="/auth/./static/js/chunk-vendors.1749720810388.js?v=1749720810388"></script><script src="/auth/./static/js/index.1749720810388.js?v=1749720810388"></script></body></html>
+            document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')</script><link rel=stylesheet href=/appcourse/static/index.2da1efab.css></head><body><div id=app></div><script src="/appcourse/./static/js/chunk-vendors.1749807351533.js?v=1749807351533"></script><script src="/appcourse/./static/js/index.1749807351533.js?v=1749807351533"></script></body></html>

+ 1 - 1
utils/common.js

@@ -6,7 +6,7 @@ import wx from 'jweixin-module';
 // AppToken_HDTCourse 宏德堂
 // AppToken_RTCourse 润天
 
-export const TOKEN_KEY = 'AppToken_MYCourse'; // token 信息
+export const TOKEN_KEY = 'AppToken_RTCourse'; // token 信息
 const CONFIG_KEY = 'QXT_MAGMT_CONFIG_KEY'; // 系统配置
 const USER_KEY = 'QXT_MAGMT_USER_KEY'; // 账号信息
 const SITE_BASE_URL_KEY = 'SITE_BASE_URL_KEY'; // 链接信息