Showing
4 changed files
with
4 additions
and
8 deletions
@@ -86,9 +86,10 @@ module.exports = { | @@ -86,9 +86,10 @@ module.exports = { | ||
86 | var errcallback = function (err) { | 86 | var errcallback = function (err) { |
87 | return callback(err, result); | 87 | return callback(err, result); |
88 | } | 88 | } |
89 | + //promise.all(Ilogin,allRight,sessionAsync).then(a,b,c); | ||
90 | + | ||
89 | common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) { | 91 | common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) { |
90 | var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"]; | 92 | var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"]; |
91 | - | ||
92 | userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]}; | 93 | userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]}; |
93 | allRes.data.forEach(function (data) { | 94 | allRes.data.forEach(function (data) { |
94 | if (data.platform_id == Iaccount.WEBSITE) { | 95 | if (data.platform_id == Iaccount.WEBSITE) { |
@@ -387,11 +387,6 @@ var p = new common.grid({ | @@ -387,11 +387,6 @@ var p = new common.grid({ | ||
387 | return newPriceHtml + '<p style="color: #ccc;">' + item.oldProductPriceBo.vip2_price + '</p>'; | 387 | return newPriceHtml + '<p style="color: #ccc;">' + item.oldProductPriceBo.vip2_price + '</p>'; |
388 | } | 388 | } |
389 | }, { | 389 | }, { |
390 | - display: '返币金额', | ||
391 | - render: function(item) { | ||
392 | - return item.newProductPriceBo.return_coin + '<p style="color: #ccc;">' + item.oldProductPriceBo.return_coin + '</p>'; | ||
393 | - } | ||
394 | - }, { | ||
395 | display: '操作', | 390 | display: '操作', |
396 | render: function(item) { | 391 | render: function(item) { |
397 | return '<a class="btn btn-info delete-btn" data-index="' + item.__index + '" href="javascript:;">删除</a>'; | 392 | return '<a class="btn btn-info delete-btn" data-index="' + item.__index + '" href="javascript:;">删除</a>'; |
@@ -86,9 +86,10 @@ module.exports = { | @@ -86,9 +86,10 @@ module.exports = { | ||
86 | var errcallback = function (err) { | 86 | var errcallback = function (err) { |
87 | return callback(err, result); | 87 | return callback(err, result); |
88 | } | 88 | } |
89 | + //promise.all(Ilogin,allRight,sessionAsync).then(a,b,c); | ||
90 | + | ||
89 | common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) { | 91 | common.Ilogin(user, password).allRight().sessionAsync(user, password).done(function (IloginRes,allRes,sesRes) { |
90 | var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"]; | 92 | var userData = IloginRes.data, cookie = sesRes.caseless.dict["set-cookie"]; |
91 | - | ||
92 | userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]}; | 93 | userInfo = { auth: userData, uid: userData.pid, name: userData.truename, right: {},shopList:[]}; |
93 | allRes.data.forEach(function (data) { | 94 | allRes.data.forEach(function (data) { |
94 | if (data.platform_id == Iaccount.WEBSITE) { | 95 | if (data.platform_id == Iaccount.WEBSITE) { |
-
Please register or login to post a comment