WeChat small program INPUT form and use instance of Redio and drop-down list

WeChat small program INPUT form and use instance of Redio and drop-down list

A simple reservation type form, effect

微信小程序 input表单与redio及下拉列表的使用实例


  Contact        {{Item.Value}}      Mobile number    Appointment item     {{Casarray [casIndex]}       Submit an appointment    Dialing        .js file  Data: {Nickname: "" ", AvatarURL:" ", Casarray: ['Double eyelid', 'TBM', 'Burkest",' Weight Loss', 'qita'], username: '',Mobile: '', Gender: 'Female', Casindex: 0, Items: [{Name: 'Male', Value: 'Male', Value: 'Female', Checked: 'True' },]}, Radiochange: Function (E) {Console.log ('value:', e.detail.value) this.SetData ({gender: e.detail.value})}}, / ** * Lifecycle function - Listening page Load * / BindcastkerChange: Function (e) {console.log (this.data.casaray); console.log ('drop-down choice ", this.data.casaray [e.detail.value]) this .SetData ({casindex: e.detail.value})}},  Specific form style can be adjusted by himself, the wxss style file code does not write   Refer to the official document FORM component 
https://mp.weixin.qq.com/debug/wxadoc/dev/component/form.html

If you have any questions, please leave a message or go to this site Community exchange discussion, thanks to reading, I hope to help everyone, thank you for your support of this site!

© Copyright Notice
THE END
Just support it if you like
like0
share
comment Grab the couch

Please log in to comment