first commit

This commit is contained in:
编码猿
2024-09-27 01:32:49 +08:00
commit 28ebe05a64
7399 changed files with 1174529 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
<template>
<!-- 公共头部 状态栏40upx 带有左边返回键右边消息图标 -->
<view class="b_header bg-linear-gradient x-text-white text-center">
{{page_title}}
<image src="../../static/my/left.png" mode="" class="goback" @click="back()"></image>
</view>
</template>
<script>
import public_function from '../../common/public_function.js'
export default{
props:{
page_title:String
},
methods:{
back(){
let routes = getCurrentPages();
let Routes = routes[routes.length - 1].route;
if(Routes.indexOf("order/index") >= 1){
uni.switchTab({
url: '../../pages/my/my'
})
}else{
public_function.goBack();
}
}
}
}
</script>
<style lang="scss">
.b_header{
height:148upx;
position: fixed;
line-height:210upx;
width: 100%;
z-index: 1000;
font-size: 32upx;
.goback{
position: absolute;
bottom:29upx;
left:31upx;
height:30.9upx;
width:18upx;
}
}
</style>