添加UniApp
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<image class="hero" src="/static/devices/search_illustration.png" mode="widthFix"></image>
|
||||
<view class="status">
|
||||
<image class="bt" src="/static/devices/bluetooth_off.png"></image>
|
||||
<text>未连接</text>
|
||||
</view>
|
||||
<button class="btn-primary">搜索设备</button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container { padding: 32rpx; }
|
||||
.hero { width: 100%; margin-bottom: 24rpx; }
|
||||
.status { display: flex; align-items: center; gap: 12rpx; margin-bottom: 24rpx; }
|
||||
.bt { width: 40rpx; height: 40rpx; }
|
||||
.btn-primary { background: #007AFF; color: #fff; border-radius: 12rpx; height: 88rpx; line-height: 88rpx; }
|
||||
</style>
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<image class="banner" src="/static/home/banner.png" mode="widthFix"></image>
|
||||
<view class="content">
|
||||
<text class="title">首页</text>
|
||||
<image class="device-entry" src="/static/devices/device_placeholder.png" mode="widthFix"></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container { width: 750rpx; }
|
||||
.banner { width: 750rpx; }
|
||||
.content { padding: 24rpx; }
|
||||
.title { font-size: 32rpx; font-weight: 600; margin-bottom: 16rpx; }
|
||||
.device-entry { width: 100%; border-radius: 16rpx; }
|
||||
</style>
|
||||
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
<template>
|
||||
<view>
|
||||
<image class="logo" src="/static/logo.png"></image>
|
||||
<text class="title">{{title}}</text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.logo {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
margin: 100px auto 25px auto;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 18px;
|
||||
color: #8f8f94;
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<scroll-view class="container">
|
||||
<image class="bg" src="/static/auth/login_bg.png" mode="widthFix"></image>
|
||||
<view class="card">
|
||||
<image class="illustration" src="/static/auth/login_illustration.png" mode="widthFix"></image>
|
||||
<view class="inputs">
|
||||
<input class="input" placeholder="手机号 / 邮箱" />
|
||||
<view class="password-row">
|
||||
<input class="input" placeholder="密码" password />
|
||||
<image class="eye" src="/static/auth/icon_eye_off.png"></image>
|
||||
</view>
|
||||
<button class="btn-primary">登录</button>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() { return {} },
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
width: 750rpx;
|
||||
}
|
||||
.bg { width: 750rpx; }
|
||||
.card {
|
||||
margin: 32rpx;
|
||||
padding: 32rpx;
|
||||
background: #fff;
|
||||
border-radius: 24rpx;
|
||||
box-shadow: 0 8rpx 24rpx rgba(0,0,0,0.06);
|
||||
}
|
||||
.illustration { width: 100%; margin-bottom: 24rpx; }
|
||||
.inputs { display: flex; flex-direction: column; gap: 24rpx; }
|
||||
.input { height: 88rpx; border: 1rpx solid #eee; border-radius: 12rpx; padding: 0 24rpx; }
|
||||
.password-row { position: relative; }
|
||||
.password-row .input { padding-right: 72rpx; }
|
||||
.eye { position: absolute; right: 24rpx; top: 24rpx; width: 40rpx; height: 40rpx; }
|
||||
.btn-primary { background: #007AFF; color: #fff; border-radius: 12rpx; height: 88rpx; line-height: 88rpx; }
|
||||
</style>
|
||||
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<image class="bg" src="/static/splash/background.png" mode="aspectFill"></image>
|
||||
<view class="overlay">
|
||||
<image class="logo" src="/static/logo.png" mode="widthFix"></image>
|
||||
<text class="app-name">Emotion Museum</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
onLoad() {},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.container {
|
||||
position: relative;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.bg {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
}
|
||||
.overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 750rpx;
|
||||
height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.logo {
|
||||
width: 160rpx;
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
.app-name {
|
||||
font-size: 36rpx;
|
||||
color: #111;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user