12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226 |
- import _mixins from './_mixins';
- import _action from './_action';
- import _data from './_data';
- export default {
- /** 获得会话列表数据 */
- getChatList() {
- _mixins.methods.$httpSend({
- path: '/im/get/chatList',
- success(data) {
- // data.hasData = 1;
- // if(!data.length)data.hasData = 0;
- if (data.length) {
- data.sort((x, y) => {
- if (x.top == y.top) {
- return y.time - x.time;
- } else {
- return y.top - x.top;
- }
- })
- }
- _data.localData('chat_list', data);
- uni.$emit('data_chat_list', data);
- _action.setStatusTips();
- }
- });
- },
- getGroupChatList(data, sucess) {
- _mixins.methods.$httpSend({
- path: '/im/get/chatList',
- data: data,
- success(data) {
- console.log(1111)
- if (sucess) {
- sucess(data)
- }
- }
- });
- },
- /**
- * 获得对话数据
- * @param {
- 发送的数据
- send_data: {
- list_id: list_id,
- time: 0,
- 是否更新未读消息数
- is_up: 1,
- },
- 回调函数
- calllback(data){
-
- },
- 是否需要操作本地缓存数据
- is_action_data: 1,
- }
- */
- getChatData(config) {
- _mixins.methods.$httpSend({
- path: '/im/get/chatData',
- data: config.send_data,
- success(data) {
- // console.log('12312311213',data)
- if (config.is_action_data) {
- uni.$emit('data_chat_data', data);
- _data.localData(data.list_id, data);
- } else {
- console.log(data.list,'data_chat_data_unshift');
- uni.$emit('data_chat_data_unshift', data.list);
- }
- if ('callback' in config) {
- config.callback(data);
- }
- }
- });
- },
- /** 获得通讯录数据 */
- getFriendList(send_data, callback) {
- if (!send_data) {
- send_data = {};
- }
- _mixins.methods.$httpSend({
- path: '/im/get/friendList',
- data: send_data,
- success(data) {
- Object.keys(data.data).forEach(function(key) {
- console.log(key, data.data[key], 333);
- data.data[key].data.map((res, index) => {
- data.data[key].data[index].checked = false
- })
- })
- if (data.data.length || 'up' in send_data || Object.keys(data.data).length) {
- _data.localData('friend_list', data.data);
- uni.$emit('data_friend_list', data.data);
- }
- if (callback) {
- callback(data);
- }
- }
- });
- },
- /** 获得朋友圈数据 data要发送的数据 type 0加载最新数据 1加载历史数据 */
- getCircleList(send_data, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/circleData',
- data: send_data,
- success(data) {
- let key1 = 'circle_data',
- _data_key1 = 'data_circle_data';
- let circle_data = _data.localData(key1);
- if (!circle_data) {
- circle_data = [];
- }
- if (send_data.type) {
- circle_data.push(...data.data);
- } else {
- circle_data.unshift(...data.data);
- }
- uni.$emit(_data_key1, circle_data);
- _data.localData(key1, circle_data);
- if ('update' in send_data) {
- let key2 = 'circle_data_user',
- _data_key2 = 'data_circle_data_user';
- let circle_data2 = _data.localData(key2);
- if (!circle_data) {
- circle_data = [];
- }
- if (send_data.type) {
- circle_data2.push(...data.data);
- } else {
- circle_data2.unshift(...data.data);
- }
- uni.$emit(_data_key2, circle_data2);
- _data.localData(key2, circle_data2);
- }
- if (callback) {
- callback(data);
- }
- }
- });
- },
- /** 获得基础数据 */
- getUserCircleList(send_data, callback) {
- console.log('to')
- _mixins.methods.$httpSend({
- path: '/im/get/circleData',
- data: send_data,
- success(data) {
- console.log(1111111)
- let key2 = 'circle_data_user',
- _data_key2 = 'data_circle_data_user';
- let circle_data2 = _data.localData(key2);
- if (!circle_data2) {
- circle_data2 = [];
- }
- if (send_data.type) {
- circle_data2.push(...data.data);
- } else {
- circle_data2.unshift(...data.data);
- }
- uni.$emit(_data_key2, circle_data2);
- _data.localData(key2, circle_data2);
- if (callback) {
- callback(data);
- }
- }
- });
- },
- base() {
- _mixins.methods.$httpSend({
- path: '/im/get/base',
- success(data) {
- data.user_info.photo += '?_=' + Math.random();
- data.user_info.circle_img += '?_=' + Math.random();
- _data.data('user_info', data.user_info);
- uni.$emit('data_user_info', data.user_info);
- _data.data('bottom_url', data.bottom_url);
- _data.data('new_friend_tips_num', data.new_friend_tips_num);
- _data.data('no_reader_chat_num', data.no_reader_chat_num);
- _data.data('no_reader_circle', data.no_reader_circle);
- _data.data('no_reader_circle_chat_num', data.no_reader_circle_chat_num);
- _data.data('new_group_tips_num', data.new_group_tips_num);
- _data.data('kefu_list_id', data.kefu_list_id);
- _action.setStatusTips();
- _action.downloadPhoto();
- },
- fail(err) {
- console.log("err", err);
- }
- });
- },
- /** 获得好友申请列表数据 */
- getFriendApplyList(callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/applyFriend',
- success(data) {
- _data.localData('friend_apply_list', data);
- uni.$emit('data_friend_apply_list', data);
- if (callback) {
- callback(data);
- }
- }
- });
- },
- /** 获得群认证列表数据 */
- getGroupApplyList(callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/applyGroup',
- success(data) {
- _data.localData('group_apply_list', data);
- uni.$emit('data_group_apply_data', data);
- if (callback) {
- callback(data);
- }
- }
- });
- },
- //搜索聊天记录
- serchChatMsg(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/searchCahtMsg',
- data: params,
- success(data) {
- if (callback) {
- callback(data);
- }
- }
- });
- },
- //搜索好友
- searchFriends(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/searchFriends',
- data: params,
- success(data) {
- if (callback) {
- callback(data);
- }
- }
- });
- },
- //搜索群聊成员
- searchGroupFriends(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/group/searchFriends',
- data: params,
- success(data) {
- if (callback) {
- callback(data);
- }
- }
- });
- },
- //取消音/视频
- cancelCall(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/message/closeVideo',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- }
- });
- },
- //同意/音视频
- agreeVedio(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/message/agreeVedio',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- }
- });
- },
- createHongBao(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/message/createHongBao',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- checkBeforePay(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/user/checkBeforePay',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getHongBao(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/message/getHongBao',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getUserCapitalList(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/getUserCapitalList',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- },
- });
- },
- getUserbankList(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/getUserbankList',
- data: params,
- success(res) {
- if (callback) {
- callback(res);
- }
- },
- });
- },
- addUserBank(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/addUserBank',
- data: params,
- success(fireParams) {
- uni.$emit('update_bank_list_data', fireParams);
- if (callback) {
- callback(fireParams);
- }
- },
- });
- },
- setUserTradePassword(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/user/setUserTradePassword',
- data: params,
- success(fireParams) {
- if (callback) {
- callback(fireParams);
- }
- },
- });
- },
- checkUserTradePassword(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/user/checkUserTradePassword',
- data: params,
- success(fireParams) {
- if (callback) {
- callback(fireParams);
- }
- },
- });
- },
- sendContact(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/app/setUserContact',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- });
- },
- getOnlineList(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/agent/getOnlineList',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- });
- },
- sendCard(params, callback) { //发送名片
- _mixins.methods.$httpSend({
- path: '/im/message/sendCard',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- });
- },
- getHongBaoDetail(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/getHongBaoDetail',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- });
- },
- getUserInfo(params, callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/getUserInfo',
- data: params,
- success(ret) {
- console.log(ret)
- _data.data('user_info', ret);
- uni.$emit('data_user_info', ret);
- if (callback) {
- callback(ret);
- }
- },
- });
- },
- payAmount(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/user/payAmount',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- collectAmount(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/user/collectAmount',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- charge(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/pay/userCharge',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getVedioPayConfig(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/get/getVedioPayConfig',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- payCicleOrder(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/pay/payCircleOrder',
- data: params,
- success(ret) {
- //更新状态
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getUserOrderList(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/order/getUserOrderList',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- updateOrderStatus(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/order/updateOrderStatus',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- payVideoAamount(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/pay/payVideoAamount',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- updateUserSayType(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/action/updateUserSayType',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getWithDrawConfig(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/withdraw/getWithDrawConfig',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- withDrawMoney(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/withdraw/withDrawMoney',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- updateMiaoqiang(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/bigRegQiang',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- createLeiHongBao(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/createLeiHongBao',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getLeiHongBao(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getLeiHongBao',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- setHongBaoConfig(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/setHongBaoConfig',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getUserVendor(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getUserVendor',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getVendorInfo(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getVendor',
- data: params,
- success(ret) {
- console.log("dasdsada")
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- console.log("dasdsada")
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getSysConfig(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/App/config',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getSms(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/App/getSms',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- vendorLogin(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/in/vendorLogin',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getRobotList(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getRobotList',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- addRobot(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/addRobot',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- tuiQun(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/robotTuiQun',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- autoBigRed(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/robotAutoHongbao',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- updateUserTradePassword(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/updateUserTradePassword',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- checkSmsCode(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/app/checkSmsCode',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- saveGroupNickName(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/saveGroupNickName',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- //群成员列表
- getMemberList(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getMemberList',
- data: params,
- success(ret) {
- console.log(ret)
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- groupAdd(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/message/addChat',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getInviteName(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getInviteName',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- zhendong(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/zhendong',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getGroupDetail(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getGroupDetail',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- copyNewQun(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/copyNewQun',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getExpireBigRed(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getExpireBigRed',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- sendChuoYiChuoMsg(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/sendChuoYiChuoMsg',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getCapitalList(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getUserCapitalList',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getArticleList(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getArticleList',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getArticleDetail(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getArticleDetail',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getUserStore(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getUserStore',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getStoreStatics(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getStoreStatics',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- deleteStore(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/deleteStore',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- getMemberPhotos(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/getMemberPhotos',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- transMsg(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/transMsg',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- joinVoiceRoom(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/joinVoiceRoom',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- setVoiceRoomMsg(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/setVoiceRoomMsg',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- memberjoinVoiceRoom(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/memberjoinVoiceRoom',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- checkVoiceRoomState(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/vendor/checkVoiceRoomState',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- },
- xiaoHui(params, callback, fail_callback) {
- _mixins.methods.$httpSend({
- path: '/im/group/xiaoHuiMessage',
- data: params,
- success(ret) {
- if (callback) {
- callback(ret);
- }
- },
- fail_callback(res) {
- if (fail_callback) {
- fail_callback(res)
- }
- }
- });
- }
- }
|