增加视频详情页面,处理登录注册接口数据不一致兼容问题

This commit is contained in:
YeMingfei666 2025-01-07 10:53:49 +08:00
parent 11b83c267f
commit 75088f78c8
5 changed files with 59 additions and 4 deletions

View File

@ -0,0 +1,20 @@
<template>
<view>
</view>
</template>
<script>
export default {
name:"my-video-list",
data() {
return {
};
}
}
</script>
<style lang="scss">
</style>

View File

@ -82,7 +82,7 @@ function commonsProcess(showLoading, httpReqCallback) {
});
}
// 构造请求成功的响应数据
return Promise.resolve(bodyData.data || bodyData.page);
return Promise.resolve(bodyData.data || bodyData.page|| bodyData);
})
.catch((res) => {
console.log(res);

View File

@ -21,7 +21,15 @@
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
}, {
},
{
"path": "pages/video/detail",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
},
{
"path": "pages/task/index",
"style": {
"navigationBarTitleText": "",

23
pages/video/detail.nvue Normal file
View File

@ -0,0 +1,23 @@
<template>
<view class="min-page">
<my-video-list></my-video-list>
</view>
</template>
<script setup>
import {onLoad,onShow} from '@dcloudio/uni-app'
onLoad((opt)=>{
})
onShow(()=>{
})
</script>
<style lang="scss" scoped>
.min-page{
height: 100vh;
background-color: #000;
overflow: hidden;
}
</style>

View File

@ -1,11 +1,15 @@
<template>
<view>
<up-button @click="toDetail">toDetail</up-button>
</view>
</template>
<script setup>
function toDetail(){
uni.navigateTo({
url:'/pages/video/detail'
})
}
</script>
<style>