1

parent 478b4cbd
<template> <template>
<view class="search"> <view class="search">
<wd-icon name="thin-arrow-left" class="icon"></wd-icon> <image
@tap="test2"
class="arrow"
src="../../static/arrow.png"
mode="aspectFit|aspectFill|widthFix"
/>
<slot></slot> <slot></slot>
<view class="searchBox"><input type="text" :value="test" /></view> <view class="searchBox">
<image
class="magnifyingGlass"
src="../../static/magnifyingGlass.png"
mode="aspectFit|aspectFill|widthFix"
/>
<input type="text" :value="test" class="text" />
</view>
</view> </view>
</template> </template>
...@@ -22,6 +34,12 @@ onMounted(() => { ...@@ -22,6 +34,12 @@ onMounted(() => {
}, },
}); });
}); });
const test2 = () => {
xma.navigateTo({
url: '/page/index/index',
});
};
function toUIComponentsDoc() { function toUIComponentsDoc() {
window.open('https://wot-design-uni.netlify.app/component/button.html'); window.open('https://wot-design-uni.netlify.app/component/button.html');
} }
...@@ -42,9 +60,10 @@ function onHandleClick() { ...@@ -42,9 +60,10 @@ function onHandleClick() {
margin-top: 44rpx; margin-top: 44rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.icon { padding-left: 20rpx;
width: 22rpx; .arrow {
height: 22rpx; width: 15rpx;
height: 24rpx;
} }
.searchBox { .searchBox {
opacity: 1; opacity: 1;
...@@ -52,6 +71,18 @@ function onHandleClick() { ...@@ -52,6 +71,18 @@ function onHandleClick() {
height: 56rpx; height: 56rpx;
background: #ffffff; background: #ffffff;
border-radius: 28rpx 28rpx 28rpx 28rpx; border-radius: 28rpx 28rpx 28rpx 28rpx;
display: flex;
align-items: center;
padding-left: 20rpx;
margin-left: 20rpx;
.magnifyingGlass {
width: 26rpx;
height: 26rpx;
}
.text {
margin-left: 10rpx;
font-size: 24rpx;
}
} }
} }
</style> </style>
...@@ -36,7 +36,8 @@ function onHandleClick() { ...@@ -36,7 +36,8 @@ function onHandleClick() {
overflow: hidden; overflow: hidden;
.food { .food {
width: 178rpx; width: 178rpx;
height: 52rpx; height: 45rpx;
margin-left: 25rpx;
} }
} }
} }
......
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