Files
test-subject/src/pages/head/head.vue

56 lines
1.1 KiB
Vue
Raw Normal View History

2025-10-14 18:04:20 +08:00
<template>
<view class="head">
<image src="/static/imgs/h5logo/h5logo@3x.webp" mode="aspectFit" class="applogo" alt="官网logo" />
<view class="spacerview"></view>
2025-12-04 15:32:55 +08:00
<view class="download" @tap="common.download">アプリをダウンロード</view>
2025-10-14 18:04:20 +08:00
</view>
</template>
<script setup>
import { useCommonStore } from '@/stores/common.js'
const common = useCommonStore()
</script>
<style scoped>
.head {
width: 100%;
height: 57px;
padding: 14px 16px;
display: flex;
align-items: center;
justify-content: space-between;
background: #fff;
box-sizing: border-box;
flex-shrink: 0;
border-bottom: 1px solid rgba(0, 0, 0, .08);
margin: 0 auto;
z-index: 1;
}
.applogo {
width: 128px;
height: 33px;
}
.spacerview {
flex: 1;
height: 0;
pointer-events: none
}
.download {
2025-12-04 15:32:55 +08:00
min-width: 120px;
padding: 0 16px;
2025-10-14 18:04:20 +08:00
height: 35px;
border-radius: 29px;
background-image: linear-gradient(156deg, #7c45ed -1%, #7c68ef 19%, #7bd8f8 97%);
color: #fff;
font-size: 14px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
2025-12-04 15:32:55 +08:00
letter-spacing: 0.3px;
2025-10-14 18:04:20 +08:00
}
</style>