简单开发出直播商城源码中,Android端直播带货功能的实现

本文介绍了在直播商城源码中,如何实现Android端直播带货功能,包括商家注册开店、商品上架、用户查看购买商品、订单管理等一系列流程。详细阐述了关键步骤和代码片段,提供了直播电商功能的实现方案。
摘要由CSDN通过智能技术生成

最近直播商城源码很火,直播与电商的结合为平台与商家带来了新的经济增长点,市场前景巨大。在直播App中加入电商和带货功能已经是必不可少的重要内容。云豹直播商城源码自然也加入了这一功能,下面为大家介绍云豹直播商城源码的具体实现方式。

直播商城源码中,功能应当包括而不限于:

1、注册成为商家
2、开通店铺(可能需要缴纳保证金)
3、添加商品信息
4、在售商品添加到直播间带货列表
5、用户通过主播添加的带货商品,进行查看商品详情和下单购买。
6、观众购买后可以查看商品订单详情和物流信息
7、用户在收货后可以进行评价或退货等操作

部分直播商城源码如下:

public class GoodsDetailActivity extends AbsActivity implements View.OnClickListener {

    public static void forward(Context context, String goodsId, int type) {
        forward(context, goodsId, false, type);
    }

    public static void forward(Context context, String goodsId, boolean fromShop, int type) {
        if (type == 0) {
            Intent intent = new Intent(context, GoodsDetailActivity.class);
            intent.putExtra(Constants.MALL_GOODS_ID, goodsId);
            intent.putExtra(Constants.MALL_GOODS_FROM_SHOP, fromShop);
            context.startActivity(intent);
        } else {
            Intent intent = new Intent(context, GoodsOutSideDetailActivity.class);
            intent.putExtra(Constants.MALL_GOODS_ID, goodsId);
            intent.putExtra(Constants.MALL_GOODS_FROM_SHOP, fromShop);
            context.startActivity(intent);
        }
    }

产品参数


    private ViewPager mViewPager;
    private GoodsTitleAdapter mTitleAdapter;
    private TextView mPageIndex;
    private TextView mGoodsPrice;
    private TextView mGoodsName;
    private TextView mGoodsPostage;
    private TextView mGoodsSaleNum;
    private TextView mSellerAddress;//卖家地区
    private TextView mSaleNumAll;//总销量
    private TextView mGoodsQuality;//商品质量
    private TextView mTaiDuFuWu;//服务态度
    private TextView mTaiDuWuLiu;//物流态度
    private ImageView mShopThumb;
    private TextView mShopName;
    private View mBtnCommentMore;
    private String mUnitString;
    private MagicIndicator mIndicator;
    private String mCommentString;

    private View mGroupCommment;
    private View mGroupDetail;
    private RecyclerView mRecyclerViewComment;
    private RecyclerView mRecyclerViewDetail;
    private View mNoComment;
    private View mNoDetail;
    private TextView mCommentCountTextView;
    private int mTabIndex;

确认商品能否进行购买

private String mToUid;
private String mGoodsId;
private boolean mIsCanBuy;//直播商城源码自动判断该商品是否可以购买
private boolean mFromShop;
private boolean mPaused;
private List<GoodsChooseSpecBean> mSpecList;
private double mPostageVal;

@Override
protected int getLayoutId() {
    return R.layout.activity_goods_detail;
}

@Override
protected void main() {
    mCommentString = WordUtil.getString(R.string.mall_131);
    Intent intent = getIntent();
    mGoodsId = intent.getStringExtra(Constants.MALL_GOODS_ID);
    mFromShop = intent.getBooleanExtra(Constants.MALL_GOODS_FROM_SHOP, false);

    mGoodsPrice = findViewById(R.id.goods_price);
    mGoodsName = findViewById(R.id.goods_name);
    mGoodsPostage = findViewById(R.id.goods_postage);
    mGoodsSaleNum = findViewById(R.id.goods_sale_num);
    mSellerAddress = findViewById(R.id.address);

    mSaleNumAll = findViewById(R.id.sale_num_all);
    mGoodsQuality = findViewById(R.id.goods_quality);
    mTaiDuFuWu = findViewById(R.id.taidu_fuwu);
    mTaiDuWuLiu = findViewById(R.id.taidu_wuliu);
    mUnitString = WordUtil.getString(R.string.mall_168);
    mShopThumb = findViewById(R.id.shop_thumb);
    mShopName = findViewById(R.id.shop_name);
    mBtnCommentMore = findViewById(R.id.btn_comment_more);

    findViewById(R.id.btn_choose_spec).setOnClickListener(this);
    findViewById(R.id.btn_service).setOnClickListener(this);
    findViewById(R.id.btn_shop_home).setOnClickL
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值