连云港陪玩陪聊
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.
chunwan/pages/users/dashan/index.vue

77 lines
1.4 KiB

3 months ago
<template>
<view class="qingshaonian">
<view class="title">设置搭讪语后无需选择直接发送</view>
<view class="bd">
<view class="item" v-for="i in 10" :key="i" @click="tabItem(i)">
<view class="txt">哈喽很高兴认识你一起嗨皮吧~</view>
<view class="btn" :class="tabIndex == i?'btn-on':''">{{tabIndex == i?'默认':'设为默认'}}</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tabIndex: 1,
}
},
methods: {
tabItem(i){
this.tabIndex = i;
}
}
}
</script>
<style scoped lang="scss">
.qingshaonian{
padding: 0 25rpx;
overflow: hidden;
.title{
font-weight: 500;
font-size: 30rpx;
color: #222222;
margin-top: 30rpx;
}
.bd{
.item{
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
width: 100%;
font-weight: 500;
font-size: 26rpx;
color: #222222;
border-radius: 20rpx;
padding: 30rpx 20rpx;
background: #FFFFFF;
margin-top: 20rpx;
.txt{
max-width: 500rpx;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.btn{
width: 130rpx;
line-height: 50rpx;
text-align: center;
border-radius: 50rpx;
font-weight: 500;
font-size: 26rpx;
&-on{
font-size: 24rpx;
color: #FFFFFF;
background: linear-gradient(0deg, #000000, #3D3B38);
}
}
}
}
}
</style>