feat/task1-c-wallet
gongfuxiang 2018-09-23 16:05:06 +08:00
parent 664df587e3
commit c0c8a9b92b
5 changed files with 44 additions and 32 deletions

View File

@ -251,6 +251,7 @@ return array(
'common_view_gender_name' => '性别',
'common_view_enable_title' => '是否启用',
'common_view_default_title' => '是否默认',
'common_view_name_title' => '名称',
'common_view_status_title' => '状态',
'common_view_is_show_title' => '是否显示',
@ -300,10 +301,10 @@ return array(
'common_favor_not_text' => '收藏',
'common_not_install_text' => '未安装',
'common_linkage_text' => '省市区',
'common_linkage_province_text' => '省份',
'common_linkage_city_text' => '城市',
'common_linkage_county_text' => '区/县',
'common_linkage_province_format' => '请选择省份',
'common_linkage_city_format' => '请选择城市',
'common_linkage_county_format' => '请选择区/县',

View File

@ -8,5 +8,16 @@
* @datetime 2016-12-01T21:51:08+0800
*/
return array(
'useraddress_name_text' => '姓名',
'useraddress_name_format' => '姓名格式 2~16 个字符之间',
'useraddress_alias_text' => '别名',
'useraddress_alias_format' => '别名格式最多 16 个字符',
'useraddress_tel_text' => '电话',
'useraddress_tel_format' => '电话格式有误',
'useraddress_address_text' => '详细地址',
'useraddress_address_format' => '详细地址格式 1~80 个字符之间',
);
?>

View File

@ -1,5 +1,5 @@
<div class="am-form-group region-linkage" data-url="{{:U('Home/Region/Index')}}">
<label class="block">{{:L('common_linkage_province_text')}}</label>
<label class="block">{{:L('common_linkage_text')}}</label>
<select name="province" data-next="city" class="am-radius c-p chosen-select" data-placeholder="{{:L('common_linkage_province_text')}}" data-validation-message="{{:L('common_linkage_province_format')}}" required>
<option value="">{{:L('common_linkage_province_text')}}</option>
</select>

View File

@ -4,9 +4,34 @@
<div class="am-g my-content">
<!-- form start -->
<form class="am-form form-validation" method="post" action="{{:U('Home/User/Login')}}" request-type="ajax-fun" request-value="ViewModalBack">
<include file="Lib/RegionLinkage" />
<div class="am-form-group">
<label>{{:L('useraddress_name_text')}}</label>
<input type="text" name="name" placeholder="{{:L('useraddress_name_text')}}" minlength="2" maxlength="16" data-validation-message="{{:L('useraddress_name_format')}}" class="am-radius" <present name="data"> value="{{$data.name}}"</present> required />
</div>
<div class="am-form-group">
<label>{{:L('useraddress_tel_text')}}</label>
<input type="text" name="tel" placeholder="{{:L('useraddress_tel_text')}}" minlength="6" maxlength="30" data-validation-message="{{:L('useraddress_tel_format')}}" class="am-radius" <present name="data"> value="{{$data.tel}}"</present> required />
</div>
<include file="Lib/RegionLinkage" />
<div class="am-form-group">
<label>{{:L('useraddress_address_text')}}</label>
<input type="text" name="address" class="am-radius" minlength="1" maxlength="80" placeholder="{{:L('useraddress_address_text')}}" data-validation-message="{{:L('useraddress_address_format')}}" <present name="data"> value="{{$data.address}}"</present> required />
</div>
<div class="am-form-group">
<label>{{:L('useraddress_alias_text')}}</label>
<input type="text" name="alias" placeholder="{{:L('useraddress_alias_text')}}" minlength="0" maxlength="16" data-validation-message="{{:L('useraddress_alias_format')}}" class="am-radius" <present name="data"> value="{{$data.alias}}"</present> />
</div>
<div class="am-form-group">
<label class="block">{{:L('common_view_default_title')}}</label>
<input name="is_default" value="1" type="checkbox" data-off-text="{{:L('common_operation_off_is_text')}}" data-on-text="{{:L('common_operation_on_is_text')}}" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="49" data-am-switch <if condition="isset($data['is_default']) and $data['is_default'] eq 1">checked="true"</if> />
</div>
<div class="am-form-group">
<input type="hidden" name="id" <notempty name="data"> value="{{$data.id}}"</notempty> />
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm am-btn-block" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
</div>
</form>
<!-- form end -->
</div>

View File

@ -1,8 +1,4 @@
@charset "utf-8";
/* CSS Document */
/*公共*/
html, body, div, span, applet, object, iframe,
div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
@ -22,29 +18,8 @@ time, mark, audio, video {
vertical-align: baseline;
font-family: arial,"Lantinghei SC","Microsoft Yahei";
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, main {
display: block;
}
ul,li,ol{ list-style:none;}
dl,dd{ margin:auto;}
html{width:100%;
height:100%;
-ms-text-size-adjust:none;
-webkit-text-size-adjust:none;
-moz-text-size-adjust:none;
-o-text-size-adjust:none;
}
/*text-size-adjust不管屏幕怎么变文字大小不变*/
*, body, html, .am-btn { font-size: 12px; }
body{margin:0;
padding:0;
width:100%;
font-family: arial,"Lantinghei SC","Microsoft Yahei";
}
*, body, .am-btn { font-size: 12px; }
.am-form select, .am-form textarea, .am-form input[type="text"], .am-form input[type="password"], .am-form input[type="datetime"], .am-form input[type="datetime-local"], .am-form input[type="date"], .am-form input[type="month"], .am-form input[type="time"], .am-form input[type="week"], .am-form input[type="number"], .am-form input[type="email"], .am-form input[type="url"], .am-form input[type="search"], .am-form input[type="tel"], .am-form input[type="color"], .am-form-field {
font-size: 14px;
@ -575,4 +550,4 @@ background:url(../Images/ibar_sprites.png) no-repeat;background-position:0px -23
background-color: #d13b49;
}
.am-popup-hd .am-popup-title { font-size: 18px; }
.am-popup-hd .am-popup-title { font-size: 18px; }