当前位置:网站首页>ionic5錶單輸入框和單選按鈕
ionic5錶單輸入框和單選按鈕
2022-06-23 09:08:00 【kenick】
頁面效果

html文件
<ion-list>
<div>
<ion-input type="text" value="" maxlength="30" placeholder="請輸入二級分銷手機號(已注册)" [(ngModel)]="phone"></ion-input>
</div>
<ion-radio-group [(ngModel)]="operate" >
<ion-list-header>
<ion-label>請單擊下面選項:</ion-label>
</ion-list-header>
<ion-item>
<ion-label>授權分銷</ion-label>
<ion-radio slot="start" value="1"></ion-radio>
</ion-item>
<ion-item>
<ion-label>取消分銷</ion-label>
<ion-radio slot="start" value="0"></ion-radio>
</ion-item>
</ion-radio-group>
</ion-list>ts文件
export class DistributionPage implements OnInit {
public phone: any;
public operate:1;
constructor(
public router: Router,
public httpUtil: HttpUtil,
public commonService: CommonService,
public commonUtil: CommonUtil
) {
}
ngOnInit() {
}
ionViewWillEnter() {
}
grantSecondDistribution(){
console.trace("grantSecondDistribution.in,phone:"+this.phone+",operate:"+this.operate);
}
}边栏推荐
- Summary ranges of leetcode topic resolution
- Custom tags - JSP tag enhancements
- 多线程初学
- Detailed explanation of srl16e in xilinxffpga
- 528. Random Pick with Weight
- 如何在 FlowUs、Notion 等笔记软件中使用「番茄工作法」?
- 3. caller service call - dapr
- Balls and cows of leetcode topic analysis
- Combination sum II of leetcode topic analysis
- 【云原生 | Kubernetes篇】Kubernetes原理与安装(二)
猜你喜欢
随机推荐
Combination sum II of leetcode topic analysis
Leetcode topic analysis group anagrams
扫码登录基本流程
MySQL故障案例 | mysqldump: Couldn’t execute ‘SELECT COLUMN_NAME
2022.6.22-----leetcode. five hundred and thirteen
S5P4418裸机编程的实现(替换2ndboot)
How postman does interface testing 1: how to import swagger interface documents
类型从属名称的使用必须以“typename”为前缀
523. Continuous Subarray Sum
一个采用直接映射方式的32KB缓存......存储器课后习题
Longest substring without repeated characters (C language)
Batch generation of code128- C barcode
How to use "tomato working method" in flowus, notation and other note taking software?
65. Valid Number
进入小公司的初级程序员要如何自我提高?
【NanoPi2试用体验】裸机第一步
Geoserver添加mongoDB数据源
【学习资源】理解数学和热爱数学
Redis学习笔记—事务
In June, China database industry analysis report was released! Smart wind, train storage and regeneration








