# 申请审核 例如帮主
说明:这个属于申请步骤,例如申请成为“老师”,申请成为“医生”,申请成为“帮主”,申请成为“司机”等等!
我们的例子是:申请成为帮主!如图所示:
![](https://box.kancloud.cn/2016-08-25_57beacf07ea05.png) ![](https://box.kancloud.cn/2016-08-25_57beacf0978e6.png) ![](https://box.kancloud.cn/2016-08-25_57beacf0b11c9.png)
源代码如下:
### my_to_helper_win.html
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>成为帮主</title>
<link rel="stylesheet" type="text/css" href="../../../css/aui-win.css"/>
<style>
.aui-bar {
background: #3bafda;
color: #ffffff
}
.aui-content {
background: #fff;
height: 50px;
position: relative;
overflow: hidden;
border-bottom: 1px solid #ddd;
}
.line {
height: 2px;
width: 100%;
background: #eee;
position: absolute;
left: 0;
top:15px;
}
.dot {
position: absolute;
top: 3px;
color: #ddd;
text-align: center;
}
.dot p {
margin: 0 !important;
font-size: 12px;
color: #ccc;
}
.dot .aui-iconfont {
background: #fff;
}
.dot-0 {
left: 15%;
}
.dot-1 {
left: 50%;
margin-left: -26px;
}
.dot-2 {
right: 15%;
}
.dot.active, .dot.active p {
color: #ff9900;
}
</style>
</head>
<body>
<header class="aui-bar aui-bar-nav" id="aui-header">
<a class="aui-pull-left" tapmode onclick="closeWin()">
<span class="aui-iconfont aui-icon-left"></span>我的
</a>
<div class="aui-title">成为帮主</div>
</header>
<section class="aui-content" id="tab">
<div class="line"></div>
<div class="dot dot-0 active" id="dot-0" tapmode>
<i class="aui-iconfont aui-icon-radiobox"></i>
<p>基本信息</p>
</div>
<div class="dot dot-1" id="dot-1" tapmode>
<i class="aui-iconfont aui-icon-radiobox"></i>
<p>个人介绍</p>
</div>
<div class="dot dot-2" id="dot-2" tapmode>
<i class="aui-iconfont aui-icon-radiobox"></i>
<p>等待审核</p>
</div>
</section>
</body>
<script type="text/javascript" src="../../../script/api.js"></script>
<script type="text/javascript">
function closeWin(){
api.closeWin();
}
apiready = function(){
api.parseTapmode();
var header = $api.byId('aui-header');
$api.fixStatusBar(header);
var headerPos = $api.offset(header);
var tab = $api.byId('tab');
var tabPos = $api.offset(tab);
var body_h = $api.offset($api.dom('body')).h;
api.openFrameGroup ({
name: 'my_to_helper_frm',
scrollEnabled:false,
rect:{x:0, y:headerPos.h+tabPos.h, w:'auto', h:body_h - headerPos.h - tabPos.h},
index:0,
frames:
[{
name: 'my_to_helper_one_frm',
url: 'my_to_helper_one_frm.html',
bounces:false,
vScrollBarEnabled: false,
hScrollBarEnabled: false
},{
name: 'my_to_helper_two_frm',
url: 'my_to_helper_two_frm.html',
bounces:false,
vScrollBarEnabled: false,
hScrollBarEnabled: false
},{
name: 'my_to_helper_three_frm',
url: 'my_to_helper_three_frm.html',
bounces:false,
vScrollBarEnabled: false,
hScrollBarEnabled: false
}]
}, function(ret, err){
var name = ret.name;
var index = ret.index;
});
};
function setGroupIndex(index){
$api.removeCls($api.dom(".dot.active"),'active');
$api.addCls($api.byId('dot-'+index+''),'active');
api.setFrameGroupIndex({
name: 'my_to_helper_frm',
index:index,
scroll:true
});
var beforeIndex = index-1;
$api.attr($api.byId('dot-'+index+''),'onclick',"setGroupIndex("+index+")");
$api.attr($api.byId('dot-'+beforeIndex+''),'onclick',"setGroupIndex("+beforeIndex+")");
api.parseTapmode();
}
</script>
</html>
```
### my_to_helper_one_frm.html
```
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>成为帮主</title>
<link rel="stylesheet" type="text/css" href="../../../css/aui.css"/>
<style>
body{
height: auto;
}
.aui-card {
margin-top: 15px;
}
.aui-content {
margin-bottom: 0;
}
p {
padding: 0 10px;
}
p.padded {
padding: 10px;
}
.year-list {
background: none;
text-align: center;
overflow: hidden;
padding:10px 5px;
}
.year {
text-align: center;
font-size: 12px;
margin: 0 5px;
background: #fff;
height: 32px;
line-height: 32px;
border: 1px solid #ddd;
border-radius: 4px;
color: #333;
overflow: hidden;
}
.year.active {
background: #ff9900;
border: 1px solid #ff9900;
color: #ffffff;
-webkit-animation: fadeIn .5s ease both;
animation: fadeIn .5s ease both;
}
.year.disabled{
background: #eeeeee;
border-color: #eeeeee;
color: #666;
}
.price-list .amount strong {
font-size: 18px;
font-weight: 400;
}
.basic-info {
margin-bottom: 15px;
}
@-webkit-keyframes fadeIn {
from { background: #ffffff;border: 1px solid #ddd;}
to { background: #ff9900; border: 1px solid #ff9900;}
}
.aui-content-padded {
margin-top: 15px;
}
.full {
width: 100%;
}
</style>
</head>
<body>
<p class="padded">基本信息</p>
<div class="aui-content basic-info">
<div class="aui-form">
<div class="aui-input-row">
<span class="aui-input-addon">真实姓名</span>
<input type="text" class="aui-input" placeholder="姓名" id="name"/>
</div>
<div class="aui-input-row">
<span class="aui-input-addon">常用手机</span>
<input type="number" class="aui-input" placeholder="请填写常用手机号码" id="mobile"/>
</div>
<div class="aui-input-row">
<span class="aui-input-addon">任职机构</span>
<input type="text" class="aui-input" placeholder="请填写当前任职机构" id="post_office"/>
</div>
<div class="aui-input-row">
<span class="aui-input-addon">头衔职位</span>
<input type="text" class="aui-input" placeholder="请填写您的头衔职位" id="job_position"/>
</div>
<div class="aui-input-row">
<span class="aui-input-addon">常用邮箱</span>
<input type="email" class="aui-input" placeholder="请填写您的常用邮箱" id="email"/>
</div>
</div>
</div>
<p>工作年限</p>
<div class="aui-content year-list">
<div class="">
<div class="aui-col-xs-3">
<div class="year active" year-data="0-3" data-status="1" tapmode>3年以下</div>
</div>
<div class="aui-col-xs-3">
<div class="year" year-data="3-5" data-status="1" tapmode>3-5年</div>
</div>
<div class="aui-col-xs-3">
<div class="year" year-data="5-10" data-status="1" tapmode>5-10年</div>
</div>
<div class="aui-col-xs-3">
<div class="year" year-data="10+" data-status="1" tapmode>10年以上</div>
</div>
</div>
</div>
<p class="padded">常驻城市</p>
<div class="aui-content">
<div class="aui-form">
<div class="aui-input-row full">
<input type="text" class="aui-input" placeholder="如:北京、上海" id="city" />
</div>
</div>
</div>
<p class="padded">所在常驻城市经常活动的区域</p>
<div class="aui-content">
<div class="aui-form">
<div class="aui-input-row full">
<input type="text" class="aui-input" placeholder="如:中关村、国贸" id="activity_area" />
</div>
</div>
</div>
<div class="aui-content-padded">
<div class="aui-btn aui-btn-block aui-btn-info" tapmode onclick="next()" status="0" id="nextBtn">下一步</div>
</div>
</body>
<script type="text/javascript" src="../../../script/api.js"></script>
<script type="text/javascript">
function next(){
api.execScript({
name:'my_to_helper_win',
script:'setGroupIndex(1)'
})
}
apiready = function(){
api.parseTapmode();
var userid = $api.getStorage('userid');
var encrypt = $api.getStorage('encrypt');
var yearList = $api.domAll(".year");
for(var i in yearList){
$api.addEvt(yearList[i], 'click', function(){
$api.removeCls($api.dom(".year.active"),'active');
$api.addCls(this,'active');
});
}
}
</script>
</html>
```
### my_to_helper_two_frm.html
```
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>成为帮主</title>
<link rel="stylesheet" type="text/css" href="../../../css/aui.css">
<style type="text/css">
body{
background: #f4f4f4;
width: 100%;
height: 100%;
}
p.title {
margin: 10px 0 5px 0;
}
p.title-sl {
font-size: 12px;
margin-bottom: 10px;
}
textarea.content{
width: 100%;
border: none;
height: 180px;
font-size: 14px;
margin-bottom: 0;
}
.image {
width: 100%;
}
.image img {
width: 100%;
display: table;
}
</style>
</head>
<body>
<section class="aui-content">
<p class="aui-text-center title">形象照片</p>
<p class="aui-text-center title-sl">请上传一张横幅</p>
<div class="aui-line-x"></div>
<div class="image">
<img src="image/noxingxiang.png" id="avatarImg" tapmode onclick="getPicture()" />
</div>
<div class="aui-line-x"></div>
<p class="aui-text-center title">个人介绍</p>
<div class="aui-form">
<textarea placeholder="尽可能详细的介绍一下自己" class="content" id="introduce"></textarea>
</div>
</section>
<section class="aui-content-padded">
<div class="aui-btn aui-btn-block aui-btn-info" tapmode onclick="next()" id="nextBtn" status="1">提交审核</div>
</section>
</body>
<script type="text/javascript" src="../../../script/api.js"></script>
<script type="text/javascript">
function next(){
api.execScript({
name:'my_to_helper_win',
script:'setGroupIndex(2)'
})
}
function getPicture(){
api.getPicture({
sourceType: 'library',
encodingType: 'jpg',
mediaValue: 'pic',
destinationType: 'url',
allowEdit: true,
quality: 80,
targetWidth:200,
targetHeight:200,
saveToPhotoAlbum: false
}, function(ret, err){
if (ret.data) {
$api.attr($api.byId("avatarImg"),'src',ret.data);
}
})
}
apiready = function(){
api.parseTapmode();
}
</script>
</html>
```
### my_to_helper_three_frm.html
```
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>成为帮主</title>
<link rel="stylesheet" type="text/css" href="../../../css/aui.css">
<style type="text/css">
body{
background: #f4f4f4;
width: 100%;
height: 100%;
}
p.title {
margin: 10px 0;
}
.aui-content {
text-align: center;
padding: 50px 15px;
}
.aui-iconfont {
font-size: 2.8em;
color: #ff9900;
font-weight: 700;
background: #ffffff;
padding: 10px;
border-radius: 50%;
}
h2 {
color: #ff9900;
margin: 15px 0;
}
.small {
font-size: 12px;
}
</style>
</head>
<body>
<section class="aui-content">
<i class="aui-iconfont aui-icon-check"></i>
<h2>提交成功</h2>
<p>我们会在最快的时间完成审核</p>
<p class="small">审核通过后您可以在我的中心发布话题;话题不仅能为您提高一定的知名度,同时还能带来一笔额外的收入</p>
</section>
</body>
<script type="text/javascript" src="../../../script/api.js"></script>
<script type="text/javascript">
apiready = function(){
api.parseTapmode();
}
</script>
</html>
```
- APP模块
- 欢迎页
- 头部模块
- 底部模块
- 图文列表
- 商品展示
- 文字列表
- 内容页一
- 评论页
- N宫格
- 获得上一级的栏目名称
- 搜索模块
- 图标
- 幻灯模块
- 消息页
- 个人中心
- 个人中心—我的收藏
- 个人中心—资料修改
- 个人中心—我的钱包(账户)
- 咨询页面
- APP模板
- 注册 页面一
- 注册 页面二
- 登录 页面一
- 登录 页面二
- 忘记密码 页面一
- 会员中心 首页一
- 会员中心 首页二
- 会员中心 首页三
- 会员中心 资料修改
- 申请审核步骤
- 商品订单一
- 游戏页面
- 新闻列表页
- 图文列表页
- 商品列表页
- 商品详情页
- 聊天
- 消息列表
- 聊天界面
- 发布需求
- 前端框架
- CSS Framework
- trim 字符处理
- dom 选择器
- 样式
- evt 事件
- 选择元素
- 属性
- 文本
- 位置
- json
- 设置
- 提示
- AJAX
- storage 本地存储
- API对象
- 常用函数
- openWin()
- closeWin()
- apiready
- fixStatusBar(header)
- api.setRefreshHeaderInfo
- api.openFrame
- randomSwitchBtn(index,name)
- APP常用图片
- asd