搜索

作者: 前端许 | 来源:发表于2022-01-14 22:45 被阅读0次

json引入

{

  "usingComponents": {

    "van-dropdown-menu": "@vant/weapp/dropdown-menu/index",

    "van-dropdown-item": "@vant/weapp/dropdown-item/index",

    "van-cell": "@vant/weapp/cell/index",

    "van-button": "@vant/weapp/button/index",

    "van-switch": "@vant/weapp/switch/index",

    "van-search": "@vant/weapp/search/index",

    "van-empty": "@vant/weapp/empty/index"

  }

}

HTML部分

<view class="flex">

  <van-search value="{{ value }}" placeholder="请输入搜索关键词" show-action bind:search="onSearch" bind:cancel="onCancel" />

<van-dropdown-menu active-color="#1989fa">

  <van-dropdown-item value="{{ value1 }}" options="{{ option1 }}" bind:change="change" data-index="{{index}}" />

  <van-dropdown-item id="item" title="{{ itemTitle }}">

    <van-cell title="{{ switchTitle1 }}">

      <van-switch slot="right-icon" size="24px" style="height: 26px" checked="{{ switch1 }}" active-color="#ee0a24" bind:change="onSwitch1Change" />

    </van-cell>

    <van-cell title="{{ switchTitle2 }}">

      <van-switch slot="right-icon" size="24px" style="height: 26px" checked="{{ switch2 }}" active-color="#ee0a24" bind:change="onSwitch2Change" />

    </van-cell>

    <van-cell title="{{ switchTitle3 }}">

      <van-switch slot="right-icon" size="24px" style="height: 26px" checked="{{ switch3 }}" active-color="#ee0a24" bind:change="onSwitch3Change" />

    </van-cell>

    <van-cell title="{{ switchTitle4 }}">

      <van-switch slot="right-icon" size="24px" style="height: 26px" checked="{{ switch4 }}" active-color="#ee0a24" bind:change="onSwitch4Change" />

    </van-cell>

    <view style="padding: 5px 16px;">

      <van-button type="danger" block round bind:click="onConfirm" data-switch1="{{switch1}}" data-switch2="{{switch2}}" data-switch3="{{switch3}}" data-switch4="{{switch4}}" data-page="{{page}}" bind:change="change">

        确认

      </van-button>

    </view>

  </van-dropdown-item>

</van-dropdown-menu>

</view>

相关文章

  • 搜索+搜索+搜索

    鲜活的一天,从起床那刻开始! <感谢小能熊@陈华伟老师的知识管理课程,仅用于个人笔记学习> 引子 经典的东西值得反...

  • 搜索条搜索

    AppDelegate.m ViewController *theVc = [[ViewController al...

  • GridSearch

    不同搜索空间的比较图: 空间搜索 螺旋搜索 线性搜索 网格搜索 可以看到,在超参的搜索过程汇总,网格搜索和螺旋搜索...

  • 搜索功能 分类搜索

    ``` defindexifparams[:category].blank? @products = Prod...

  • 说“搜索”就搜索

    某天逛网易严选,想买条毛巾,直接在搜索区搜索毛巾 在结果中,下翻了许久,太多种类了,只想买纯棉毛巾,这时想搜索“纯...

  • 搜索最近搜索建议

    前言 本章内容为 Android开发者指南的 Framework Topics/Search/Adding Rec...

  • 排序与搜索:搜索

    搜索 搜索是在一个项目集合中找到一个特定项目的算法过程。搜索通常的答案是真的或假的,因为该项目是否存在。 搜索的几...

  • 【电商运营01】做不好淘宝SEO?怪不得没人买你的好货!

    一、淘宝搜索 1、按买家的搜索行为: (1)关键词搜索(2)类目搜索 2、按搜索框的搜索形式: (1)宝贝搜索(默...

  • 浙江省多媒体设计竞赛——网站类作品

    常用功能介绍 搜索:全文搜索、拼音搜索、各种搜索关键词检错、搜索自动补全(搜索提示)、详细的高级搜索等等【评委两年...

  • 搜索

    搜索是在一个项目集合中找到一个特定项目的算法过程。搜索通常的答案是真的或假的,因为该项目是否存在。 搜索的几种常见...

网友评论

      本文标题:搜索

      本文链接:https://www.haomeiwen.com/subject/awbzcrtx.html