“2+1”鏈動(dòng)模式商城開發(fā)系統(tǒng)案例|美麗*天天秒模式軟件技術(shù)
現(xiàn)在新零售市場(chǎng)現(xiàn)已展示出了巨大的活力以及潛力。短短幾年時(shí)間內(nèi),我國的新零售職業(yè)現(xiàn)已發(fā)展的初具規(guī)模了。最重要的是,其的確能為我們的日子提供很大的便利。網(wǎng)民都能用的“綜合性社交電商創(chuàng)業(yè)渠道”,消費(fèi)者在美麗天天秒中既能夠優(yōu)惠購物,又能夠經(jīng)過共享賺錢,可謂是是一箭雙雕。
【2+1】形式簡(jiǎn)介:
1、加盟專區(qū)499恣意消費(fèi)一款產(chǎn)品成為署理2+1鏈動(dòng)模式系統(tǒng)13z開4z77發(fā)z558,(產(chǎn)品自選,不指定)2、成為署理后,每月能夠免費(fèi)使用0元福利區(qū)產(chǎn)品3、共享推行獎(jiǎng)賞:
現(xiàn)在是社交電商時(shí)代,我們?cè)陂_發(fā)程序的過程中基于社交屬性的玩法,基于朋友關(guān)系分享利他屬性去做電商程序的設(shè)計(jì)至關(guān)重要,美麗天天秒系統(tǒng)也是我在在開發(fā)電商系統(tǒng)中感觸比較深的一款自驅(qū)行為的社交電商系統(tǒng),開發(fā)團(tuán)隊(duì)從產(chǎn)品設(shè)計(jì)里面、系統(tǒng)底層架構(gòu)、程序代碼邏輯、用戶體驗(yàn)等功能深入考慮等等……
2+1部分源碼分享:
public function regionAgentDetail()
{
$title='區(qū)域代理';
if(empty($this->uid)){
return$this->outMessage($title,null,'-9999',"無法獲取會(huì)員登錄信息");
}
$nfx_region_agent=new NfxRegionAgent();
$shop_info=$nfx_region_agent->getShopRegionAgentConfig($this->instance_id);
$region_agent_info=$nfx_region_agent->getPromoterRegionAgentValidDetail($this->instance_id,$this->uid);
$address=new Address();
$address_info=$address->getProvinceName($region_agent_info['agent_provinceid']);
$agent_name='省代';
if($region_agent_info['agent_type']>1){
$address_info.=$address->getCityName($region_agent_info['agent_cityid']);
$agent_name='市代';
}
if($region_agent_info['agent_type']>2){
$address_info.=$address->getDistrictName($region_agent_info['agent_districtid']);
$agent_name='區(qū)代';
}
$nfx_user=new NfxUser();
$user_account=$nfx_user->getNfxUserAccount($this->uid,$this->instance_id);//傭金
if($region_agent_info["agent_type"]==1){
$rate=$shop_info["province_rate"];
}elseif($region_agent_info["agent_type"]==2){
$rate=$shop_info["city_rate"];
}else{
$rate=$shop_info["district_rate"];
}
$data=array(
'agent_name'=>$agent_name,
'address_info'=>$address_info,
'commission_region_agent'=>$user_account['commission_region_agent'],
'rate'=>$rate
);
return$this->outMessage($title,$data);
}
/**
*分銷商申請(qǐng)檢測(cè)
*/
public function checkApplyPromoter()
{
$title='分銷商申請(qǐng)信息';
if(empty($this->uid)){
return$this->outMessage($title,null,'-9999',"無法獲取會(huì)員登錄信息");
}
$reapply=isset($this->params['reapply'])?$this->params['reapply']:0;
//分銷商信息表
$nfx_promoter=new NfxPromoter();
$promoter_info=$nfx_promoter->getUserPromoter($this->uid);
$shop_config=new NfxShopConfig();
$nfx_shop_config=$shop_config->getShopConfigDetail();
if($nfx_shop_config['is_distribution_enable']==0){
return$this->outMessage($title,null,-10,'當(dāng)前店鋪未開啟分銷');
}
$promoter_info=empty($promoter_info)?null:$promoter_info;
//獲取店鋪分銷商等級(jí)
$promoter_level=$nfx_promoter->getPromoterLevelAll($this->instance_id,"level_money asc");
if(empty($promoter_level)){
return$this->outMessage($title,null,-10,'當(dāng)前未設(shè)置分銷商');
}
//獲取用戶在本店的消費(fèi)
$member_service=new MemberService();
$uid=$this->uid;
$user_consume=$member_service->getShopUserConsume($uid);
$data=array(
'reapply'=>$reapply,
'user_consume'=>$user_consume,
'promoter_level'=>$promoter_level,
'promoter_info'=>$promoter_info
);
return$this->outMessage($title,$data);
}