Commit 7b560fb4 authored by 石建新(贵阳日报)'s avatar 石建新(贵阳日报)
parents 8e579966 a8103b2b
<template> <template>
<view class="content" :style="{ height: contentHeight, background: backgroundBox }"> <view class="searchComponent" :style="{ height: contentHeight, background: backgroundBox }">
<view class="search" :style="{ background }"> <view class="search" :style="{ background }">
<wd-icon <wd-icon
v-if="show" v-if="show"
...@@ -48,13 +48,10 @@ const props = defineProps({ ...@@ -48,13 +48,10 @@ const props = defineProps({
}, },
}); });
const contentHeight = ref('100rpx'); const contentHeight = ref('100rpx');
const emit = defineEmits(['toSearch']);
// const title = ref('小程序平台');
const { countInfo, addCount } = useCountStore();
onLoad(() => { onLoad(() => {
xma.xh.getSystemInfo({ xma.xh.getSystemInfo({
success(res) { success(res) {
console.log('设备信息', res); // 设备信息 // console.log('设备信息', res); // 设备信息
}, },
}); });
xma.xh.getMenuButtonBoundingClientRect({ xma.xh.getMenuButtonBoundingClientRect({
...@@ -69,10 +66,6 @@ onLoad(() => { ...@@ -69,10 +66,6 @@ onLoad(() => {
}, },
}); });
}); });
const search = (res) => {
const keyword = res.detail.value;
emit('toSearch', keyword);
};
// 返回上一级 // 返回上一级
const back = () => { const back = () => {
...@@ -80,17 +73,10 @@ const back = () => { ...@@ -80,17 +73,10 @@ const back = () => {
delta: 1, delta: 1,
}); });
}; };
function toUIComponentsDoc() {
window.open('https://wot-design-uni.netlify.app/component/button.html');
}
function onHandleClick() {
addCount();
}
</script> </script>
<style lang="scss"> <style lang="scss">
.content { .searchComponent {
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 999999; z-index: 999999;
......
...@@ -256,8 +256,8 @@ function jumpProductDetails(item) { ...@@ -256,8 +256,8 @@ function jumpProductDetails(item) {
// }); // });
// }; // };
// 搜索 // 搜索
const toSearch = (keyword) => { const toSearch = (res) => {
listParams.keyword = keyword; listParams.keyword = res.detail.value;
reset(); reset();
getMerchantList(); getMerchantList();
}; };
......
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