Commit f82041c9 by 施宇

11

parent 3ec8a6e3
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
报价:<span class="bold">21</span> 报价:<span class="bold">21</span>
</div> --> </div> -->
</div> </div>
<div class="gt_div fl btn btn_yellow" imid="{{d.im_username}}"> <div class="gt_div fl btn btn_yellow" imid="{{d.im_username}}" userid="{{d.user_id}}" avatar="{{d.avatar}}">
<span class="icon iconfont iconjuxing7 va-m"></span> <span class="icon iconfont iconjuxing7 va-m"></span>
在线沟通 在线沟通
</div> </div>
......
...@@ -493,7 +493,7 @@ $(function () { ...@@ -493,7 +493,7 @@ $(function () {
onError: function (message) { onError: function (message) {
// console.log('Error', WebIM.utils.stringify(message)); // console.log('Error', WebIM.utils.stringify(message));
console.log('onError: ', message); console.log('onError: ', message);
layer.msg('聊天系统出错'); // layer.msg('聊天系统出错');
}, //失败回调; }, //失败回调;
}); });
}, },
......
...@@ -65,6 +65,8 @@ $(function () { ...@@ -65,6 +65,8 @@ $(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'),
userImg = $(this).attr('avatar'),
parent = $('.goods_detail'), parent = $('.goods_detail'),
type = parent.find('.goods_name').text(), type = parent.find('.goods_name').text(),
price = parent.find('.price').text(), price = parent.find('.price').text(),
...@@ -73,7 +75,8 @@ $(function () { ...@@ -73,7 +75,8 @@ $(function () {
num = parent.find('.num').find('span').text(), num = parent.find('.num').find('span').text(),
hq = parent.find('.hq').find('span').text(), hq = parent.find('.hq').find('span').text(),
time = parent.find('.time').find('span').text(), time = parent.find('.time').find('span').text(),
img = $('.sp_img').attr('src') img = $('.sp_img').attr('src'),
name = $('.bj_item').find('.name').text(),
obj = { obj = {
userId: userId, userId: userId,
type: type, type: type,
...@@ -83,8 +86,12 @@ $(function () { ...@@ -83,8 +86,12 @@ $(function () {
num: num, num: num,
hq: hq, hq: hq,
time: time, time: time,
image: img goodImage: img,
userName: name,
targetId: id,
userImg: userImg
}; };
Util.setCookie('templateBoolean', '1', 1, cookieHostname)
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 {
......
...@@ -91,7 +91,7 @@ $(function () { ...@@ -91,7 +91,7 @@ $(function () {
hq = parent.find('.hq').find('span').text(), hq = parent.find('.hq').find('span').text(),
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,
......
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