liyaozhi
2025-10-28 1320688354fd168c51cf2e05f29a2253f4ed9c00
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
<template>
    <view class="index-search-box" id="searchBox">
        <view class="index-search diy-search t-c" :class="'diy-search-style-'+itemData.style.searchStyle+' diy-search-textAlign-'+itemData.style.textAlign"
         @click="gotoSearch">
            <span class="icon iconfont icon-sousuo"></span>
            <text class="ml10">{{itemData.params.placeholder}}</text>
        </view>
    </view>
</template>
 
<script>
    export default {
        data() {
            return {}
        },
        props: ['itemData'],
        methods: {
 
            /*跳转搜索页面*/
            gotoSearch() {
                let url = '/pages/product/search/search';
                this.gotoPage(url);
            }
        }
    }
</script>
 
<style>
    /*search*/
    .diy-search-style-3 {}
 
    .diy-search-style-6 {
        border-radius: 16rpx;
    }
 
    .diy-search-style-9 {
        border-radius: 50rpx;
    }
 
    .diy-search-textAlign-3 {
        justify-content: flex-start;
    }
 
    .diy-search-textAlign-6 {
        justify-content: center;
    }
 
    .diy-search-textAlign-9 {
        justify-content: flex-end;
    }
 
    .diy-search .svg-icon {
        margin-right: 10rpx;
    }
</style>