|
|
@ -75,6 +75,12 @@ namespace BBWY.Client.ViewModels |
|
|
|
MessageBox.Show("采购信息不能为空", "保存店铺设置"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
PurchaseAccount.AppKey = PurchaseAccount.AppKey.Trim(); |
|
|
|
PurchaseAccount.AppSecret = PurchaseAccount.AppSecret.Trim(); |
|
|
|
PurchaseAccount.AppToken = PurchaseAccount.AppToken.Trim(); |
|
|
|
PurchaseAccount.AccountName = PurchaseAccount.AccountName.Trim(); |
|
|
|
|
|
|
|
var p = PlatformCommissionRatio / 100; |
|
|
|
IsLoading = true; |
|
|
|
Task.Factory.StartNew(() => shopService.SaveShopSetting(globalContext.User.Shop.ShopId, ManagePwd, p, PurchaseAccount)).ContinueWith(r => |
|
|
@ -92,7 +98,7 @@ namespace BBWY.Client.ViewModels |
|
|
|
globalContext.User.Shop.PurchaseAccountList.Clear(); |
|
|
|
PurchaseAccount.Id = response.Data; |
|
|
|
globalContext.User.Shop.PurchaseAccountList.Add(PurchaseAccount); |
|
|
|
globalContext.User.Shop.PlatformCommissionRatio = this.PlatformCommissionRatio; |
|
|
|
globalContext.User.Shop.PlatformCommissionRatio = p; |
|
|
|
globalContext.User.Shop.ManagePwd = this.ManagePwd; |
|
|
|
}); |
|
|
|
} |
|
|
|