Authored by weiqingting

提交

... ... @@ -86,9 +86,10 @@ module.exports = {
var errcallback = function (err) {
return callback(err, result);
}
//promise.all(Ilogin,allRight,sessionAsync).then(a,b,c);
common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) {
var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"];
userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]};
allRes.data.forEach(function (data) {
if (data.platform_id == Iaccount.WEBSITE) {
... ...
... ... @@ -387,11 +387,6 @@ var p = new common.grid({
return newPriceHtml + '<p style="color: #ccc;">' + item.oldProductPriceBo.vip2_price + '</p>';
}
}, {
display: '返币金额',
render: function(item) {
return item.newProductPriceBo.return_coin + '<p style="color: #ccc;">' + item.oldProductPriceBo.return_coin + '</p>';
}
}, {
display: '操作',
render: function(item) {
return '<a class="btn btn-info delete-btn" data-index="' + item.__index + '" href="javascript:;">删除</a>';
... ...
... ... @@ -86,9 +86,10 @@ module.exports = {
var errcallback = function (err) {
return callback(err, result);
}
//promise.all(Ilogin,allRight,sessionAsync).then(a,b,c);
common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) {
var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"];
userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]};
allRes.data.forEach(function (data) {
if (data.platform_id == Iaccount.WEBSITE) {
... ...
... ... @@ -368,7 +368,7 @@ function __sendRequest(options, success, fail,wlen,i,args) {
fail && fail(_err_);
return;
}
} catch (err) {
console.info("Error[response to json @" + options.title + "--"+options.url+"]");
console.info(response);
... ... @@ -386,5 +386,4 @@ function __sendRequest(options, success, fail,wlen,i,args) {
});
}
module.exports = Interfacer;
\ No newline at end of file
... ...