parent
77ced33f14
commit
c5b11daed3
@ -10,12 +10,12 @@
|
|||||||
<view class="">
|
<view class="">
|
||||||
<u-cell :border="false">
|
<u-cell :border="false">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<wd-img :width="120" :height="120" :src="matchedItems_sc.avatar" :enable-preview="false" :radius="8"
|
<wd-img :width="120" :height="120" :src="matchedItems_sc.public_image" :enable-preview="false" :radius="8"
|
||||||
:round=false custom-class="margin-right-24" />
|
:round=false custom-class="margin-right-24" />
|
||||||
</template>
|
</template>
|
||||||
<template #title>
|
<template #title>
|
||||||
<view class="h-60 flex">
|
<view class="h-60 flex">
|
||||||
<up-text size="32rpx" :text="`${matchedItems_sc.nickname}`" :flex1="true" align="left" wordWrap="normal"
|
<up-text size="32rpx" :text="`${matchedItems_sc.public_name}`" :flex1="true" align="left" wordWrap="normal"
|
||||||
:show="true" prefixIcon="" customStyle="font-weight:bold"
|
:show="true" prefixIcon="" customStyle="font-weight:bold"
|
||||||
iconStyle="font-size:28rpx;color:#59CB56;margin-right:10rpx;" lines="1" decoration="none">
|
iconStyle="font-size:28rpx;color:#59CB56;margin-right:10rpx;" lines="1" decoration="none">
|
||||||
</up-text>
|
</up-text>
|
||||||
@ -72,11 +72,24 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from "vue";
|
import {
|
||||||
import { CommonApi, UserApi } from "@/api";
|
defineComponent
|
||||||
import { setToken, getToken, isLogin } from '@/utils/auth';
|
} from "vue";
|
||||||
import { image } from "@/uni_modules/uview-plus/libs/function/test";
|
import {
|
||||||
import { url } from "inspector";
|
CommonApi,
|
||||||
|
UserApi
|
||||||
|
} from "@/api";
|
||||||
|
import {
|
||||||
|
setToken,
|
||||||
|
getToken,
|
||||||
|
isLogin
|
||||||
|
} from '@/utils/auth';
|
||||||
|
import {
|
||||||
|
image
|
||||||
|
} from "@/uni_modules/uview-plus/libs/function/test";
|
||||||
|
import {
|
||||||
|
url
|
||||||
|
} from "inspector";
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@ -133,14 +146,15 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
return day
|
return day
|
||||||
},
|
},
|
||||||
handleChange () {
|
handleChange() {},
|
||||||
},
|
|
||||||
getChefDetail() {
|
getChefDetail() {
|
||||||
CommonApi.commonGet('/api/banquet/chef/detail', this.search).catch((res) => {
|
CommonApi.commonGet('/api/banquet/chef/detail', this.search).catch((res) => {
|
||||||
if (res.code === 1) {
|
if (res.code === 1) {
|
||||||
this.matchedItems_sc = res.data;
|
this.matchedItems_sc = res.data;
|
||||||
this.matchedItems_sc.street_name = this.matchedItems_sc.street_name.join('')
|
this.matchedItems_sc.street_name = this.matchedItems_sc.street_name.join('')
|
||||||
this.matchedItems_sc.phone = this.matchedItems_sc.certification.phone
|
this.matchedItems_sc.phone = this.matchedItems_sc.certification.phone
|
||||||
|
this.matchedItems_sc.public_name = this.matchedItems_sc.certification.public_name
|
||||||
|
this.matchedItems_sc.public_image = this.matchedItems_sc.certification.public_image
|
||||||
//格式化日历
|
//格式化日历
|
||||||
this.isDisabledDate = this.matchedItems_sc.calendar;
|
this.isDisabledDate = this.matchedItems_sc.calendar;
|
||||||
this.time_value = [0]
|
this.time_value = [0]
|
||||||
@ -180,6 +194,4 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
@ -44,7 +44,7 @@
|
|||||||
<view class="p-[20rpx]">
|
<view class="p-[20rpx]">
|
||||||
<view class="u-flex my-[20rpx]" v-for="(item, index) in dishesList" :key="index" @click="gotoDishesDetai(item.id)">
|
<view class="u-flex my-[20rpx]" v-for="(item, index) in dishesList" :key="index" @click="gotoDishesDetai(item.id)">
|
||||||
<view class="">
|
<view class="">
|
||||||
<wd-img width="270rpx" height="270rpx" :src="item.images[0]" :enable-preview="false" :radius="8" :round=false
|
<wd-img width="200rpx" height="200rpx" :src="item.images[0]" :enable-preview="false" :radius="8" :round=false
|
||||||
custom-class="margin-right-24" />
|
custom-class="margin-right-24" />
|
||||||
</view>
|
</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
@ -61,7 +61,7 @@
|
|||||||
<view class="h-50 u-flex color-gray">
|
<view class="h-50 u-flex color-gray">
|
||||||
<wd-text :text="item.price" mode="price" type="error" prefix="¥" />
|
<wd-text :text="item.price" mode="price" type="error" prefix="¥" />
|
||||||
</view>
|
</view>
|
||||||
<view class="h-20 u-flex color-gray">
|
<view class="h-20 u-flex flex color-gray">
|
||||||
<wd-text size="24rpx" :text="item.line_price" mode="price" decoration="line-through" prefix="¥" />
|
<wd-text size="24rpx" :text="item.line_price" mode="price" decoration="line-through" prefix="¥" />
|
||||||
<view style="margin-top: -20rpx;">
|
<view style="margin-top: -20rpx;">
|
||||||
<wd-button size="small" @click="addCart(item.id)" @click.stop>下单预定</wd-button>
|
<wd-button size="small" @click="addCart(item.id)" @click.stop>下单预定</wd-button>
|
||||||
|
@ -19,12 +19,12 @@
|
|||||||
<view class="detail-box" v-for="(item, index) in matchedItems_sp" :key="index">
|
<view class="detail-box" v-for="(item, index) in matchedItems_sp" :key="index">
|
||||||
<u-cell :border="false" @click="cookDetail(item.id)">
|
<u-cell :border="false" @click="cookDetail(item.id)">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<wd-img :width="100" :height="100" :src="item.avatar" :enable-preview="false" :radius="8" :round=false
|
<wd-img :width="100" :height="100" :src="item.certification.public_image" :enable-preview="false" :radius="8" :round=false
|
||||||
custom-class="margin-right-24" />
|
custom-class="margin-right-24" />
|
||||||
</template>
|
</template>
|
||||||
<template #title>
|
<template #title>
|
||||||
<view class="h-60 flex">
|
<view class="h-60 flex">
|
||||||
<up-text size="32rpx" :text="`${item.nickname}`" :flex1="true" align="left" wordWrap="normal"
|
<up-text size="32rpx" :text="`${item.certification.public_name}`" :flex1="true" align="left" wordWrap="normal"
|
||||||
:show="true" prefixIcon="" customStyle="font-weight:bold"
|
:show="true" prefixIcon="" customStyle="font-weight:bold"
|
||||||
iconStyle="font-size:28rpx;color:#59CB56;margin-right:10rpx;" lines="1" decoration="none">
|
iconStyle="font-size:28rpx;color:#59CB56;margin-right:10rpx;" lines="1" decoration="none">
|
||||||
</up-text>
|
</up-text>
|
||||||
|
@ -3,12 +3,14 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 120px;
|
height: 120px;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
border: 1px solid #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.wd-grid-item-img-cook {
|
.wd-grid-item-img-cook {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 160px;
|
height: 160px;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
|
border: 1px solid #eee;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<template>
|
<template>
|
||||||
@ -18,7 +20,7 @@
|
|||||||
:placeholder="true" :fixed="true"></up-navbar>
|
:placeholder="true" :fixed="true"></up-navbar>
|
||||||
<view style="padding:0px 20rpx"> <u-swiper radius="20rpx" height="420rpx" :list="swiperList" indicator
|
<view style="padding:0px 20rpx"> <u-swiper radius="20rpx" height="420rpx" :list="swiperList" indicator
|
||||||
indicatorMode="dot" circular @click="handleClick"></u-swiper></view>
|
indicatorMode="dot" circular @click="handleClick"></u-swiper></view>
|
||||||
<wd-grid :gutter="10" :column="2" clickable>
|
<wd-grid :gutter="10" :column="2" clickable bg-color="#fbfbfb" >
|
||||||
<wd-grid-item use-slot @click="goTabCook">
|
<wd-grid-item use-slot @click="goTabCook">
|
||||||
<image class="wd-grid-item-img"
|
<image class="wd-grid-item-img"
|
||||||
src="https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20250813/20250813165502085532573.png" />
|
src="https://lihaiim.oss-cn-chengdu.aliyuncs.com/public/uploads/images/20250813/20250813165502085532573.png" />
|
||||||
@ -32,7 +34,7 @@
|
|||||||
<view v-for="(item, index) in matchedItems_sp" :key="index" >
|
<view v-for="(item, index) in matchedItems_sp" :key="index" >
|
||||||
<wd-grid-item use-slot :url="`/pages/banquet/cook/detail?id=${item.id}`">
|
<wd-grid-item use-slot :url="`/pages/banquet/cook/detail?id=${item.id}`">
|
||||||
<image class="wd-grid-item-img-cook" :src="`${item.certification.public_image ? item.certification.public_image : item.avatar }`" />
|
<image class="wd-grid-item-img-cook" :src="`${item.certification.public_image ? item.certification.public_image : item.avatar }`" />
|
||||||
<view class="text font-bold">{{item.certification.public_name}}</view>
|
<view class="text font-bold p-2 font-size-28">{{item.certification.public_name}}</view>
|
||||||
</wd-grid-item>
|
</wd-grid-item>
|
||||||
</view>
|
</view>
|
||||||
</wd-grid>
|
</wd-grid>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user