当前位置:网站首页>ionic5表单输入框和单选按钮
ionic5表单输入框和单选按钮
2022-06-23 09:02: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);
}
}边栏推荐
- [advanced Android] kotlin notes
- Combination sum III of leetcode topic analysis
- Combination sum II of leetcode topic analysis
- Best time to buy and sell stock II
- S5P4418裸机编程的实现(替换2ndboot)
- Unity grid programming 08
- June 22, 2022: golang multiple choice question, what does the following golang code output? A:3; B:1; C:4; D: Compilation failed.
- Mysql 数据库入门总结
- 297. Serialize and Deserialize Binary Tree
- Combination sum of leetcode topic analysis
猜你喜欢

Quartz Crystal Drive Level Calculation
Redis学习笔记—持久化机制之AOF

Geoserver添加mongoDB数据源
![[event registration] sofastack × CSDN jointly held the open source series meetup, which was launched on June 24](/img/e1/97c92290a2a5e68f05cdbd5bf525e8.png)
[event registration] sofastack × CSDN jointly held the open source series meetup, which was launched on June 24

简易学生管理

Servlet-02 生命周期

力扣之滑动窗口《循序渐进》(209.长度最小的子数组、904. 水果成篮)

3. Caller 服务调用 - dapr

自定义标签——jsp标签基础

Click Add drop-down box
随机推荐
Leetcode topic analysis group anagrams
Servlet-02 生命周期
'coach, I want to play basketball!'—— AI Learning Series booklet for system students
Redis学习笔记—数据库管理
Batch generation of code128- C barcode
Quartz Crystal Drive Level Calculation
“教练,我想打篮球“ —— 给做系统的同学们准备的 AI 学习系列小册
2022.6.22-----leetcode. five hundred and thirteen
RGB与CMYK颜色模式
MySQL故障案例 | mysqldump: Couldn’t execute ‘SELECT COLUMN_NAME
65. Valid Number
Unique paths for leetcode topic resolution
Redis学习笔记—持久化机制之RDB
36氪首发|云原生数据库公司「拓数派」完成新一轮战略融资,估值已达准独角兽级别
Redis学习笔记—事务
JSP入门总结
528. Random Pick with Weight
4、 Database design
披萨订购设计----简单工厂模式
173. Binary Search Tree Iterator