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

线路详情

parent 34914a27
......@@ -77,6 +77,12 @@
"navigationBarBackgroundColor": "#ffffff",
"navigationStyle":""
}
},
{
"path": "pages/RouteDetails/RouteDetails",
"style": {
"navigationBarTitleText": "线路详情",
}
}
],
"globalStyle": {
......
<template>
<view>
<view class="container">
<view class="bac-img">
<img class="bac" src="/static/rural/route.png" style="width: 750rpx; height: 440rpx" />
</view>
</view>
</view>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped>
page {
background-color: #eaf9f1;
}
.container {
position: relative;
left: 0rpx;
top: 0rpx;
width: 750rpx;
height: 440rpx;
}
.bac {
display: flex;
margin-top: -80rpx;
}
</style>
......@@ -93,7 +93,12 @@
</view>
</view>
<view class="list-card">
<view class="card-detail" v-for="(item, index) in cardList" :key="index">
<view
class="card-detail"
v-for="(item, index) in cardList"
:key="index"
@tap="toRouteDetails"
>
<img class="card-img" :src="item.img" style="width: 248rpx; height: 240rpx" />
<view class="detail-text">
<text class="detail-title">{{ item.title }}</text>
......@@ -200,6 +205,12 @@ const locationFiltering = (index) => {
break;
}
};
function toRouteDetails() {
// TODO: 跳转到线路详情
xma.navigateTo({
url: '/pages/RouteDetails/RouteDetails',
});
}
</script>
<style lang="scss" scoped>
......
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