首页中导航至祈福页面
This commit is contained in:
parent
bfafffe6f4
commit
391ee81b53
|
|
@ -74,22 +74,22 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="bottom">
|
||||
<!-- <image :src="bottomSection.prayerSection.backgroundImg" mode=""></image>-->
|
||||
<!-- <view class="rixing">-->
|
||||
<!-- {{ bottomSection.prayerSection.title }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="qifu">-->
|
||||
<!-- <image :src="bottomSection.prayerSection.prayerButton.icon" mode=""></image>-->
|
||||
<!-- <view class="zaixian">-->
|
||||
<!-- <view class="da">-->
|
||||
<!-- {{ bottomSection.prayerSection.prayerButton.title }}-->
|
||||
<!-- </view>-->
|
||||
<!-- <view class="xiao">-->
|
||||
<!-- {{ bottomSection.prayerSection.prayerButton.subtitle }}-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<view class="bottom" v-if="bottomSection.prayerSection && bottomSection.prayerSection.backgroundImg">
|
||||
<image :src="bottomSection.prayerSection.backgroundImg" mode=""></image>
|
||||
<view class="rixing">
|
||||
{{ bottomSection.prayerSection.title }}
|
||||
</view>
|
||||
<view class="qifu" @click="goToPray">
|
||||
<image :src="bottomSection.prayerSection.prayerButton.icon" mode=""></image>
|
||||
<view class="zaixian">
|
||||
<view class="da">
|
||||
{{ bottomSection.prayerSection.prayerButton.title }}
|
||||
</view>
|
||||
<view class="xiao">
|
||||
{{ bottomSection.prayerSection.prayerButton.subtitle }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -390,6 +390,23 @@ import { getArticleById } from "../../api/article/article.js";
|
|||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 跳转到祈福页面
|
||||
*/
|
||||
goToPray() {
|
||||
try {
|
||||
console.log('跳转到祈福页面');
|
||||
// 使用navigateToPage方法,传入参数pray
|
||||
navigateToPage('pray');
|
||||
} catch (error) {
|
||||
console.error('跳转到祈福页面失败:', error);
|
||||
uni.showToast({
|
||||
title: '页面跳转失败',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 播放音频
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ export const PAGE_ROUTES = {
|
|||
WALK_INTO: '/pages/walkInto/walkInto',
|
||||
INSTITUTIONAL_STRUCTURE: '/pages/institutionalStructure/institutionalStructure',
|
||||
ACTIVITY: '/pages/activity/activity',
|
||||
PRAY: '/pages/pray/pray',
|
||||
|
||||
// 待开发页面
|
||||
|
||||
|
|
@ -39,6 +40,9 @@ export const PAGE_TYPE_MAP = {
|
|||
'ancient': PAGE_ROUTES.ANCIENT,
|
||||
'future': PAGE_ROUTES.FUTURE,
|
||||
'index': PAGE_ROUTES.INDEX,
|
||||
'pray': PAGE_ROUTES.PRAY,
|
||||
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user