修改流程
This commit is contained in:
@@ -148,7 +148,7 @@ function subtitleLine(item: any): string {
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
width: 660rpx;
|
||||
width: 560rpx;
|
||||
height: 306rpx;
|
||||
min-height: 306rpx;
|
||||
margin-left: 16rpx;
|
||||
@@ -162,7 +162,7 @@ function subtitleLine(item: any): string {
|
||||
}
|
||||
|
||||
.featured-card__media {
|
||||
width: 323rpx;
|
||||
width: 383rpx;
|
||||
flex-shrink: 0;
|
||||
background: #f0f0f0;
|
||||
display: flex;
|
||||
@@ -206,8 +206,8 @@ function subtitleLine(item: any): string {
|
||||
.featured-card__name {
|
||||
display: block;
|
||||
width: 100%;
|
||||
font-size: 28rpx;
|
||||
line-height: 34rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 30rpx;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
white-space: normal;
|
||||
@@ -224,8 +224,8 @@ function subtitleLine(item: any): string {
|
||||
|
||||
.featured-card__fee {
|
||||
margin-top: 10rpx;
|
||||
font-size: 24rpx;
|
||||
line-height: 30rpx;
|
||||
font-size: 18rpx;
|
||||
line-height: 24rpx;
|
||||
font-weight: 500;
|
||||
color: #d48806;
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { computed } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
const props = defineProps({
|
||||
/** 外部列表(菜谱页等);首页不传则使用固定六项 */
|
||||
/** 外部列表(菜谱页等);首页不传则使用固定七项 */
|
||||
list: {
|
||||
type: Array,
|
||||
default: () => [],
|
||||
@@ -31,19 +31,9 @@ const { t } = useI18n()
|
||||
|
||||
const fixedTabs = [
|
||||
{
|
||||
id: 'member-zone',
|
||||
nameKey: 'pages.home.quickTabs.memberZone',
|
||||
logoUrl: '/static/app/images/home/huiyuanzhuanqu.png',
|
||||
},
|
||||
{
|
||||
id: 'live-seafood-air',
|
||||
nameKey: 'pages.home.quickTabs.liveSeafoodAir',
|
||||
logoUrl: '/static/app/images/home/kongyunhaixian.png',
|
||||
},
|
||||
{
|
||||
id: 'must-eat-list',
|
||||
nameKey: 'pages.home.quickTabs.mustEatList',
|
||||
logoUrl: '/static/app/images/home/bichibang.png',
|
||||
id: 'fresh-seafood-today',
|
||||
nameKey: 'pages.home.quickTabs.freshSeafoodToday',
|
||||
logoUrl: '/static/app/images/home/xiandahaixian.png',
|
||||
},
|
||||
{
|
||||
id: 'new-calendar',
|
||||
@@ -51,9 +41,24 @@ const fixedTabs = [
|
||||
logoUrl: '/static/app/images/home/shangxinrili.png',
|
||||
},
|
||||
{
|
||||
id: 'fresh-seafood-today',
|
||||
nameKey: 'pages.home.quickTabs.freshSeafoodToday',
|
||||
logoUrl: '/static/app/images/home/xiandahaixian.png',
|
||||
id: 'member-zone',
|
||||
nameKey: 'pages.home.quickTabs.memberZone',
|
||||
logoUrl: '/static/app/images/home/huiyuanzhuanqu.png',
|
||||
},
|
||||
{
|
||||
id: 'must-eat-list',
|
||||
nameKey: 'pages.home.quickTabs.mustEatList',
|
||||
logoUrl: '/static/app/images/home/bichibang.png',
|
||||
},
|
||||
{
|
||||
id: 'group-catering',
|
||||
nameKey: 'pages.home.quickTabs.groupCatering',
|
||||
logoUrl: '/static/app/images/home/tancanyuding.png',
|
||||
},
|
||||
{
|
||||
id: 'live-seafood-air',
|
||||
nameKey: 'pages.home.quickTabs.liveSeafoodAir',
|
||||
logoUrl: '/static/app/images/home/kongyunhaixian.png',
|
||||
},
|
||||
{
|
||||
id: 'energy-meal',
|
||||
|
||||
@@ -240,6 +240,10 @@ function tabsTypeChange(id: string | number) {
|
||||
navigateTo('/pages-store/pages/energy-meal/index')
|
||||
return
|
||||
}
|
||||
if (topic === 'group-catering') {
|
||||
navigateTo('/pages-store/pages/group-catering/index')
|
||||
return
|
||||
}
|
||||
if (!isQuickTopicSlug(topic)) {
|
||||
return
|
||||
}
|
||||
@@ -314,8 +318,8 @@ function handleClickSwiper(item: any) {
|
||||
case 3: // 会员
|
||||
navigateTo('/pages-user/pages/member/index')
|
||||
break
|
||||
case 5: // 钱包
|
||||
navigateTo('/pages-user/pages/balance/index')
|
||||
case 5: // 充值活动
|
||||
navigateTo('/pages-user/pages/recharge/activity-detail?id=' + item.id)
|
||||
break
|
||||
// case 4:
|
||||
// navigateTo('/pages/ai/chat/index')
|
||||
@@ -323,8 +327,6 @@ function handleClickSwiper(item: any) {
|
||||
}
|
||||
}
|
||||
|
||||
const walletUrl = "pages-user/pages/balance/index";
|
||||
|
||||
function navigateToDishes(item: any) {
|
||||
uni.navigateTo({
|
||||
url: '/pages-store/pages/store/dishes?id=' + item.id + '&storeId=' + item.merchantId,
|
||||
@@ -427,7 +429,7 @@ const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: Co
|
||||
</view>
|
||||
<view
|
||||
class="home-member-banner__btn"
|
||||
@click="navigateTo('/pages-user/pages/balance/index')"
|
||||
@click="navigateTo('/pages-user/pages/recharge/index')"
|
||||
>
|
||||
<text class="home-member-banner__btn-text">{{ t('pages.home.recharge-now') }}</text>
|
||||
</view>
|
||||
@@ -532,10 +534,10 @@ const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: Co
|
||||
<text class="featured-dish-member-inner">{{ t('pages-store.store.members') }}: US${{ item?.memberPrice }}</text>
|
||||
</view>
|
||||
<view v-else class="flex-1 min-w-0"></view>
|
||||
<view class="featured-dish-add center shrink-0">
|
||||
<view class="featured-dish-add shrink-0">
|
||||
<image
|
||||
src="@img/chef/1285.png"
|
||||
class="w-28rpx h-28rpx"
|
||||
src="/static/app/images/add_cart.png"
|
||||
class="featured-dish-add__icon"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
@@ -749,11 +751,13 @@ const debouncedEmit = debounce(1300, (isCollected: boolean, id: string, type: Co
|
||||
}
|
||||
|
||||
.featured-dish-add {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.featured-dish-add__icon {
|
||||
width: 56rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 50%;
|
||||
background: #14181b;
|
||||
box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.12);
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 可选营销条(淡红底 + 文案) */
|
||||
|
||||
@@ -78,8 +78,8 @@ const cover = computed(() => {
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-dish-item__add center" @click.stop="goDetail">
|
||||
<image src="@img/chef/1285.png" class="search-dish-item__add-icon" mode="aspectFit" />
|
||||
<view class="search-dish-item__add shrink-0" @click.stop="goDetail">
|
||||
<image src="/static/app/images/add_cart.png" class="search-dish-item__add-icon" mode="aspectFit" />
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -180,17 +180,13 @@ const cover = computed(() => {
|
||||
|
||||
.search-dish-item__add {
|
||||
align-self: flex-end;
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
flex-shrink: 0;
|
||||
border-radius: 50%;
|
||||
background: #f2f2f2;
|
||||
box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.search-dish-item__add-icon {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
width: 64rpx;
|
||||
height: 64rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.search-dish-item__img-wrap {
|
||||
|
||||
Reference in New Issue
Block a user