古刹文章列表到详细的跳转2.0
This commit is contained in:
parent
606d69f16f
commit
b7fe6a9066
|
|
@ -1,22 +1,23 @@
|
||||||
export const CommonEnum = {
|
export const CommonEnum = {
|
||||||
BACKGROUND: 'https://api.ccttiot.com/image-1753769939853.png', //磨砂背景图片
|
BACKGROUND: "https://api.ccttiot.com/image-1753769939853.png", //磨砂背景图片
|
||||||
RIGHT_CHEVRON: 'https://api.ccttiot.com/image-1753773619878.png', //右箭头
|
RIGHT_CHEVRON: "https://api.ccttiot.com/image-1753773619878.png", //右箭头
|
||||||
BACK_BUTTON: 'https://api.ccttiot.com/image-1753868358514.png', //导航栏返回按钮
|
BACK_BUTTON: "https://api.ccttiot.com/image-1753868358514.png", //导航栏返回按钮
|
||||||
BASE_COLOR: '#FAF8F3', //基调颜色
|
BASE_COLOR: "#FAF8F3", //基调颜色
|
||||||
SEARCH: 'https://api.ccttiot.com/image-1753769500465.png', //通用搜索图标
|
SEARCH: "https://api.ccttiot.com/image-1753769500465.png", //通用搜索图标
|
||||||
TILE: 'https://api.ccttiot.com/image-1753750309203.png', //瓦片图片
|
TILE: "https://api.ccttiot.com/image-1753750309203.png", //瓦片图片
|
||||||
BOTTOM_TILES: 'https://api.ccttiot.com/image-1754446176001.png', //底部瓦片组背景淡黄
|
BOTTOM_TILES: "https://api.ccttiot.com/image-1754446176001.png", //底部瓦片组背景淡黄
|
||||||
BOTTOM_TILES_2: ' https://api.ccttiot.com/image-1754898426052.png', //底部瓦片组背景纯白
|
BOTTOM_TILES_2: " https://api.ccttiot.com/image-1754898426052.png", //底部瓦片组背景纯白
|
||||||
FILTER: 'https://api.ccttiot.com/image-1753954149098.png', //筛选图标
|
FILTER: "https://api.ccttiot.com/image-1753954149098.png", //筛选图标
|
||||||
REFRESH: 'https://api.ccttiot.com/%E5%AE%B9%E5%99%A8-1754011714179.png', //刷新图标
|
REFRESH: "https://api.ccttiot.com/%E5%AE%B9%E5%99%A8-1754011714179.png", //刷新图标
|
||||||
NAV_ARROW: 'https://api.ccttiot.com/image-1754127104177.png', //导航箭头
|
NAV_ARROW: "https://api.ccttiot.com/image-1754127104177.png", //导航箭头
|
||||||
PHONE: 'https://api.ccttiot.com/image-1754292810234.png', //电话图标
|
PHONE: "https://api.ccttiot.com/image-1754292810234.png", //电话图标
|
||||||
ADDRESS: 'https://api.ccttiot.com/image-1754292905805.png', //地址图标
|
ADDRESS: "https://api.ccttiot.com/image-1754292905805.png", //地址图标
|
||||||
BUDDHA_BACKGROUND: 'https://api.ccttiot.com/image-1754297645655.png', //佛像背景
|
BUDDHA_BACKGROUND: "https://api.ccttiot.com/image-1754297645655.png", //佛像背景
|
||||||
CENSER: 'https://api.ccttiot.com/image-1754297886734.png', //香炉
|
CENSER: "https://api.ccttiot.com/image-1754297886734.png", //香炉
|
||||||
KongmingLantern: 'https://api.ccttiot.com/image-1754376453672.png', //孔明灯
|
KongmingLantern: "https://api.ccttiot.com/image-1754376453672.png", //孔明灯
|
||||||
Refresh: 'https://api.ccttiot.com/image-1754377032112.png', //刷新
|
Refresh: "https://api.ccttiot.com/image-1754377032112.png", //刷新
|
||||||
LotusMeditation: 'https://api.ccttiot.com/image-1754377169541.png', //莲坐禅心
|
LotusMeditation: "https://api.ccttiot.com/image-1754377169541.png", //莲坐禅心
|
||||||
CENTER_TILES: 'https://api.ccttiot.com/image-1754897751419.png', //腰部瓦片组
|
CENTER_TILES: "https://api.ccttiot.com/image-1754897751419.png", //腰部瓦片组
|
||||||
}
|
SUCCESS_APPOINTMENT: "https://api.ccttiot.com/image-1754897751419.png", //预约成功
|
||||||
export default CommonEnum
|
};
|
||||||
|
export default CommonEnum;
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,8 @@
|
||||||
<!-- 古刹列表 -->
|
<!-- 古刹列表 -->
|
||||||
<view v-else class="temple-list">
|
<view v-else class="temple-list">
|
||||||
<view v-if="templeList.length === 0" class="no-data">
|
<view v-if="templeList.length === 0" class="no-data">
|
||||||
暂无古刹数据</view
|
暂无古刹数据
|
||||||
>
|
</view>
|
||||||
<!-- 默认项 -->
|
<!-- 默认项 -->
|
||||||
<ancient-item
|
<ancient-item
|
||||||
:key="defaultTemple.id"
|
:key="defaultTemple.id"
|
||||||
|
|
@ -121,6 +121,7 @@ export default {
|
||||||
buttonText: "了解详情",
|
buttonText: "了解详情",
|
||||||
detail: item.content || "",
|
detail: item.content || "",
|
||||||
templeName: item.templeName,
|
templeName: item.templeName,
|
||||||
|
isDefault: false,
|
||||||
}));
|
}));
|
||||||
} else {
|
} else {
|
||||||
console.error("获取古刹数据失败:", response.msg);
|
console.error("获取古刹数据失败:", response.msg);
|
||||||
|
|
@ -156,8 +157,9 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
// 示例:跳转到详情页面
|
// 示例:跳转到详情页面
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: `/app/article/tourById?id=${temple.id}`,
|
url: `/pages/ancient/ancientTourById?id=${temple.id}`,
|
||||||
});
|
});
|
||||||
|
console.log("点击了古刹:", temple.title);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user