Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CoderSmallfan
uni-app
提交
176a8cf5
U
uni-app
项目概览
CoderSmallfan
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
176a8cf5
编写于
10月 10, 2018
作者:
H
hulin
提交者:
GitHub
10月 10, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #59 from zhetengbiji/master
更新示例
上级
fa96cbfb
7b34e105
变更
14
显示空白变更内容
内联
并排
Showing
14 changed file
with
1145 addition
and
1172 deletion
+1145
-1172
examples/hello-uniapp/components/tab-nvue/mediaList.nvue
examples/hello-uniapp/components/tab-nvue/mediaList.nvue
+172
-172
examples/hello-uniapp/components/tab-nvue/tabBar.nvue
examples/hello-uniapp/components/tab-nvue/tabBar.nvue
+53
-44
examples/hello-uniapp/components/tab-nvue/tabContent.nvue
examples/hello-uniapp/components/tab-nvue/tabContent.nvue
+30
-30
examples/hello-uniapp/components/tab-nvue/tabs.nvue
examples/hello-uniapp/components/tab-nvue/tabs.nvue
+84
-84
examples/hello-uniapp/components/uni-badge.vue
examples/hello-uniapp/components/uni-badge.vue
+99
-99
examples/hello-uniapp/components/uni-drawer.vue
examples/hello-uniapp/components/uni-drawer.vue
+94
-90
examples/hello-uniapp/manifest.json
examples/hello-uniapp/manifest.json
+6
-4
examples/hello-uniapp/pages.json
examples/hello-uniapp/pages.json
+2
-1
examples/hello-uniapp/pages/component/movable-view/movable-view.vue
...ello-uniapp/pages/component/movable-view/movable-view.vue
+143
-143
examples/hello-uniapp/pages/template/comments/comments.vue
examples/hello-uniapp/pages/template/comments/comments.vue
+72
-72
examples/hello-uniapp/pages/template/scrollmsg/scrollmsg.vue
examples/hello-uniapp/pages/template/scrollmsg/scrollmsg.vue
+47
-47
examples/hello-uniapp/pages/template/steps/steps.vue
examples/hello-uniapp/pages/template/steps/steps.vue
+37
-37
examples/hello-uniapp/platforms/app-plus/tabbar-nvue/detail.vue
...es/hello-uniapp/platforms/app-plus/tabbar-nvue/detail.vue
+38
-38
examples/hello-uniapp/platforms/app-plus/tabbar-nvue/tabbar-nvue.nvue
...lo-uniapp/platforms/app-plus/tabbar-nvue/tabbar-nvue.nvue
+268
-311
未找到文件。
examples/hello-uniapp/components/tab-nvue/mediaList.nvue
浏览文件 @
176a8cf5
examples/hello-uniapp/components/tab-nvue/tabBar.nvue
浏览文件 @
176a8cf5
...
...
@@ -14,7 +14,17 @@
vnode.data.on.click = this._change;
}
}
return createElement('scroller', {//如果需要左右滑动用scroller,不需要的话用div就行,添加个属性需要时将scroller添加 children
return createElement('div', {//如果需要左右滑动用scroller,不需要的话用div就行,添加个属性需要时将scroller添加 children
style: {
height:'100px',
width:'750px',
flexDirection:'row',
borderBottomWidth: "1px",
borderColor: "#c8c7cc",
borderBottomStyle: "solid"
}
}, [
createElement('scroller', {
attrs: {
scrollDirection:'horizontal',
showScrollbar:'false'
...
...
@@ -23,10 +33,9 @@
height:'100px',
width:'750px',
flexDirection:'row'
// justifyContent: 'space-around',
// alignItems:'center'
}
}, this.$slots.default)
])
},
methods:{
_change(e){
...
...
examples/hello-uniapp/components/tab-nvue/tabContent.nvue
浏览文件 @
176a8cf5
examples/hello-uniapp/components/tab-nvue/tabs.nvue
浏览文件 @
176a8cf5
...
...
@@ -44,8 +44,8 @@
if (!newVNode.data.on) {
newVNode.data.on = Object.create(null)
}
newVNode.data.attrs.index = this.
tabIndex
newVNode.data.props.index = this.
tabIndex
newVNode.data.attrs.index = this.
index
newVNode.data.props.index = this.
index
newVNode.data.on.change = this._change
newVNodes.push(newVNode)
}
...
...
examples/hello-uniapp/components/uni-badge.vue
浏览文件 @
176a8cf5
examples/hello-uniapp/components/uni-drawer.vue
浏览文件 @
176a8cf5
<
template
>
<view
class=
"uni-drawer
"
:class=
"
{'uni-drawer-visible':visible,'uni-drawer-right':rightMode}">
<view
class=
"uni-drawer"
:catchtouchmove=
"catchtouchmove
"
:class=
"
{'uni-drawer-visible':visible,'uni-drawer-right':rightMode}">
<view
v-if=
"showMask"
class=
"uni-drawer-mask"
@
tap=
"close"
></view>
<view
class=
"uni-drawer-content"
>
<slot></slot>
...
...
@@ -31,7 +31,8 @@
},
data
()
{
return
{
rightMode
:
false
rightMode
:
false
,
catchtouchmove
:
false
}
},
computed
:
{
...
...
@@ -41,6 +42,9 @@
},
created
()
{
this
.
rightMode
=
this
.
mode
===
'
right
'
//#ifdef MP-WEIXIN
this
.
catchtouchmove
=
true
//#endif
},
methods
:
{
close
()
{
...
...
examples/hello-uniapp/manifest.json
浏览文件 @
176a8cf5
...
...
@@ -55,10 +55,12 @@
"<uses-permission android:name=
\"
android.permission.RECEIVE_USER_PRESENT
\"
/>"
]
},
"ios"
:
{},
/*
ios打包配置
*/
"sdkConfigs"
:
{},
/*
SDK配置
*/
"ios"
:
{
/*
ios打包配置
*/
"UIBackgroundModes"
:[
"audio"
]
},
"sdkConfigs"
:
{
/*
SDK配置
*/
},
"orientation"
:
[
"portrait-primary"
]
}
},
...
...
examples/hello-uniapp/pages.json
浏览文件 @
176a8cf5
...
...
@@ -585,7 +585,8 @@
"fontSize"
:
"22px"
}
]
}
},
"bounce"
:
"none"
}
}
},
...
...
examples/hello-uniapp/pages/component/movable-view/movable-view.vue
浏览文件 @
176a8cf5
examples/hello-uniapp/pages/template/comments/comments.vue
100644 → 100755
浏览文件 @
176a8cf5
examples/hello-uniapp/pages/template/scrollmsg/scrollmsg.vue
100644 → 100755
浏览文件 @
176a8cf5
examples/hello-uniapp/pages/template/steps/steps.vue
100644 → 100755
浏览文件 @
176a8cf5
examples/hello-uniapp/platforms/app-plus/tabbar-nvue/detail.vue
浏览文件 @
176a8cf5
examples/hello-uniapp/platforms/app-plus/tabbar-nvue/tabbar-nvue.nvue
浏览文件 @
176a8cf5
<template>
<div
class="root">
<tabs
class="tabs" @change="changeTab" :index="tabIndex">
<tab-bar
class="tab-bar" scroll="true">
<div
>
<tabs
@change="changeTab" :index="tabIndex">
<tab-bar
>
<div class="tab-bar-item" v-for="(tabBar, t) in tabBars" :key="t" :ref="tabBar.id + t">
<text class="tab-bar-title" :class="[tabIndex === t ? 'active' : '']">{{tabBar.name}}</text>
</div>
</tab-bar>
<tab-content
class="item-tabcnt">
<tab-content
>
<list class="list" @loadmore="loadMore(index1)" loadmoreoffset="10" v-for="(tab,index1) in newsitems" :key="index1">
<refresh class="refresh" @refresh="onrefresh" @pullingdown="onpullingdown" :display="refreshing ? 'show' : 'hide'">
<!-- <loading-indicator class="indicator"></loading-indicator> -->
<text class="refresh-text">{{refreshText}}</text>
</refresh>
<cell v-for="(newsitem,index2) in tab.data" :key="index2">
...
...
@@ -174,17 +173,14 @@
}
},
close(index1,index2){
console.log(963)
uni.showModal({
content: '是否删除本条信息?',
success:(res) => {
console.log(123)
if (res.confirm) {
console.log("999")
this.newsitems[index1].data.splice(index2,1);
}
}
})
;
})
},
async changeTab(e) {
this.tabIndex = e.index;
...
...
@@ -226,33 +222,6 @@
</script>
<style>
.root {
flex-direction: column;
}
.title {
height: 88px;
background-color: #F8F8F8;
justify-content: center;
}
.title-text {
font-size: 34px;
text-align: center;
}
.tabs {
flex: 1;
}
.tab-bar {
border-bottom-width: 1px;
border-color: #c8c7cc;
border-bottom-style: solid;
background-color: #fff;
height: 100px;
}
.tab-bar-item {
width: 150px;
height: 100px;
...
...
@@ -272,31 +241,19 @@
color: #007AFF;
}
.tab-list {
width: 100%;
width: 600px;
height: 90px;
margin-left: 75px;
margin-top: 20px;
.loadmore {
height: 70px;
width: 750px;
flex-direction: column;
justify-content: center;
border-width: 1px;
border-style: solid;
border-color: rgb(162, 217, 192);
background-color: rgba(162, 217, 192, 0.2);
}
.loadmore-text {
font-size: 30px;
text-align: center;
color: #999999;
}
.loadmore {
height: 70px;
flex-direction: column;
justify-content: center;
}
.refresh {
width: 750px;
height: 70px;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录