Commit e430bb13 authored by 周俊涛(东信)'s avatar 周俊涛(东信)

路线数据加空判断

parent 23189d75
......@@ -40,7 +40,7 @@ export function getPhoto({ shopId, prodId }) {
},
});
}
// 查询商家相册列表
// 获取套餐价格列表
export function getMealList(data) {
return request({
url: `/sgyrdd/znprod/meal/list`,
......
......@@ -68,18 +68,21 @@
<p>物超所值(44)</p>
<p>线路合理(44)</p>
</div> -->
<div class="user">
<div class="user" v-if="firstEvaluation">
<div class="user-name flex-align-center">
<img :src="domain.imgPrefix + firstEvaluation.avatar" />
<p>{{ firstEvaluation.nickName }}</p>
</div>
<div class="content">{{ firstEvaluation.evaluation }}</div>
</div>
<div class="user flex-center" v-else>
<p style="color: #999">暂无数据</p>
</div>
</div>
<div class="album">
<div class="album" v-if="evalData">
<div class="top flex-between">
<div class="title">用户相册</div>
<div class="link" @click="toAlbum">查看全部({{ evalData.imgCount }}) ></div>
<div class="link" @click="toAlbum">查看全部({{ photoList.length }}) ></div>
</div>
<div class="img-list">
<wd-img
......@@ -90,6 +93,9 @@
/>
</div>
</div>
<div class="album flex-center" v-else>
<p style="color: #999">暂无数据</p>
</div>
</div>
<p class="choose-package-text">选择套餐·日期</p>
<!-- 套餐 -->
......@@ -98,14 +104,13 @@
<div class="package-list">
<div
class="package-item"
:class="{ active: activeMeal === v }"
:class="{ active: activeMeal === v, 'special-offer': true }"
v-for="(v, i) in mealList"
@click="onActiveMeal(v)"
:key="i"
>
<div class="price flex-between">
<p class="name">{{ v.mealName }}</p>
<p>¥{{ v.price }}</p>
</div>
<div class="content">
<div>
......@@ -125,6 +130,9 @@
<p>{{ v.mealFood }}</p>
</div>
</div>
<div class="price" style="margin-top: 30rpx">
<p>¥{{ v.price }}</p>
</div>
</div>
</div>
<div class="selected">
......@@ -359,9 +367,9 @@ const getPriceListFn = (mealId) => {
const itineraryData = ref([]);
/* shopId:1821388624367861761
prodId:43835 */
onLoad(({ shopId, prodId }) => {
// const shopId = 1821388624367861761n;
// const prodId = 43835;
onLoad(({ /* shopId, prodId */ x }) => {
const shopId = 1821388624367861761n;
const prodId = 43840;
getProd({
prodId,
}).then((res) => {
......@@ -618,8 +626,24 @@ uni-page-body {
padding: 20rpx;
background: linear-gradient(180deg, #feeeee 0%, #ffffff 100%);
box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(0, 0, 0, 0.08);
position: relative;
overflow: hidden;
&.active {
border: 1px solid #fa5151;
border: 2rpx solid #fa5151;
}
&.special-offer::after {
content: '特价套餐';
font-weight: bold;
font-size: 24rpx;
padding: 0 100rpx;
background-color: #fa5151;
color: #fff;
display: block;
position: absolute;
top: 26rpx;
right: 40rpx;
white-space: nowrap;
transform: translateX(50%) rotateZ(45deg);
}
.price {
font-size: 24rpx;
......
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