Commit 3979a58f by 梁建民

css

parent 98094069
......@@ -77,7 +77,7 @@
title="期货" checked id="daytext">
<div class="lineBlock" id="day">
<input type="text" placeholder="输入时间" class="boxsiz day_input input"
lay-verify="required|number" name="day">
lay-verify="required" name="day">
<i class="day"></i>
</div>
</div>
......
......@@ -56,13 +56,11 @@
</div>
<div class="search_command clr">
<span class="fl comman_title">热门搜索:</span>
<div class="fl command_name">
<div class="fl">LM358</div>
<div class="fl">LM358</div>
<div class="fl">LM358</div>
<div class="fl">LM358</div>
<div class="fl">LM358</div>
<div class="fl">LM358</div>
<volist name="hot_goods" id="vo">
<a class="fl" href="{$vo.url}" title="{$vo.title}" target="_blank">{$vo.title}</a>
</volist>
</div>
</div>
</div>
......
......@@ -110,13 +110,14 @@
color: #8A9299;
width: 625px;
}
.home_content .search_section .search_command .command_name div {
.home_content .search_section .search_command .command_name a {
margin-left: 20px;
cursor: pointer;
transition: all 0.2s ease-in-out;
display: block;
}
.home_content .search_section .search_command .command_name div.active,
.home_content .search_section .search_command .command_name div:hover {
.home_content .search_section .search_command .command_name a.active,
.home_content .search_section .search_command .command_name a:hover {
color: #0D84D1;
}
.home_content .xj_title {
......
{"version":3,"sources":["home.less"],"names":[],"mappings":"AAAA,aACI;EACI,aAAA;EACA,sBAAA;EACA,6BAAA;EACA,eAAA;;AALR,aACI,WAMI;EACI,gBAAA;EACA,OAAO,kBAAP;EACA,mBAAA;;AAVZ,aACI,WAMI,aAKI;EACI,aAAA;EACA,YAAA;EACA,sBAAA;EACA,kBAAA;;AAhBhB,aACI,WAMI,aAYI;EACI,cAAA;EACA,OAAO,kBAAP;;AArBhB,aACI,WAMI,aAYI,WAII;EACI,eAAA;;AAxBpB,aACI,WAMI,aAYI,WASI;EACI,gBAAA;EACA,eAAA;EACA,mBAAA;;AA/BpB,aACI,WAMI,aAYI,WAeI;EACI,cAAA;EACA,eAAA;EACA,gBAAA;;AArCpB,aACI,WAMI,aAYI,WAeI,YAKI;EACI,kBAAA;;AAxCxB,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AII,aA4BI,KAGI;EACI,cAAA;;AAtRxB,aAkOI,QAgBI,aAII,aAoCI;EACI,UAAA;;AA3RpB,aAkOI,QAgBI,aAII,aAoCI,SAGI;EACI,eAAA;EACA,cAAA;EACA,yCAAA;EACA,8BAAA;EACA,gBAAA;EACA,kBAAA;;AAEA,aAnEpB,QAgBI,aAII,aAoCI,SAGI,MAQK;EACG,yCAAA;EACA,cAAA;;AAvS5B,aAkOI,QAgBI,aAII,aAoCI,SAiBI;EACI,cAAA;;AA5SxB,aAkOI,QAgBI,aAII,aA0DI;EACI,UAAA;;AAjTpB,aAkOI,QAgBI,aAII,aA+DI;EACI,WAAA;EACA,cAAA;EACA,SAAA;EACA,eAAA;;AAGJ,aA1FZ,QAgBI,aAII,aAsEK;EACG,qDAAA","file":"home.css"}
\ No newline at end of file
{"version":3,"sources":["home.less"],"names":[],"mappings":"AAAA,aACI;EACI,aAAA;EACA,sBAAA;EACA,6BAAA;EACA,eAAA;;AALR,aACI,WAMI;EACI,gBAAA;EACA,OAAO,kBAAP;EACA,mBAAA;;AAVZ,aACI,WAMI,aAKI;EACI,aAAA;EACA,YAAA;EACA,sBAAA;EACA,kBAAA;;AAhBhB,aACI,WAMI,aAYI;EACI,cAAA;EACA,OAAO,kBAAP;;AArBhB,aACI,WAMI,aAYI,WAII;EACI,eAAA;;AAxBpB,aACI,WAMI,aAYI,WASI;EACI,gBAAA;EACA,eAAA;EACA,mBAAA;;AA/BpB,aACI,WAMI,aAYI,WAeI;EACI,cAAA;EACA,eAAA;EACA,gBAAA;;AArCpB,aACI,WAMI,aAYI,WAeI,YAKI;EACI,kBAAA;;AAxCxB,aACI,WAMI,aAYI,WAeI,YAKI,OAGI;EACI,cAAA;;AA3C5B,aACI,WAiDI;EACI,gBAAA;EACA,kBAAA;EACA,YAAA;;AArDZ,aACI,WAiDI,YAKI;EACI,cAAA;;AAxDhB,aACI,WAiDI,YASI;EACI,eAAA;;AAEA,aA7DZ,WAiDI,YASI,KAGK;EACG,cA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,aAII,aAoCI,SAGI,MAQK;EACG,yCAAA;EACA,cAAA;;AAxS5B,aAmOI,QAgBI,aAII,aAoCI,SAiBI;EACI,cAAA;;AA7SxB,aAmOI,QAgBI,aAII,aA0DI;EACI,UAAA;;AAlTpB,aAmOI,QAgBI,aAII,aA+DI;EACI,WAAA;EACA,cAAA;EACA,SAAA;EACA,eAAA;;AAGJ,aA1FZ,QAgBI,aAII,aAsEK;EACG,qDAAA","file":"home.css"}
\ No newline at end of file
......@@ -136,10 +136,11 @@
color: #8A9299;
width: 625px;
div {
a {
margin-left: 20px;
cursor: pointer;
transition: all 0.2s ease-in-out;
display: block;
&.active ,&:hover{
color: #0D84D1;
......
! function () {
!function () {
window.AccountController = {
isClick: false,
token: Util.getCookie('token') || '',
......@@ -55,7 +55,7 @@
$('#fileLoad img').attr('src', res.data.avatar)
} else {
//非ie低版本
$('#upload_section img').attr('src',res.data.avatar)
$('#upload_section img').attr('src', res.data.avatar)
}
}
......@@ -129,36 +129,56 @@
},
isIe: function (opt) {
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
document.domain = cookieHostname; //设置domian跨域拿到iframe的内容
var iframe = document.getElementById("test");
if (iframe.attachEvent) {
iframe.attachEvent("onload", opt.iframeOnload);
} else {
iframe.onload = opt.iframeOnload;
};
}
opt.formSubmit();
$('#mineFiles').on('change', function () {
layer.load(1, {
offset: ['50%', "50%"],
shade: false
});
$('#fileLoad').submit();
})
} else {
//非ie低版本
$('.sc_div').show();
opt.uploadFun();
}
return this;
},
formSubmit: function () {
$('#fileLoad').submit(function () {
var uploadFileForm = document.getElementById("fileLoad");
uploadFileForm.action = apis.ossupload;
$('#token').val(Util.getCookie('token'));
$('#ie').val(cookieHostname);
})
},
......
! function () {
!function () {
window.UploadSingleController = {
isClick: false,
token: Util.getCookie('token') || '',
......@@ -39,12 +39,20 @@
"currency": res['goods_list'][id].currency,
"delivery_time": res['goods_list'][id].delivery_time
});
if (res['goods_list'][id].goods_images) {
opt.imgUrl = res['goods_list'][id].goods_images;
$('#fileLoad').hide();
$('.sc_div').hide();
$('.upload_result').show();
$('.upload_result img').attr('src',res['goods_list'][id].goods_images)
$('.upload_result img').attr('src', res['goods_list'][id].goods_images);
}
......@@ -58,7 +66,7 @@
setTimeout(function () {
layui.form.val("goodsave", {
"day": res['goods_list'][id].delivery_time
"day": res['goods_list'][id].delivery_time.replace('天', '')
});
......@@ -77,15 +85,15 @@
return this;
},
uploadFun: function () {
var self = this;
layui.upload.render({
elem: '#upload_section',
url: apis.ossupload,
data: {
token: Util.getCookie('token'),
source: 2,
source: 2
},
field: "upload",
before: function () {
......@@ -95,18 +103,29 @@
});
},
done: function (res) {
layer.closeAll('loading');
if (res.errcode == 103200) {
$('#upload_section').hide();
$('.upload_result').show();
$('.upload_result img').attr('src', res.data[0])
$('.upload_result img').attr('src', res.data[0]);
self.imgUrl = res.data[0] || '';
} else {
layer.msg(res.errmsg)
layer.msg(res.errmsg);
}
},
err: function () {
layer.closeAll('loading');
layer.msg('上传失败');
}
......@@ -123,7 +142,8 @@
iframe.attachEvent("onload", opt.iframeOnload);
} else {
iframe.onload = opt.iframeOnload;
};
}
;
opt.formSubmit();
$('#mineFiles').on('change', function () {
layer.load(1, {
......@@ -208,10 +228,13 @@
//上传商品发布
layui.form.on('submit(add)', function (data) {
$(data.elem).addClass("layui-btn-disabled");
var id = Util.getRequest('id'),
params = {},
url = '';
if (!opt.isClick) {
opt.isClick = true;
......@@ -256,15 +279,21 @@
if (navigator.appName == "Microsoft Internet Explorer" && (navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE8.0" || navigator.appVersion.split(";")[1].replace(/[ ]/g, "") == "MSIE9.0")) {
//ie版本
$('#fileLoad').show();
} else {
//非ie低版本
$('#upload_section').show();
}
$('.upload_result').hide();
$('.upload_result img').attr('src', '');
opt.imgUrl = "";
})
});
return this;
},
......
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