mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-08 15:23:17 +08:00
v2.1.2
This commit is contained in:
@@ -1,28 +1,26 @@
|
||||
<view class="cu-custom" style="height:{{CustomBar}}px;">
|
||||
<view class="cu-bar fixed none-bg text-white bg-img" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;background-image:url(https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg);">
|
||||
<navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
|
||||
<text class='icon-back'></text> 索引
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<cu-custom bgImage="https://image.weilanwl.com/color2.0/plugin/sylb2244.jpg" isBack="{{true}}">
|
||||
<view slot="backText">返回</view>
|
||||
<view slot="content">索引</view>
|
||||
</cu-custom>
|
||||
<view class="cu-bar bg-white search fixed" style="top:{{CustomBar}}px;">
|
||||
<view class='search-form round'>
|
||||
<view class="search-form round">
|
||||
<text class="icon-search"></text>
|
||||
<input type="text" placeholder="输入搜索的关键词" confirm-type="search"></input>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<button class='cu-btn bg-gradual-green shadow-blur round'>搜索</button>
|
||||
<view class="action">
|
||||
<button class="cu-btn bg-gradual-green shadow-blur round">搜索</button>
|
||||
</view>
|
||||
</view>
|
||||
<scroll-view scroll-y class="indexes" scroll-into-view="indexes-{{listCurID}}" style='height:calc(100vh - {{CustomBar}}px - 50px)' scroll-with-animation="true" enable-back-to-top="true">
|
||||
<scroll-view scroll-y class="indexes" scroll-into-view="indexes-{{listCurID}}" style="height:calc(100vh - {{CustomBar}}px - 50px)" scroll-with-animation="true" enable-back-to-top="true">
|
||||
<block wx:for="{{list}}" wx:key>
|
||||
<view class='padding indexItem-{{list[index]}}' id="indexes-{{list[index]}}" data-index="{{list[index]}}">{{list[index]}}</view>
|
||||
<view class="cu-list menu menu-avatar no-padding">
|
||||
<view class="padding indexItem-{{list[index]}}" id="indexes-{{list[index]}}" data-index="{{list[index]}}">{{list[index]}}</view>
|
||||
<view class="cu-list menu-avatar no-padding">
|
||||
<view class="cu-item" wx:for="{{2}}" wx:key wx:for-index="sub">
|
||||
<view class="cu-avatar round lg">{{list[index]}}</view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>{{list[index]}}<text class='text-abc'>{{list[sub]}}</text>君</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<view class="content">
|
||||
<view class="text-grey">{{list[index]}}
|
||||
<text class="text-abc">{{list[sub]}}</text>君</view>
|
||||
<view class="text-gray text-sm">
|
||||
有{{sub+2}}个主子需要伺候
|
||||
</view>
|
||||
</view>
|
||||
@@ -30,9 +28,9 @@
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
<view class='indexBar' style='height:calc(100vh - {{CustomBar}}px - 50px)'>
|
||||
<view class='indexBar-box' bindtouchstart="tStart" bindtouchend="tEnd" catchtouchmove="tMove">
|
||||
<view class="indexBar-item " wx:for="{{list}}" wx:key id='{{index}}' bindtouchstart="getCur" bindtouchend="setCur" >{{list[index]}}</view>
|
||||
<view class="indexBar" style="height:calc(100vh - {{CustomBar}}px - 50px)">
|
||||
<view class="indexBar-box" bindtouchstart="tStart" bindtouchend="tEnd" catchtouchmove="tMove">
|
||||
<view class="indexBar-item" wx:for="{{list}}" wx:key id="{{index}}" bindtouchstart="getCur" bindtouchend="setCur">{{list[index]}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<!--选择显示-->
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
page {
|
||||
padding-top: 50px;
|
||||
padding-top: 100rpx;
|
||||
}
|
||||
|
||||
.indexes {
|
||||
@@ -10,36 +10,37 @@ page {
|
||||
position: fixed;
|
||||
right: 0px;
|
||||
bottom: 0px;
|
||||
padding: 10px 10px 10px 30px;
|
||||
padding: 20rpx 20rpx 20rpx 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.indexBar .indexBar-box {
|
||||
width: 20px;
|
||||
width: 40rpx;
|
||||
height: auto;
|
||||
background: #fff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 5px;
|
||||
box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.1);
|
||||
border-radius: 10rpx;
|
||||
}
|
||||
|
||||
.indexBar-item {
|
||||
flex: 1;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
font-size: 24rpx;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
movable-view.indexBar-item {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
z-index: 9;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
movable-view.indexBar-item::before {
|
||||
@@ -47,23 +48,24 @@ movable-view.indexBar-item::before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 5px;
|
||||
height: 10px;
|
||||
width: 2px;
|
||||
top: 10rpx;
|
||||
height: 20rpx;
|
||||
width: 4rpx;
|
||||
background-color: #f37b1d;
|
||||
}
|
||||
.indexToast{
|
||||
|
||||
.indexToast {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
right: 40px;
|
||||
right: 80rpx;
|
||||
bottom: 0;
|
||||
background: rgba(0,0,0,0.5);
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 5px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
margin: auto;
|
||||
color: #fff;
|
||||
line-height: 50px;
|
||||
line-height: 100rpx;
|
||||
text-align: center;
|
||||
font-size: 24px;
|
||||
}
|
||||
font-size: 48rpx;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user