Commit d99b0eec by 施宇

1111

parent b4e983a2
...@@ -118,8 +118,8 @@ ...@@ -118,8 +118,8 @@
<div class="fl num ellipsis">{{item.goods_name}}</div> <div class="fl num ellipsis">{{item.goods_name}}</div>
</div> </div>
<div class="item_middle clr"> <div class="item_middle clr">
{{# if(item.source !== 0){ }} {{# if(item.offer_num != 0){ }}
<div class="fl xjNum">{{item.source}}个报价</div> <div class="fl xjNum">{{item.offer_num}}个报价</div>
{{# } else { }} {{# } else { }}
<div class="fl xj0">等待报价</div> <div class="fl xj0">等待报价</div>
{{# } }} {{# } }}
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
</div> --> </div> -->
</div> </div>
<div class="bottom clr"> <div class="bottom clr">
<div class="gt_div fl btn btn_yellow" imid="{{item.im_username}}"> <div class="gt_div fl btn btn_yellow" imid="{{item.im_username}}" userid="{{item.user_id}}">
<span class="icon iconfont iconjuxing7 va-m"></span> <span class="icon iconfont iconjuxing7 va-m"></span>
在线沟通 在线沟通
</div> </div>
......
...@@ -123,8 +123,8 @@ ...@@ -123,8 +123,8 @@
<div class="fl num ellipsis">{{item.goods_name}}</div> <div class="fl num ellipsis">{{item.goods_name}}</div>
</div> </div>
<div class="item_middle clr"> <div class="item_middle clr">
{{# if(item.source !== 0){ }} {{# if(item.offer_num != 0){ }}
<div class="fl xjNum">{{item.source}}个报价</div> <div class="fl xjNum">{{item.offer_num}}个报价</div>
{{# } else { }} {{# } else { }}
<div class="fl xj0">等待报价</div> <div class="fl xj0">等待报价</div>
{{# } }} {{# } }}
......
...@@ -80,6 +80,7 @@ $(function () { ...@@ -80,6 +80,7 @@ $(function () {
if (self.isClick) { if (self.isClick) {
self.isClick = false; self.isClick = false;
var userId = $(this).attr('imid'), var userId = $(this).attr('imid'),
id = $(this).attr('userid'),
parent = $(this).parents('.bj_item'), parent = $(this).parents('.bj_item'),
type = parent.find('.goods_name').text(), type = parent.find('.goods_name').text(),
price = parent.find('.price').text(), price = parent.find('.price').text(),
...@@ -90,6 +91,7 @@ $(function () { ...@@ -90,6 +91,7 @@ $(function () {
time = parent.find('.time').find('span').text(), time = parent.find('.time').find('span').text(),
img = $('.xj_img').attr('src'), img = $('.xj_img').attr('src'),
name = parent.find('.name').text(); name = parent.find('.name').text();
obj = { obj = {
userId: userId, userId: userId,
type: type, type: type,
...@@ -100,9 +102,9 @@ $(function () { ...@@ -100,9 +102,9 @@ $(function () {
hq: hq, hq: hq,
time: time, time: time,
image: img, image: img,
userName:name userName: name,
id:id
}; };
console.log(obj)
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 { } else {
......
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