Commit a4dcf754 authored by 张娇(东信)'s avatar 张娇(东信)

Merge remote-tracking branch 'origin/master'

parents c76f419f 5e89b49d
<template> <template>
<div class="route-details"> <div class="route-details">
<Search></Search> <Search :backgroundBox="backgroundBox"></Search>
<scroll-view class="container" scroll-y> <scroll-view class="container" scroll-y @scroll="onScroll">
<!-- <img class="back-img" src="/static/assistingAgriculture/assets/left.png" @tap="back" /> --> <!-- <img class="back-img" src="/static/assistingAgriculture/assets/left.png" @tap="back" /> -->
<!-- 轮播 --> <!-- 轮播 -->
<div class="banner"> <div class="banner">
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
<div class="date-wrap"> <div class="date-wrap">
<div class="date-title">选择日期</div> <div class="date-title">选择日期</div>
<div class="date-list flex-between"> <div class="date-list flex-between">
<div class="list"> <div class="list" style="margin-top: 20rpx">
<div <div
class="item" class="item"
:class="{ active: activePrice === v }" :class="{ active: activePrice === v }"
...@@ -331,7 +331,16 @@ import { ...@@ -331,7 +331,16 @@ import {
import { sgyOrderOrderInfo } from '@/api/assistingAgriculture/shop'; import { sgyOrderOrderInfo } from '@/api/assistingAgriculture/shop';
import { groupBuyConfirm, groupBuyUpdate, groupBuyCreate } from '@/api/confirmOrder'; import { groupBuyConfirm, groupBuyUpdate, groupBuyCreate } from '@/api/confirmOrder';
import { getCollect } from '@/api/packageDetail'; import { getCollect } from '@/api/packageDetail';
/* 监听滑动改变顶部颜色 */
const backgroundBox = ref('');
const onScroll = (e) => {
const { scrollTop } = e.detail;
if (scrollTop > 20) {
backgroundBox.value = '#fff';
} else {
backgroundBox.value = '';
}
};
const swiperList = ref([ const swiperList = ref([
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg', 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
]); ]);
...@@ -345,12 +354,13 @@ const firstEvaluation = ref({}); ...@@ -345,12 +354,13 @@ const firstEvaluation = ref({});
const photoList = ref([]); const photoList = ref([]);
// 套餐列表 // 套餐列表
const mealList = ref([]); const mealList = ref([]);
const activeMeal = ref(null); const activeMeal = ref({});
const orderInfo = ref({}); const orderInfo = ref({});
const onActiveMeal = (item) => { const onActiveMeal = (item) => {
activeMeal.value = item; activeMeal.value = item;
getPriceListFn(item.mealId); getPriceListFn(item.mealId);
}; };
// 日历 // 日历
const priceList = ref([]); const priceList = ref([]);
const viewPriceList = ref([]); const viewPriceList = ref([]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment