<?php
//
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
model('jy_weishop/member')->checklogin();
$store_id=$_SESSION['store_id'];
if($_RQ['op']=='main'){
$shopset = plugin('jy_weishop')->plugin_setting('shopset');
//营销设置
$saleset=plugin('jy_weishop')->plugin_setting('saleset');
$goodsid = intval($_RQ['goodsid']);
$merchid = intval($_RQ['merchid']);
if(!$merchid){
exi('请选择商户!','error');
}
$return['setting']=$this->plugin_setting('basic');
$return['sendtypes']=array();
if($return['pluginset']['down_send_type1']!=1){
$return['sendtypes'][1]='同城配送';
$sendtypeone=1;
}
if($return['pluginset']['down_send_type2']!=1){
$return['sendtypes'][2]='店内自提';
$sendtypeone=2;
}
if($return['pluginset']['down_send_type3']!=1){
$return['sendtypes'][3]='预约下单';
$sendtypeone=3;
}
//下单页
$item=array();
//提交数据
$return['post'] = array(
'sendtype'=>$this->session('sendtype')?:1,
'self_type'=>$this->session('self_type')?:1,
'make_type'=>$this->session('make_type')?:0,
'out_time'=>$this->session('out_time')?:'',
'dayid'=>$this->session('dayid')?:0,
);
if(count($return['sendtypes'])==1){
$return['post']['sendtype']=$sendtypeone;
$return['sendtypeone']=$sendtypeone;
}
$return['selectstore']=array();
if($goodsid){
$_SESSION['goodsid']=$goodsid;
//直接购买。
$return['post']['goodsid'] = $goodsid;
$goods=pdo_get('jy_weishop_goods',array('id'=>$goodsid));
if(!$goods){
exi('指定商品不存在!','error','goback');
}
//配送设置
$goodsdispatch=pdo_get('jy_weishop_goods_dispatch',array('goodsid'=>$goods['id']));
$goods['fullnum']=$goodsdispatch['fullnum'];
$goods['fullmoney']=$goodsdispatch['fullmoney'];
$goods['fullnoareas']=$goodsdispatch['fullnoareas'];
$goods['template_id']=$goodsdispatch['template_id'];
$goods['weight']=$goodsdispatch['weight'];
$goods['dispatchprice']=$goodsdispatch['price'];
//如果来自其他商户分销(修改商户ID)
$frommerchid=$this->session('frommerchid');
$goods['merchid']=$frommerchid?$frommerchid:$goods['merchid'];
model('jy_weishop/goods')->check_buy($goods['id'],$_RQ['num']);
//判断距离
if($goods['merchid']){
$merset=pdo_getcolumn('core_account_plugin_setting',array('uniacid'=>$_SESSION['uniacid'],'key'=>'peisong'.$goods['merchid'],'plugin'=>'jy_merch'),'data');
$juli=json_decode($merset,true);
$juli=$juli['juli'];
$return['juli']=$juli;
}
//购买权限:
$levelinfo = model('jy_weishop/member')->get_level();
if($goods['buylevels'] && $goods['buylevels'] !=$levelinfo['id']){
exi('您没有权限购买该商品!','error','index/');
}
$goods['goodsid']=$goods['id'];
$optionsid = intval($_RQ['optionsid']);
$goods['storeid']=$store_id;
$goods['optionid']=$optionsid;
$goods=model('jy_weishop/activity')->get_upgoods($goods);
//重置下单数量
$goods['goodstotal']=$goods['total'];
$goods['total']=intval($_RQ['num']);
$optionsid = intval($_RQ['optionsid']);
if($optionsid){
$options = pdo_get('jy_weishop_goods_option',array('goodsid'=>$goodsid,'id'=>$optionsid));
$goods['optionid']=$options['id'];
$goods['price']=$options['price'];
$return['post']['optionid'] = $optionsid;
}else{
$goods['optionid']=0;
$return['post']['optionid'] = 0;
}
$goods=model('jy_weishop/activity')->get_uporder($goods);
$return['post']['total'] = intval($_RQ['num']);
$return['post']['invoice'] = $goods['invoice'];
if($goods['type']==1 || $goods['type']==2){
//虚拟商品
//$order['sendtype']=3;
}elseif($goods['type']==3){
//计时计次服务,发货类型必须是核销
//$order['sendtype']=2;
}elseif($goods['type']==0 || $goods['isverify']){
//实体商品,查找是否有门店,如果有门店则表示支持自提,否则只能是快递配送
$carrier_list = pdo_getall('jy_weishop_store',array('uniacid'=>$_SESSION['uniacid'],'status'=>1,'type'=>array(1,3)),'','','paixu desc,id desc');
if(!$carrier_list){
$order['sendtype']=1;
}else{
foreach($carrier_list as &$pv){
$pv['pcd']=json_decode($pv['pcd'],true);
}
$return['carrier_list']=$carrier_list;
$return['selectstore']=$carrier_list['0'];
}
}
$order=array(
'sendtype'=>$order['sendtype']?:$return['post']['sendtype'],
'type'=>'one',
'list'=>array($goods),
);
}else{
//从购物车购买
//$order['sendtype']=1;//点餐除外
$getcarts=model('jy_weishop/cart')->getall(1,$merchid);
$cart_list=$getcarts['list'];
if(!$cart_list){
exi('您的购物车没有商品!','error','goodslist/');
}
foreach($cart_list as &$cart){
$goods=pdo_get('jy_weishop_goods',array('id'=>$cart['goodsid']),array('id','title','image','price','total','totalcnf','weight','active_plugin','active_id','storeids','merchid','type','isverify'));
if(!$goods){
exi('指定商品不存在!','error','goback');
}
//配送设置
$goodsdispatch=pdo_get('jy_weishop_goods_dispatch',array('goodsid'=>$cart['goodsid']));
$goods['fullnum']=$goodsdispatch['fullnum'];
$goods['fullmoney']=$goodsdispatch['fullmoney'];
$goods['fullnoareas']=$goodsdispatch['fullnoareas'];
$goods['template_id']=$goodsdispatch['template_id'];
$goods['weight']=$goodsdispatch['weight'];
$goods['dispatchprice']=$goodsdispatch['price'];
model('jy_weishop/goods')->check_buy($cart['goodsid'],$cart['total'],$cart['optionid']);
$goods['storeid']=$store_id;
$goods['optionid']=$cart['optionid'];
$goods=model('jy_weishop/activity')->get_upgoods($goods);
//重置下单数量
$goods['goodstotal']=$goods['total'];
if($cart['optionid']){
if(!$goods['options']){
exi('指定规格的商品不存在!','error','goback');
}
$goods['price']=$goods['options']['price']?:$goods['price'];
$specs = explode("_", $goods['options']['specs']);
$specsall = pdo_getall('jy_weishop_goods_spec_item',array('id'=>$specs,'uniacid'=>$_SESSION['uniacid']),array('id','title'),'','paixu asc');
if($specsall){
$optiontitle='';
foreach($specsall as $k=>&$sp){
if($k==0){
$optiontitle .=$sp['title'];
}else{
$optiontitle .=','.$sp['title'];
}
}
}
$goods['optiondata']= $optiontitle;
}
//来自商户的分销
$cart['merchid']=$cart['merchid']?$cart['merchid']:$goods['merchid'];
if($goods['type']==1 || $goods['type']==2){
//虚拟商品
//$order['sendtype']=3;
}elseif($goods['type']==3){
//计时计次服务,发货类型必须是核销
//$order['sendtype']=2;
}elseif($goods['type']==0 || $goods['isverify']){
//实体商品,查找是否有门店,如果有门店则表示支持自提,否则只能是快递配送
$carrier_list = pdo_getall('jy_weishop_store',array('uniacid'=>$_SESSION['uniacid'],'status'=>1,'type'=>array(1,3)),'','','paixu desc,id desc');
if(!$carrier_list){
$order['sendtype']=1;
}else{
foreach($carrier_list as &$pv){
$pv['pcd']=json_decode($pv['pcd'],true);
}
$return['carrier_list']=$carrier_list;
$return['selectstore']=$carrier_list['0'];
}
}
$cart=array_merge($goods,$cart);
}
$order=array(
'sendtype'=>$order['sendtype']?:$return['post']['sendtype'],
'type'=>'cart',
'list'=>$cart_list,
);
}
$return['selectstore']=pdo_get('jy_merch_user',array('uniacid'=>$_SESSION['uniacid'],'id'=>$merchid));
$citypeisong=plugin('jy_weishop')->plugin_setting('citypeisong');
if($return['selectstore']['id']){
$return['selectstore']['out_price']>0?$return['selectstore']['out_price']:$citypeisong['out_price'];
$return['selectstore']['pcd']=json_decode($return['selectstore']['pcd'],true);
$return['selectstore']['juli']=1;
$r
没有合适的资源?快使用搜索试试~ 我知道了~
在线外卖平台源码 美团外卖源码 支持多商户+多样化配送费模式+本土外卖平台+支持第三方配送
共50个文件
php:20个
html:17个
png:8个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 55 浏览量
2023-08-27
14:09:09
上传
评论
收藏 964KB ZIP 举报
温馨提示
进云仿美团外卖源码是一个进云源生插件,支持多商户+多样化配送费模式+本土外卖平台+支持第三方配送,运行需要进云框架支撑! 特点: 1、多样化配送费模式; 2、板块-绑定商户分类机制; 3、板块显示时间(智能化,比如早上显示早茶,晚上显示夜宵相关的店铺); 4、商户独立收银/代客下单等; 5、遗传智慧电商客所有的营销功能等。 经典美团外卖解决方案:商户自主管理后台,可以选平台配送员,达达,菜鸟等第三方配送,还是商家自送模式!并且可实现多平台小程序。 【更新机制】 当前应用属于乐高场景体,场景体本身不会经常更新。主要依赖于套餐插件的更新迭代!这些依赖化的更新机制,可以实现一次更新,同时更新所有场景体,大大提高应用的更新迭代的质量和效率! 二三线县级城市的本土《外卖平台》,正在悄悄地兴起!应某客户的定制要求,基于智慧电商客A2版,多商户,掌上配送三个功能,花费了三天时间,才完成了《美团外卖》的仿制!交付后效果还算满意!今天以一折特价(相对于开发定制费用的一折)发布到进云市场(事先征求过甲方客户的意见)!
资源推荐
资源详情
资源评论
收起资源包目录
在线外卖平台源码 美团外卖源码 支持多商户+多样化配送费模式+本土外卖平台+支持第三方配送.zip (50个子文件)
A2125进云仿美团外卖平台 v1.39源码
进云仿美团外卖平台 v1.39源码
jy-weishopmeituan-v1.39
jy-weishopmeituan-v1.39
class
model.php 230B
manifest.xml 1KB
resource
images
icon-foot.png 9KB
icon-shui.png 8KB
logo.png 7KB
myshoptop.jpg 129KB
hdp01.jpg 159KB
indexad.png 264KB
icon-shop.png 8KB
hdp.jpg 121KB
nologo.png 23KB
icon-yao.png 7KB
icon-yin.png 7KB
custom
templates
mobile
goodsitem.html 20KB
merchitem.html 33KB
myhome.html 14KB
search.html 12KB
goodslist.html 24KB
merchlist.html 15KB
common
_search.html 6KB
_header.html 5KB
_merchlistgoods.html 3KB
_merchtwo.html 987B
_merchlist.html 2KB
_goodstwo.html 0B
_goodslist.html 1KB
index.html 14KB
orderlist.html 7KB
orderdetail.html 22KB
create.html 44KB
actions
orderdetail.php 10KB
goodslist.php 6KB
myhome.php 11KB
orderlist.php 5KB
index.php 14KB
merchitem.php 9KB
merchlist.php 5KB
init.php 1KB
search.php 2KB
bankuai.php 6KB
create.php 22KB
goodsitem.php 6KB
icon.jpg 134KB
init.php 776B
manage
actions
index.php 4KB
link.php 942B
setting.php 14KB
citypeisong.php 7KB
model
menu.php 13KB
custom_mobile_menu.php 281B
共 50 条
- 1
资源评论
百创科技
- 粉丝: 1484
- 资源: 230
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- pta题库答案c语言之排序4统计工龄.zip
- pta题库答案c语言之树结构7堆中的路径.zip
- pta题库答案c语言之树结构3TreeTraversalsAgain.zip
- pta题库答案c语言之树结构2ListLeaves.zip
- pta题库答案c语言之树结构1树的同构.zip
- 基于C++实现民航飞行与地图简易管理系统可执行程序+说明+详细注释.zip
- pta题库答案c语言之复杂度1最大子列和问题.zip
- 三维装箱问题(Three-Dimensional Bin Packing Problem,3D-BPP)是一个经典的组合优化问题
- 以下是一些关于Linux线程同步的基本概念和方法.txt
- 以下是一个简化的示例,它使用pygame库来模拟烟花动画的框架.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功