Commit d99b0eec by 施宇

1111

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