Blame view
pages/index/index.vue
892 Bytes
a2408fc3f init |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
<template> <view class="content"> <view class="searchBar"> <icon class="searchIcon" type="search" size="21"></icon> <input class="searchIpt" placeholder="请输入搜索内容" confirm-type="search"/> </view> <view class="screenBar"></view> <view class=""></view> </view> </template> <script> export default { data() { return { title: 'Hello' } }, onLoad() { }, methods: { } } </script> <style> .content { display: flex; flex-direction: column; align-items: center; justify-content: center; } .searchBar { width: calc(100% - 16rpx * 2); display: flex; justify-content: center; align-items: center; box-sizing: border-box; margin: 16rpx 16rpx; padding: 0rpx 16rpx; background-color: #F8F8F8; } .searchIpt { height: 64rpx; width: 100%; padding: 16rpx; font-size: 28rpx; box-sizing: border-box; } </style> |