| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- // 常量:链接类型 - 页面
- const LINK_TYPE_PAGE = 'PAGE'
- // 基础页面
- const basics = {
- title: '基础页面',
- key: 'basics',
- data: [
- {
- id: 'cb344ba',
- title: '商城首页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/index/index'
- }
- },
- {
- id: 'c37c2ee',
- title: '分类页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/category/index'
- }
- },
- {
- id: 'bb2f7f1',
- title: '购物车',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/cart/index'
- }
- },
- {
- id: 'a013c9e',
- title: '个人中心',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/user/index'
- }
- },
- {
- id: '593fe1f',
- title: '会员登录页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/login/index'
- }
- }
- ]
- }
- // 商城页面
- const store = {
- title: '商城页面',
- key: 'store',
- data: [
- {
- id: '995bf1c',
- title: '商品列表页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/goods/list',
- query: {}
- },
- form: [
- {
- key: 'query.categoryId',
- lable: '分类ID',
- tips: '商品管理 -> 商品分类'
- },
- {
- key: 'query.search',
- lable: '关键词',
- tips: '搜索的关键词,用于匹配商品名称'
- }
- ]
- },
- {
- id: '6wawb10',
- title: '商品详情页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/goods/detail',
- query: {}
- },
- form: [
- {
- key: 'query.goodsId',
- lable: '商品ID',
- required: true,
- // value: '10001', // 默认值
- tips: '商品管理 - 商品列表' // 字段提示
- }
- ]
- },
- {
- id: '88lxeey',
- title: '商品搜索页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/search/index'
- }
- },
- {
- id: '56sswhq',
- title: '领券中心',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/coupon/index'
- }
- }
- ]
- }
- // 个人中心
- const personal = {
- title: '个人中心',
- key: 'personal',
- data: [
- {
- id: '7b345f6',
- title: '我的订单',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/order/index',
- query: {}
- },
- form: [
- {
- key: 'query.dataType',
- lable: '订单类型',
- required: true,
- value: 'all', // 默认值
- tips: 'all 全部<br>payment 待支付<br>delivery 待发货<br>received 待收货' // 字段提示
- }
- ]
- },
- {
- id: 'c4f630d',
- title: '我的钱包页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/wallet/index'
- }
- },
- {
- id: '792db19',
- title: '充值中心页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/wallet/recharge/index'
- }
- },
- {
- id: '03b9290',
- title: '我的优惠券',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/my-coupon/index'
- }
- },
- {
- id: '569b0b0',
- title: '会员积分明细',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/points/log'
- }
- },
- {
- id: '0c25051',
- title: '收货地址',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/address/index'
- }
- },
- {
- id: '3558c27',
- title: '帮助中心',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/help/index'
- }
- }
- ]
- }
- // 其他页面
- const other = {
- title: '其他页面',
- key: 'other',
- data: [
- {
- id: '91th4ss',
- title: '自定义页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/custom/index',
- query: {}
- },
- form: [
- {
- key: 'query.pageId',
- lable: '页面ID',
- required: true,
- tips: '店铺管理 -> 店铺页面'
- }
- ]
- },
- {
- id: 'ugrauzv',
- title: '资讯列表页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/article/index',
- query: {}
- },
- form: [
- {
- key: 'query.categoryId',
- lable: '分类ID',
- tips: '内容管理 -> 文章分类',
- value: ''
- }
- ]
- },
- {
- id: 'u1v6aux',
- title: '资讯详情页',
- type: LINK_TYPE_PAGE,
- param: {
- path: 'pages/article/detail',
- query: {}
- },
- form: [
- {
- key: 'query.articleId',
- lable: '文章ID',
- required: true,
- tips: '内容管理 -> 文章列表'
- }
- ]
- }
- ]
- }
- // // 门店 - 拨打电话 - 暂未实现
- // const callPhone = {
- // id: 'cb344ba',
- // title: '拨打电话',
- // type: 'callPhone',
- // param: {
- // phoneNumber: '13212341234'
- // },
- // form: [
- // {
- // key: 'phoneNumber',
- // lable: '电话号码',
- // tips: ''
- // }
- // ]
- // }
- export const linkList = [basics, store, personal, other]
|