1

parent 39c009c6
...@@ -29,7 +29,8 @@ ...@@ -29,7 +29,8 @@
"vconsole": "^3.15.1", "vconsole": "^3.15.1",
"vue": "^3.3.11", "vue": "^3.3.11",
"vue-i18n": "^9.1.9", "vue-i18n": "^9.1.9",
"wot-design-uni": "^1.3.12" "wot-design-uni": "^1.3.12",
"xinhua-sdk": "^1.8.0"
}, },
"devDependencies": { "devDependencies": {
"@dcloudio/types": "^3.3.2", "@dcloudio/types": "^3.3.2",
......
...@@ -81,7 +81,7 @@ const back = () => { ...@@ -81,7 +81,7 @@ const back = () => {
.search { .search {
position: absolute; position: absolute;
bottom: 10rpx; bottom: 10rpx;
left: 50%; left: 0;
// padding-left: 20rpx; // padding-left: 20rpx;
box-sizing: border-box; box-sizing: border-box;
...@@ -89,14 +89,17 @@ const back = () => { ...@@ -89,14 +89,17 @@ const back = () => {
// margin-top: 44rpx; // margin-top: 44rpx;
display: flex; display: flex;
align-items: center; align-items: center;
width: 710rpx; width: 100%;
height: 80rpx;
margin: 0 auto;
// background: rgba(255, 255, 255, 0.8); // height: 80rpx;
border-radius: 16rpx;
// margin: 0 auto;
// background: red;
// border-radius: 16rpx;
opacity: 0.8; opacity: 0.8;
transform: translateX(-50%);
// transform: translateX(-50%);
.arrow { .arrow {
width: 15rpx; width: 15rpx;
height: 24rpx; height: 24rpx;
......
...@@ -7,8 +7,8 @@ import Vconsole from "vconsole"; ...@@ -7,8 +7,8 @@ import Vconsole from "vconsole";
export function createApp() { export function createApp() {
const app = createSSRApp(App); const app = createSSRApp(App);
app.component("NavBar", NavBar); app.component("NavBar", NavBar);
const vConsole = new Vconsole();
app.use(store); app.use(store);
app.use(vConsole);
return { return {
app app
}; };
......
...@@ -7,6 +7,12 @@ ...@@ -7,6 +7,12 @@
<input placeholder="搜索职位,公司" placeholder-class="log-input-p" type="text"></input> <input placeholder="搜索职位,公司" placeholder-class="log-input-p" type="text"></input>
</view> </view>
</nav-bar> --> </nav-bar> -->
<NavBar :showIcon="false" backgroundBox="#ffffff">
<view class="search-form">
<wd-icon class="search-icon" name="search"></wd-icon>
<input placeholder="请输入要查询的内容" placeholder-class="log-input-p" type="text" />
</view>
</NavBar>
<!-- 轮播区 --> <!-- 轮播区 -->
<wd-swiper <wd-swiper
...@@ -357,41 +363,27 @@ getListData(); ...@@ -357,41 +363,27 @@ getListData();
/* page { /* page {
background: #ffffff; background: #ffffff;
} */ } */
.search-form {
// 顶部导航 display: flex;
.nav-bar { align-items: center;
position: relative; width: 452rpx;
.search-form { height: 72rpx;
// background: rgba(245, 245, 245, 1); margin-left: 32rpx;
position: relative; overflow: hidden;
box-sizing: content-box; background: #f7f7f7;
width: 452rpx; border-radius: 68rpx;
height: 60rpx; .search-icon {
width: 28rpx;
height: 28rpx;
margin-left: 32rpx; margin-left: 32rpx;
overflow: hidden; color: #86909c;
background-color: #f7f7f7; }
border-radius: 30rpx; input {
.search-icon { margin-left: 16rpx;
position: absolute; font-size: 28rpx;
top: 50%; }
left: 42rpx; .log-input-p {
z-index: 10; color: #b3b7bf;
width: 28rpx;
height: 28rpx;
transform: translateY(-50%);
}
input {
// background-color: #F7F7F7;
position: absolute;
right: 0rpx;
left: 0rpx;
z-index: 9999;
box-sizing: border-box;
width: 100%;
width: auto;
height: 100%;
padding: 0 88rpx;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment