公司小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.4 KiB

export default {
FireKeys : {
///需求选择通知
NeedsSelectedCallback : 'NeedsSelectedCallback',
////新增客户通知
AddNewCustomerSuccess : 'AddNewCustomerSuccess',
///微信登录成功的通知
WeChatLoginSuccess : 'WeChatLoginSuccess',
///跳转到主页下方指定的页面,0,1,2
ChangeMainBottomIndex : 'ChangeMainBottomIndex',
},
UserNeeds : ["小红书","抖音","美团","大众","App","小程序","官网","公众号","其他"],
///地址
BaseUrl : "https://partner.chengdutuxun.com/app/v1/",//"http://192.168.31.11:8888/app/v1/",//
///本地缓存数据的一些key的定义
StoreKeys : {
///微信昵称
WeChatNickName : "nickname",
///微信头像地址
WeChatHeadUrl : "headimgurl",
///微信用户的性别
WeChatGender : "sex",
///微信登录的token
WeChatLoginToken : "user_token",
},
///服务器所有接口
ServerInterfaces : {
///使用微信登录,当用户没有登陆过,或者服务器说登录状态过期的时候
/**
* {
"code": "string",
"headimgurl": "string",
"nickname": "string",
"sex": 0
}
*/
WeChatLogin : "login/wechatlogin",
},
/**
* 当收到一个从网络来的消息的时候,调用此方法
* @param {Object} res
*/
onNetMessage : function(res){
if(res.length <= 1){
return null;
}
var info = res[1];
var code = info.data.code;
if(code != 0){
return null;
}
return info.data.data;
}
}