Commit 49f709f2 by 肖康

个人公司 基本信息修改

parent 085d9d37
......@@ -4,6 +4,7 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
var form = require("form")
var artTemplate = require("artTemplate");
var account = {
type:"",
init: function () {
account.handle();
account.getData()
......@@ -21,16 +22,29 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
$(".infobase .last_name_val").text(res.data.last_name)
$(".changeInfoPop .last_name_acpo").val(res.data.last_name)
$(".infobase .account_properties_val").text("For Individual")
account.type=res.data.account_properties;
if (res.data.account_properties == 2) {
$(".infobase .account_properties_val").text("For Business")
$(".changeInfoPop .checkbox_acpo .check-group").removeClass("act")
$(".changeInfoPop .checkbox_acpo .check-group22").addClass("act")
}
account.isBt()
} else {
liexin_pop.Tip({ title: res.msg })
}
})
},
isBt:function(type){
var type_=type||account.type;
if(type_==2){
//公司
$(".tthide").show()
$(".company_name_acpo").addClass("verify")
}else{
$(".tthide").hide()
$(".company_name_acpo").removeClass("verify")
}
},
getAddress: function () {
$.liexin_ajax('/api/user_address/list', 'GET', {}, function (res) {
if (res.code == 0) {
......@@ -269,6 +283,7 @@ define('account', ['tool', 'liexin_pop', 'form', 'artTemplate'], function (requi
$("body").on("click", ".check-groupinfo", function () {
$(".check-groupinfo").removeClass("act")
$(this).addClass("act")
account.isBt($(this).attr("guid"))
})
//获取国家
......
......@@ -63,7 +63,7 @@
</div>
<div class="grp row">
<div class="labels"><span>*</span>COMPANY NAME</div>
<div class="labels"><span class="tthide">*</span>COMPANY NAME</div>
<span class="lval company_name_val"></span>
</div>
......@@ -200,7 +200,7 @@
</div>
<div class="input-con ">
<div class="input-group-auth">
<p class="labelp"><span>*</span>COMPANY NAME</p>
<p class="labelp"><span class="tthide">*</span>COMPANY NAME</p>
<input type="text" class="verify company_name_acpo" verifyTip='{"type":"null","text":"COMPANY NAME"}'>
</div>
<div class="input-group-auth">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment