Authored by 姜敏

试穿信息(下拉框取值修改)

... ... @@ -155,7 +155,12 @@ $(document).on("change", ".tryInfo1", function () {
var _index = $(this).data("index");
var item = modelLists[_index].tryInfo;
var name = $(this).data('name');
item[name] = $(this).val();
if(name=='fit_size'){
item[name]=$(this).find("option[value='"+$(this).val()+"']").text();
}
else{
item[name] = $(this).val();
}
//console.log(item);
});
//查询按钮--点击事件
... ...
... ... @@ -3,8 +3,8 @@
* 试穿信息管理
*/
//exports.domain = require('../config/common.js').domain;
exports.domain = 'http://172.16.6.162:8088/platform'; //李建
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
//exports.domain = 'http://172.16.6.162:8088/platform'; //李建
exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
exports.res = [
//主界面
... ...
... ... @@ -57,19 +57,19 @@
<input type="hidden" value="[[id]]" id="id"/>
<div class="col-sm-6">
<input type="file" value="[[avatar]]" class="form-control avatar" id="avatar" name="avatar" required="required"/>
<input type="file" value="[[avatar]]" class="form-control avatar" id="avatar" name="avatar" placeholder="头像" required="required"/>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label" for="modelName">姓名</label>
<div class="col-sm-3">
<input type="text" value="[[modelName]]" class="form-control" id="modelName" required="required"/>
<input type="text" value="[[modelName]]" class="form-control" id="modelName" placeholder="姓名" required="required"/>
</div>
<label class="col-sm-2 control-label" for="englishName">英文名</label>
<div class="col-sm-3">
<input type="text" value="[[englishName]]" class="form-control" id="englishName" required="required"/>
<input type="text" value="[[englishName]]" class="form-control" id="englishName" placeholder="英文名" required="required"/>
</div>
</div>
... ... @@ -77,7 +77,7 @@
<label class="col-sm-2 control-label" for="nationality">国籍</label>
<div class="col-sm-3">
<input type="text" value="[[nationality]]" class="form-control" id="nationality" required="required"/>
<input type="text" value="[[nationality]]" class="form-control" id="nationality" placeholder="国籍" required="required"/>
</div>
</div>
... ... @@ -86,13 +86,13 @@
<div class="col-sm-3">
<input type="number" value="[[height]]" class="form-control" id="height"
match="numbers" placeholder="(cm)" required="required"/>
match="numbers" placeholder="身高(cm)" required="required"/>
</div>
<label class="col-sm-2 control-label" for="weight">体重</label>
<div class="col-sm-3">
<input type="number" value="[[weight]]" class="form-control" id="weight"
match="numbers" placeholder="(kg)" required="required"/>
match="numbers" placeholder="体重(kg)" required="required"/>
</div>
</div>
... ... @@ -101,12 +101,12 @@
<label class="col-sm-2 control-label" for="dressSize">穿衣尺码</label>
<div class="col-sm-3">
<input type="text" value="[[dressSize]]" class="form-control" id="dressSize" required="required"/>
<input type="text" value="[[dressSize]]" class="form-control" id="dressSize" placeholder="穿衣尺码" required="required"/>
</div>
<label class="col-sm-2 control-label" for="shoeSize">鞋码</label>
<div class="col-sm-3">
<input type="text" value="[[shoeSize]]" class="form-control" id="shoeSize" required="required"/>
<input type="text" value="[[shoeSize]]" class="form-control" id="shoeSize" placeholder="鞋码" required="required"/>
</div>
</div>
<div class="form-group">
... ... @@ -114,15 +114,15 @@
<div class="col-sm-3">
<input type="number" value="[[Bust]]" class="form-control" id="Bust"
match="numbers" placeholder="胸围" required="required"/>
match="numbers" placeholder="胸围(cm)" required="required"/>
</div>
<div class="col-sm-3">
<input type="number" value="[[waist]]" class="form-control" id="waist"
match="numbers" placeholder="腰围" required="required"/>
match="numbers" placeholder="腰围(cm)" required="required"/>
</div>
<div class="col-sm-3">
<input type="number" value="[[hips]]" class="form-control" id="hips"
match="numbers" placeholder="臀围" required="required"/>
match="numbers" placeholder="臀围(cm)" required="required"/>
</div>
</div>
[[if {{type}}==1]]
... ... @@ -130,7 +130,7 @@
<label class="col-sm-2 control-label" for="modelCard">模特卡</label>
<div class="col-sm-10">
<input type="file" value="[[modelCard]]" class="form-control modelCard" id="modelCard" name="modelCard" required="required"/>
<input type="file" value="[[modelCard]]" class="form-control modelCard" id="modelCard" name="modelCard" placeholder="模特卡" required="required"/>
</div>
</div>
[[/if]]
... ...