init
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<view
|
||||
class="flex-center ju-between w100 search"
|
||||
@click="$sheep.$router.go('/pages/public/search')"
|
||||
>
|
||||
<image class="shopIcon" src="/static/index/shopIcon.png" mode="widthFix" />
|
||||
<view class="flex-center flex1 search_input">
|
||||
<image
|
||||
style="width: 32rpx; height: 32rpx"
|
||||
src="/static/icon/search1.png"
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
<input
|
||||
class="flex1 input"
|
||||
type="text"
|
||||
placeholder="搜索想要的商品"
|
||||
placeholder-class="search_placeholder"
|
||||
confirm-type="搜索"
|
||||
/>
|
||||
<view class="search_btn">搜索</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
<script setup>
|
||||
import { ref } from 'vue';
|
||||
// let globalData = uni.getStorageSync('globalData');
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.search {
|
||||
padding: 0 32rpx;
|
||||
box-sizing: border-box;
|
||||
height: 110rpx;
|
||||
// background-color: #fff;
|
||||
.search_input {
|
||||
width: calc(100vw - 90px);
|
||||
border: 4rpx solid #fa9c31;
|
||||
height: 64rpx;
|
||||
border-radius: 64rpx;
|
||||
padding-left: 28rpx;
|
||||
margin-left: 24rpx;
|
||||
input {
|
||||
width: 100%;
|
||||
margin-left: 16rpx;
|
||||
height: 100%;
|
||||
}
|
||||
.search_btn {
|
||||
line-height: 64rpx;
|
||||
width: 108rpx;
|
||||
text-align: center;
|
||||
background: linear-gradient(270deg, #fa7931 0%, #fa9c31 100%);
|
||||
border-radius: 64rpx;
|
||||
color: #fff;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
.shopIcon {
|
||||
width: 80rpx;
|
||||
}
|
||||
.search_placeholder {
|
||||
font-size: 28rpx !important;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user