Authored by 陶雨

Merge branch 'feature/feature_v4.6_20160525' of http://git.yoho.cn/fe/yohobuy-po…

…rtal-fe into feature/feature_v4.6_20160525
... ... @@ -71,6 +71,15 @@ components.prototype={
//});
return false;
}
if ($(this).attr("match") && value) {
new Validator.init($(this)[0], {
rules: {
match: $(this).attr("match")
}
}).validate(function() {
err.push("<p>" + name + "请输入正确的格式</p>");
});
}
});
//文件上传
... ...
... ... @@ -191,7 +191,7 @@ tabTree.prototype= {
param.sortLevel = p.sortLevel;
var ajaxOptions = {
type: "POST",
url:url,
url:url+"?_datetime_="+new Date(),
data: param,
dataType: 'json',
beforeSend: function(msg) {
... ...
... ... @@ -61,7 +61,6 @@ g.init("/couponSendManager/queryList1");
/*验证*/
var edit = new common.edit2(".modal-body");
var Bll = {
contentDatas: [],
module: null,
__render: function (selecter, templater, data) {
$(selecter).html(common.util.__template2($("#" + templater).html(), data));
... ...
... ... @@ -10,9 +10,10 @@ var ENUM = {
'0': '否'
},
StatusEnum: {
0:'关闭',
1:'开启'
1: '<b style="color:#5cb85c">开启</b>',
0: '<b style="color:#ff0000">关闭</b>'
}
}
new common.dropDown({
... ... @@ -33,7 +34,13 @@ var g = new common.grid({
},
columns: [
{display: 'ID', name: "id"},
{display: '排序', name: "orderBy"},
{display: '标签名称', name: "tagName"},
{display: '图片', render: function (item) {
if(item.cover){
return '<img src="'+ item.cover +'" style="max-height: 56px;max-width: 80%;display: block;margin: 0 auto;">';
}
}},
{display: '标签分类', name: "classifyName"},
{display: '是否热门', render: function (item) {
return "<p>" + ENUM.HotEnum[item.isHot] + "</p>";
... ...
... ... @@ -172,7 +172,7 @@ var Bll = {
data: data()
}, function () {
g.reload();
});
},true);
});
},
toastPass: function (content, url, data) {
... ... @@ -182,14 +182,14 @@ var Bll = {
data: data
}, function () {
g.reload();
});
},true);
});
},
toastInfo: function (item, hint) {
common.dialog({
title: hint,
content: common.util.__template2($("#templateInfo").html(), item),
width: "60%",
width: "40%",
button: [{
value: '取消',
css: "btn btn-primary"
... ... @@ -283,6 +283,8 @@ $(document).on('click', '.coupon-info', function () {
}
item1.customType = types.join(",");
}
}else {
item1.customType="无";
}
Bll.toastInfo(item1, '优惠券详情');
});
... ...
... ... @@ -6,6 +6,7 @@ var common = require('../common/common');
var couponBean = require('./partials/couponList-bean');
var e = new common.edit2("#basicForm");
var type = $("#basicForm").attr("role"),//类型 新增或修改
action = $("#basicForm").data("action");//路由
var startTimeObj;
... ... @@ -98,6 +99,38 @@ var Bll = {
} else {
$('.sort-wrap').find('.row:first').find('.add-sort-btn').show().end().find('.del-sort-btn').hide();
}
},
setTabTree:function () {
var data={},NUMN={};
common.util.__ajax({
url:'/product/class/queryAllProductSortList',
data:{}
},function(res){
data=res.data;
},true);
NUMN={
columns: [{
state: "prov",
text: "一级分类",
hide: false,
addclass: ""
}, {
state: "city",
text: "二级分类",
hide: false,
addclass: ""
}],
datas: [{
sortName: data.sortName,
code: "",
id: data.id
}, {
sortName: data.subList,
code: "",
id: data.subList
}]
};
return NUMN;
}
};
/**
... ... @@ -152,17 +185,18 @@ $(document).on("click", "input[name='customType']", function () {
$(document).on("keyup", ".number", function () {
$(this).val($(this).val().replace(/\D/g, ''));
});
/**
* 保存
*/
$(document).on("click", "#save_brand", function () {
// console.log(couponBean);
if (e.validate()) {
delete couponBean.useRange;
common.util.__ajax({
url: action,
data: couponBean
}, function (res) {
}, function () {
location.href = "/market/couponList/index";
});
}
... ... @@ -171,21 +205,24 @@ $(document).on("click", "#save_brand", function () {
/********************************************************分类相关****************************************/
var tabTreeArr = [], tabTree;
//选择分类
$(document).on('click', "#addSorts", function () {
var data = {};
var data1 = {};
common.dialog({
title: "选择分类",
width: "60%",
content: common.util.__template2($('#editTemp').html(), data),
content: common.util.__template2($('#editTemp').html(), data1),
button: [{
value: "保存",
callback: function () {
var ids = [];
if (tabTreeArr.length > 0) {
for (var i = 0; i < tabTreeArr.length; i++) {
for (var key in tabTreeArr[i].selected) {
ids.push(tabTreeArr[i].selected[key].id);
for(var j=0;j<tabTreeArr[i].selected.length;j++){
if(j<=1){
ids.push(tabTreeArr[i].selected[j].id);
}
}
}
couponBean.sortLimit = ids.join(',');
... ... @@ -197,9 +234,7 @@ $(document).on('click', "#addSorts", function () {
}]
});
tabTreeArr = [];
tabTree = new common.tabTree(".sortTree", {
sortLevel: 1
});
tabTree = new common.tabTree(".sortTree",Bll.setTabTree());
tabTree.init();
tabTreeArr.push(tabTree);
Bll.checkSortNum();
... ... @@ -209,9 +244,7 @@ $(document).on('click', "#addSorts", function () {
$(document).on('click', '.add-sort-btn', function () {
var $sortGroup = $($('#sortWrap').html());
$sortGroup.appendTo($('.sort-wrap'));
tabTree = new common.tabTree(".sortTree:last", {
sortLevel: 1
});
tabTree = new common.tabTree(".sortTree:last", Bll.setTabTree());
tabTreeArr.push(tabTree);
tabTree.init();
Bll.checkSortNum();
... ...
... ... @@ -72,7 +72,6 @@ var g = new common.grid({
}
}, {
display: '操作',
//}
name: "status",
render: function (items) {
var HtmArr = [];
... ... @@ -88,45 +87,90 @@ g.init('/brandCoupon/queryList');
$("#filter-btn").click(function () {
g.reload(1);
});
/**
* 监听输入框变化
*/
$(document).on("change", ".observe", function () {
var $this = $(this);
var name = $this.data("field");
Bll.module = common.util.__buildobj(name, '.', Bll.module, function (obj, name1) {
obj[name1] = $this.val();
});
Bll.module.brandName = $('#brandId').find("option[value='" + Bll.module.brandId + "']").text();
});
//添加
$(document).on('click', '#add-btn', function () {
articleCategoryOP("新增", '/brandCoupon/add', {});
/*验证*/
var edit = new common.edit2(".modal-body");
var Bll = {
module: null,
//弹框
toast: function (module, hint, url) {
Bll.module = module;
var d = new common.dialog({
title: hint + "品牌优惠券",
content: common.util.__template2($("#template").html(), Bll.module),
width: '40%',
button: [
{
value: "保存",
callback: function () {
if (edit.validate()) {
common.util.__ajax({
url: url,
data: Bll.module
}, function (res) {
if (res.code == '200') {
g.reload();
d.close();
}
else {
common.util.__tip(res.message, "warning");
}
}, true);
}
return false;
},
css: "btn-primary"
},
{
"value": "取消",
"css": "btn-info"
}
]
});
Bll.__editRender();
},
__editRender: function () {
edit.init();
new common.dropDown({
el: "#brandId",
ajax: 'brand'
});
}
};
/**
* 添加--点击事件
*/
$(document).on('click', '#add-btn', function () {
var item = {
"couponsId": "",
"brandId": "",
"brandName": "",
"status": 1
};
Bll.toast(item, "添加", '/brandCoupon/add');
});
//编辑
/**
* 编辑--点击事件
*/
$(document).on('click', '.info-modify', function () {
var item = g.rows[$(this).data("index")];
articleCategoryOP("修改", '/brandCoupon/update', item);
});
function articleCategoryOP(prefix, url, item) {
var a = new common.edit(".confirm");
common.dialog.confirm(prefix + '标签', common.util.__template2($("#template").html(), item), function () {
return a.submit(url, function (option) {
var _brandName = $('#brandId').find("option[value='" + option.data.brandId + "']").text();
option.data.brandName = _brandName;
option.success = function (res) {
res = res.data;
if (res.code == "200") {
a.$tip("提交成功", function () {
g.reload();
}, 'growl-success');
} else {
a.$tip(res.message);
}
return false;
};
option.error = function (res) {
a.$tip(res.message);
}
});
});
a.init();
new common.dropDown({
el: "#brandId",
ajax: 'brand'
});
}
\ No newline at end of file
common.util.__ajax({
url: "/brandCoupon/queryByParam",
data: {id: item.id}
}, function (res) {
Bll.toast(res.data, "修改", '/brandCoupon/update');
}, true);
});
\ No newline at end of file
... ...
... ... @@ -20,7 +20,7 @@ var Bll={
data:data
}, function () {
g.reload();
});
},true);
});
}
};
... ...
... ... @@ -34,8 +34,12 @@ var Bll = {
if(activity.couponId){
ids = activity.couponId.split(",");
}
for (var i = 0; i < ids.length; i++) {
activity.couponIds.push({id: ids[i]});
if(ids.length==0){
activity.couponIds.push({id: ""});
}else{
for (var i = 0; i < ids.length; i++) {
activity.couponIds.push({id: ids[i]});
}
}
if(activity.startTime){
activity.startTime=Bll.getTime(activity.startTime);
... ... @@ -46,6 +50,7 @@ var Bll = {
},
//渲染界面
render: function () {
console.log("activity",activity);
$("#basicForm").html(common.util.__template2($("#couponListAdd-template").html(), activity));
Bll.__editRender();
},
... ...
... ... @@ -22,7 +22,8 @@ var config = {
// domain: 'http://172.16.6.146:8088/platform', //玛丽
//domain:'http://172.16.6.157:8080/yohobuy-platform-web',//葛超
// domain: 'http://192.168.102.216:8086/platform',
domain: 'http://192.168.102.202:8088/platform',
// domain: 'http://192.168.102.202:8088/platform',//测试
domain:'http://192.168.102.210:8088/platform',//联调
//domain: 'http://172.16.6.146:8088/platform',
//domain:'http://172.16.6.120:8080/platform',//曹艳
//domain:'http://172.16.6.231:8080/platform',//王伟
... ...
... ... @@ -25,7 +25,16 @@ exports.res = [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}, {
},
{
route: '/brandCoupon/queryByParam',
method: 'POST',
url: '/brandCoupon/queryByParam',
params: [
{name: 'id', type: 'Number'}
]
},
{
// 新增
route: '/brandCoupon/add',
method: 'POST',
... ... @@ -34,7 +43,7 @@ exports.res = [
{name: 'brandName', type: 'String'},
{name: 'status', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'couponsId', type: 'Number'},
{name: 'couponsId', type: 'Number'}
]
}, {
// 删除
... ... @@ -42,7 +51,7 @@ exports.res = [
method: 'POST',
url: '/brandCoupon/delete',
params: [
{name: 'id', type: 'Number'},
{name: 'id', type: 'Number'}
]
},{
// 修改
... ... @@ -54,7 +63,7 @@ exports.res = [
{name: 'status', type: 'Number'},
{name: 'id', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'couponsId', type: 'Number'},
{name: 'couponsId', type: 'Number'}
]
}
];
\ No newline at end of file
... ...
... ... @@ -170,7 +170,9 @@ exports.res = [
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'}
{name: 'status', type: 'Number'},
{name: 'orderBy', type:'Number'},
{name: 'cover', type:'String'}
]
}, {
... ... @@ -182,7 +184,9 @@ exports.res = [
{name: 'tagName', type: 'String'},
{name: 'classifyId', type: 'Number'},
{name: 'isHot', type: 'Number'},
{name: 'status', type: 'Number'}
{name: 'status', type: 'Number'},
{name: 'orderBy', type:'Number'},
{name: 'cover', type:'String'}
]
},
{
... ...
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.240:8088/platform';
//exports.domain = 'http://172.16.6.162:8088/platform';
//exports.domain = 'http://172.16.6.108:8088/platform';//谭玲
//exports.domain = 'http://172.16.6.201:8088/platform';//谭玲
// exports.domain = 'http://172.16.6.250:2081/platform';//庞洁
// exports.domain = 'http://172.16.6.189:8088/platform';//李建
... ...
... ... @@ -22,7 +22,7 @@
<div class="contentpanel">
<div class="panel panel-default" style="margin-bottom:10px;">
<div class="panel-body" style="padding-bottom: 0">
<a id="add-btn" href="javascript:;" class="btn btn-info"><i class="fa fa-plus"></i> 添加</a>
<a id="add-btn" href="javascript:;" class="btn btn-info"><i class="fa fa-plus"></i> 添加标签</a>
</div>
<div class="panel-body">
... ... @@ -74,6 +74,7 @@
<div class="col-sm-offset-1 col-sm-5">
<input type="text" value="[[tagName]]" id="tagName" placeholder="标签名称" required="required" class="form-control">
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必填</label></div>
</div>
<div class="form-group" id="maxsord">
... ... @@ -83,6 +84,7 @@
<option value="[[classifyId || -1]]">[[classifyName || "请选择分类"]]</option>
</select>
</div>
<div class="col-sm-2"><label style="color: #ff0000; line-height: 40px"> * 必选</label></div>
</div>
<div class="form-group">
... ... @@ -110,10 +112,11 @@
<input id="status" type="hidden" value="[[status]]" for="radio" kl_vkbd_parsed="true">
</div>
<div class="form-group">
<div class="form-group" style="margin-bottom: 0">
<label class="col-sm-2 control-label">上传图片:</label>
<div class="col-sm-offset-1 col-sm-5">
<input type="file" name="cover" value="[[cover || '']]" id="cover">
<div class="col-sm-offset-1 col-sm-9">
<div><input type="file" name="cover" value="[[cover || '']]" id="cover"></div>
<label style="color: #ff0000; padding-top: 5px; display: block; clear: both"> 提示:【新潮教室】中图片将用作明星头像,建议上传方形图片。</label>
</div>
</div>
</div>
... ...
... ... @@ -86,9 +86,8 @@
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">类型</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[couponType]]" readonly>
<p> [[couponType]]</p>
</div>
</div>
</div>
... ... @@ -102,43 +101,40 @@
<label class="col-sm-2 control-label">名称 </label>
<div class="col-sm-8">
<input type="text" class="form-control observe" value="[[couponName]]" readonly>
<p>[[couponName]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">数量</label>
<div class="col-sm-8">
<input type="text" class="form-control observe" value="[[couponNum]]" readonly>
<p>[[couponNum]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">申请部门</label>
<div class="col-sm-8">
<input type="text" class="form-control observe" value="[[department]]" readonly>
<p>[[department]]</p>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">使用期限</label>
<div class="col-sm-8">
<div class="col-sm-5">
<input type="text" class="form-control " value="[[startTime]]" readonly>
<div class="col-sm-3">
<p>[[startTime]]</p>
</div>
<div class="col-sm-2">
<div class="col-sm-1">
<p></p>
</div>
<div class="col-sm-5">
<input type="text" class="form-control" value="[[endTime]]" readonly>
<div class="col-sm-3">
<p>[[endTime]]</p>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">优惠券说明</label>
<div class="col-sm-8">
<textarea class="form-control" style="resize: none" readonly>[[explains]]</textarea>
<p>[[explains]]</p>
</div>
</div>
</div>
... ... @@ -153,7 +149,7 @@
<label class="col-sm-2 control-label">优惠类型</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[useLimitType]]" readonly>
<p>[[useLimitType]]</p>
</div>
</div>
[[if useLimitType!='无限制']]
... ... @@ -161,22 +157,12 @@
<label class="col-sm-2 control-label">优惠条件</label>
[[if useLimitType=='货物件数限制']]
<div class="col-sm-4">
<label class="col-sm-3 control-label">件数满</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[useLimit]]" readonly>
</div>
<label class="col-sm-1 control-label"></label>
<p>件数满&emsp;[[useLimit]]</p>
</div>
[[/if]]
[[if useLimitType=='订单金额限制']]
<div class="col-sm-4">
<label class="col-sm-3 control-label">金额满</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[useLimit]]" readonly>
</div>
<label class="col-sm-1 control-label"></label>
<p>金额满&emsp;[[useLimit]]</p>
</div>
[[/if]]
</div>
... ... @@ -185,12 +171,7 @@
<label class="col-sm-2 control-label">优惠结果</label>
<div class="col-sm-4">
<label class="col-sm-3 control-label">面额</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[couponAmount]]" readonly>
</div>
<label class="col-sm-1 control-label"></label>
<p>面额&emsp;[[couponAmount]]</p>
</div>
</div>
</div>
... ... @@ -204,25 +185,12 @@
<label class="col-sm-2 control-label">会员身份</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[customType]]" readonly>
<p>[[customType]]</p>
</div>
</div>
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">优惠互斥</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">申请人</label>
<div class="col-sm-8">
<input type="text" class="form-control" value="[[proposer]]" readonly>
</div>
</div>
</div>
</div>
</div>
</script>
... ...
... ... @@ -133,11 +133,14 @@
<label class="col-sm-2 control-label">使用期限<span class="red">*</span></label>
<div class="col-sm-6">
<div class="col-sm-6">
<div class="col-sm-4">
<input type="text" class="form-control observe" data-field="startTime" id="startTime"
placeholder="开始时间" value="[[startTime]]" readonly required>
</div>
<div class="col-sm-6">
<div class="col-sm-1">
<label class="control-label"></label>
</div>
<div class="col-sm-4">
<input type="text" class="form-control observe" data-field="endTime" id="endTime"
placeholder="结束时间" value="[[endTime]]" readonly required>
</div>
... ... @@ -170,7 +173,7 @@
</select>&emsp;&emsp;
[[if useLimitType=='2']]
<label class="control-label">金额满</label>
<input value="[[useLimit]]" class="form-control input-form observe number" data-field="useLimit" >
<input value="[[useLimit]]" id="useLimit" class="form-control input-form observe number" data-field="useLimit" >
[[/if]]
[[if useLimitType=='1']]
<label class="control-label">件数满</label>
... ... @@ -182,13 +185,13 @@
<label class="col-sm-2 control-label">优惠结果<i class="red">*</i></label>
<div class="col-sm-4">
<label class="col-sm-2 control-label">面额</label>
<label class="col-sm-1 control-label">面额</label>
<div class="col-sm-8">
<input type="text" class="form-control observe number" data-field="couponAmount"
value="[[couponAmount]]" >
<div class="col-sm-4">
<input type="text" match="numbers" class="form-control observe " data-field="couponAmount"
value="[[couponAmount]]" required placeholder="面额">
</div>
<label class="col-sm-2 control-label"></label>
<label class="col-sm-1 control-label"></label>
</div>
</div>
... ... @@ -199,13 +202,12 @@
<div class="col-sm-10">
<select id="useRange" class="form-control input-form" value="[[useRange]]">
<option value="0">分类</option>
<option value="1" checked>品牌</option>
<option value="1" >品牌</option>
</select>&emsp;&emsp;
[[if useRange==0]]
<a class="btn btn-primary btn-xs" href="javascript:;" id="addSorts">添加分类</a>
[[/if]]
[[if useRange==1]]
<a class="btn btn-primary btn-xs" href="javascript:;" id="addBrands">添加品牌</a>
[[else]]
<a class="btn btn-primary btn-xs" href="javascript:;" id="addSorts">添加分类</a>
[[/if]]
</div>
</div>
... ... @@ -244,22 +246,6 @@
</div>
</div>
</div>
<div class="panel-heading">
<h4 class="panel-title">优惠互斥</h4>
</div>
<div class="panel-body">
<div class="row">
<div class="form-group">
<label class="col-sm-2 control-label">申请人</label>
<div class="col-sm-8">
<label class="form-label control-label" id="creatorName">{{auth.name}}</label>
</div>
</div>
<input id="auth_id1" type="hidden" value="{{auth.uid}}">
<input id="auth_name1" type="hidden" value="{{auth.name}}">
</div>
</div>
<div class="panel-footer">
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
... ...
... ... @@ -71,29 +71,29 @@
<script type="text/template" id="template">
<div class="form-group">
<label for="couponsId" class="col-sm-2 control-label">优惠券ID<span style="color: red;"> *</span>:</label>
<label class="col-sm-2 control-label">优惠券ID<span style="color: red;"> *</span></label>
<div class="col-sm-10">
<input type="number" value="[[couponsId]]" name="content" id="couponsId" placeholder="优惠券ID" required="required" class="form-control">
<input type="text" match="numbers" value="[[couponsId]]" class="form-control observe" placeholder="优惠券ID" required="required" data-field="couponsId">
</div>
</div>
<div class="form-group" id="maxsord">
<label for="brandId" class="col-sm-2 control-label">品牌<span style="color: red;"> *</span>:</label>
<label for="brandId" class="col-sm-2 control-label">品牌<span style="color: red;"> *</span></label>
<div class="col-sm-10">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="brandId" value="[[brandId]]" required="required" class="form-control">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control observe" data-field="brandId">
<select id="brandId" value="[[brandId]]" class="form-control observe" data-field="brandId">
<option value="[[brandId||-1]]">[[brandName||"请选择品牌"]]</option>
</select>
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-2 control-label">是否生效<span style="color: red;"> *</span>:</label>
<label for="status" class="col-sm-2 control-label">是否生效<span style="color: red;"> *</span></label>
<div class="radio">
<label><input type="radio" value="1" name="status" kl_vkbd_parsed="true" checked>失效</label>
<label><input type="radio" value="2" name="status" kl_vkbd_parsed="true">有效</label>
<label><input type="radio" value="1" class=" observe" name="status" kl_vkbd_parsed="true" data-field="status" checked>失效</label>
<label><input type="radio" value="2" class=" observe" name="status" kl_vkbd_parsed="true" data-field="status">有效</label>
</div>
<input id="status" type="hidden" required="required" value="[[status||'1']]" for="radio" kl_vkbd_parsed="true">
<input id="status" type="hidden" required="required" class="form-control observe" value="[[status||'1']]" for="radio" kl_vkbd_parsed="true" data-field="status">
</div>
... ...
... ... @@ -29,34 +29,3 @@
</div>
</div>
</div>
<script type="text/template" id="template">
<div class="form-group">
<label for="couponsId" class="col-sm-2 control-label">优惠券ID<span style="color: red;"> *</span>:</label>
<div class="col-sm-10">
<input type="number" value="[[couponsId]]" name="content" id="couponsId" placeholder="优惠券ID" required="required" class="form-control">
</div>
</div>
<div class="form-group" id="maxsord">
<label for="brandId" class="col-sm-2 control-label">品牌<span style="color: red;"> *</span>:</label>
<div class="col-sm-10">
<input type="hidden" name="" value="[[id]]" id="id" class="form-control" pattern="" title="">
<select id="brandId" value="[[brandId]]" required="required" class="form-control">
<!--<option value="-1">请选择分类</option>-->
<option value="[[brandId||-1]]">[[brandName||"请选择品牌"]]</option>
</select>
</div>
</div>
<div class="form-group">
<label for="status" class="col-sm-2 control-label">是否热门<span style="color: red;"> *</span>:</label>
<div class="radio">
<label><input type="radio" value="1" name="status" kl_vkbd_parsed="true">失效</label>
<label><input type="radio" value="2" name="status" kl_vkbd_parsed="true">有效</label>
</div>
<input id="status" type="hidden" required="required" value="[[status]]" for="radio" kl_vkbd_parsed="true">
</div>
</script>
\ No newline at end of file
... ...
... ... @@ -94,6 +94,14 @@
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分享描述</label>
<div class="col-sm-8">
<textarea class="form-control observe" prompt="分享描述" data-field="shareDescribe" maxlength="100"
placeholder="分享描述" style="resize: none">[[shareDescribe]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">分享图片</label>
<div class="col-sm-8">
<input type="file" bucket="couponImage" class="form-control observe"
... ...