This commit is contained in:
qiuyuan 2025-08-06 18:15:28 +08:00
parent 181cd1ec82
commit 23e1c4d6f0
16 changed files with 11 additions and 92 deletions

View File

@ -1,91 +0,0 @@
<template>
<view class="header">
<view class="header-content">
<view class="left" @click="goBack">
<u-icon name="arrow-left" color="#fff" size="36rpx"></u-icon>
</view>
<view class="center">
<text class="title">{{ title }}</text>
</view>
<view class="right">
<!-- 右侧占位 -->
</view>
</view>
</view>
</template>
<script>
export default {
props: {
title: {
type: String,
default: '标题'
}
},
methods: {
goBack() {
let pages = getCurrentPages(); //
console.log("-----pages",pages)
if (pages.length > 1) {
// 1
uni.navigateBack({
delta: 1
});
} else {
//
uni.showToast({
title: '已经是首页了',
icon: 'none'
});
}
}
}
};
</script>
<style lang="scss" scoped>
.header {
background-color: transparent;
/* 蓝色背景 */
padding: 20rpx 30rpx;
position: fixed;
top: 90rpx;
left: 0;
right: 0;
z-index: 999;
.header-content {
display: flex;
align-items: center;
justify-content: space-between;
.left {
flex: 1;
display: flex;
align-items: center;
.back-icon {
width: 40rpx;
height: 40rpx;
}
}
.center {
flex: 2;
text-align: center;
.title {
color: #2e2e2e;
font-size: 36rpx;
// font-weight: bold;
}
}
.right {
flex: 1;
text-align: right;
}
}
}
</style>

View File

@ -10,6 +10,10 @@
"usingComponents" : true,
"nvueStyleCompiler" : "uni-app",
"compilerVersion" : 3,
"permissions": [
"camera",
"album"
],
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : true,
@ -68,7 +72,13 @@
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于获取周边服务"
}
},
"scope.album": {
"desc": "需要您的相册权限以便选择图片"
},
"scope.camera": {
"desc": "需要您的相机权限以便拍照"
}
}
},
"mp-alipay" : {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB