Commit f82041c9 by 施宇

11

parent 3ec8a6e3
......@@ -85,7 +85,7 @@
报价:<span class="bold">21</span>
</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>
在线沟通
</div>
......
......@@ -493,7 +493,7 @@ $(function () {
onError: function (message) {
// console.log('Error', WebIM.utils.stringify(message));
console.log('onError: ', message);
layer.msg('聊天系统出错');
// layer.msg('聊天系统出错');
}, //失败回调;
});
},
......
......@@ -65,6 +65,8 @@ $(function () {
if (self.isClick) {
self.isClick = false;
var userId = $(this).attr('imid'),
id = $(this).attr('userid'),
userImg = $(this).attr('avatar'),
parent = $('.goods_detail'),
type = parent.find('.goods_name').text(),
price = parent.find('.price').text(),
......@@ -73,7 +75,8 @@ $(function () {
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')
img = $('.sp_img').attr('src'),
name = $('.bj_item').find('.name').text(),
obj = {
userId: userId,
type: type,
......@@ -83,8 +86,12 @@ $(function () {
num: num,
hq: hq,
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)
window.location.href = '/chat'
} else {
......
......@@ -91,7 +91,7 @@ $(function () {
hq = parent.find('.hq').find('span').text(),
time = parent.find('.time').find('span').text(),
img = $('.xj_img').attr('src'),
name = parent.find('.name').text();
name = parent.find('.name').text(),
obj = {
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