mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-06 21:54:00 +08:00
v2.1.2
This commit is contained in:
@@ -12,7 +12,6 @@
|
||||
....
|
||||
</style>
|
||||
```
|
||||
#### 元素
|
||||
------
|
||||
|
||||
|
||||
@@ -45,7 +44,12 @@ onLaunch: function() {
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
```
|
||||
`pages.json` 配置取消系统导航栏
|
||||
```
|
||||
"globalStyle": {
|
||||
"navigationStyle": "custom"
|
||||
},
|
||||
```
|
||||
`page.vue` 页面可以直接调用了
|
||||
```
|
||||
@@ -74,11 +78,17 @@ onLaunch: function() {
|
||||
------
|
||||
|
||||
## 更新日志
|
||||
|
||||
* 2019年3月28日 v2.1.2
|
||||
* 修复列表组件样式
|
||||
* 优化主样式代码
|
||||
|
||||
* 2019年3月27日 v2.1.1
|
||||
* 新增多种扩展
|
||||
* 优化堆叠轮播图
|
||||
* 优化消息列表
|
||||
* 优化导航栏的封装
|
||||
* 修复卡片评论错位(3月27日16:32:17)
|
||||
|
||||
* 2019年3月25日 v2.1.0
|
||||
* 完成元素,组件移植
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
<view>
|
||||
<view class="cu-custom" :style="[{height:CustomBar + 'px'}]">
|
||||
<view class="cu-bar fixed" :style="style" :class="[bgImage!=''?'none-bg text-white bg-img':'',bgColor]">
|
||||
<view class='action' @tap="BackPage" v-if="isBack">
|
||||
<text class='icon-back'></text>
|
||||
<view class="action" @tap="BackPage" v-if="isBack">
|
||||
<text class="icon-back"></text>
|
||||
<slot name="backText"></slot>
|
||||
</view>
|
||||
<view class="content" :style="[{top:StatusBar + 'px'}]">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
ColorUi for uniApp v2.1.0 | by 文晓港 2019年3月24日18:23:51
|
||||
ColorUi for uniApp v2.1.2 | by 文晓港 2019年3月27日18:23:51
|
||||
仅供学习交流,如作它用所承受的法律责任一概与作者无关
|
||||
使用ColorUi开发扩展与插件时,请注明基于ColorUi开发
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
body {
|
||||
background-color: #f1f1f1;
|
||||
font-size: 28upx;
|
||||
color: 333;
|
||||
color: #333;
|
||||
font-family: Helvetica Neue, Helvetica, sans-serif;
|
||||
/* Color 可以自定义相关配色 */
|
||||
--red: #e54d42;
|
||||
@@ -28,9 +28,9 @@ body {
|
||||
--pink: #e03997;
|
||||
--brown: #a5673f;
|
||||
--grey: #8799a3;
|
||||
--gray: #aaa;
|
||||
--black: #333;
|
||||
--white: #fff;
|
||||
--gray: #aaaaaa;
|
||||
--black: #333333;
|
||||
--white: #ffffff;
|
||||
--gradualRed: linear-gradient(45deg, #f43f3b, #ec008c);
|
||||
--gradualOrange: linear-gradient(45deg, #ff9700, #ed1c24);
|
||||
--gradualGreen: linear-gradient(45deg, #39b54a, #8dc63f);
|
||||
@@ -119,7 +119,7 @@ switch::before {
|
||||
font-family: "cuIcon";
|
||||
content: "\e645";
|
||||
position: absolute;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
top: 0%;
|
||||
left: 0upx;
|
||||
font-size: 26upx;
|
||||
@@ -154,7 +154,7 @@ checkbox::before {
|
||||
font-family: "cuIcon";
|
||||
content: "\e645";
|
||||
position: absolute;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
top: 50%;
|
||||
margin-top: -8px;
|
||||
right: 5px;
|
||||
@@ -261,11 +261,11 @@ radio.radio .uni-radio-input-checked::after {
|
||||
margin: auto;
|
||||
border-radius: 200upx;
|
||||
/* #ifndef MP */
|
||||
border: 7px solid #fff !important;
|
||||
border: 7px solid var(--white) !important;
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef MP */
|
||||
border: 8px solid #fff !important;
|
||||
border: 8px solid var(--white) !important;
|
||||
/* #endif */
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ radio.white[checked] .wx-radio-input,
|
||||
switch.white.checked .uni-switch-input,
|
||||
checkbox.white.checked .uni-checkbox-input,
|
||||
radio.white.checked .uni-radio-input {
|
||||
border-color: #fff !important;
|
||||
border-color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.red[checked] .wx-switch-input.wx-switch-input-checked,
|
||||
@@ -434,7 +434,7 @@ switch.red.checked .uni-switch-input.uni-switch-input-checked,
|
||||
checkbox.red.checked .uni-checkbox-input,
|
||||
radio.red.checked .uni-radio-input {
|
||||
background-color: var(--red) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.orange[checked] .wx-switch-input,
|
||||
@@ -444,7 +444,7 @@ switch.orange.checked .uni-switch-input,
|
||||
checkbox.orange.checked .uni-checkbox-input,
|
||||
radio.orange.checked .uni-radio-input {
|
||||
background-color: var(--orange) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.yellow[checked] .wx-switch-input,
|
||||
@@ -464,7 +464,7 @@ switch.olive.checked .uni-switch-input,
|
||||
checkbox.olive.checked .uni-checkbox-input,
|
||||
radio.olive.checked .uni-radio-input {
|
||||
background-color: var(--olive) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.green[checked] .wx-switch-input,
|
||||
@@ -480,7 +480,7 @@ checkbox.checked .uni-checkbox-input,
|
||||
radio.green.checked .uni-radio-input,
|
||||
radio.checked .uni-radio-input {
|
||||
background-color: var(--green) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.cyan[checked] .wx-switch-input,
|
||||
@@ -490,7 +490,7 @@ switch.cyan.checked .uni-switch-input,
|
||||
checkbox.cyan.checked .uni-checkbox-input,
|
||||
radio.cyan.checked .uni-radio-input {
|
||||
background-color: var(--cyan) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.blue[checked] .wx-switch-input,
|
||||
@@ -500,7 +500,7 @@ switch.blue.checked .uni-switch-input,
|
||||
checkbox.blue.checked .uni-checkbox-input,
|
||||
radio.blue.checked .uni-radio-input {
|
||||
background-color: var(--blue) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.purple[checked] .wx-switch-input,
|
||||
@@ -510,7 +510,7 @@ switch.purple.checked .uni-switch-input,
|
||||
checkbox.purple.checked .uni-checkbox-input,
|
||||
radio.purple.checked .uni-radio-input {
|
||||
background-color: var(--purple) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.mauve[checked] .wx-switch-input,
|
||||
@@ -520,7 +520,7 @@ switch.mauve.checked .uni-switch-input,
|
||||
checkbox.mauve.checked .uni-checkbox-input,
|
||||
radio.mauve.checked .uni-radio-input {
|
||||
background-color: var(--mauve) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.pink[checked] .wx-switch-input,
|
||||
@@ -530,7 +530,7 @@ switch.pink.checked .uni-switch-input,
|
||||
checkbox.pink.checked .uni-checkbox-input,
|
||||
radio.pink.checked .uni-radio-input {
|
||||
background-color: var(--pink) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.brown[checked] .wx-switch-input,
|
||||
@@ -540,7 +540,7 @@ switch.brown.checked .uni-switch-input,
|
||||
checkbox.brown.checked .uni-checkbox-input,
|
||||
radio.brown.checked .uni-radio-input {
|
||||
background-color: var(--brown) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.grey[checked] .wx-switch-input,
|
||||
@@ -550,7 +550,7 @@ switch.grey.checked .uni-switch-input,
|
||||
checkbox.grey.checked .uni-checkbox-input,
|
||||
radio.grey.checked .uni-radio-input {
|
||||
background-color: var(--grey) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.gray[checked] .wx-switch-input,
|
||||
@@ -570,7 +570,7 @@ switch.black.checked .uni-switch-input,
|
||||
checkbox.black.checked .uni-checkbox-input,
|
||||
radio.black.checked .uni-radio-input {
|
||||
background-color: var(--black) !important;
|
||||
color: #fff !important;
|
||||
color: var(--white) !important;
|
||||
}
|
||||
|
||||
switch.white[checked] .wx-switch-input,
|
||||
@@ -579,7 +579,7 @@ radio.white[checked] .wx-radio-input,
|
||||
switch.white.checked .uni-switch-input,
|
||||
checkbox.white.checked .uni-checkbox-input,
|
||||
radio.white.checked .uni-radio-input {
|
||||
background-color: #fff !important;
|
||||
background-color: var(--white) !important;
|
||||
color: #666 !important;
|
||||
}
|
||||
|
||||
@@ -865,7 +865,7 @@ button.icon.lg {
|
||||
|
||||
.cu-btn[disabled] {
|
||||
opacity: 0.6;
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
/* ==================
|
||||
@@ -981,7 +981,7 @@ button.icon.lg {
|
||||
font-size: 20upx;
|
||||
padding: 0upx 10upx;
|
||||
height: 28upx;
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.cu-tag.badge:not([class*="bg-"]) {
|
||||
@@ -1016,7 +1016,7 @@ button.icon.lg {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #ccc;
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
width: 64upx;
|
||||
@@ -1101,7 +1101,7 @@ button.icon.lg {
|
||||
justify-items: flex-end;
|
||||
justify-content: space-around;
|
||||
font-size: 20upx;
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
transition: width 0.6s ease;
|
||||
}
|
||||
|
||||
@@ -1198,7 +1198,7 @@ button.icon.lg {
|
||||
margin: auto;
|
||||
width: 260upx;
|
||||
height: 260upx;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
border-radius: 10upx;
|
||||
box-shadow: 0 0 0upx 2000upx rgba(0, 0, 0, 0.5);
|
||||
display: flex;
|
||||
@@ -1222,7 +1222,7 @@ button.icon.lg {
|
||||
.cu-load.load-modal::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
border-radius: 50%;
|
||||
width: 200upx;
|
||||
height: 200upx;
|
||||
@@ -1339,12 +1339,16 @@ button.icon.lg {
|
||||
align-items: center
|
||||
}
|
||||
|
||||
.cu-list.menu-avatar {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cu-list.menu-avatar>.cu-item {
|
||||
position: relative;
|
||||
display: flex;
|
||||
padding-right: 30upx;
|
||||
padding-right: 10upx;
|
||||
height: 140upx;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
justify-content: flex-end;
|
||||
align-items: center
|
||||
}
|
||||
@@ -1365,6 +1369,10 @@ button.icon.lg {
|
||||
line-height: 1.6em;
|
||||
}
|
||||
|
||||
.cu-list.menu-avatar>.cu-item .content.flex-sub {
|
||||
width: calc(100% - 96upx - 60upx - 20upx);
|
||||
}
|
||||
|
||||
.cu-list.menu-avatar>.cu-item .content>view:first-child {
|
||||
font-size: 30upx;
|
||||
display: flex;
|
||||
@@ -1394,10 +1402,9 @@ button.icon.lg {
|
||||
width: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.cu-list.menu-avatar.comment>.cu-item {
|
||||
padding-top: 30upx;
|
||||
padding-bottom: 30upx;
|
||||
padding-left: 120upx;
|
||||
padding: 30upx 30upx 30upx 120upx;
|
||||
height: auto
|
||||
}
|
||||
|
||||
@@ -1410,7 +1417,7 @@ button.icon.lg {
|
||||
display: flex;
|
||||
padding: 0 30upx;
|
||||
min-height: 100upx;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
justify-content: space-between;
|
||||
align-items: center
|
||||
}
|
||||
@@ -1474,7 +1481,7 @@ button.icon.lg {
|
||||
}
|
||||
|
||||
.cu-list.menu>.cu-item .cu-avatar-group .cu-avatar {
|
||||
border-color: #fff
|
||||
border-color: var(--white)
|
||||
}
|
||||
|
||||
.cu-list.menu>.cu-item .content>view:first-child {
|
||||
@@ -1572,7 +1579,7 @@ button.icon.lg {
|
||||
}
|
||||
|
||||
.cu-list.grid {
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
text-align: center
|
||||
}
|
||||
|
||||
@@ -1801,13 +1808,13 @@ button.icon.lg {
|
||||
|
||||
.cu-bar.tabbar {
|
||||
padding: 0;
|
||||
height: calc(100rpx + env(safe-area-inset-bottom) / 2);
|
||||
height: calc(100upx + env(safe-area-inset-bottom) / 2);
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) / 2);
|
||||
}
|
||||
|
||||
.cu-tabbar-height {
|
||||
min-height: 100rpx;
|
||||
height: calc(100rpx + env(safe-area-inset-bottom) / 2);
|
||||
min-height: 100upx;
|
||||
height: calc(100upx + env(safe-area-inset-bottom) / 2);
|
||||
}
|
||||
|
||||
.cu-bar.tabbar.shadow {
|
||||
@@ -1951,7 +1958,7 @@ button.icon.lg {
|
||||
|
||||
.cu-bar.input {
|
||||
padding-right: 20upx;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
}
|
||||
|
||||
.cu-bar.input input {
|
||||
@@ -1990,6 +1997,11 @@ button.icon.lg {
|
||||
width: calc(100% - 440upx);
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .content image {
|
||||
height: 60upx;
|
||||
width: 240upx;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar {
|
||||
min-height: 0px;
|
||||
/* #ifdef MP */
|
||||
@@ -2018,7 +2030,7 @@ button.icon.lg {
|
||||
transform-origin: 0 0;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
border: 1upx solid #fff;
|
||||
border: 1upx solid var(--white);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
@@ -2036,7 +2048,7 @@ button.icon.lg {
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
opacity: 0.6;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .border-custom text {
|
||||
@@ -2077,7 +2089,7 @@ button.icon.lg {
|
||||
|
||||
.cu-timeline {
|
||||
display: block;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
}
|
||||
|
||||
.cu-timeline .cu-time {
|
||||
@@ -2118,7 +2130,7 @@ button.icon.lg {
|
||||
position: absolute;
|
||||
top: 36upx;
|
||||
z-index: 9;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
width: 50upx;
|
||||
height: 50upx;
|
||||
text-align: center;
|
||||
@@ -2132,7 +2144,7 @@ button.icon.lg {
|
||||
}
|
||||
|
||||
.cu-timeline>.cu-item[class*="icon"]::before {
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
width: 50upx;
|
||||
height: 50upx;
|
||||
text-align: center;
|
||||
@@ -2202,7 +2214,7 @@ button.icon.lg {
|
||||
}
|
||||
|
||||
.cu-chat .cu-item>.main .content:not([class*="bg-"]) {
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
color: #666;
|
||||
}
|
||||
|
||||
@@ -2280,7 +2292,7 @@ button.icon.lg {
|
||||
padding: 8upx 12upx;
|
||||
background-color: rgba(0, 0, 0, 0.2);
|
||||
border-radius: 6upx;
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
max-width: 400upx;
|
||||
line-height: 1.4;
|
||||
}
|
||||
@@ -2296,7 +2308,7 @@ button.icon.lg {
|
||||
|
||||
.cu-card>.cu-item {
|
||||
display: block;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
overflow: hidden;
|
||||
border-radius: 10upx;
|
||||
margin: 30upx;
|
||||
@@ -2349,7 +2361,7 @@ button.icon.lg {
|
||||
|
||||
.cu-card.dynamic>.cu-item {
|
||||
display: block;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -2427,7 +2439,7 @@ button.icon.lg {
|
||||
==================== */
|
||||
|
||||
.cu-form-group {
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
padding: 1upx 30upx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -2639,7 +2651,7 @@ button.icon.lg {
|
||||
|
||||
swiper.square-dot .wx-swiper-dot,
|
||||
swiper.square-dot .uni-swiper-dot {
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
opacity: 0.4;
|
||||
width: 10upx;
|
||||
height: 10upx;
|
||||
@@ -2673,7 +2685,7 @@ swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active::after {
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
border-radius: 20upx;
|
||||
}
|
||||
|
||||
@@ -2873,19 +2885,19 @@ scroll-view.cu-steps .cu-item {
|
||||
|
||||
.cu-steps .cu-item[class*="text-"] .num::before {
|
||||
transform: translateY(-40upx);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.cu-steps .cu-item .num::after {
|
||||
transform: translateY(40upx);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
transition: all 0.3s ease-in-out 0s;
|
||||
}
|
||||
|
||||
.cu-steps .cu-item[class*="text-"] .num::after {
|
||||
content: "\e645";
|
||||
font-family: 'cuIcon';
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
transform: translateY(0upx);
|
||||
}
|
||||
|
||||
@@ -3015,7 +3027,7 @@ scroll-view.cu-steps .cu-item {
|
||||
right: 0;
|
||||
top: 0;
|
||||
border-bottom-left-radius: 6upx;
|
||||
padding: 6rpx 12rpx;
|
||||
padding: 6upx 12upx;
|
||||
height: auto;
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
@@ -3511,17 +3523,17 @@ scroll-view.cu-steps .cu-item {
|
||||
|
||||
.line-white::after,
|
||||
.lines-white::after {
|
||||
border-color: #fff;
|
||||
border-color: var(--white);
|
||||
}
|
||||
|
||||
.bg-red {
|
||||
background-color: var(--red);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-orange {
|
||||
background-color: var(--orange);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-yellow {
|
||||
@@ -3531,47 +3543,47 @@ scroll-view.cu-steps .cu-item {
|
||||
|
||||
.bg-olive {
|
||||
background-color: var(--olive);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-green {
|
||||
background-color: var(--green);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-cyan {
|
||||
background-color: var(--cyan);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-blue {
|
||||
background-color: var(--blue);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-purple {
|
||||
background-color: var(--purple);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-mauve {
|
||||
background-color: var(--mauve);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-pink {
|
||||
background-color: var(--pink);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-brown {
|
||||
background-color: var(--brown);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-grey {
|
||||
background-color: var(--grey);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-gray {
|
||||
@@ -3581,22 +3593,22 @@ scroll-view.cu-steps .cu-item {
|
||||
|
||||
.bg-black {
|
||||
background-color: var(--black);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-white {
|
||||
background-color: #fff;
|
||||
background-color: var(--white);
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.bg-shadeTop {
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-shadeBottom {
|
||||
background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-red.light {
|
||||
@@ -3671,32 +3683,32 @@ scroll-view.cu-steps .cu-item {
|
||||
|
||||
.bg-gradual-red {
|
||||
background-image: var(--gradualRed);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-gradual-orange {
|
||||
background-image: var(--gradualOrange);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-gradual-green {
|
||||
background-image: var(--gradualGreen);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-gradual-purple {
|
||||
background-image: var(--gradualPurple);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-gradual-pink {
|
||||
background-image: var(--gradualPink);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.bg-gradual-blue {
|
||||
background-image: var(--gradualBlue);
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.shadow[class*="-red"] {
|
||||
@@ -3969,9 +3981,9 @@ scroll-view.cu-steps .cu-item {
|
||||
.text-white,
|
||||
.line-white,
|
||||
.lines-white {
|
||||
color: #fff;
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.text-shadow {
|
||||
text-shadow: 2rpx 4rpx 6rpx rgba(0, 0, 0, 0.4);
|
||||
text-shadow: 2upx 4upx 6upx rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<view>
|
||||
<cu-custom bgColor="bg-gradual-blue" :isBack="true"><block slot="backText">返回</block><block slot="content">背景</block></cu-custom>
|
||||
<cu-custom bgColor="bg-gradual-blue" :isBack="true">
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">背景</block>
|
||||
</cu-custom>
|
||||
<view class="cu-bar bg-white solid-bottom">
|
||||
<view class="action">
|
||||
<text class='icon-title text-blue'></text>深色背景
|
||||
@@ -75,7 +78,7 @@
|
||||
<text class="icon-title text-blue"></text>图片背景
|
||||
</view>
|
||||
</view>
|
||||
<view class="bg-img bg-mask flex align-center" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg');height: 414rpx;">
|
||||
<view class="bg-img bg-mask flex align-center" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg');height: 414upx;">
|
||||
<view class="padding-xl text-white">
|
||||
<view class="padding-xs text-xxl text-bold">
|
||||
钢铁之翼
|
||||
@@ -91,7 +94,7 @@
|
||||
<text class="icon-title text-blue"></text>视频背景
|
||||
</view>
|
||||
</view>
|
||||
<view class="bg-video bg-mask flex align-center" style="height: 422rpx;">
|
||||
<view class="bg-video bg-mask flex align-center" style="height: 422upx;">
|
||||
<video src="https://yz.lol.qq.com/v1/assets/videos/aatrox-splashvideo.webm" autoplay loop muted :show-play-btn="false"
|
||||
:controls="false" objectFit="cover"></video>
|
||||
<cover-view class="padding-xl text-white ">
|
||||
@@ -110,12 +113,12 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="grid col-2">
|
||||
<view class="bg-img padding-bottom-xl" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10007.jpg');height: 207rpx;">
|
||||
<view class="bg-img padding-bottom-xl" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10007.jpg');height: 207upx;">
|
||||
<view class="bg-shadeTop padding padding-bottom-xl">
|
||||
上面开始
|
||||
</view>
|
||||
</view>
|
||||
<view class="bg-img padding-top-xl flex align-end" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg');height: 207rpx;">
|
||||
<view class="bg-img padding-top-xl flex align-end" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg');height: 207upx;">
|
||||
<view class="bg-shadeBottom padding padding-top-xl flex-sub">
|
||||
下面开始
|
||||
</view>
|
||||
|
||||
@@ -439,10 +439,10 @@
|
||||
|
||||
<style>
|
||||
.box {
|
||||
margin: 20rpx 0;
|
||||
margin: 20upx 0;
|
||||
}
|
||||
|
||||
.box view.cu-bar {
|
||||
margin-top: 20rpx;
|
||||
margin-top: 20upx;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<view class="cu-tag bg-blue">史诗</view>
|
||||
<view class="cu-bar bg-shadeBottom"> <text class="text-cut">我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。</text></view>
|
||||
</view>
|
||||
<view class="cu-list menu menu-avatar">
|
||||
<view class="cu-list menu-avatar">
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg);"></view>
|
||||
<view class="content flex-sub">
|
||||
@@ -45,7 +45,7 @@
|
||||
</view>
|
||||
<view class="cu-card dynamic" :class="isCard?'no-card':''">
|
||||
<view class="cu-item shadow">
|
||||
<view class="cu-list menu menu-avatar">
|
||||
<view class="cu-list menu-avatar">
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg);"></view>
|
||||
<view class="content flex-sub">
|
||||
|
||||
@@ -98,7 +98,6 @@
|
||||
methods: {
|
||||
InputFocus(e) {
|
||||
this.InputBottom = e.detail.height
|
||||
|
||||
},
|
||||
InputBlur(e) {
|
||||
this.InputBottom = 0
|
||||
|
||||
@@ -36,8 +36,6 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="cu-form-group margin-top">
|
||||
<view class="title">普通选择</view>
|
||||
<picker @change="PickerChange" :value="index" :range="picker">
|
||||
@@ -80,7 +78,6 @@
|
||||
</picker>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
||||
<view class="cu-form-group margin-top">
|
||||
<view class="title">开关选择</view>
|
||||
<switch @change="SwitchA" :class="switchA?'checked':''" :checked="switchA?true:false"></switch>
|
||||
@@ -129,7 +126,6 @@
|
||||
value="C"></checkbox>
|
||||
</view>
|
||||
</checkbox-group>
|
||||
|
||||
<view class="cu-bar bg-white margin-top">
|
||||
<view class="action">
|
||||
图片上传
|
||||
@@ -153,13 +149,12 @@
|
||||
</view>
|
||||
<!-- !!!!! placeholder 在ios表现有偏移 建议使用 第一种样式 -->
|
||||
<view class="cu-form-group margin-top">
|
||||
<textarea data-placeholder="多行文本输入框" maxlength="-1" :disabled="modalName!=null" placeholder-class='placeholder'
|
||||
<textarea data-placeholder="多行文本输入框" maxlength="-1" :disabled="modalName!=null" placeholder-class="placeholder"
|
||||
:class="textareaAValue?'value':''" @input="textareaAInput"></textarea>
|
||||
</view>
|
||||
|
||||
<view class="cu-form-group top">
|
||||
<view class="title">点文本框</view>
|
||||
<textarea data-placeholder="多行文本输入框" maxlength="-1" :disabled="modalName!=null" placeholder-class='placeholder'
|
||||
<textarea data-placeholder="多行文本输入框" maxlength="-1" :disabled="modalName!=null" placeholder-class="placeholder"
|
||||
:class="textareaBValue?'value':''" @input="textareaBInput"></textarea>
|
||||
</view>
|
||||
</form>
|
||||
@@ -364,7 +359,6 @@
|
||||
});
|
||||
},
|
||||
ViewImage(e) {
|
||||
console.log(e)
|
||||
uni.previewImage({
|
||||
urls: this.imgList,
|
||||
current: e.currentTarget.dataset.url
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<view>
|
||||
<scroll-view :scroll-y="modalName==null" class="page" :class="modalName!=null?'show':''">
|
||||
<cu-custom bgColor="bg-gradual-pink" :isBack="true">
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">列表</block>
|
||||
@@ -181,7 +182,8 @@
|
||||
<view class="text-grey">凯尔</view>
|
||||
<view class="text-gray text-sm flex">
|
||||
<text class="text-cut">
|
||||
<text class="icon-infofill text-red margin-right-xs"></text> 我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。
|
||||
<text class="icon-infofill text-red margin-right-xs"></text>
|
||||
我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。
|
||||
</text> </view>
|
||||
</view>
|
||||
<view class="action">
|
||||
@@ -251,14 +253,12 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class="cu-bar bg-white solid-bottom margin-top">
|
||||
<view class="action">
|
||||
<text class="icon-title text-orange "></text> 列表左滑
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-list menu menu-avatar">
|
||||
<view class="cu-list menu-avatar">
|
||||
<view class="cu-item" :class="modalName=='move-box-'+ index?'move-cur':''" v-for="(item,index) in 4" :key="index"
|
||||
@touchstart="ListTouchStart" @touchmove="ListTouchMove" @touchend="ListTouchEnd" :data-target="'move-box-' + index">
|
||||
<view class="cu-avatar round lg" :style="[{backgroundImage:'url(https://ossweb-img.qq.com/images/lol/web201310/skin/big2100'+ (index+2) +'.jpg)'}]"></view>
|
||||
@@ -277,6 +277,8 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -397,7 +399,12 @@
|
||||
|
||||
<style>
|
||||
.page {
|
||||
background: #f1f1f1;
|
||||
height: 100Vh;
|
||||
width: 100vw;
|
||||
}
|
||||
|
||||
.page.show {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.switch-sex::after {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<view>
|
||||
<cu-custom bgColor="bg-gradual-pink" :isBack="true"><block slot="backText">返回</block><block slot="content">模态窗口</block></cu-custom>
|
||||
<cu-custom bgColor="bg-gradual-pink" :isBack="true">
|
||||
<block slot="backText">返回</block>
|
||||
<block slot="content">模态窗口</block>
|
||||
</cu-custom>
|
||||
<view class="cu-bar bg-white margin-top">
|
||||
<view class="action">
|
||||
<text class="icon-title text-orange "></text> 普通窗口
|
||||
@@ -254,9 +257,9 @@
|
||||
this.radio = e.detail.value
|
||||
},
|
||||
ChooseCheckbox(e) {
|
||||
var items = this.checkbox,
|
||||
values = e.currentTarget.dataset.value;
|
||||
for (var i = 0, lenI = items.length; i < lenI; ++i) {
|
||||
let items = this.checkbox;
|
||||
let values = e.currentTarget.dataset.value;
|
||||
for (let i = 0, lenI = items.length; i < lenI; ++i) {
|
||||
if (items[i].value == values) {
|
||||
items[i].checked = !items[i].checked;
|
||||
break
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
</view>
|
||||
<view class="cu-item text-blue">
|
||||
<view class="bg-blue shadow-blur content">
|
||||
<view class="cu-list menu menu-avatar radius">
|
||||
<view class="cu-list menu-avatar radius">
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg);"></view>
|
||||
<view class="content">
|
||||
|
||||
@@ -47,30 +47,30 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin radius bg-gradual-green shadow-blur">
|
||||
<image src="https://image.weilanwl.com/gif/wave.gif" mode="scaleToFill" class="gif-black response" style="height:100rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/wave.gif" mode="scaleToFill" class="gif-black response" style="height:100upx"></image>
|
||||
</view>
|
||||
<view class="margin flex">
|
||||
<view class="bg-black flex-sub margin-right radius shadow-lg">
|
||||
<image src="https://image.weilanwl.com/gif/loading-black.gif" mode="aspectFit" class="gif-black response" style="height:240rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/loading-black.gif" mode="aspectFit" class="gif-black response" style="height:240upx"></image>
|
||||
</view>
|
||||
<view class="bg-white flex-sub radius shadow-lg">
|
||||
<image src="https://image.weilanwl.com/gif/loading-white.gif" mode="aspectFit" class="gif-white response" style="height:240rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/loading-white.gif" mode="aspectFit" class="gif-white response" style="height:240upx"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin flex">
|
||||
<view class="bg-gradual-blue flex-sub margin-right radius shadow-lg">
|
||||
<image src="https://image.weilanwl.com/gif/rhomb-black.gif" mode="aspectFit" class="gif-black response" style="height:240rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/rhomb-black.gif" mode="aspectFit" class="gif-black response" style="height:240upx"></image>
|
||||
</view>
|
||||
<view class="bg-white flex-sub radius shadow-lg">
|
||||
<image src="https://image.weilanwl.com/gif/rhomb-white.gif" mode="aspectFit" class="gif-white response" style="height:240rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/rhomb-white.gif" mode="aspectFit" class="gif-white response" style="height:240upx"></image>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin flex">
|
||||
<view class="bg-white flex-sub margin-right radius shadow-lg">
|
||||
<image src="https://image.weilanwl.com/gif/loading-1.gif" mode="aspectFit" class="gif-white response" style="height:240rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/loading-1.gif" mode="aspectFit" class="gif-white response" style="height:240upx"></image>
|
||||
</view>
|
||||
<view class="bg-black flex-sub radius shadow-lg">
|
||||
<image src="https://image.weilanwl.com/gif/loading-2.gif" mode="aspectFit" class="gif-black response" style="height:240rpx"></image>
|
||||
<image src="https://image.weilanwl.com/gif/loading-2.gif" mode="aspectFit" class="gif-black response" style="height:240upx"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -65,17 +65,17 @@
|
||||
<style>
|
||||
page {
|
||||
background-image: var(--gradualBlue);
|
||||
width: 750upx;
|
||||
width: 100vw;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.DrawerPage {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
left: 0vw;
|
||||
background-color: #f1f1f1;
|
||||
transition: all 0.6s;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.DrawerPage.show {
|
||||
@@ -94,7 +94,7 @@
|
||||
transform: scale(0.9, 0.9) translateX(-100%);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: all 0.6s;
|
||||
transition: all 0.4s;
|
||||
padding: 100upx 0;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
font-size: 50upx;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
transition: all 0.6s;
|
||||
transition: all 0.4s;
|
||||
}
|
||||
|
||||
.DrawerClose.show {
|
||||
|
||||
@@ -63,11 +63,6 @@
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
.cu-bar .content image {
|
||||
height: 60upx;
|
||||
width: 240upx;
|
||||
}
|
||||
|
||||
.cardTitle {
|
||||
color: #fff;
|
||||
padding: 90upx 60upx;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<block v-for="(item,index) in list" :key="index">
|
||||
<view :class="'indexItem-' + item.name" :id="'indexes-' + item.name" :data-index="item.name">
|
||||
<view class="padding">{{item.name}}</view>
|
||||
<view class="cu-list menu menu-avatar no-padding">
|
||||
<view class="cu-list menu-avatar no-padding">
|
||||
<view class="cu-item" v-for="(items,sub) in 2" :key="sub">
|
||||
<view class="cu-avatar round lg">{{item.name}}</view>
|
||||
<view class="content">
|
||||
@@ -147,7 +147,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 0 0 20upx rgba(0, 0, 0, 0.1);
|
||||
border-radius: 5px;
|
||||
border-radius: 10upx;
|
||||
}
|
||||
|
||||
.indexBar-item {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
Tab-{{item.name}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="VerticalMain" scroll-y scroll-with-animation style="height:calc(100vh - 375rpx)"
|
||||
<scroll-view class="VerticalMain" scroll-y scroll-with-animation style="height:calc(100vh - 375upx)"
|
||||
:scroll-into-view="'main-'+mainCur" @scroll="VerticalMain">
|
||||
<view class="padding-top padding-lr" v-for="(item,index) in list" :key="index" :id="'main-'+index">
|
||||
<view class="cu-bar solid-bottom bg-white">
|
||||
|
||||
Reference in New Issue
Block a user