H5端齐采药项目,uniapp框架
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.
 
 
 
 
 

178 lines
3.6 KiB

<template>
<u-popup :show="show" @close="show=false" bgColor="#fff" mode="top">
<view class="selectPopup">
<div class="list">
<div class="list-time">时间</div>
<div class="list-ipt" @click="show1=true">
<div class="list-tui">
<div class="input"><input style="padding:16rpx 24rpx ;" type="text" placeholder="退款时间" :value="value"></div>
<div class="flex-div df aic jcf"><u-icon name="arrow-down"></u-icon></div>
</div>
</div>
<div class="Split-line"></div>
<div class="departure">备注留言</div>
<u-row style="flex-wrap: wrap;" gutter="16">
<u-col span="4" v-for="(item,index) in list" :key="index">
<div class="item" :class="[index==current?'current':'']" @click="current=index">
{{item.name}}
</div>
</u-col>
</u-row>
</div>
<div class="btns">
<div class="btn1" @click="show=false">取消</div>
<div class="btn2" @click="btn()">确定</div>
</div>
<u-datetime-picker :show="show1" v-model="value1" mode="date" @confirm="confirm" @cancel="cancel"></u-datetime-picker>
</view>
</u-popup>
</template>
<script>
export default {
data() {
return {
show1: false,
value1: Number(new Date()),
value:'',
current: 0,
show: false,
list: [{
name: "有备注",
URL:'../BusinessDailyDetails/BusinessDailyDetails'
},
{
name: "有留言",
URL:'../monthlymagazine/monthlymagazine'
},
{
name: "无备注无留言",
URL:'../monthlymagazine/monthlymagazine'
}
]
};
},
methods: {
btn(){
this.show=false
uni.navigateTo({
// url:this.list[this.current.URL]
url:this.list[this.current].URL
})
},
start() {
this.show = true
},
confirm(){
this.show1=false
},
cancel(){
this.show1=false
}
}
}
</script>
<style lang="scss">
.selectPopup {
.Split-line{
width: 686rpx;
height: 1rpx;
background: #E8E8E8;
border-radius: 2rpx;
margin-top: 108rpx;
}
.departure{
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #222222;
line-height: 44rpx;
margin: 32rpx 0;
}
.list-time{
font-size: 28rpx;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #222222;
line-height: 44rpx;
margin-top: 8rpx;
}
.list-ipt{
.list-tui{
width: 686rpx;
height: 72rpx;
background: #F6F6F6;
border-radius: 12rpx;
position: absolute;
.input{
width: 686rpx;
height: 72rpx;
background: #F6F6F6;
border-radius: 12rpx;
}
.flex-div{
position: relative;
right: 24rpx;
top: -52rpx;
}
}
}
.btns {
display: flex;
align-items: center;
.btn1 {
text-align: center;
line-height: 88rpx;
min-width: 216rpx;
height: 88rpx;
background: #F6F6F6;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #585858;
}
.btn2 {
text-align: center;
line-height: 88rpx;
width: 100%;
height: 88rpx;
background: #21BBF3;
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #fff;
}
}
.list {
padding: 32rpx;
}
.current {
background: rgba(33, 187, 243, 0.08) !important;
color: #21BBF3 !important;
}
.item {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #585858;
text-align: center;
line-height: 60rpx;
height: 60rpx;
background: #F6F6F6;
border-radius: 12rpx;
margin-bottom: 40rpx;
}
}
</style>