【前端】云工厂的纸掌柜app
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.0 KiB

<template>
<view class="content">
<uni-nav-bar
:fixed="true"
color="#ffffff"
background-color="#007AFF"
:status-bar="true"
left-icon="arrowleft"
left-text="返回"
title="uni-nav-bar 标题"
@clickLeft="back"
/>
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text @click="changeTitle" class="title">123</text>
</view>
</view>
</template>
<script>
import { go2 } from '@/utils/hook.js'
export default {
data() {
return {
userName: 'zhangsan'
}
},
methods: {
changeTitle() {
go2('login')
},
back() {
console.log('back')
}
}
}
</script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo {
height: 200rpx;
width: 200rpx;
margin-top: 200rpx;
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>