72 行
6.3 KiB
PHP
可执行文件
72 行
6.3 KiB
PHP
可执行文件
<?php
|
|
|
|
namespace Common\Model;
|
|
|
|
use Think\Model;
|
|
//[1.3.89]
|
|
/**
|
|
* 系统小程序路径地址配置列表
|
|
* Class StoreXcxRouteModel
|
|
* @package Common\Model
|
|
*/
|
|
class SystemXcxRouteModel extends BaseModel
|
|
{
|
|
protected $tableName = 'system_xcx_route';
|
|
protected $fields = array(
|
|
'id',// int(11) NOT NULL AUTO_INCREMENT,
|
|
'name',// varchar(255) DEFAULT NULL COMMENT '路径名称',
|
|
'path',// varchar(255) DEFAULT NULL COMMENT '路径',
|
|
'param_json',// varchar(255) DEFAULT NULL COMMENT '参数 json格式',
|
|
);
|
|
/**
|
|
* param_json键名说明
|
|
*
|
|
* store_id 门店id
|
|
* sub_card_type 1次卡 2卡包
|
|
* sub_card_id 次卡或卡包id
|
|
* class_id 分类id
|
|
* class_name 分类名称
|
|
* seckill_act_id 秒杀活动id
|
|
* group_act_id 拼团活动id
|
|
* gift_act_id 礼品卡活动id
|
|
* goods_id 商品id
|
|
*/
|
|
|
|
/**
|
|
* param_json每个键下的键名说明
|
|
*
|
|
* type 1必填项 0选填
|
|
* as 存储在链接中的真实键名
|
|
* value 为后台选择时的存储值做准备
|
|
*/
|
|
|
|
|
|
/*
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('1', '门店首页', '/pages/store/store', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('2', '分类', '/pages/newClassify/newClassify', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('3', '购物车', '/pages/shoppingCar/shoppingCar', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('4', '订单列表', '/pages/myOrder/myOrder', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('5', '个人中心', '/pages/my/my', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('6', '拼团订单列表', '/pages/myGroup/myGroup', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('7', '秒杀订单列表', '/pages/mySeckill/mySeckill', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('8', '收藏', '/pages/MyCollect/MyCollect', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('9', '次卡列表', '/pages/subCard/subCard', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('10', '次卡详情', '/pages/buySubCard/buySubCard', '{\"store_id\":{\"type\":1,\"value\":\"\"},\"sub_card_type\":{\"type\":1,\"value\":\"\",\"as\":\"type\"},\"sub_card_id\":{\"type\":1,\"value\":\"\",\"as\":\"card_id\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('11', 'PLUS会员', '/pages/plusHome/plusHome', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('12', 'PLUS商品列表', '/pages/plusGoods/plusGoods', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('13', '充值', '/pages/recharge/recharge', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('14', '收货地址', '/pages/MyAddress/MyAddress', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('15', '会员卡', '/pages/card/card', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('16', '门店优惠券', '/pages/Coupon/Coupon', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('17', '商品列表', '/pages/productList/productList', '{\"store_id\":{\"type\":1,\"value\":\"\"},\"class_id\":{\"type\":0,\"value\":\"\",\"as\":\"id\"},\"class_name\":{\"type\":0,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('18', '秒杀商品列表', '/pages/Seckill-purchase/Seckill-purchase', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('19', '秒杀商品详情', '/pages/Seckill-purchase-details/Seckill-purchase-details', '{\"store_id\":{\"type\":1,\"value\":\"\"},\"seckill_act_id\":{\"type\":1,\"value\":\"\",\"as\":\"id\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('20', '拼团商品列表', '/pages/Group-purchase/Group-purchase', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('21', '拼团商品详情', '/pages/Group-purchase-details/Group-purchase-details', '{\"store_id\":{\"type\":1,\"value\":\"\"},\"group_act_id\":{\"type\":1,\"value\":\"\",\"as\":\"id\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('22', '礼品卡列表', '/pages/gift_home/gift_home', '{\"store_id\":{\"type\":0,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('23', '礼品卡详情', '/pages/gift_purchase/gift_purchase', '{\"store_id\":{\"type\":0,\"value\":\"\"},\"gift_act_id\":{\"type\":1,\"value\":\"\",\"as\":\"id\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('24', '促销商品列表', '/pages/promotion/promotion', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('25', '最新商品列表', '/pages/new-goods/new-goods', '{\"store_id\":{\"type\":1,\"value\":\"\"}}');
|
|
INSERT INTO `ls_system_xcx_route` (`id`, `name`, `path`, `param_json`) VALUES ('26', '商品详情', '/pages/details/details', '{\"store_id\":{\"type\":1,\"value\":\"\"},\"goods_id\":{\"type\":1,\"value\":\"\",\"as\":\"id\"}}');
|
|
*/
|
|
} |