3、动态加载的内容:

home.js

[html] view plain copy 在CODE上查看代码片派生到我的代码片

define(['app'], function(app)

{

app.controller('HomeViewController',

['$scope',function($scope) {

document.getElementById("test").onclick = function(){

swal($scope.title);

}

$scope.title = "Home Home Home Home";

}

]);

});

home-view.js

[html] view plain copy 在CODE上查看代码片派生到我的代码片

<div ng-controller="HomeViewController">

<button ui-sref="about">About</button>

<h1>{{ title }}</h1>

<br/>

<form name = "registerForm" id = "registerForm" method="post" class="form-horizontal" novalidate >

<p class="bg-warning" style = "margin-left:50px;margin-right:50px;"><i class="glyphicon glyphicon-info-sign"></i><span > <b>温馨提示:带<span style="color:red"> *</span>为必填项</b></span></p>

<div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="merchantName">商户名称<span style="color:red"> *</span></label>

<div class="col-md-2" show-errors>

<input type="text" class="form-control" id="merchantName" name = "merchantName" ng-model="merhantBaseInfo.merchantName" required>

<div class="help-block" ng-messages="registerForm.merchantName.$error" ng-if="registerForm.merchantName.$touched">

<span ng-message="required" >用户名不能为空</span>

</div>

</div>

<label class="control-label col-md-1" for="merchantShortName">商户简称</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="merchantShortName" name ="merchantShortName"  ng-model="merhantBaseInfo.merchantShortName"  >

</div>

<label class="control-label col-md-1" for="type">商户类型<span style="color:red"> *</span></label>

<div class="col-md-2" show-errors>

<select  class="form-control" id="type" name = "type" ng-model="merhantBaseInfo.type"  ng-options="type.name as type.desc for type in MerchantTypeArray" required >

<option value="">-- 请选择 --</option>

</select>

<div class="help-block" ng-messages="registerForm.type.$error" ng-if="registerForm.type.$touched">

<span ng-message="required" >商户类型不能为空</span>

</div>

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="comRegName">商户工商注册全名<span style="color:red"> *</span></label>

<div class="col-md-5" show-errors>

<input type="text" class="form-control" id="comRegName" name = "comRegName" ng-model="merhantBaseInfo.comRegName" required>

<div class="help-block" ng-messages="registerForm.comRegName.$error" ng-if="registerForm.comRegName.$touched">

<span ng-message="required" >商户注册全名不能为空</span>

</div>

</div>

<label class="control-label col-md-1" for="industry">所属行业<span style="color:red"> *</span></label>

<div class="col-md-2" show-errors>

<select  class="form-control" id="industry" name = "industry" ng-model="merhantBaseInfo.industry" ng-options="industry.name as industry.desc for industry in IndustryArray" required>

<option value="">-- 请选择 --</option>

</select>

<div class="help-block" ng-messages="registerForm.industry.$error" ng-if="registerForm.industry.$touched">

<span ng-message="required" >所属行业不能为空</span>

</div>

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="coopMode">合作模式<span style="color:red"> *</span></label>

<div class="col-md-2" show-errors>

<select  class="form-control" id="coopMode" name = "coopMode" ng-model="merhantBaseInfo.coopMode" ng-options="coopMode.name as coopMode.desc for coopMode in CoopModeArray" required>

<option value="">-- 请选择 --</option>

</select>

<div class="help-block" ng-messages="registerForm.coopMode.$error" ng-if="registerForm.coopMode.$touched">

<span ng-message="required" >合作模式不能为空</span>

</div>

</div>

<label class="control-label col-md-1" for="baseAcctBank">基本帐户开户银行名称</label>

<div class="col-md-2">

<input type="text" class="form-control" id="baseAcctBank" name = "baseAcctBank" ng-model="merhantBaseInfo.baseAcctBank" >

</div>

<label class="control-label col-md-1" for="baseAcct">银行基本帐户账号</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="baseAcct" name ="baseAcct"  ng-model="merhantBaseInfo.baseAcct"  >

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="org">组织机构代码</label>

<div class="col-md-2" show-errors>

<input type="text" class="form-control" id="org" name = "org" ng-model="merhantBaseInfo.org" >

</div>

<label class="control-label col-md-1" for="businessLicense">营业执照</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="businessLicense" name = "businessLicense" ng-model="merhantBaseInfo.businessLicense" >

</div>

