123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337 |
- <template>
- <view class="box">
- <u-navbar title="厦门文物跑" :placeholder="true" bgColor="#ffe1b8" autoBack></u-navbar>
- <view class="ban">
- <view @click="goSignup" class="" style="margin-bottom: 30rpx">
- <u-swiper :list="bannerlist" imgMode="aspectFill" :height="150" :autoplay="true" :circular="true"></u-swiper>
- </view>
- <!-- 报名按钮 -->
- <view class="bm_box" @click="goSignup">
- <view class="">
- <view class="bm_js">文物跑,聆听历史的声音</view>
- <view class="bm_js2">跑出文化 跑出健康、跑出生态、跑出...</view>
- </view>
- <!-- <view class="goto">立即报名</view> -->
- </view>
- <!-- 简介 -->
- <view class="ld">活动简介</view>
- <view class="jj_box">
- 厦门文物跑活动旨在打造一场具有文化认同感的跑步之旅,号召公众关注及保护珍贵文物古迹,用脚步丈量城市历史,打造全民守护历史记忆的社会正能量。迎着第一缕曙光,从各自文物游线路起点出发,按照规划路线,跑..
- </view>
- <!-- 亮点 -->
- <view class="ld">活动亮点</view>
- <view class="list_box">
- <view @click="$common.navigateTo('/index_fenbao/XuanJiangYuan/xq_page?id=' + item.id)" class="list_item" v-for="item in activityList" :key="item">
- <img
- style="width: 100%; height: 200rpx; border-radius: 10rpx"
- :src="item.image"
- />
- <view class="item_tit">{{item.title}}</view>
- </view>
- </view>
- <!-- 优秀讲员 -->
- <view class="xjy" @click="gdxjyBtn">
- <view class="ld">优秀宣讲员</view>
- <view class="gd">更多</view>
- </view>
- <view class="list_box">
- <view @click="$common.navigateTo('/index_fenbao/XuanJiangYuan/xjy_XiangQing?id=' + item.id)" class="list_item" v-for="item in xuangjiangyuanList" :key="item">
- <img
- style="width: 100%; height: 200rpx; border-radius: 10rpx"
- :src="item.image"
- />
- <view class="item_name">{{ item.name }}</view>
- </view>
- </view>
- <!-- 优秀讲员 -->
- <view class="xjy" @click="activityReviewBtn">
- <view class="ld">精彩回顾</view>
- <view class="gd">更多</view>
- </view>
- <scroll-view scroll-x enable-flex class="scroll-view_H" type="list">
- <view @click="$common.navigateTo('/index_fenbao/XuanJiangYuan/activity-review-details?id=' + item.id)" class="goods-item" v-for="item in activityReviewList" :key="item">
- <image class="img" style="" :src="item.image" />
- <view style="margin-left: 20rpx">
- <view>{{item.title}}</view>
- <view class="gs_js">{{item.desc}}</view>
- </view>
- </view>
- </scroll-view>
- <!-- 底部logo -->
- <view class="btm_box">
- <view class="">
- <image src="/static/img/wx.png" class="btn_img" />
- <image src="/static/img/wx1.png" class="btn_img" />
- <image src="/static/img/wx2.png" class="btn_img" />
-
-
- </view>
- <view class="">
- @ 2025 厦门文物管家 保留所有权利
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- let that;
- export default {
- onLoad(option) {
- that = this;
- },
- onShow(option) {
- that.getActivityList();
- that.themeDetails();
- that.getActivityReviewList();
- that.getXuanjiangList();
- },
- data() {
- return {
- bannerlist: [],
- activityList: [],
- activityReviewList: [],
- xuangjiangyuanList: []
- };
- },
- /* 页面触底 */
- onReachBottom() {
- console.log('触底了');
- },
- methods: {
- themeDetails() {
- this.$api.activityThemeDetails(
- {
- id: 3
- },
- data => {
- if (data.code == 0) {
- that.$common.errorToShow(data.msg);
- return;
- } else {
- that.bannerlist = data.data.images;
- // console.log(that.bannerlist);
- }
- }
- );
- },
- getActivityList() {
- this.$api.activityLists(
- {
- type: 3
- },
- data => {
- if (data.code == 0) {
- that.$common.errorToShow(data.msg);
- return;
- } else {
- that.activityList = data.data;
- // console.log(that.activityList);
- }
- }
- );
- },
- // 活动精彩
- getActivityReviewList() {
- this.$api.getContentList(
- {
- page: 1,
- pageSize: 4,
- model_id: 15,
- main_body_column_id: 186 ,
- },
- data => {
- if (data.code == 0) {
- that.$common.errorToShow(data.msg);
- return;
- } else {
- that.activityReviewList = data.data;
- console.log(that.activityReviewList, '文物跑活动宣传');
- }
- }
- );
- },
- getXuanjiangList() {
- this.$api.getXuanjiangList(
- {
- page: 1,
- pageSize: 4
- },
- data => {
- if (data.code == 0) {
- that.$common.errorToShow(data.msg);
- return;
- } else {
- that.xuangjiangyuanList = data.data;
- console.log(that.xuangjiangyuanList, '文物跑活动宣讲员');
- }
- }
- );
- },
- // 详情
- goSignup() {
- // uni.navigateTo({
- // url: '/index_fenbao/XuanJiangYuan/xq_page'
- // });
- },
- // 更多讲员
- gdxjyBtn() {
- uni.navigateTo({
- url: '/index_fenbao/XuanJiangYuan/XuanJiangYuan'
- });
- },
- activityReviewBtn() {
- uni.navigateTo({
- url: '/index_fenbao/XuanJiangYuan/activity-review-list'
- });
- },
- xqBtn() {
- uni.navigateTo({
- url: '/index_fenbao/XuanJiangYuan/xjy_XiangQing'
- });
- }
- }
- };
- </script>
- <style>
- /deep/.u-swiper-indicator__wrapper__dot--active {
- width: 5px !important;
- }
- .box {
- height: auto;
- width: 100%;
- padding-bottom: 50rpx;
- background-image: url('https://huli-app.wenlvti.net/app_static/minnanhun/image/gj_bg.png');
- background-repeat: repeat-y;
- background-size: 100%;
- }
- .ban {
- position: relative;
- width: 92%;
- margin: auto;
- }
- .bm_box {
- position: absolute;
- display: flex;
- width: 100%;
- top: 200rpx;
- justify-content: space-around;
- }
- .bm_js {
- font-size: 30rpx;
- color: #ffe1b8;
- }
- .bm_js2 {
- font-size: 26rpx;
- color: #ffe1b8;
- }
- .goto {
- width: 150rpx;
- height: 70rpx;
- line-height: 70rpx;
- color: #ffffff;
- text-align: center;
- border-radius: 10rpx;
- background-color: #fb5903;
- }
- .ld {
- font-size: 30rpx;
- font-weight: 700;
- margin-bottom: 20rpx;
- }
- .list_box {
- display: flex;
- flex-wrap: wrap;
- justify-content: space-between;
- margin-bottom: 30rpx;
- }
- .list_item {
- width: 330rpx;
- height: 270rpx;
- margin-bottom: 30rpx;
- border-radius: 10rpx;
- background-color: #ffe1b8;
- }
- .item_tit {
- margin-top: 8rpx;
- margin-left: 20rpx;
- }
- .jj_box {
- margin-top: 20rpx;
- font-size: 28rpx;
- height: 230rpx;
- overflow: scroll;
- }
- .item_name {
- text-align: center;
- margin-top: 8rpx;
- }
- .xjy {
- display: flex;
- margin-bottom: 20rpx;
- justify-content: space-between;
- }
- .xjy .gd {
- width: 110rpx;
- height: 60rpx;
- line-height: 60rpx;
- margin-top: -2rpx;
- text-align: center;
- border-radius: 30rpx;
- color: #ffffff;
- background-color: #f47a1a;
- }
- .good-hot {
- padding: 16rpx;
- }
- .scroll-view_H {
- width: 100%;
- white-space: nowrap;
- height: 480rpx;
- flex-direction: row;
- }
- ..scroll-view_H {
- white-space: nowrap; /* 确保子元素在同一行显示 */
- width: 100%; /* 设置 scroll-view 的宽度 */
- }
- .scroll-view_H .goods-item {
- display: inline-block; /* 使用 inline-block 确保子元素在同一行显示 */
- width: 450rpx;
- height: 400rpx;
- border-radius: 10rpx;
- flex-direction: column;
- background-color: #ffe1b8;
- margin-right: 20rpx; /* 添加右边距,最后一个子元素的右边距为 0 */
- }
- .scroll-view_H .goods-item:last-child {
- margin-right: 0;
- }
- .goods-item .img {
- width: 100%;
- height: 300rpx;
- border-radius: 10rpx;
- }
- .gs_js {
- font-size: 28rpx;
- color: #aba89a;
- margin-top: 10rpx;
- }
- .btm_box{
- text-align: center;
- font-size: 26rpx;
- }
- .btn_img{
-
- width: 40rpx;
- height: 40rpx;
- }
- </style>
|