Browse Source

fix: bug修复

TIANYONG 3 months ago
parent
commit
444ad9f9db

+ 1 - 0
src/page-instrument/component/vip/permission.tsx

@@ -20,6 +20,7 @@ export const permissionPopup = reactive({
 const pageVisibility = usePageVisibility()
 watch(pageVisibility, async (value) => {
   if (value === "visible" && permissionPopup.show) {
+    permissionPopup.show = false
     const res = await studentQueryUserInfo()
     state.vipType = res.data.vipType
     if (permissionPopup.active === 'member' && (state.vipType === 'VIP' || state.vipType.includes('SVIP'))) {

+ 1 - 1
src/page-instrument/follow-model/index.tsx

@@ -56,7 +56,7 @@ export default defineComponent({
           {(followData.start || followData.practiceStart)&& (
             <>
               <img class={styles.iconBtn} src={headImg("icon_reset.png")} onClick={() => handleFollowEnd()} />
-              <img class={styles.iconBtn} src={headImg("submit.png")} onClick={() => handleFollowEnd()} />
+              <img class={styles.iconBtn} src={headImg("submit.png")} onClick={() => handleFollowEnd('self')} />
             </>
           )}
         </div>

+ 1 - 1
src/page-instrument/header-top/speed/index.module.less

@@ -28,7 +28,7 @@
     }
     .content{
         margin-top: -26px;
-        height: 264px;
+        max-height: 264px;
         background: #FFFFFF;
         border-radius: 16px;
         padding: 36px 16px 16px 16px;

+ 2 - 2
src/view/follow-practice/index.tsx

@@ -147,7 +147,7 @@ export const handleFollowStart = async () => {
 	}
 };
 /** 结束跟练 */
-export const handleFollowEnd = () => {
+export const handleFollowEnd = (handleType?: string) => {
 	onClear();
 	followData.start = false;
 	followData.practiceStart = false;
@@ -156,7 +156,7 @@ export const handleFollowEnd = () => {
 	followData.index = 0;
 	console.log("结束");
 	// 如果开启了循环播放,需要再次跟练
-	if (state.setting.repeatAutoPlay) {
+	if (state.setting.repeatAutoPlay && handleType !== 'self') {
 		setTimeout(() => {
 			followData.practiceStart = true;
 			handleFollowStart();