<label class="control-label col-md-1" for="taxId">纳税人代码</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="taxId" name = "taxId" ng-model="merhantBaseInfo.taxId" >

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="officePhone">公司电话</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="officePhone" name ="officePhone" ng-model="merhantBaseInfo.officePhone" >

</div>

<label class="control-label col-md-1" for="address">地址</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="address" name = "address" ng-model="merhantBaseInfo.address" >

</div>

<label class="control-label col-md-1" for="websiteUrl">公司网址</label>

<div class="col-md-2" >

<input type="text" class="form-control" id="websiteUrl" name = "websiteUrl" ng-model="merhantBaseInfo.websiteUrl" >

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="scale">企业规模</label>

<div class="col-md-2">

<select type="text" class="form-control" id="scale" name = "scale" ng-model="merhantBaseInfo.scale" ng-options="scale.name as scale.desc for scale in ScaleArray" >

<option value="">-- 请选择 --</option>

</select>

</div>

<label class="control-label col-md-1" for="legalPerson">企业法人</label>

<div class="col-md-2">

<input type="text" class="form-control" id="legalPerson" name = "legalPerson" ng-model="merhantBaseInfo.legalPerson" >

</div>

<label class="control-label col-md-1" for="legalPersonId">法人证件号码</label>

<div class="col-md-2">

<input type="text" class="form-control" id="legalPersonId" name = "legalPersonId" ng-model="merhantBaseInfo.legalPersonId" >

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="province">合作区域<span style="color:red"> *</span></label>

<div class="col-md-2" show-errors>

<select type="text" id = "province" name = "province" class="form-control" ng-model="merhantBaseInfo.province"  ng-change = "changeProvince()" ng-options="province.areaId as province.areaName for province in AllProvinceArray"   required>

<option value="">---请选择---</option>

</select>

<div class="help-block" ng-messages="registerForm.province.$error" ng-if="registerForm.province.$touched">

<span ng-message="required" >合作区域不能为空</span>

</div>

</div>

<div class="col-md-2">

<select type="text" class="form-control" ng-model="merhantBaseInfo.city" ng-change="changeCity()" ng-options="city.areaId as city.areaName for city  in nowCityArray">

<option value="">---请选择---</option>

</select>

</div>

<div class="col-md-2">

<select type="text" class="form-control" ng-model="merhantBaseInfo.district" ng-change="area=''" ng-options="district.areaId as district.areaName for district  in nowDistrictArray">

<option value="">---请选择---</option>

</select>

</div>

</div>

<div class="form-group" style = "margin-left:50px;margin-right:-250px;">

<label class="control-label col-md-1" for="remark">备注</label>

<div class="col-md-8">

<textarea class="form-control" cols="4" id="remark" name="remark" ng-model="merhantBaseInfo.remark" rows="2" style = "resize: none;"></textarea>

</div>

</div>

</div>

<div>

</form>

</div>

最新文章

  1. eap-peap/mschapv2
  2. 基于&lt;MediaElement&gt;的WPF视频播放器(可拖拽进度条播放)【1】
  3. UIResponder(iOS 常见的事件)
  4. Entity Framework 第十篇 条件查询
  5. php中设定一个全局异常处理。全局catch。默认catch。默认异常处理
  6. [ruby on rails] 跟我学之(3)基于rails console的查增删改操作
  7. TCP 状态图网摘
  8. 设置TextView文字居中
  9. Azure上A/D系列虚拟机到DS系列迁移(1)
  10. Ubuntu14.04安装Mongodb
  11. js 在遍历时只会显示最后一个遍历到的结果
  12. Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column &#39;content&#39; a
  13. 【IOS 开发】Object - C 面向对象 - 类 , 对象 , 成员变量 , 成员方法
  14. BN算法
  15. 移动端bug集合
  16. ETL过程
  17. Apache shiro如何实现一个账户同一时刻只有一个人登录
  18. Oracle X$Tables
  19. C语音下改变const变量的值的奇葩方法
  20. 《面向对象程序设计》c++第六次作业___calculator SE

热门文章

  1. 基于XMPP的即时通信系统的建立 — XMPP IQ详解
  2. thinkphp5.0 微信扫码支付模式二
  3. python实现计算器功能
  4. centos 7 查看所有登录用户的操作历史
  5. 剑指offer——面试题27:二叉树的镜像
  6. auguements实参对象的数组化
  7. ie和火狐事件addEventListener()及attachEvent()区别分析
  8. 向div添加圆角边框
  9. python中的生成器(二)
  10. 安装mysql解压 版