Commit f2fd8631 by Lin

feat(CustomerSide):通过导航和样式更新增强组件

feat(HomeFrame):为 prelearnBridgeDemo 页面添加导航
- 更新了 HomeFrame 组件,添加了可点击的标题,用于跳转至 prelearnBridgeDemo 页面。
- 在 pages.json 中为 prelearnBridgeDemo 页面新增了条目,并设置了自定义导航样式。
- 在 CustomerSide 组件中新增了一个导航选项,用于访问自定义文件
- 更新了组件的模板和样式,以优化布局和响应性
- 引入了一个新的属性,可根据类型管理组件行为
1 parent fab9ad6e
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
> >
<view class="content-left" style="padding-bottom: 40px;"> <view class="content-left" style="padding-bottom: 40px;">
<view class="module-box box-class scene1-box-shadow"> <view class="module-box box-class scene1-box-shadow">
<view class="common-title">产品介绍</view> <view class="common-title" @click="goPrelearnBridge">产品介绍</view>
<view class="content-box"> <view class="content-box">
<template v-if="swiperCustom"> <template v-if="swiperCustom">
<slot name="swiperCustom" /> <slot name="swiperCustom" />
...@@ -778,6 +778,11 @@ export default { ...@@ -778,6 +778,11 @@ export default {
this.previewOff = true this.previewOff = true
this.$emit('swiperClick', e) this.$emit('swiperClick', e)
}, },
goPrelearnBridge() {
uni.navigateTo({
url: '/pages/common/prelearnBridge'
})
},
previewHandler(name, off = false) { previewHandler(name, off = false) {
this.previewOff = off this.previewOff = off
this.$emit(name) this.$emit(name)
......
...@@ -116,6 +116,12 @@ ...@@ -116,6 +116,12 @@
} }
}, },
{ {
"path": "pages/common/prelearnBridge",
"style": {
"navigationStyle": "custom"
}
},
{
"path": "pages/common/studyCenter/myTask", "path": "pages/common/studyCenter/myTask",
"style": { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!