惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
月光博客
月光博客
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
腾讯CDC
博客园 - Franky
Engineering at Meta
Engineering at Meta
C
Check Point Blog
T
The Blog of Author Tim Ferriss
有赞技术团队
有赞技术团队
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
I
InfoQ
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学

博客园 - 石曼迪

.net core web api 发布填坑 Visual Studio 2026 开发 MAUI app 记录 Windows下搭建rustdesk远程服务 nginx 二级域名配置 .NET CORE 相关配置 frps-frpc配置 使用SuperSocket开发联网斗地主(四):出牌 使用SuperSocket开发联网斗地主(三):抢地主 使用SuperSocket开发联网斗地主(二):发牌 使用SuperSocket开发联网斗地主(一):联网 SuperSocket服务端与客户端搭建 EXCEL脚本收藏 Python练习 Python基础总结 在centos7.6上部署.netcore 3.0 web程序 最简单的centos上安装Nginx办法 七牛网数据备份 solr搜索分词优化 Ionic异常及解决 狗日的腾讯
小程序开发记录
石曼迪 · 2020-11-23 · via 博客园 - 石曼迪

1. Picker选择器

json格式如[{TransactionNumber=1,VendorName="百度"},{TransactionNumber=2,VendorName="保科院"}]

      <picker bindchange="bindPickerChange" value="{{index}}" range="{{company}}" range-key="VendorName" data-id='{{type[index].TransactionNumber}}'>
        <view class="title">
          需方{{company[index].VendorName}}
        </view>
      </picker>

  js:带filter筛选

var that=this;  
    //绑定公司信息
    wx.request({
      url: app.globalData.API + 'VendorInfo',
      header: {
        "Content-Type": "applicatiSon/x-www-form-urlencoded"
      },
      method: "GET",
      success: function (res) {
        var company = res.data.filter((p)=>{
          return p.VendorType==1
        });
        var supllay = res.data.filter((p)=>{
          return p.VendorType!=1
        });
  
        that.setData({ 
          company:company,
          supllay:supllay
        })
      }