Commit 8341f47b by 施宇

1321

parent f2f7fc4d
...@@ -92,9 +92,9 @@ ...@@ -92,9 +92,9 @@
</script> </script>
<script type="text/html" id="detailTpl"> <script type="text/html" id="detailTpl">
{{# if(d['goods_images']){ }} {{# if(d['goods_images']){ }}
<img src="{{d.goods_images}}" alt="" class="fr"> <img src="{{d.goods_images}}" alt="" class="fr sp_img">
{{# } else { }} {{# } else { }}
<img src="__PUBLIC__/images/defaultgood.png" alt="" class="fr"> <img src="__PUBLIC__/images/defaultgood.png" alt="" class="fr sp_img">
{{# } }} {{# } }}
<div class=" goods_desc boxsiz"> <div class=" goods_desc boxsiz">
<div class="title"> <div class="title">
......
...@@ -43,9 +43,9 @@ ...@@ -43,9 +43,9 @@
<!-- 商品详情 --> <!-- 商品详情 -->
{{# if(d['goods_images']){ }} {{# if(d['goods_images']){ }}
<img src="{{d.goods_images}}" alt="" class="fr"> <img src="{{d.goods_images}}" alt="" class="fr xj_img">
{{# } else { }} {{# } else { }}
<img src="__PUBLIC__/images/defaultgood.png" alt="" class="fr"> <img src="__PUBLIC__/images/defaultgood.png" alt="" class="fr xj_img">
{{# } }} {{# } }}
<div class=" goods_desc boxsiz"> <div class=" goods_desc boxsiz">
<div class="title"> <div class="title">
......
...@@ -355,7 +355,7 @@ body { ...@@ -355,7 +355,7 @@ body {
} }
.goods_data_list .my_xj_list .my_xj_item .item_user .type { .goods_data_list .my_xj_list .my_xj_item .item_user .type {
border-radius: 5px 0px 5px 0px; border-radius: 5px 0px 5px 0px;
width: 48px; width: 60px;
height: 20px; height: 20px;
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
...@@ -371,7 +371,7 @@ body { ...@@ -371,7 +371,7 @@ body {
.goods_data_list .my_xj_list .my_xj_item .item_user .name { .goods_data_list .my_xj_list .my_xj_item .item_user .name {
color: #8A9299; color: #8A9299;
margin-left: 10px; margin-left: 10px;
width: calc(100% - 58px); width: calc(100% - 70px);
} }
.goods_data_list .my_xj_list .my_xj_item:hover { .goods_data_list .my_xj_list .my_xj_item:hover {
box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5); box-shadow: 0px 5px 10px 0px rgba(216, 223, 230, 0.5);
...@@ -849,4 +849,3 @@ body { ...@@ -849,4 +849,3 @@ body {
color: #ADB6BF; color: #ADB6BF;
cursor: pointer; cursor: pointer;
} }
/*# sourceMappingURL=base.css.map */
\ No newline at end of file
...@@ -424,7 +424,7 @@ body { ...@@ -424,7 +424,7 @@ body {
.type { .type {
border-radius: 5px 0px 5px 0px; border-radius: 5px 0px 5px 0px;
width: 48px; width: 60px;
height: 20px; height: 20px;
text-align: center; text-align: center;
line-height: 20px; line-height: 20px;
...@@ -444,7 +444,7 @@ body { ...@@ -444,7 +444,7 @@ body {
.name { .name {
color: #8A9299; color: #8A9299;
margin-left: 10px; margin-left: 10px;
width: calc(~"100% - 58px"); width: calc(~"100% - 70px");
} }
} }
......
...@@ -216,7 +216,7 @@ $(function () { ...@@ -216,7 +216,7 @@ $(function () {
var htmlp = '<p>' + html + '</p>'; var htmlp = '<p>' + html + '</p>';
if (isTemplate) { if (isTemplate) {
var htmlp = '<div class="template lineBlock boxsiz">' + var htmlp = '<div class="template lineBlock boxsiz">' +
'<img src="http://resic.liexin.com/images/defaultgood.png" alt="">' + '<img src="'+html.image+'" alt="">' +
'<div class="template_right">' + '<div class="template_right">' +
'<div class="template_right_top clr">' + '<div class="template_right_top clr">' +
'<h3 class="bold fl">' + html.type + '</h3>' + '<h3 class="bold fl">' + html.type + '</h3>' +
......
...@@ -3,6 +3,7 @@ $(function () { ...@@ -3,6 +3,7 @@ $(function () {
type: Util.getRequest('type') || "", type: Util.getRequest('type') || "",
token: Util.getCookie('token') || '', token: Util.getCookie('token') || '',
id: Util.getRequest('id') || "", id: Util.getRequest('id') || "",
isClick: true,
init: function () { init: function () {
this.getDetail(); this.getDetail();
this.bindFun(); this.bindFun();
...@@ -33,17 +34,17 @@ $(function () { ...@@ -33,17 +34,17 @@ $(function () {
}); });
layui.laytpl(getCompany).render(res.goods_list[self.id], function (html) { layui.laytpl(getCompany).render(res.goods_list[self.id], function (html) {
$(".good_detail_content .bj_item").empty().html(html); $(".good_detail_content .bj_item").empty().html(html);
if(self.type==2){ if (self.type == 2) {
$('.gt_div').show(); $('.gt_div').show();
} }
}); });
layui.laytpl(getDetail).render(res.goods_list[self.id], function (html) { layui.laytpl(getDetail).render(res.goods_list[self.id], function (html) {
$(".good_detail_content .goods_detail").empty().html(html); $(".good_detail_content .goods_detail").empty().html(html);
if(self.type==1){ if (self.type == 1) {
$('.bj_btn').show(); $('.bj_btn').show();
} }
}); });
} else { } else {
layui.laytpl(getNav).render([], function (html) { layui.laytpl(getNav).render([], function (html) {
$(".good_detail_content .nav_title").empty().html(html); $(".good_detail_content .nav_title").empty().html(html);
...@@ -61,15 +62,18 @@ $(function () { ...@@ -61,15 +62,18 @@ $(function () {
bindFun: function () { bindFun: function () {
var self = this; var self = this;
$('.good_detail_content').on('click', '.gt_div', function () { $('.good_detail_content').on('click', '.gt_div', function () {
var userId = $(this).attr('imid'), if (self.isClick) {
parent = $('.goods_detail'), self.isClick = false;
type = parent.find('.goods_name').text(), var userId = $(this).attr('imid'),
price = parent.find('.price').text(), parent = $('.goods_detail'),
brand = parent.find('.brand').find('span').text(), type = parent.find('.goods_name').text(),
fz = parent.find('.fz').find('span').text(), price = parent.find('.price').text(),
num = parent.find('.num').find('span').text(), brand = parent.find('.brand').find('span').text(),
hq = parent.find('.hq').find('span').text(), fz = parent.find('.fz').find('span').text(),
time = parent.find('.time').find('span').text(), num = parent.find('.num').find('span').text(),
hq = parent.find('.hq').find('span').text(),
time = parent.find('.time').find('span').text(),
img = $('.sp_img').attr('src')
obj = { obj = {
userId: userId, userId: userId,
type: type, type: type,
...@@ -78,13 +82,18 @@ $(function () { ...@@ -78,13 +82,18 @@ $(function () {
fz: fz, fz: fz,
num: num, num: num,
hq: hq, hq: hq,
time:time time: time,
image: img
}; };
Util.setCookie('template', JSON.stringify(obj), 1, cookieHostname) Util.setCookie('template', JSON.stringify(obj), 1, cookieHostname)
window.location.href = '/chat' window.location.href = '/chat'
} else {
return
}
}); });
$('.good_detail_content ').on('click', '.bj_btn', function () { $('.good_detail_content ').on('click', '.bj_btn', function () {
window.location.href = '/uploadsingle?id='+self.id window.location.href = '/uploadsingle?id=' + self.id
}) })
} }
}; };
......
$(function () { $(function () {
var inquiryDetail = { var inquiryDetail = {
isClick: true,
init: function () { init: function () {
this.getUserData(); this.getUserData();
this.getBjData(1); this.getBjData(1);
...@@ -74,16 +75,20 @@ $(function () { ...@@ -74,16 +75,20 @@ $(function () {
}) })
}, },
bindFun: function () { bindFun: function () {
var self = this;
$('.inquiry_detail_content ').on('click', '.gt_div', function () { $('.inquiry_detail_content ').on('click', '.gt_div', function () {
var userId = $(this).attr('imid'), if (self.isClick) {
parent = $(this).parents('.bj_item'), self.isClick = false;
type = parent.find('.goods_name').text(), var userId = $(this).attr('imid'),
price = parent.find('.price').text(), parent = $(this).parents('.bj_item'),
brand = parent.find('.brand').find('span').text(), type = parent.find('.goods_name').text(),
fz = parent.find('.fz').find('span').text(), price = parent.find('.price').text(),
num = parent.find('.num').find('span').text(), brand = parent.find('.brand').find('span').text(),
hq = parent.find('.hq').find('span').text(), fz = parent.find('.fz').find('span').text(),
time = parent.find('.time').find('span').text(), num = parent.find('.num').find('span').text(),
hq = parent.find('.hq').find('span').text(),
time = parent.find('.time').find('span').text(),
img = $('.xj_img').attr('src');
obj = { obj = {
userId: userId, userId: userId,
type: type, type: type,
...@@ -92,10 +97,15 @@ $(function () { ...@@ -92,10 +97,15 @@ $(function () {
fz: fz, fz: fz,
num: num, num: num,
hq: hq, hq: hq,
time:time time: time,
image: img
}; };
Util.setCookie('template', JSON.stringify(obj), 1, cookieHostname) Util.setCookie('template', JSON.stringify(obj), 1, cookieHostname)
window.location.href = '/chat' window.location.href = '/chat'
} else {
return
}
}) })
} }
}; };
......
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