WeChat Mini Programs, clear the assignment

initial effect:

:



but my reset button clears the assignment to input. Why did you pick a random one and go up with all the values?

Code:

page(
  data: {
    inputValue: "",
    inputdata: "",
   
    workselect: "",
    moneyselect: "",
    sexselect: "",
    
    workplacename: "",
    moneybtnname: "",
    sexname: "",
    
  },

  // 
  resetBtn() {
    this.setData({
      sexselect: "",
      workselect: "",
      moneyselect: "",
      inputValue: "",
      inputdata: "",
    })
  },

  // 
  sexbtn(e) {
    let id = e.currentTarget.dataset.id;
    let name = e.currentTarget.dataset.name;
    this.setData({
      sexselect: id,
      sexname: name,
    })

    this.data.inputdata = this.data.workplacename + "," + this.data.sexname + "," + this.data.moneybtnname; 
    this.setData({
      inputValue: this.data.inputdata,
    })
  },

)

ask the great god for advice. Thank you.

Mar.28,2021

 resetBtn(),idname  resetBtn()  workselect workselectname  workselectname inputdata
 resetBtn workselectnamesexnamemoneybtnname
   
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ecda-2c44f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ecda-2c44f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?