最近直播商城源码很火,直播与电商的结合为平台与商家带来了新的经济增长点,市场前景巨大。在直播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