You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
164 lines
3.3 KiB
164 lines
3.3 KiB
<template>
|
|
<view class="apply">
|
|
<view class="apply-hd">
|
|
<view class="a">接单状态</view>
|
|
<view class="b">
|
|
<view class="item" :class="tabIndex == 1?'item-on':''" @click="tabItem(1)">
|
|
<image class="img1" src="@/static/icon-check.png"></image>
|
|
<image class="img2" src="@/static/icon-check-on.png"></image>接单中
|
|
</view>
|
|
<view class="item" :class="tabIndex == 2?'item-on':''" @click="tabItem(2)">
|
|
<image class="img1" src="@/static/icon-check.png"></image>
|
|
<image class="img2" src="@/static/icon-check-on.png"></image>忙碌中
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="apply-bd">
|
|
<view class="title">服务内容</view>
|
|
<view class="list">
|
|
<view class="item" :class="clickIndex == idx?'item-active':(idx <= 3?'item-on':'')" v-for="idx in 9" :key="idx">
|
|
<view class="name">K歌</view>
|
|
<view class="price">158.00起</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="apply-fd">
|
|
<!-- <view class="btn">成为陪玩师</view> -->
|
|
<view class="btn">保存</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
tabIndex: 1,
|
|
clickIndex: 1
|
|
};
|
|
},
|
|
methods: {
|
|
tabItem(index) {
|
|
this.tabIndex = index
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.apply{
|
|
padding: 0 25rpx;
|
|
overflow: hidden;
|
|
&-fd{
|
|
width: 100%;
|
|
position: fixed;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 21;
|
|
padding: 30rpx 25rpx;
|
|
box-sizing: border-box;
|
|
.btn{
|
|
width: 100%;
|
|
height: 98rpx;
|
|
background: linear-gradient(0deg, #000000, #3D3B38);
|
|
box-shadow: 0px 4rpx 18rpx 0px rgba(42,41,39,0.34);
|
|
border-radius: 98rpx;
|
|
font-weight: 400;
|
|
font-size: 30rpx;
|
|
color: #FFFFFF;
|
|
text-align: center;
|
|
line-height: 98rpx;
|
|
}
|
|
}
|
|
&-bd{
|
|
margin-top: 20rpx;
|
|
.list{
|
|
width: 110%;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
margin-top: 20rpx;
|
|
.item{
|
|
width: 240rpx;
|
|
height: 140rpx;
|
|
background: url(@/static/icon-xianxia.png) center top no-repeat;
|
|
background-size: contain;
|
|
float: left;
|
|
text-align: left;
|
|
padding: 30rpx;
|
|
box-sizing: border-box;
|
|
border: 1px solid #F3F4F5;
|
|
&-on{
|
|
background: url(@/static/icon-xianshang.png) center top no-repeat;
|
|
background-size: contain;
|
|
}
|
|
&-active{
|
|
border: 1px solid #000;
|
|
}
|
|
.name{
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #222222;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
.price{
|
|
font-weight: 500;
|
|
font-size: 24rpx;
|
|
color: #E70C0C;
|
|
margin-top: 10rpx;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&-hd{
|
|
height: 110rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx;
|
|
padding: 0 40rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
margin: 0 auto;
|
|
margin-top: 20rpx;
|
|
.a{
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #999999;
|
|
}
|
|
.b{
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
.item{
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
font-weight: 500;
|
|
font-size: 30rpx;
|
|
color: #222222;
|
|
justify-content: center;
|
|
image{
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
margin-right: 20rpx;
|
|
}
|
|
.img1{
|
|
display: block;
|
|
}
|
|
.img2{
|
|
display: none;
|
|
}
|
|
&-on{
|
|
.img2{
|
|
display: block;
|
|
}
|
|
.img1{
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|
|
|