提交 0a87c399 authored 作者: lgd's avatar lgd

1.修改来源文案

上级 4aed0f08
...@@ -131,6 +131,7 @@ public class ProductOrderProActivity extends WorkToolBarActivity { ...@@ -131,6 +131,7 @@ public class ProductOrderProActivity extends WorkToolBarActivity {
carList.add(chooseProduct); carList.add(chooseProduct);
} }
toast("加入购物车成功"); toast("加入购物车成功");
clientAdapter.notifyDataSetChanged();
} }
@Override @Override
......
package com.wd.workoffice.ui.adapter; package com.wd.workoffice.ui.adapter;
import android.text.TextUtils;
import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder; import com.chad.library.adapter.base.BaseViewHolder;
import com.wd.workoffice.R; import com.wd.workoffice.R;
...@@ -36,9 +38,16 @@ public class ProAddAdapter extends BaseQuickAdapter<ProAddBean.RecordsBean, Base ...@@ -36,9 +38,16 @@ public class ProAddAdapter extends BaseQuickAdapter<ProAddBean.RecordsBean, Base
helper.setText(R.id.tv_pd_code, item.getSerialNumber()); helper.setText(R.id.tv_pd_code, item.getSerialNumber());
helper.setText(R.id.tv_spec, item.getProductSpec()); helper.setText(R.id.tv_spec, item.getProductSpec());
helper.setText(R.id.tv_unit, item.getProductUnit()); helper.setText(R.id.tv_unit, item.getProductUnit());
helper.setText(R.id.tv_apply_num, MathUtils.converData(item.getCanPackageSum(),3)); helper.setText(R.id.tv_apply_num, MathUtils.converData(item.getCanPackageSum(), 3));
if (type == 1) { if (type == 1) {
helper.setVisible(R.id.iv_cart, false); helper.setVisible(R.id.iv_cart, false);
} else if (type == 0) {
if (!TextUtils.isEmpty(item.getCarNum())) {
helper.setVisible(R.id.tv_car_num, true);
helper.setText(R.id.tv_car_num, String.format("选中数量:%s", MathUtils.converData(item.getCarNum(), 3)));
}else {
helper.setVisible(R.id.tv_car_num, false);
}
} }
} }
} }
......
...@@ -186,10 +186,28 @@ ...@@ -186,10 +186,28 @@
</RelativeLayout> </RelativeLayout>
</LinearLayout> </LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/tv_car_num"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:text="选中数量:"
android:visibility="gone"
android:textColor="@color/red_btn_bg"
android:textSize="13sp" />
<ImageView <ImageView
android:id="@+id/iv_cart" android:id="@+id/iv_cart"
android:layout_width="25mm" android:layout_width="25mm"
android:layout_height="25mm" android:layout_height="25mm"
android:layout_gravity="right" android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:src="@mipmap/ticket_add_cart" /> android:src="@mipmap/ticket_add_cart" />
</RelativeLayout>
</LinearLayout> </LinearLayout>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论