Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
4f347962
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4f347962
编写于
7月 16, 2023
作者:
W
wanganxp
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 添加了loadFontFace测试例
- 补充了一些模板的需求导航 - 去掉了css里字体图标的需求 - 改了滚动搜索条的返回写法
上级
3c3c6f23
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
168 addition
and
152 deletion
+168
-152
pages/CSS/background/background-image.uvue
pages/CSS/background/background-image.uvue
+1
-0
pages/CSS/text/font-family.uvue
pages/CSS/text/font-family.uvue
+1
-1
pages/tabBar/API.uvue
pages/tabBar/API.uvue
+5
-0
pages/tabBar/CSS.uvue
pages/tabBar/CSS.uvue
+0
-11
pages/tabBar/template.uvue
pages/tabBar/template.uvue
+144
-134
pages/template/scroll-fold-nav/scroll-fold-nav.uvue
pages/template/scroll-fold-nav/scroll-fold-nav.uvue
+17
-6
未找到文件。
pages/CSS/background/background-image.uvue
浏览文件 @
4f347962
<template>
<view style="flex-grow: 1;">
<view>
<text>不支持背景图片,仅支持linear-gradient方法</text>
<text>background-image: linear-gradient(to right, red, yellow)</text>
<view class="common" style="background-image: linear-gradient(to right, red, yellow);"></view>
</view>
...
...
pages/CSS/text/font-family.uvue
浏览文件 @
4f347962
...
...
@@ -3,7 +3,7 @@
<view style="height: 500rpx;background-color: gray;justify-content: center;align-items: center;">
<text class="common" style="font-family: monospace;">font-family: monospace</text>
<text class="common" style="font-family: cursive;">font-family: cursive</text>
<text class="common" style="font-family: AlimamaDaoLiTi;">font-family: 阿里妈妈刀隶体</text>
<text class="common" style="font-family: AlimamaDaoLiTi;">font-family: 阿里妈妈刀隶体
(网络字体下载后生效)
</text>
</view>
</view>
</template>
...
...
pages/tabBar/API.uvue
浏览文件 @
4f347962
...
...
@@ -301,6 +301,11 @@
name: "保存媒体到本地",
url: "save-media",
}, */
{
name: "动态加载字体",
url: "load-font-face",
enable:false
},
] as Page[],
},
{
...
...
pages/tabBar/CSS.uvue
浏览文件 @
4f347962
...
...
@@ -267,17 +267,6 @@
url: 'pages/CSS/transform/transform'
}
] as Page[]
}, {
id: 'iconfont',
name: '字体图标',
open: false,
pages: [
{
name: '字体图标',
enable: false,
url: 'pages/CSS/iconfont/iconfont'
},
] as Page[]
}
] as ListItem[],
arrowUpIcon: '/static/icons/arrow-up.png',
...
...
pages/tabBar/template.uvue
浏览文件 @
4f347962
...
...
@@ -11,12 +11,14 @@
<view class="uni-panel" v-for="(item, index) in list" :key="item.id">
<view class="uni-panel-h" :class="item.open ? 'uni-panel-h-on' : ''" @click="triggerCollapse(index, item)">
<text class="uni-panel-text" :class="item.enable == false ? 'text-disabled' : ''">{{item.name}}</text>
<image :src="item.pages.length > 0 ? item.open ? arrowUpIcon : arrowDownIcon : arrowRightIcon" class="uni-icon">
<image :src="item.pages.length > 0 ? item.open ? arrowUpIcon : arrowDownIcon : arrowRightIcon"
class="uni-icon">
</image>
</view>
<view class="uni-panel-c" v-if="item.open">
<view class="uni-navigate-item" v-for="(page,key) in item.pages" :key="key" @click="goDetailPage(page)">
<text class="uni-navigate-text" :class="page.enable == false ? 'text-disabled' : ''">{{page.name}}</text>
<text class="uni-navigate-text"
:class="page.enable == false ? 'text-disabled' : ''">{{page.name}}</text>
<image :src="arrowRightIcon" class="uni-icon"></image>
</view>
</view>
...
...
@@ -44,30 +46,39 @@
return {
list: [
{
id: "custom-navigationbar",
url: "custom-navigationbar",
name: "自定义导航栏",
id: "scroll-fold-nav",
url: "scroll-fold-nav",
name: "随滚动折叠的导航栏",
open: false,
pages: [] as Page[]
}, {
id: "swiper-list",
url: "swiper-list",
name: "swiper-list",
open: false,
enable: false,
pages: [] as Page[]
},{
id: "drop-card",
url: "drop-card",
name: "划走式卡片",
}, {
id: "custom-pull-page",
url: "custom-pull-page",
name: "自定义上拉下拉效果",
open: false,
pages: [] as Page[]
},{
id: "scroll-fold-nav",
url: "scroll-fold-nav",
name: "随滚动折叠的导航栏",
},
{
id: "pull-zoom-image",
url: "pull-zoom-image",
name: "下拉缩放顶部封面图",
open: false,
enable: false,
pages: [] as Page[]
},
{
id: "custom-pull-page",
url: "custom-pull-page",
name: "自定义上拉下拉效果",
id: "show-search-with-scroll",
url: "show-search-with-scroll",
name: "滚动后自动显隐的搜索框",
open: false,
enable: false,
pages: [] as Page[]
},
{
...
...
@@ -86,11 +97,10 @@
pages: [] as Page[]
},
{
id: "swiper-list",
url: "swiper-list",
name: "swiper-list",
id: "drop-card",
url: "drop-card",
name: "划走式卡片",
open: false,
enable: false,
pages: [] as Page[]
}
] as ListItem[],
...
...
pages/template/scroll-fold-nav/scroll-fold-nav.uvue
浏览文件 @
4f347962
...
...
@@ -5,7 +5,7 @@
<view style="height: 110px;">
<!-- 垫高专用 -->
</view>
<view v-for="(item,index) in
10
0" :key="index" style="height: 100px;background-color: #FFF;">
<view v-for="(item,index) in
2
0" :key="index" style="height: 100px;background-color: #FFF;">
content-{{item}}
</view>
</view>
...
...
@@ -49,13 +49,24 @@
this.scrollTop = e.detail.scrollTop
},
back(){
// 暂不支持通过navigateBack api 返回
// uni.navigateBack()
uni.switchTab({
url:'/pages/tabBar/template'
// uni.navigateBack() // 这么写用不了
// 这么写可以用
uni.navigateBack({
success(result) {
console.log('navigateBack success', result.errMsg)
},
fail(error) {
console.log('navigateBack fail', error.errMsg)
},
complete(result) {
console.log('navigateBack complete', result.errMsg)
},
})
// uni.switchTab({
// url:'/pages/tabBar/template'
// })
},
toSearchPage(){
uni.showToast({
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录