配置文件

app接口配置文件,script/common.js

var site_url="http://cms.yershop.com";//域名
var api_version='1';//版本号
var StatusBarcolor='#F54343';
//频道
var channel_url=site_url+'/api/channel/index.html?version='+api_version;
//首页
var index_url=site_url+'/api/index/index.html?version='+api_version;
//首页监听
var index_load_url=site_url+'/api/index/load.html?version='+api_version;
//根据分类加载文章
var category_url=site_url+'/api/category/index.html?version='+api_version;
//收藏
var collect_url=site_url+'/api/category/index.html?version='+api_version;
//图片
var picture_url=site_url+'/api/picture/index.html?version='+api_version;
//视频
var video_url=site_url+'/api/video/index.html?version='+api_version;
//视频详情
var video_detail=site_url+'/api/video/detail.html?version='+api_version;
//会员中心
var member_url=site_url+'/api/member/index.html?version='+api_version;
//登录
var login_url=site_url+'/api/user/login.html?version='+api_version;
//注册
var register_url=site_url+'/api/user/register.html?version='+api_version;
//历史记录
var history_url=site_url+'/api/history/index.html?version='+api_version;
//评论
var comment_url=site_url+'/api/comment/index.html?version='+api_version;
//发布评论
var comment_add_url=site_url+'/api/comment/add.html?version='+api_version;
//搜索
var search_url=site_url+'/api/search/index.html?version='+api_version;
//内容详情
var detail_url=site_url+'/api/document/detail.html?version='+api_version;
//系统消息
var message_url=site_url+'/api/message/index.html?version='+api_version;
//点赞文章
var document_laud_url=site_url+'/api/document/laud.html?version='+api_version;
//收藏文章
var document_star_url=site_url+'/api/document/star.html?version='+api_version;
//检查版本
var version_url=site_url+'/api/version/index.html?version='+api_version;
//点赞评论
var comment_laud_url=site_url+'/api/comment/laud.html?version='+api_version;