到家店铺入驻流程中如何增加字段?
我们以增加“邀请码”举例,讲解到家店铺入驻流程中如何增加字段。
目录
H5端
个人中心入驻入口
URL:https://cityo2o.ecjia.com/sites/m/index.php?m=touch&c=my&a=init
开始入驻
URL:https://cityo2o.ecjia.com/sites/m/index.php?m=franchisee&c=index&a=first
修改模板文件
文件路径:daojia\sites\m\content\themes\h5\franchisee_first.dwt.php
效果图
修改控制器
当前步骤接收和验证
URL:https://cityo2o.ecjia.com/sites/m/index.php?m=franchisee&c=index&a=second
文件路径:daojia\sites\m\content\themes\h5\extras\controller\franchisee_controller.php
最后一步验证和提交
URL:https://cityo2o.ecjia.com/sites/m/index.php?m=franchisee&c=index&a=four
文件路径:daojia\sites\m\content\themes\h5\extras\controller\franchisee_controller.php
finish()方法修改
然后请求接口“admin/merchant/signup(首次入驻)”“admin/merchant/resignup(入驻过修改申请信息)”
PC端
入口
URL:https://cityo2o.ecjia.com/sites/merchant/index.php?m=franchisee&c=merchant&a=init
开始入驻
URL:https://cityo2o.ecjia.com/sites/merchant/index.php?m=franchisee&c=merchant&a=join
修改模板
URL:https://cityo2o.ecjia.com/sites/merchant/index.php?m=franchisee&c=merchant&a=join
文件路径:daojia\content\apps\franchisee\templates\merchant\franchisee.dwt.php
修改控制器
URL:https://cityo2o.ecjia.com/sites/merchant/index.php?m=franchisee&c=merchant&a=join&step=2
文件路径:daojia\content\apps\franchisee\merchant.php
接口
admin/merchant/signup 提交入驻信息
文件路径:daojia\content\apps\merchant\modules\admin\merchant\signup_module.class.php
admin/merchant/resignup 入驻信息修改
文件路径:daojia\content\apps\merchant\modules\admin\merchant\resignup_module.class.php
admin/merchant/preaudit 获取入驻基本信息
文件路径:daojia\content\apps\merchant\modules\admin\merchant\preaudit_module.class.php
平台后台
审核
商家管理-待审核商家
URL:https://cityo2o.ecjia.com/index.php?m=store&c=admin_preaudit&a=check&id=xxx
文件路径:daojia\content\apps\store\templates\admin\store_preaudit_check.dwt.php
审核通过
文件路径:daojia\content\apps\store\admin_preaudit.php
check_update()方法
入驻后查看信息
URL:https://cityo2o.ecjia.com/index.php?m=store&c=admin&a=preview&store_id=xxx
文件路径:daojia\content\apps\store\templates\admin\store_preview.dwt.php
商家后台
商家后台根据需要决定新增字段是否对商家展示或者给与修改的机会。
入驻信息查看
URL:https://cityo2o.ecjia.com/sites/merchant/index.php?m=merchant&c=mh_franchisee&a=init
文件路径:daojia\content\apps\merchant\templates\merchant\merchant_info.dwt.php
数据表修改
- store_preaudit(入驻信息待审核表) 增加字段'invite',具体格式根据字段需求变动
- store_franchisee(入驻商信息表)增加字段'invite'具体格式根据字段需求变动
修改脚本参考 ALTER TABLE `ecjia_store_preaudit` ADD COLUMN `invite` varchar(20) NULL;