mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-07 23:04:01 +08:00
2019-2-25 22:42:38
This commit is contained in:
@@ -3,6 +3,7 @@ Page({
|
||||
data: {
|
||||
StatusBar: app.globalData.StatusBar,
|
||||
CustomBar: app.globalData.CustomBar,
|
||||
Custom: app.globalData.Custom,
|
||||
},
|
||||
|
||||
})
|
||||
@@ -1,9 +1,10 @@
|
||||
<view class="cu-custom" style="height:{{CustomBar}}px;">
|
||||
<view class="cu-bar fixed bg-gradual-pink" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
|
||||
<navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
|
||||
<navigator class='action border-custom' open-type="navigateBack" delta="1" hover-class="none" style='width:{{Custom.width}}px;height:{{Custom.height}}px;margin-left:calc(750rpx - {{Custom.right}}px)'>
|
||||
<text class='icon-back'></text>
|
||||
<text>操作条</text>
|
||||
<text class='icon-homefill'></text>
|
||||
</navigator>
|
||||
<view class='content' style='top:{{StatusBar}}px;'>操作条</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
@@ -6,3 +6,4 @@
|
||||
<text class='icon-{{item.icon}}'></text>
|
||||
</navigator>
|
||||
</view>
|
||||
<view class='cu-tabbar-height'></view>
|
||||
@@ -1,3 +0,0 @@
|
||||
page{
|
||||
padding-bottom: 100rpx;
|
||||
}
|
||||
@@ -5,10 +5,9 @@
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="cu-bar bg-white">
|
||||
<view class="cu-bar bg-white margin-top">
|
||||
<view class='action'>
|
||||
<text class='icon-title text-orange '></text> 模态窗口
|
||||
<text class='icon-title text-orange '></text> 普通窗口
|
||||
</view>
|
||||
<view class='action'>
|
||||
<button class='cu-btn bg-green shadow' bindtap="showModal" data-target="Modal">Modal</button>
|
||||
|
||||
@@ -71,17 +71,75 @@
|
||||
|
||||
<view class="cu-bar bg-white margin-top solid-bottom">
|
||||
<view class='action'>
|
||||
<text class='icon-title text-orange'></text> 定位
|
||||
<text class='icon-title text-orange'></text> 垂直导航
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-x class="bg-green nav text-center">
|
||||
<view class="cu-item {{0==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="0">
|
||||
<text class='icon-camerafill'></text> 数码
|
||||
</view>
|
||||
<view class="cu-item {{1==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="1">
|
||||
<text class='icon-upstagefill'></text> 排行榜
|
||||
</view>
|
||||
<view class="cu-item {{2==TabCur?'text-white cur':''}}" bindtap='tabSelect' data-id="2">
|
||||
<text class='icon-clothesfill'></text> 皮肤
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="ScrollBox">
|
||||
<scroll-view class="ScrollNav nav" scroll-y scroll-with-animation scroll-top="{{scrollNavTop}}" style="height:calc(100vh - 375rpx)">
|
||||
<view class="cu-item {{index==TabCur?'text-green cur':''}}" wx:for="{{20}}" wx:key bindtap='tabSelect' data-id="{{index}}">
|
||||
Tab{{index +1}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="ScrollMain" scroll-y scroll-with-animation style="height:calc(100vh - 375rpx)" scroll-into-view="main-id-{{TabCur}}" bindscroll="ScrollMain">
|
||||
<view class="padding-top padding-lr" wx:for="{{20}}" wx:key id="main-id-{{index}}">
|
||||
<view class='cu-bar solid-bottom bg-white'>
|
||||
<view class='action'>
|
||||
<text class='icon-title text-green'></text> Tab{{index +1}}</view>
|
||||
</view>
|
||||
<view class="cu-list menu menu-avatar">
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>文晓港</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<text class='icon-infofill text-red'></text> 消息未送达</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-grey sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://image.weilanwl.com/img/square-2.jpg);">
|
||||
<view class="cu-tag badge">99+</view>
|
||||
</view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>文晓港
|
||||
<view class="cu-tag round bg-orange sm">SVIP</view>
|
||||
</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<text class='icon-redpacket_fill text-red'></text> 收到红包</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class='icon-notice_forbid_fill text-gray'></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item ">
|
||||
<view class="cu-avatar radius lg" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view>喵星人互动群</view>
|
||||
<view class='text-gray text-sm'>
|
||||
喵星酱:喵喵喵!</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-red sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item grayscale">
|
||||
<view class="cu-avatar radius lg" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view>喵星人互动群</view>
|
||||
<view class='text-gray text-sm'>
|
||||
喵星酱:喵喵喵!</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-red sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
@@ -1 +1,37 @@
|
||||
/* pages/component/nav/nav.wxss */
|
||||
/* pages/component/nav/nav.wxss */
|
||||
.ScrollNav.nav {
|
||||
width: 200rpx;
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
.ScrollNav.nav .cu-item {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
margin: 0;
|
||||
border: none;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ScrollNav.nav .cu-item.cur {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.ScrollNav.nav .cu-item.cur::after {
|
||||
content: "";
|
||||
width: 8rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 10rpx 0 0 10rpx;
|
||||
position: absolute;
|
||||
background-color: currentColor;
|
||||
top: 0;
|
||||
right: 0rpx;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.ScrollBox{
|
||||
display: flex;
|
||||
}
|
||||
.ScrollMain{
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
Reference in New Issue
Block a user