TM
2020-12-15 9875ef006a78542088dfa614d81e4dd0e0475655
pages/businessData/businessData.js
@@ -4,6 +4,7 @@
Page({
  data: {
    isNomore: false,
    isgoOut:true,
    amt: 0,
    num: 0,
    url: '/sib/xcx/order/hbListInit',//初始化接口地址为花呗
@@ -56,6 +57,9 @@
  onShow() {
    this.getFilter()
    this.getList()
    this.setData({
      isgoOut: true,
    })
  },
  onHide() {
    // 页面被关闭
@@ -64,9 +68,12 @@
      activeTab2: 0,
      url: '/sib/xcx/order/hbListInit',
      queryObj: { prodType: 200015 },
      value: '',
      list: [],
      isgoOut:false,
    })
  },
  test({ index, tabsName }){
  test({ index, tabsName }) {
    console.log(222333)
    this.handleTabClick({ index, tabsName })
  },
@@ -75,36 +82,41 @@
    this.setData({
      [tabsName]: index,
      isNomore: false,
      value:''
      value: ''
    });
    if (index == 0) {
      this.setData({
        queryObj: { prodType: 200015 },
        url: '/sib/xcx/order/hbListInit',
        list:[]
        list: []
      })
    } else if (index == 1) {
      this.setData({
        queryObj: { prodType: 200008 },
        url: '/sib/xcx/order/dmfListInit',
        list:[]
        list: []
      })
    }
    this.getList()
    this.getFilter()
  },
  onhandInput(value){
  onhandInput(value) {
    this.setData({
      value:value
      value: value
    })
  },
  onClear(){
    this.setData({
      value:''
    })
  },
  // 搜索框事件
  searchMation(value){
  searchMation(value) {
    console.log(value)
    let obj = this.data.queryObj
    if(value){
    if (value) {
      obj.userName = value
    }else{
    } else {
      obj.userName = ''
      delete obj.userName
    }
@@ -112,7 +124,7 @@
    this.setData({
      list: [],
      isNomore: false,
      queryObj:{
      queryObj: {
        ...obj
      },
    })
@@ -218,11 +230,11 @@
  },
  // 自定义筛选事件
  onGetFilterInfo(data) {
   if(this.data.value){
    var obj = { ...this.data.queryObj.prodType, ...data ,userName:this.data.value}
   }else{
    var obj = { ...this.data.queryObj.prodType, ...data }
   }
    if (this.data.value) {
      var obj = { prodType: this.data.queryObj.prodType, ...data, userName: this.data.value }
    } else {
      var obj = { prodType: this.data.queryObj.prodType, ...data }
    }
    this.setData({
      list: [],
      isNomore: false,