Compare commits
1 Commits
master
...
Branch_6fd
Author | SHA1 | Date |
---|---|---|
|
9575df1702 | 2 years ago |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 8.6 KiB |
Before Width: | Height: | Size: 368 B After Width: | Height: | Size: 368 B |
Before Width: | Height: | Size: 231 B After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 233 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 790 B After Width: | Height: | Size: 790 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 799 B After Width: | Height: | Size: 799 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Before Width: | Height: | Size: 554 B After Width: | Height: | Size: 554 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 9.3 KiB After Width: | Height: | Size: 9.3 KiB |
Before Width: | Height: | Size: 150 KiB After Width: | Height: | Size: 150 KiB |
Before Width: | Height: | Size: 681 B After Width: | Height: | Size: 681 B |
Before Width: | Height: | Size: 236 KiB After Width: | Height: | Size: 236 KiB |
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@ -1 +0,0 @@
|
||||
ShoppingCart
|
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="RemoteRepositoriesConfiguration">
|
||||
<remote-repository>
|
||||
<option name="id" value="central" />
|
||||
<option name="name" value="Maven Central repository" />
|
||||
<option name="url" value="https://repo1.maven.org/maven2" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="jboss.community" />
|
||||
<option name="name" value="JBoss Community repository" />
|
||||
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven" />
|
||||
<option name="name" value="maven" />
|
||||
<option name="url" value="http://maven.aliyun.com/nexus/content/repositories/jcenter" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="Google" />
|
||||
<option name="name" value="Google" />
|
||||
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
|
||||
</remote-repository>
|
||||
<remote-repository>
|
||||
<option name="id" value="maven2" />
|
||||
<option name="name" value="maven2" />
|
||||
<option name="url" value="https://jitpack.io" />
|
||||
</remote-repository>
|
||||
</component>
|
||||
</project>
|
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="Android Studio default JDK" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/build/classes" />
|
||||
</component>
|
||||
<component name="ProjectType">
|
||||
<option name="id" value="Android" />
|
||||
</component>
|
||||
</project>
|
@ -1,27 +0,0 @@
|
||||
package com.llw.cart;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
import androidx.test.platform.app.InstrumentationRegistry;
|
||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
/**
|
||||
* Instrumented test, which will execute on an Android device.
|
||||
*
|
||||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
|
||||
*/
|
||||
@RunWith(AndroidJUnit4.class)
|
||||
public class ExampleInstrumentedTest {
|
||||
@Test
|
||||
public void useAppContext() {
|
||||
// Context of the app under test.
|
||||
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
|
||||
|
||||
assertEquals("com.llw.cart", appContext.getPackageName());
|
||||
}
|
||||
}
|
@ -1,26 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.llw.cart">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/AppTheme"
|
||||
tools:ignore="GoogleAppIndexingWarning">
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
@ -1,49 +0,0 @@
|
||||
package com.llw.cart.adapter;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.bumptech.glide.Glide;
|
||||
import com.chad.library.adapter.base.BaseQuickAdapter;
|
||||
import com.chad.library.adapter.base.BaseViewHolder;
|
||||
import com.llw.cart.bean.CarResponse;
|
||||
import com.llw.cart.R;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 商品适配器
|
||||
*
|
||||
* @author llw
|
||||
*/
|
||||
public class GoodsAdapter extends BaseQuickAdapter<CarResponse.OrderDataBean.CartlistBean, BaseViewHolder> {
|
||||
|
||||
public GoodsAdapter(int layoutResId, @Nullable List<CarResponse.OrderDataBean.CartlistBean> data) {
|
||||
super(layoutResId, data);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void convert(BaseViewHolder helper, CarResponse.OrderDataBean.CartlistBean item) {
|
||||
helper.setText(R.id.tv_good_name, item.getProductName())
|
||||
.setText(R.id.tv_good_color, item.getColor())
|
||||
.setText(R.id.tv_good_size, item.getSize())
|
||||
.setText(R.id.tv_goods_price, item.getPrice() + "")
|
||||
.setText(R.id.tv_goods_num, item.getCount() + "");
|
||||
ImageView goodImg = helper.getView(R.id.iv_goods);
|
||||
Glide.with(mContext).load(item.getDefaultPic()).into(goodImg);
|
||||
|
||||
ImageView checkedGoods = helper.getView(R.id.iv_checked_goods);
|
||||
//判断商品是否选中
|
||||
if (item.isChecked()) {
|
||||
checkedGoods.setImageDrawable(mContext.getDrawable(R.drawable.ic_checked));
|
||||
} else {
|
||||
checkedGoods.setImageDrawable(mContext.getDrawable(R.drawable.ic_check));
|
||||
}
|
||||
//添加点击事件
|
||||
helper.addOnClickListener(R.id.iv_checked_goods)//选中商品
|
||||
.addOnClickListener(R.id.tv_increase_goods_num)//增加商品
|
||||
.addOnClickListener(R.id.tv_reduce_goods_num);//减少商品
|
||||
}
|
||||
}
|
@ -1,196 +0,0 @@
|
||||
package com.llw.cart.bean;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 购物车返回数据
|
||||
* @author llw
|
||||
*/
|
||||
public class CarResponse {
|
||||
|
||||
|
||||
/**
|
||||
* code : 200
|
||||
* orderData : [{"shopId":1,"shopName":"京东自营","cartlist":[{"id":1,"shopId":1,"shopName":"京东自营","defaultPic":"https://img30.360buyimg.com/popWareDetail/jfs/t3208/194/7616404169/244198/369625db/58b7d093N03520fb7.jpg","productId":1,"productName":"三只松鼠_零食大礼包","color":"黑色","size":"18L","price":20,"count":1},{"id":2,"shopId":1,"shopName":"京东自营","defaultPic":"https://img14.360buyimg.com/n0/jfs/t2971/15/167732091/93002/204c1016/574d9d9aNe4e6fa7a.jpg","productId":2,"productName":"小米心跳手环","color":"白色","size":"20XXL","price":148,"count":1}]},{"shopId":2,"shopName":"海澜之家","cartlist":[{"id":1,"shopId":2,"shopName":"海澜之家","defaultPic":"https://img30.360buyimg.com/popWaterMark/jfs/t4075/83/1343091204/132469/9034cb9c/5873496bN68020ba8.jpg","productId":1,"productName":"短袖T恤男 2017夏季新品","color":"蓝色","size":"30X","price":181,"count":1}]},{"shopId":3,"shopName":"OPPO官方旗舰店","cartlist":[{"id":1,"shopId":3,"shopName":"OPPO官方旗舰店","defaultPic":"https://img10.360buyimg.com/cms/jfs/t6064/272/2163314583/157700/442d6477/593c1c49N7c63a7d9.jpg","productId":1,"productName":"OPPO R11 全网通","color":"蓝色","size":"30X","price":1999,"count":1},{"id":2,"shopId":3,"shopName":"OPPO官方旗舰店","defaultPic":"https://img14.360buyimg.com/n0/jfs/t3142/194/4953241722/254855/1651c2b1/585b9021Nf653e48a.jpg","productId":1,"productName":"OPPO R9 全网通","color":"蓝色","size":"30X","price":999,"count":1}]}]
|
||||
*/
|
||||
|
||||
|
||||
private int code;
|
||||
private List<OrderDataBean> orderData;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(int code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public List<OrderDataBean> getOrderData() {
|
||||
return orderData;
|
||||
}
|
||||
|
||||
public void setOrderData(List<OrderDataBean> orderData) {
|
||||
this.orderData = orderData;
|
||||
}
|
||||
|
||||
public static class OrderDataBean {
|
||||
/**
|
||||
* shopId : 1
|
||||
* shopName : 京东自营
|
||||
* cartlist : [{"id":1,"shopId":1,"shopName":"京东自营","defaultPic":"https://img30.360buyimg.com/popWareDetail/jfs/t3208/194/7616404169/244198/369625db/58b7d093N03520fb7.jpg","productId":1,"productName":"三只松鼠_零食大礼包","color":"黑色","size":"18L","price":20,"count":1},{"id":2,"shopId":1,"shopName":"京东自营","defaultPic":"https://img14.360buyimg.com/n0/jfs/t2971/15/167732091/93002/204c1016/574d9d9aNe4e6fa7a.jpg","productId":2,"productName":"小米心跳手环","color":"白色","size":"20XXL","price":148,"count":1}]
|
||||
*/
|
||||
|
||||
private int shopId;
|
||||
private String shopName;
|
||||
private List<CartlistBean> cartlist;
|
||||
private boolean isChecked;//店铺是否选中
|
||||
|
||||
public int getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(int shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public String getShopName() {
|
||||
return shopName;
|
||||
}
|
||||
|
||||
public void setShopName(String shopName) {
|
||||
this.shopName = shopName;
|
||||
}
|
||||
|
||||
public List<CartlistBean> getCartlist() {
|
||||
return cartlist;
|
||||
}
|
||||
|
||||
public void setCartlist(List<CartlistBean> cartlist) {
|
||||
this.cartlist = cartlist;
|
||||
}
|
||||
|
||||
public boolean isChecked() {
|
||||
return isChecked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
isChecked = checked;
|
||||
}
|
||||
|
||||
public static class CartlistBean {
|
||||
/**
|
||||
* id : 1
|
||||
* shopId : 1
|
||||
* shopName : 京东自营
|
||||
* defaultPic : https://img30.360buyimg.com/popWareDetail/jfs/t3208/194/7616404169/244198/369625db/58b7d093N03520fb7.jpg
|
||||
* productId : 1
|
||||
* productName : 三只松鼠_零食大礼包
|
||||
* color : 黑色
|
||||
* size : 18L
|
||||
* price : 20
|
||||
* count : 1
|
||||
*/
|
||||
|
||||
private int id;
|
||||
private int shopId;
|
||||
private String shopName;
|
||||
private String defaultPic;
|
||||
private int productId;
|
||||
private String productName;
|
||||
private String color;
|
||||
private String size;
|
||||
private int price;
|
||||
private int count;
|
||||
private boolean isChecked;//商品是否选中
|
||||
|
||||
public boolean isChecked() {
|
||||
return isChecked;
|
||||
}
|
||||
|
||||
public void setChecked(boolean checked) {
|
||||
isChecked = checked;
|
||||
}
|
||||
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(int id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public int getShopId() {
|
||||
return shopId;
|
||||
}
|
||||
|
||||
public void setShopId(int shopId) {
|
||||
this.shopId = shopId;
|
||||
}
|
||||
|
||||
public String getShopName() {
|
||||
return shopName;
|
||||
}
|
||||
|
||||
public void setShopName(String shopName) {
|
||||
this.shopName = shopName;
|
||||
}
|
||||
|
||||
public String getDefaultPic() {
|
||||
return defaultPic;
|
||||
}
|
||||
|
||||
public void setDefaultPic(String defaultPic) {
|
||||
this.defaultPic = defaultPic;
|
||||
}
|
||||
|
||||
public int getProductId() {
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setProductId(int productId) {
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public String getProductName() {
|
||||
return productName;
|
||||
}
|
||||
|
||||
public void setProductName(String productName) {
|
||||
this.productName = productName;
|
||||
}
|
||||
|
||||
public String getColor() {
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public String getSize() {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public int getPrice() {
|
||||
return price;
|
||||
}
|
||||
|
||||
public void setPrice(int price) {
|
||||
this.price = price;
|
||||
}
|
||||
|
||||
public int getCount() {
|
||||
return count;
|
||||
}
|
||||
|
||||
public void setCount(int count) {
|
||||
this.count = count;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,95 +0,0 @@
|
||||
package com.llw.cart.util;
|
||||
|
||||
/**
|
||||
* 常量
|
||||
* @author llw
|
||||
*/
|
||||
public class Constant {
|
||||
|
||||
public static final String CAR_JSON = "{ \"code\" : 200 ,\n" +
|
||||
" \"orderData\" : [\n" +
|
||||
" {\n" +
|
||||
"\n" +
|
||||
" \"shopId\": 1,\n" +
|
||||
" \"shopName\":\"水果拼盘\",\n" +
|
||||
" \"cartlist\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": 1,\n" +
|
||||
" \"shopId\": 1,\n" +
|
||||
" \"shopName\": \"水果拼盘\",\n" +
|
||||
" \"defaultPic\": \"https://tse1-mm.cn.bing.net/th/id/OIP-C.vJftgCb8g6v_gSHsD5HGNgHaE8?w=280&h=187&c=7&r=0&o=5&pid=1.7\",\n" +
|
||||
" \"productId\": 1,\n" +
|
||||
" \"productName\": \"优质新鲜水果\",\n" +
|
||||
" \"color\": \"\",\n" +
|
||||
" \"size\": \"\",\n" +
|
||||
" \"price\": 25,\n" +
|
||||
" \"count\":1\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"id\": 2,\n" +
|
||||
" \"shopId\": 1,\n" +
|
||||
" \"shopName\": \"\",\n" +
|
||||
" \"defaultPic\": \"https://tse4-mm.cn.bing.net/th/id/OIP-C.L32QENiAMoSmmqLf1Ks2BgHaFS?w=288&h=206&c=7&r=0&o=5&pid=1.7\",\n" +
|
||||
" \"productId\": 2,\n" +
|
||||
" \"productName\": \"花彩拼盘\",\n" +
|
||||
" \"color\": \"\",\n" +
|
||||
" \"size\": \"\",\n" +
|
||||
" \"price\": 16,\n" +
|
||||
" \"count\": 1\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
" ,\n" +
|
||||
" {\n" +
|
||||
" \"shopId\": 2,\n" +
|
||||
" \"shopName\":\"水果奶茶\",\n" +
|
||||
" \"cartlist\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": 1,\n" +
|
||||
" \"shopId\": 2,\n" +
|
||||
" \"shopName\": \"水果奶茶\",\n" +
|
||||
" \"defaultPic\": \"https://tse4-mm.cn.bing.net/th/id/OIP-C.THBnn4_4YiWfbtKTlzdZawHaLG?w=199&h=298&c=7&r=0&o=5&pid=1.7\",\n" +
|
||||
" \"productId\": 1,\n" +
|
||||
" \"productName\": \"青柠芒果\",\n" +
|
||||
" \"color\": \"\",\n" +
|
||||
" \"size\": \"\",\n" +
|
||||
" \"price\": 15,\n" +
|
||||
" \"count\":1\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
" ,\n" +
|
||||
" {\n" +
|
||||
" \"shopId\": 3,\n" +
|
||||
" \"shopName\":\"水果蛋糕\",\n" +
|
||||
" \"cartlist\": [\n" +
|
||||
" {\n" +
|
||||
" \"id\": 1,\n" +
|
||||
" \"shopId\": 3,\n" +
|
||||
" \"shopName\": \"水果蛋糕\",\n" +
|
||||
" \"defaultPic\": \"https://tse1-mm.cn.bing.net/th/id/OIP-C.-MylYp2cdCyNM5ijjLQqSwHaHa?w=192&h=191&c=7&r=0&o=5&pid=1.7\",\n" +
|
||||
" \"productId\": 1,\n" +
|
||||
" \"productName\": \"多彩水果拼盘蛋糕\",\n" +
|
||||
" \"color\": \"\",\n" +
|
||||
" \"size\": \"\",\n" +
|
||||
" \"price\": 50,\n" +
|
||||
" \"count\":1\n" +
|
||||
" },\n" +
|
||||
" {\n" +
|
||||
" \"id\": 2,\n" +
|
||||
" \"shopId\": 3,\n" +
|
||||
" \"shopName\": \"水果蛋糕\",\n" +
|
||||
" \"defaultPic\": \"https://tse1-mm.cn.bing.net/th/id/OIP-C.GFSAz_9r7WIXWpGCo72K3AHaGv?w=218&h=199&c=7&r=0&o=5&pid=1.7\",\n" +
|
||||
" \"productId\": 1,\n" +
|
||||
" \"productName\": \"心动情人草莓蛋糕\",\n" +
|
||||
" \"color\": \"\",\n" +
|
||||
" \"size\": \"\",\n" +
|
||||
" \"price\": 68,\n" +
|
||||
" \"count\":1\n" +
|
||||
" }\n" +
|
||||
" ]\n" +
|
||||
" }\n" +
|
||||
"\n" +
|
||||
" ]\n" +
|
||||
"}";
|
||||
}
|
@ -1,21 +0,0 @@
|
||||
package com.llw.cart.util;
|
||||
|
||||
|
||||
/**
|
||||
* 商品回调接口
|
||||
* @author llw
|
||||
*/
|
||||
public interface GoodsCallback {
|
||||
|
||||
/**
|
||||
* 选中店铺
|
||||
* @param shopId 店铺id
|
||||
* @param state 是否选中
|
||||
*/
|
||||
void checkedStore(int shopId,boolean state);
|
||||
|
||||
/**
|
||||
* 计算价格
|
||||
*/
|
||||
void calculationPrice();
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<stroke android:color="#000"
|
||||
android:width="0.5dp"/>
|
||||
</shape>
|