[更新]
This commit is contained in:
399
pages/switchcity/switchcity.wxss
Normal file
399
pages/switchcity/switchcity.wxss
Normal file
@@ -0,0 +1,399 @@
|
||||
page {
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.hotcity-top {
|
||||
border-bottom: 20rpx #f5f5f5 solid;
|
||||
}
|
||||
|
||||
.searchLetter {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
width: 50rpx;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #666;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.searchLetter view {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.touchClass {
|
||||
background-color: #fff;
|
||||
color: #fff;
|
||||
padding-top: 46rpx;
|
||||
}
|
||||
|
||||
.showSlectedLetter {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -100rpx;
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 52rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.selection {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.selection.active .item_city {
|
||||
color: #e83339;
|
||||
}
|
||||
|
||||
.item_letter {
|
||||
display: flex;
|
||||
background-color: #f5f5f5;
|
||||
height: 60rpx;
|
||||
padding-left: 34rpx;
|
||||
align-items: center;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.item_city {
|
||||
position: relative;
|
||||
display: flex;
|
||||
height: 100rpx;
|
||||
padding-left: 34rpx;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #eaeaea;
|
||||
font-size: 26rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.checkImg {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
position: absolute;
|
||||
right: 20rpx;
|
||||
top: 38rpx;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.checkImg.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.thisCityName {
|
||||
display: inline-block;
|
||||
border: 1rpx solid #1c74c6;
|
||||
border-radius: 8rpx;
|
||||
padding: 10rpx;
|
||||
font-size: 24rpx;
|
||||
color: #1c74c6;
|
||||
text-align: center;
|
||||
min-width: 149.5rpx;
|
||||
margin: 20rpx 0 20rpx 30rpx;
|
||||
}
|
||||
|
||||
.thishotText {
|
||||
color: #1c74c6;
|
||||
font-size: 20rpx;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.slectCity {
|
||||
border-color: #1c74c6 !important;
|
||||
}
|
||||
|
||||
.slectCity view {
|
||||
color: #1c74c6 !important;
|
||||
}
|
||||
|
||||
.weui-grid {
|
||||
position: relative;
|
||||
float: left;
|
||||
padding: 10rpx 0;
|
||||
width: 149.5rpx;
|
||||
box-sizing: border-box;
|
||||
border: 1rpx solid #ececec;
|
||||
border-radius: 8rpx;
|
||||
margin: 10rpx 12rpx;
|
||||
}
|
||||
|
||||
.weui-grid__label {
|
||||
display: block;
|
||||
text-align: center;
|
||||
color: #333;
|
||||
font-size: 24rpx;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
|
||||
/* 热门城市 */
|
||||
|
||||
.searchLetter {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
width: 50rpx;
|
||||
text-align: center;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
color: #666;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.searchLetter view {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.touchClass {
|
||||
background-color: #fff;
|
||||
color: #fff;
|
||||
padding-top: 46rpx;
|
||||
}
|
||||
|
||||
.showSlectedLetter {
|
||||
background-color: rgba(0, 0, 0, 0.5);
|
||||
color: #fff;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin: -100rpx;
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
border-radius: 20rpx;
|
||||
font-size: 52rpx;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 公共标题 */
|
||||
.hotcity {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 1000;
|
||||
background-color: #fff;
|
||||
font-size: 28rpx;
|
||||
height: 90rpx;
|
||||
}
|
||||
|
||||
.hotcity-location {
|
||||
color: #999;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
line-height: 54rpx;
|
||||
}
|
||||
|
||||
.hotcity-location text {
|
||||
color: #1c74c6;
|
||||
display: inline-block;
|
||||
padding: 0 10rpx;
|
||||
font-size: 26rpx;
|
||||
height: 54rpx;
|
||||
line-height: 54rpx;
|
||||
border-radius: 6rpx;
|
||||
margin-left: 10rpx;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.hotcity-location image {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
margin: 10rpx 10rpx 0 0;
|
||||
}
|
||||
|
||||
.hotcity-choice {
|
||||
padding: 10px 10px 0 10px;
|
||||
box-sizing: border-box;
|
||||
color: #1c74c6;
|
||||
border-top: 1rpx solid #ededed;
|
||||
}
|
||||
|
||||
|
||||
/* 区域选择 */
|
||||
.region {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
left: 0;
|
||||
top: 178rpx;
|
||||
width: 100%;
|
||||
height: calc(100% - 178rpx);
|
||||
padding-left: 280rpx;
|
||||
box-sizing: border-box;
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.region.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.region .item_city {
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
|
||||
.city-name {
|
||||
background: #f5f5f5;
|
||||
line-height: 60rpx;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.region .item_city {
|
||||
padding: 0 0 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
font-weight: normal;
|
||||
font-size: 24rpx;
|
||||
height: 102rpx;
|
||||
}
|
||||
|
||||
/* 开启定位 */
|
||||
.location-btn[size="mini"] {
|
||||
background-color: #ee8e44;
|
||||
color: #fff;
|
||||
font-size: 24rpx;
|
||||
line-height: 54rpx;
|
||||
margin: 0 0 0 20rpx;
|
||||
}
|
||||
|
||||
/* 搜索框 */
|
||||
.weui-search-bar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
padding: 0 10px;
|
||||
display: -webkit-box;
|
||||
display: -webkit-flex;
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
background-color: #f5f5f5;
|
||||
border-top: 1rpx solid #f1f1f1;
|
||||
border-bottom: 1rpx solid #f1f1f1;
|
||||
}
|
||||
|
||||
.weui-icon-search_in-box {
|
||||
position: absolute;
|
||||
left: 10px;
|
||||
top: 6px;
|
||||
}
|
||||
|
||||
.weui-search-bar__form {
|
||||
-webkit-box-flex: 1;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
margin-top: 7px;
|
||||
-webkit-flex: auto;
|
||||
flex: auto;
|
||||
border-radius: 5px;
|
||||
background: #FFFFFF;
|
||||
border: 1rpx solid #f1f1f1;
|
||||
}
|
||||
|
||||
.weui-search-bar__box {
|
||||
position: relative;
|
||||
padding-left: 30px;
|
||||
padding-right: 30px;
|
||||
height: 32px;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.weui-search-bar__input {
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
font-size: 14px;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
|
||||
.weui-search-bar__cancel-btn {
|
||||
margin-left: 10px;
|
||||
line-height: 50px;
|
||||
color: #09BB07;
|
||||
white-space: nowrap;
|
||||
font-size: 30rpx;
|
||||
}
|
||||
|
||||
|
||||
.scrollLeft {
|
||||
position: fixed;
|
||||
top: 178rpx;
|
||||
height: calc(100% - 178rpx);
|
||||
left: 0;
|
||||
width: 260rpx;
|
||||
z-index: 1001;
|
||||
border-right: 1rpx solid #f1f1f1;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
|
||||
.newLetter {
|
||||
position: fixed;
|
||||
top: 90rpx;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 90rpx;
|
||||
line-height: 90rpx;
|
||||
background-color: #fff;
|
||||
z-index: 1001;
|
||||
font-size: 28rpx;
|
||||
padding: 0 20rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.newLetter::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
.newLetter::after {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
background: #f1f1f1;
|
||||
}
|
||||
|
||||
.newLetter text {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin-right: 20rpx;
|
||||
padding: 0 10rpx;
|
||||
}
|
||||
|
||||
.newLetter text.active {
|
||||
color: #e83339;
|
||||
}
|
||||
|
||||
.newLetter text.active::before {
|
||||
position: absolute;
|
||||
content: '';
|
||||
left: 0;
|
||||
bottom: -2rpx;
|
||||
width: 100%;
|
||||
height: 4rpx;
|
||||
background: #e83339;
|
||||
}
|
||||
Reference in New Issue
Block a user