1 Star 0 Fork 7

xcy188/畅阳教培 在线教育 在线视频教育+在线试题+在线题库+在线考试源码Java+SpringBoot+MySql+vue+uni-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
coverviewTop.vue 1.88 KB
一键复制 编辑 原始数据 按行查看 历史
<template>
<cover-view class="top_nav_return">
<cover-view class="top_nav_title">
<cover-view class="imgbox">
<cover-image :src="imageUrl+'/icon/arrow_l_white.png'" mode="" class="img-return"></cover-image>
<cover-view class="returnbox" @click="backPage()"></cover-view>
</cover-view>
<cover-view class="">
{{topNavTitle}}
</cover-view>
<cover-view class="">
<!-- 占位,不要删除 -->
</cover-view>
</cover-view>
</cover-view>
</template>
<script>
export default {
// topNavTitle 导航标题
props: ['topNavTitle'],
data() {
return {
imageUrl: getApp().globalData.imageUrl,
}
},
methods: {
backPage() {
let pages = getCurrentPages(); //获取所有页面栈实例列表
let nowPage = pages[pages.length - 1]; //当前页页面实例
let prevPage = pages[pages.length - 2]; //上一页页面实例
// prevPage.$vm.type = that
// .stype; //修改上一页data里面的searchVal参数值为1211
uni.navigateBack({ //uni.navigateTo跳转的返回,默认1为返回上一级
delta: 1
});
// uni.reLaunch({
// url: '/pages/index/index'
// })
}
}
}
</script>
<style scoped lang="scss">
.returnbox {
position: absolute;
top: -15rpx;
left: -15rpx;
height: 60rpx;
width: 70rpx;
}
.top_nav_return {
position: fixed;
z-index: 10;
top: 0;
left: 0;
width: 100vw;
padding-top: 90rpx;
padding-bottom: 30rpx;
background-color: #F1592A;
color: #fff;
}
.top_nav_title {
position: relative;
text-align: center;
font-size: 36rpx;
font-family: PingFang SC;
font-weight: bold;
padding: 0 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
}
.imgbox {
position: relative;
display: flex;
align-items: center;
.img-return{
height: 36rpx;
width: 19rpx;
}
// image {
// height: 36rpx;
// width: 19rpx;
// }
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xcy1888/changyangEducation.git
git@gitee.com:xcy1888/changyangEducation.git
xcy1888
changyangEducation
畅阳教培 在线教育 在线视频教育+在线试题+在线题库+在线考试源码Java+SpringBoot+MySql+vue+uni-app
master

搜索帮助