You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.6 KiB
52 lines
1.6 KiB
3 years ago
|
using BBWY.Controls;
|
||
|
using Jd.Api;
|
||
|
using Jd.Api.Request;
|
||
|
using Jd.Api.Response;
|
||
|
using System;
|
||
|
using System.Windows;
|
||
|
using System.Windows.Controls;
|
||
|
|
||
|
namespace BBWY.Client.Views
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Interaction logic for MainWindow.xaml
|
||
|
/// </summary>
|
||
|
public partial class MainWindow : BWindow
|
||
|
{
|
||
|
public MainWindow()
|
||
|
{
|
||
|
InitializeComponent();
|
||
|
this.Width = SystemParameters.WorkArea.Size.Width * 0.8;
|
||
|
this.Height = SystemParameters.WorkArea.Size.Height * 0.7;
|
||
|
this.Loaded += MainWindow_Loaded;
|
||
|
}
|
||
|
|
||
|
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
|
||
|
{
|
||
|
|
||
|
|
||
|
//var appkey = "120EA9EC65AB017567D78CC1139EEEA5";
|
||
|
//var appsecret = "866a9877f5f24b03b537483b4defe75d";
|
||
|
//var token = "00f28ca8917948aea46e9f534090817a5mdb";
|
||
|
//
|
||
|
//IJdClient client = new DefaultJdClient("https://api.jd.com/routerjson", appkey, appsecret);
|
||
|
//
|
||
|
//WareReadSearchWare4ValidRequest req = new WareReadSearchWare4ValidRequest();
|
||
|
//req.orderField = "modified";
|
||
|
//req.orderType = "desc";
|
||
|
//req.pageSize = 50;
|
||
|
//req.field = "images,logo";
|
||
|
//
|
||
|
//WareReadSearchWare4ValidResponse response = client.Execute(req, token, DateTime.Now.ToLocalTime());
|
||
|
//
|
||
|
//Console.WriteLine(response.Body);
|
||
|
}
|
||
|
|
||
|
private void frame_Navigated(object sender, System.Windows.Navigation.NavigationEventArgs e)
|
||
|
{
|
||
|
if (frame.CanGoBack)
|
||
|
frame.RemoveBackEntry();
|
||
|
}
|
||
|
}
|
||
|
}
|