diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$2.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$2.class index f111978..24e7476 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$2.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$2.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$3.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$3.class index ef5ddd1..d955d31 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$3.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$3.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4$1.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4$1.class index a3e7784..7d1480f 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4$1.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4$1.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4.class index e388588..8ff0d68 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$4.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$BaseUiListener.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$BaseUiListener.class index 6b855b5..10e65ca 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$BaseUiListener.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity$BaseUiListener.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity.class index 2fbbb96..a0d118a 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/LoginActivity.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$1.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$1.class index 9342797..eb09f91 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$1.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$1.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$2.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$2.class index ba5b6e4..a6a261d 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$2.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity$2.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity.class index f87e17d..6be4533 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/OrderActivity.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/ShopItemActivity.class b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/ShopItemActivity.class index 4d07674..35756db 100644 Binary files a/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/ShopItemActivity.class and b/代码/Shop_8.18_by_qinjiaming/Shop/bin/classes/com/stone/shop/view/ShopItemActivity.class differ diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LoginActivity.java b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LoginActivity.java index 14562f2..6491be8 100644 --- a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LoginActivity.java +++ b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/LoginActivity.java @@ -165,7 +165,8 @@ public class LoginActivity extends Activity implements OnClickListener { if (!Util.isNetworkConnected(this)) { toast("木有网络 ( ⊙ o ⊙ ) "); - } else if (username.equals("") || password.equals("")) { +// } else if (username.equals("") || password.equals("")) { + } else if ("".equals(username) || "".equals(password)) { toast("请输入账号和密码"); break; } else { @@ -257,7 +258,7 @@ public class LoginActivity extends Activity implements OnClickListener { } protected void doComplete(JSONObject values) { - + //do nothing } @Override @@ -279,7 +280,7 @@ public class LoginActivity extends Activity implements OnClickListener { @Override public void onError(UiError e) { - + //do nothing } @Override @@ -314,7 +315,7 @@ public class LoginActivity extends Activity implements OnClickListener { @Override public void onCancel() { - + //do nothing } }; mInfo = new UserInfo(this, mTencent.getQQToken()); diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/OrderActivity.java b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/OrderActivity.java index 761dbbf..1cdc56b 100644 --- a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/OrderActivity.java +++ b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/OrderActivity.java @@ -6,7 +6,7 @@ import android.app.Activity; import android.app.TimePickerDialog; import android.content.Intent; import android.os.Bundle; -import android.view.LayoutInflater; +//import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; @@ -46,7 +46,6 @@ public class OrderActivity extends Activity implements OnClickListener{ // private Button btnDlgOk; // 设置时间完成 private Button btnOrderSubmit; // 提交订单 -// private View dlgOrderView; private int mHour; private int mMinute; private String time = "12 : 30"; @@ -106,7 +105,7 @@ public class OrderActivity extends Activity implements OnClickListener{ @Override public void onClick(View v) { - int count = 1; + int count; switch (v.getId()) { case R.id.btn_order_count_more: count = Integer.parseInt(tvOrderCount.getText().toString()); @@ -121,12 +120,11 @@ public class OrderActivity extends Activity implements OnClickListener{ if (count == 1) { toast("每份订单数量至少为 1 "); } else { - tvOrderCount.setText( (count-1)+""); + //tvOrderCount.setText( (count-1)+""); + tvOrderCount.setText(Integer.toString(count-1)); } break; case R.id.btn_set_time: -// dlgSetOrderTime = new DialogOrder(this, R.style.MyDialog); -// dlgSetOrderTime.show(); final Calendar c = Calendar.getInstance(); mHour = c.get(Calendar.HOUR_OF_DAY); mMinute = c.get(Calendar.MINUTE); @@ -166,7 +164,7 @@ public class OrderActivity extends Activity implements OnClickListener{ order.setShopName(shop.getName()); order.setCount(count); order.setTime(time); - order.setPrice(price+""); + order.setPrice(Float.toString(price)); order.setPhone(phone); order.setTips(words); order.insertObject(this, new InsertListener() { diff --git a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/ShopItemActivity.java b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/ShopItemActivity.java index 2aaa72e..0178797 100644 --- a/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/ShopItemActivity.java +++ b/代码/Shop_8.18_by_qinjiaming/Shop/src/com/stone/shop/view/ShopItemActivity.java @@ -44,7 +44,7 @@ public class ShopItemActivity extends Activity implements OnClickListener, OnIte private View view1, view2; // 需要滑动的页卡 private ViewPagerCompat viewPager; // viewpager private ViewPagerAdapter shopViewPagerAdapter; - private PagerTitleStrip pagerTitleStrip; // viewpager的标题 +// private PagerTitleStrip pagerTitleStrip; // viewpager的标题 private PagerTabStrip pagerTabStrip; // 一个viewpager的指示器,效果就是一个横的粗的下划线 private List viewList; // 把需要滑动的页卡添加到这个list中 private List titleList; // viewpager的标题 @@ -52,7 +52,7 @@ public class ShopItemActivity extends Activity implements OnClickListener, OnIte // 店铺商品列表 private ListView lvGoodsList; private GoodsListAdapter goodsListAdapter; - private Button btnBuyGood; +// private Button btnBuyGood; // 店铺简介页中的控件 private TextView tvShopName; // 店铺名 diff --git a/顺序图.vsdx b/顺序图.vsdx index 1230cc5..a65547b 100644 Binary files a/顺序图.vsdx and b/顺序图.vsdx differ