feat:
This commit is contained in:
@ -5,10 +5,16 @@
|
||||
&__banner {
|
||||
font-weight: 400;
|
||||
font-size: 24px;
|
||||
height: 72px;
|
||||
height: 74px;
|
||||
padding: 32px 32px 25px;
|
||||
line-height: 36px;
|
||||
color: #999999;
|
||||
background: #F5F6FA;
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
top: 99px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
}
|
||||
&__title {
|
||||
height: 72px;
|
||||
|
||||
@ -52,8 +52,8 @@ export default function PartnerBanner({ isBoss = false }) {
|
||||
className={`${PREFIX}__image`}
|
||||
src={
|
||||
isBoss
|
||||
? 'https://publiccdn.neighbourhood.com.cn/img/partner-banner-boss.png'
|
||||
: 'https://publiccdn.neighbourhood.com.cn/img/partner_banner.png'
|
||||
? 'https://publiccdn.neighbourhood.com.cn/img/partner_banner.png'
|
||||
: 'https://publiccdn.neighbourhood.com.cn/img/partner-banner-boss.png'
|
||||
}
|
||||
mode="scaleToFill"
|
||||
/>
|
||||
|
||||
@ -97,6 +97,7 @@
|
||||
}
|
||||
&-details {
|
||||
margin-top: 5px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
&-id {
|
||||
font-size: 24px;
|
||||
|
||||
@ -87,10 +87,10 @@ export default function PartnerIntro() {
|
||||
{[EarnType.CHAT_ACTIVITY_SHARE_L1, EarnType.CHAT_ACTIVITY_SHARE_L2].includes(item.earnType)
|
||||
? '主播被开聊'
|
||||
: '会员支付'}
|
||||
<div className="money">+{formatMoney(item.total)}</div>
|
||||
<div className="money">+{formatMoney(item.amount, 1)}</div>
|
||||
</div>
|
||||
<div className={`${PREFIX}__swiper-item-info`}>
|
||||
累计<div className="money">{formatMoney(item.amount)}</div>
|
||||
累计<div className="money">{formatMoney(item.total, 1)}</div>
|
||||
</div>
|
||||
</div>
|
||||
</Swiper.Item>
|
||||
|
||||
@ -48,8 +48,8 @@ const LIST: Item[] = [
|
||||
{
|
||||
id: ProductSpecId.BOSS_VIP_NEW_2,
|
||||
title: '推荐一月',
|
||||
price: '480播豆',
|
||||
amt: 48,
|
||||
price: '680播豆',
|
||||
amt: 68,
|
||||
badge: '限时体验',
|
||||
contents: [
|
||||
{ content: '-通告每日优先展示', highlight: true },
|
||||
@ -61,8 +61,8 @@ const LIST: Item[] = [
|
||||
{
|
||||
id: ProductSpecId.BOSS_VIP_NEW_3,
|
||||
title: '推荐一季',
|
||||
price: '960播豆',
|
||||
amt: 96,
|
||||
price: '1360播豆',
|
||||
amt: 136,
|
||||
badge: '6.7折',
|
||||
contents: [
|
||||
{ content: '-通告每日优先展示', highlight: true },
|
||||
|
||||
@ -2,7 +2,7 @@ import { BaseEventOrig, InputProps, ScrollView } from '@tarojs/components';
|
||||
import Taro from '@tarojs/taro';
|
||||
|
||||
import { Search } from '@taroify/core';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { Fragment, useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import { CITY_CODE_TO_NAME_MAP, CITY_INDEXES_LIST } from '@/constants/city';
|
||||
import useCityOperators from '@/hooks/use-city-operators';
|
||||
@ -81,6 +81,8 @@ export default function SearchCity({
|
||||
}).filter(item => item.data.length > 0)
|
||||
: CITY_INDEXES_LIST;
|
||||
|
||||
const HOT_CITY_LIST = forGroup ? HOT_CITY.filter(it => groupCityCodes.includes(`${it.cityCode}`)) : HOT_CITY;
|
||||
|
||||
const handleSearchChange = useCallback((event: BaseEventOrig<InputProps.inputEventDetail>) => {
|
||||
const value = event.detail.value;
|
||||
log('handleSearchChange', value);
|
||||
@ -183,19 +185,25 @@ export default function SearchCity({
|
||||
<div>
|
||||
<div className={`${PREFIX}__position-title`}>当前城市</div>
|
||||
<div className={`${PREFIX}__position-city`}>{CITY_CODE_TO_NAME_MAP.get(currentCity)}</div>
|
||||
<div className={`${PREFIX}__hot-city-title`}>热门城市</div>
|
||||
<div className={`${PREFIX}__hot-city-container`}>
|
||||
{HOT_CITY.map(city => (
|
||||
<div
|
||||
key={city.cityCode}
|
||||
className={`${PREFIX}__hot-city-item`}
|
||||
data-code={city.cityCode}
|
||||
onClick={handleSelectCity}
|
||||
>
|
||||
{city.cityName}
|
||||
{!!HOT_CITY_LIST.length && (
|
||||
<Fragment>
|
||||
<div className={`${PREFIX}__hot-city-title`}>热门城市</div>
|
||||
<div className={`${PREFIX}__hot-city-container`}>
|
||||
{HOT_CITY_LIST.map(city => {
|
||||
return (
|
||||
<div
|
||||
key={city.cityCode}
|
||||
className={`${PREFIX}__hot-city-item`}
|
||||
data-code={city.cityCode}
|
||||
onClick={handleSelectCity}
|
||||
>
|
||||
{city.cityName}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</Fragment>
|
||||
)}
|
||||
<div className={`${PREFIX}__indexes-list`}>
|
||||
{CITY_LIST.map(item => {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user