You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
3.9 KiB
PHP
90 lines
3.9 KiB
PHP
<?php
|
|
|
|
class MarketConst {
|
|
const ImgSourceTypeNew = 'new';
|
|
const ImgSourceTypeHelp = 'help';
|
|
const ImgSourceTypeOpen = 'open';
|
|
|
|
const bannerLocateCommonHeader = 'commonHeader'; // 顶部推广
|
|
const bannerLocateMoveIndexNotice = 'moveIndexNotice'; // 顶部推广
|
|
const bannerLocateMoveFirstStepBottom = 'moveFirstStepBottom'; // 搬家第一步底部推广
|
|
const bannerLocateMoveThirdStepBottom = 'moveThirdStepBottom'; // 搬家第三部底部推广
|
|
const bannerLocateFreePlan = 'freePlan'; // 免费计划 · 推荐有奖
|
|
const bannerLocatePaymentIndexBottom = 'paymentIndexBottom'; // 包月充值底部推广
|
|
|
|
const pddmsodHomeTopBannerSider = 'ppdmsodHomeTopSider'; // 首页轮播
|
|
|
|
const pdddzHomeTopBannerSider = 'ppddzHomeTopSider';
|
|
const pdddzHomeMiddleBannerSider = 'ppddzHomeMiddle';
|
|
const pdddzHomeRightBanner = 'ppddzHomeRight';
|
|
const pddzPaymentHomeTop = 'pddzPaymentHomeTop';
|
|
|
|
const pddDesktopTopBanner = 'pddDesktopTop';
|
|
const pddDesktopLeftBanner = 'pddDesktopLeft';
|
|
|
|
const bannerCloseNoticeTypeOnceUtilThisMonth = 1;
|
|
const bannerCloseNoticeTypeOnceAFewDays = 2;
|
|
const bannerCloseNoticeTypeSeveralTimesThisMonth = 3;
|
|
const bannerIndexExpireNotice = 'INDEXEXPIRENOTICE';
|
|
|
|
const bannerWatermarkListTop = 'watermarkListTop';
|
|
const bannerWatermarkListBottom = 'watermarkListBottom';
|
|
|
|
const bannerDzSpMenuBottom = 'dzSpMenuBottom';
|
|
const bannerPosterTopNav = 'posterTopNav';
|
|
|
|
const bannerLocateTopNavAfter = 'bannerLocateTopNavAfter';
|
|
const bannerLocateLeftSideMenuBottom = 'bannerLocateLeftSideMenuBottom';
|
|
|
|
public static function getBannerLocateMap($targetApp = '') {
|
|
$locateMap = [
|
|
'public' => [
|
|
self::bannerLocateCommonHeader => '顶部推广',
|
|
self::bannerLocateMoveFirstStepBottom => '搬家第一步底部推广',
|
|
self::bannerLocateMoveThirdStepBottom => '搬家第三部底部推广',
|
|
self::bannerLocateFreePlan => '免费计划 · 推荐有奖',
|
|
self::bannerLocatePaymentIndexBottom => '包月充值底部推广',
|
|
self::bannerLocateMoveIndexNotice => '首页顶部通知',
|
|
self::pddmsodHomeTopBannerSider => '拼多多妙手订单-首页轮播图推广',
|
|
self::pdddzHomeTopBannerSider => '拼多多店长-首页顶部轮播推广',
|
|
self::pdddzHomeMiddleBannerSider => '拼多多店长-首页中间推广',
|
|
self::pddzPaymentHomeTop => '拼多多店长-订购页顶部',
|
|
self::pdddzHomeRightBanner => '拼多多店长-右侧推广',
|
|
self::pddDesktopTopBanner => '海豚店群-顶部推广',
|
|
self::pddDesktopLeftBanner => '海豚店群-左侧推广',
|
|
self::bannerIndexExpireNotice => '过期提醒通知',
|
|
self::bannerWatermarkListTop => '智能水印顶部banner',
|
|
self::bannerWatermarkListBottom => '智能水印底部banner',
|
|
self::bannerDzSpMenuBottom => '智能水印菜单底部banner',
|
|
self::bannerPosterTopNav => '活动海报页面顶部菜单banner',
|
|
],
|
|
AppConst::appPddDzOp => [
|
|
self::bannerLocateTopNavAfter => '顶部导航',
|
|
self::bannerLocateLeftSideMenuBottom => '左侧菜单',
|
|
],
|
|
AppConst::appMsPddOp => [
|
|
self::bannerLocateCommonHeader => '顶部推广',
|
|
self::bannerLocateLeftSideMenuBottom => '左侧菜单',
|
|
]
|
|
];
|
|
if ($targetApp) {
|
|
if ($locateMap[$targetApp]) {
|
|
return $locateMap[$targetApp];
|
|
}
|
|
}
|
|
$all = [];
|
|
foreach ($locateMap as $locateArr) {
|
|
$all = array_merge($all, $locateArr);
|
|
}
|
|
return $all;
|
|
|
|
}
|
|
|
|
public static function getBannerLocateName($bannerKey) {
|
|
$map = self::getBannerLocateMap();
|
|
return $map[$bannerKey];
|
|
}
|
|
|
|
const inviteType1 = '1';
|
|
const inviteType2 = '2';
|
|
} |