有如下几种数据格式:

 sort_condition: {
      curIndex: '0',
      curArrow: '0'
    }
    ,//排序界面
    date_condition: [
      {
        curIndex: '0',
        curArrow: '0'
      }
    ],
    screen_type: 0,//0 排序 1 条件 2 更多

设置格式的时候可以分别采用下面的方法:

  this.setData({
            'sort_condition.curIndex': 1
          });
  this.setData({
            'date_condition[0].curIndex': 1
          });
  this.setData({
            screen_tyle:1
          });

如此,可以达到根据数据影响界面绑定数据的功能

相关文章:

  • 2021-09-12
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2022-01-10
猜你喜欢
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
相关资源
相似解决方案