/** | 'productDetailPage' 出现“选择商品”,点击按钮,弹出选择商品列表弹框 | 'productSearchPage' 出现“搜索词”,点击输入框,输入搜索词; | 'tagSearchPage' 出现“标签词”,点击输入框,输入标签词; | 'keywordAndTagCombinationSearchPage' 选择“关键字和标签组合搜索页”时,出现“搜索词”,点击输入框,输入搜索词;出现“标签词”,点击输入框,输入标签词; | 'discoverDetailsPage' 出现“选择文章”,点击按钮,弹出选择文章列表弹框; | 'productCategoryPage' 单选,出现下拉列表,进行选择 | 'landingPage' 出现选择落地页按钮 单选,出现弹窗,进行双击选择 | 'liveRoom' 出现“直播间ID”,点击输入框,输入直播间ID | 'fixedPage' */ import { TPageKey } from '../types'; export const PAGE_INFO: { [key in TPageKey]: { title: string; paramKeys: string[]; template: string; }; } = { productDetailPage: { title: '商品详情页', paramKeys: ['spu_id'], template: '/pages/goods/detail/index?spu_id=', }, productSearchPage: { title: '商品搜索页', paramKeys: ['keyword'], template: '/pages/search/index?keyword=', }, tagSearchPage: { title: '标签搜索页', paramKeys: ['tag'], template: '/pages/search/index?tag=', }, keywordAndTagCombinationSearchPage: { title: '关键字和标签组合搜索页', paramKeys: ['keyword', 'tag'], template: '/pages/search/index?keyword=&tag=', }, discoverDetailsPage: { title: '发现详情页', paramKeys: ['id'], template: '/pages/discovery/detail/index?id=', }, productCategoryPage: { title: '商品分类页', paramKeys: ['id', 'pid'], template: '/pages/goods/index/index?id=&pid=', }, landingPage: { title: '落地页', paramKeys: [], template: '/taro/commonPackages/containerByUrl/index?url=', }, liveRoom: { title: '直播间', paramKeys: ['room_id'], template: 'plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=', }, fixedPage: { title: '小程序固定页', paramKeys: [], template: '', }, }; export const FIXED_PAGE_INFO: { title: string; template: string; key: | 'myFollowers' | 'myCoins' | 'earningsDetail' | 'withdrawalPage' | 'myWallet' | 'myBenefits' | 'myVisitors' | 'reservationPage' | 'superMemberDayEventPage' | 'applyForMembership' | 'takeCouponsCenter' | 'groupBuyingList' | 'snapSaleList' | 'preSaleList' | 'crowdfundingList' | 'coinList' }[] = [ { title: '我的粉丝', key: 'myFollowers', template: '/packageUser/user/user-list/index', }, { title: '我的金币', key: 'myCoins', template: '/packageReceipt/coins-list/index', }, { title: '收益明细', key: 'earningsDetail', template: '/packageUser/user/account-list/index', }, { title: '提现页面', key: 'withdrawalPage', template: '/packageUser/user/account-list/cashout/index', }, { title: '我的钱包', key: 'myWallet', template: '/packageUser/user/mywallet/index', }, { title: '我的权益', key: 'myBenefits', template: '/packageUser/user/member-benifit/index', }, { title: '我的访客', key: 'myVisitors', template: '/packageReceipt/visitor/index', }, { title: '预约页面', key: 'reservationPage', template: '/pages/index/appointment/index', }, // { // title: '超级会员日活动页', // key: 'superMemberDayEventPage', // template: '/pages/activities/hot/index', // }, { title: '申请会员', key: 'applyForMembership', template: '/packageUser/user/join/index', }, { title: '领券中心', key: 'takeCouponsCenter', template: '/taro/packageMarketing/coupons/couponsCenter/index', }, { title: '拼团活动列表', key: 'groupBuyingList', template: '/taro/packageMarketing/groupBuying/eventList/index', }, { title: '秒杀活动列表', key: 'snapSaleList', template: '/taro/packageMarketing/spike/index?seckillType=single', }, { title: '预售活动列表', key: 'preSaleList', template: '/taro/packageMarketing/goodsPrese/goodsPresellList/index', }, { title: '众筹活动列表', key: 'crowdfundingList', template: '/taro/packageMarketing/goodsRaise/goodsRaiseList/index', }, { title: '金币活动列表', key: 'coinList', template: '/taro/packageMarketing/gold/index', }, ];