赞
踩
如今伴随着互联网的快速发展,这项技术被广泛的应用在各个领域中。因为互联网技术的进步,现如今各个行业中都在转型,传统的模式被新的时代所取代。互联网技术给人们带了极大的方便与便捷,改变了人们生活的变化尤其是在美食上面,人们现在甚至不需要出门直接就可以在网上进行订餐,然后商家就会将客户购买的美食送到身边来。系统采用Python编程语言,Django框架,前端Vue技术,MySQL为后台数据库。
本餐厅点餐及推荐系统在功能模块根据需求不同,将它分为两大方面,一用户功能模块,二管理员模块。以下是具体功能分析。
用户打开系统进入前台网站,首先会展示整个界面,此时界面中显示的主要功能有用户注册登录功能,浏览美食信息,查看系统公告,添加购物车,查看已购买的订单以及相关信息。
管理员:管理员通过账号密码进行登录,与数据库中数据进行比较,验证通过后进入管理员界面,其主要功能包括管理用户注册,添加类别,对系统公告进行增删改查,产品信息管理,订单信息管理等功能模块。
开发语言:Python
数据库 :MySQL
系统架构:B/S
后端框架:Django
前端框架:Vue
开发工具:Pycharm
支持定做:Java/PHP/Python/Android/小程序/Vue/爬虫/C#/Asp.net
def shangpinfenlei_info(request,id_): ''' ''' if request.method in ["POST", "GET"]: msg = {"code": normal_code, "msg": mes.normal_code, "data": {}} data = shangpinfenlei.getbyid(shangpinfenlei,shangpinfenlei, int(id_)) if len(data)>0: msg['data']=data[0] #浏览点击次数 try: __browseClick__= shangpinfenlei.__browseClick__ except: __browseClick__=None if __browseClick__=="是" and "clicknum" in shangpinfenlei.getallcolumn(shangpinfenlei,shangpinfenlei): try: clicknum=int(data[0].get("clicknum",0))+1 except: clicknum=0+1 click_dict={"id":int(id_),"clicknum":clicknum} ret=shangpinfenlei.updatebyparams(shangpinfenlei,shangpinfenlei,click_dict) if ret!=None: msg['code'] = crud_error_code msg['msg'] = ret return JsonResponse(msg) def shangpinfenlei_detail(request,id_): ''' ''' if request.method in ["POST", "GET"]: msg = {"code": normal_code, "msg": mes.normal_code, "data": {}} data =shangpinfenlei.getbyid(shangpinfenlei,shangpinfenlei, int(id_)) if len(data)>0: msg['data']=data[0] #浏览点击次数 try: __browseClick__= shangpinfenlei.__browseClick__ except: __browseClick__=None if __browseClick__=="是" and "clicknum" in shangpinfenlei.getallcolumn(shangpinfenlei,shangpinfenlei): try: clicknum=int(data[0].get("clicknum",0))+1 except: clicknum=0+1 click_dict={"id":int(id_),"clicknum":clicknum} ret=shangpinfenlei.updatebyparams(shangpinfenlei,shangpinfenlei,click_dict) if ret!=None: msg['code'] = crud_error_code msg['msg'] = retfo return JsonResponse(msg) def shangpinfenlei_update(request): ''' ''' if request.method in ["POST", "GET"]: msg = {"code": normal_code, "msg": mes.normal_code, "data": {}} req_dict = request.session.get("req_dict") if req_dict.get("mima") and req_dict.get("password"): if "mima" not in shangpinfenlei.getallcolumn(shangpinfenlei,shangpinfenlei) : del req_dict["mima"] if "password" not in shangpinfenlei.getallcolumn(shangpinfenlei,shangpinfenlei) : del req_dict["password"] try: del req_dict["clicknum"] except: pass error = shangpinfenlei.updatebyparams(shangpinfenlei, shangpinfenlei, req_dict) if error!=None: msg['code'] = crud_error_code msg['msg'] = error return JsonResponse(msg)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。