Commit 5d619ca1 by 施宇

111

parent de6ea5a5
......@@ -79,7 +79,7 @@ Component({
filename: tempFilePaths[0]
};
let userId = wx.getStorageSync('user_id');
let companyName = wx.getStorageSync('imNick');
let companyName = wx.getStorageSync('company_name');
let avatar = wx.getStorageSync('avatar');
msg.set({
apiUrl: WebIM.config.apiURL,
......
......@@ -84,7 +84,7 @@ Component({
let id = WebIM.conn.getUniqueId();
let msg = new WebIM.message(msgType.TEXT, id);
let userId = wx.getStorageSync('user_id');
let companyName = wx.getStorageSync('imNick');
let companyName = wx.getStorageSync('company_name');
let avatar = wx.getStorageSync('avatar');
msg.set({
msg: this.data.userMessage,
......@@ -131,7 +131,7 @@ Component({
let id = WebIM.conn.getUniqueId();
let msg = new WebIM.message(msgType.TEXT, id);
let userId = wx.getStorageSync('user_id');
let companyName = wx.getStorageSync('imNick');
let companyName = wx.getStorageSync('company_name');
let avatar = wx.getStorageSync('avatar');
let touserid = this.data.username.id == userId ? this.data.username.touserid : this.data.username.id;
let members = wx.getStorageSync('member') || '';
......
......@@ -158,7 +158,6 @@ Page({
this.setData({
p: p + 1
});
console.log(this.data.p)
this.getListData(true, true);
}
},
......@@ -274,7 +273,6 @@ Page({
} else {
if (type == 1) {
url = apis.offerinfo; //查看自己的报价
console.log(url)
params.token = me.data.token
} else if (type == 2) {
url = apis.offersearch; //查看别人的报价
......
......@@ -93,7 +93,7 @@ Page({
wx.removeStorageSync('myUsername');
wx.removeStorageSync('myPassword');
wx.removeStorageSync('auth');
wx.removeStorageSync('imNick');
// wx.removeStorageSync('imNick');
wx.reLaunch({
url: '/pages/person/auth/index',
});
......
......@@ -48,7 +48,7 @@ const getImUser = () => {
wx.setStorageSync('company_name', res.data.company_name || '');
wx.setStorageSync("myUsername", res.data.im_username);
wx.setStorageSync("myPassword", res.data.im_password);
wx.setStorageSync("imNick", res.data.company_name || (res.data.mobile ? res.data.mobile.replace(reg, '$1****$2') : '') || res.data.wechat_oauth.oauth_nickname || '');
// wx.setStorageSync("imNick", res.data.company_name || (res.data.mobile ? res.data.mobile.replace(reg, '$1****$2') : '') || res.data.wechat_oauth.oauth_nickname || '');
getBlackList(token, res.data.im_username, res.data.im_password);
// conn.open({
// apiUrl: WebIM.config.apiURL,
......
......@@ -76,7 +76,7 @@ const getData = (url, type, param, callBack, loading, isheader, istoken) => {
wx.removeStorageSync('myUsername');
wx.removeStorageSync('myPassword');
wx.removeStorageSync('auth');
wx.removeStorageSync('imNick');
// wx.removeStorageSync('imNick');
wx.reLaunch({
url: '/pages/person/auth/index',
});
......
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