Authored by weiqingting

4.3线上性别,长图,图片类型修改

... ... @@ -176,32 +176,38 @@ $(document).on('click', 'input[name="brandType"]', function () {
function plusStarOP(prefix, url, item) {
var a = new common.edit('#templete-top');
common.dialog.confirm(prefix+'品牌', common.util.__template2($("#template").html(), item), function () {
return a.submit(url,function(option){
//设置图片
if(imgArr.length) {
option.data.activityImg = imgArr.toString();
}
imgArr = [];
option.success=function(res){
res=res.data;
if(res.code=="200"){
a.$tip("提交成功", function() {
g.reload();
}, 'growl-success');
}else{
console.log('type' + $('#brandType').val());
var type = $('#brandType').val();
if(type) {
return a.submit(url,function(option){
//设置图片
if(imgArr.length) {
option.data.activityImg = imgArr.toString();
}
imgArr = [];
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);
}
return false;
},
option.error=function(res){
a.$tip(res.message);
}
});
});
} else {
a.$tip('类型不能为空');
return;
}
});
... ...
... ... @@ -687,7 +687,7 @@ $(document).on("change", "#maxSortId", function () {
if ($(this).val() == TypeAToT[name]) {
$(":radio[name=coverImageType]").prop("checked", false);
$(this).prop("checked", true);
$("#articleGender").val($(this).val());
$("#coverImageType").val($(this).val());
}
});
});
... ...
... ... @@ -89,7 +89,7 @@ var g = new common.grid({
render: function (item) {
item.coverImage = common.util.__template(item.coverImage, {mode: 2, width: 100, height: 100});
return '<img src="' + item.coverImage + '" width="100" height="60"/>'
return '<img src="' + item.coverImage + '" width="100" />'
}
}, {
display: '文章标题',
... ...
{
"name": "yohobuy-portal",
"version": "4.3.5",
"version": "4.3.6",
"description": "yohobuy-portal",
"keywords": [],
"homepage": "",
... ...
exports.staticDir = {"test":{"path":"/dist"},"preview":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.5","md5":""},"production":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.5","md5":""}}
\ No newline at end of file
exports.staticDir = {"test":{"path":"/dist"},"preview":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.6","md5":""},"production":{"path":"http://cdn.yoho.cn/yohobuy-portal/4.3.6","md5":""}}
\ No newline at end of file
... ...
... ... @@ -74,7 +74,7 @@
<label></label>
<input type="radio" value="3" name="articleGender" checked>
<label>通用</label>
<input type="hidden" value="[[articleGender]]" id="articleGender" for="radio" required/>
<input type="hidden" value="[[articleGender||3]]" id="articleGender" for="radio" required/>
</div>
</div>
<div class="form-group">
... ...