Commit 1a7c6622 by 梁建民

apis

parent 6a51a3c8
......@@ -13,18 +13,18 @@ return array(
'__PUBLIC__' => STATIC_DOMAIN,
//非必须登录
//登录、注册、找回密码、登录状态、绑定第三方账户
'authapi' => 'authapi.icsales.com',
'authapi' => 'http://authapi.icsales.cc',
//非必须登录
//询价中心、后台首页(部分接口)、抢单专区、后台搜索、前台搜索
'soapi' => 'soapi.icsales.com',
'soapi' => 'http://soapi.icsales.cc',
//必须登录
//登录会员信息、会员认证(包含但不限于新增认证、认证列表)、积分、账户设置、站内消息通知
'userapi' => 'userapi.icsales.com',
'userapi' => 'http://userapi.icsales.cc',
//非必须登录:商详
//必须登录:我的商品列表、编辑、新增、删除、下架、上架、批量上传、商品数量统计、批量上传任务状态
'goodsapi' => 'goodsapi.icsales.com',
'goodsapi' => 'http://goodsapi.icsales.cc',
//必须登录:我的询价列表、询价下架and上架、询价详情、询价数量统计、发布询价 报价列表、报价详情(询报价相关)、报价数量统计、发布报价
'inquiryapi' => 'inquiryapi.icsales.com'
'inquiryapi' => 'http://inquiryapi.icsales.cc'
),
'URL_MAP_RULES' => array(//静态路由
......
......@@ -155,6 +155,8 @@
</div>
<include file="public/foot" />
<script src="__PUBLIC__/js/goodmanage/index.js"></script>
<script>
layui.use('laydate', function () {
var laydate = layui.laydate;
......
......@@ -3,11 +3,12 @@
init: function () {
this.mounted(this).handleBind(this);
},
getData: function (url, type, param, callback, loading) {
getData: function (url, type, param, callback) {
var index = layer.load(1);
var platform = {
pf: 20
pf: 20,
token: '1298dc6f00a017d9e94fc1e57792625d'
}
var params = $.extend({}, platform, param);
......
!function () {
window.GoodManage = {
init: function () {
this.created(this).mounted(this).handleBind(this);
},
created(opt) {
IcController.getData(apis.goodsInfo,'POST',null,function (res) {
console.log(res)
})
return this;
},
mounted: function (opt) {
return this;
},
handleBind: function (opt) {
return this;
},
}, $(function () {
GoodManage.init();
})
}();
\ No newline at end of file
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