Commit aa643772 authored by 李俊赕's avatar 李俊赕

过程反馈静态页面

parent 4b2490e8
<!-- 预约时间 --> <!-- 预约时间 -->
<template> <template>
<view :class="{'con-box':titleShow}">
<view class="title" v-if="titleShow">{{'预约时间'}}</view>
<view class="u-m-t-40">
<view class="appoint-box"> <view class="appoint-box">
<view class="select-date"> <view class="select-date">
<view class="u-flex u-row-between "> <view class="u-flex u-row-between ">
...@@ -7,8 +10,8 @@ ...@@ -7,8 +10,8 @@
<view class="txt active">2021.04.21</view> <view class="txt active">2021.04.21</view>
</view> </view>
<view class="u-p-t-30 u-flex u-row-between date-list"> <view class="u-p-t-30 u-flex u-row-between date-list">
<view :class="{'date-item':true,'active':index===currentDay}" @click="dateChange(item,index,dateList)" v-for="(item,index) in dateList" <view :class="{'date-item':true,'active':index===currentDay}"
:key="index"> @click="dateChange(item,index,dateList)" v-for="(item,index) in dateList" :key="index">
<text class="day week">{{item.weekDay}}</text> <text class="day week">{{item.weekDay}}</text>
<text class="day">{{item.day}}</text> <text class="day">{{item.day}}</text>
</view> </view>
...@@ -21,7 +24,8 @@ ...@@ -21,7 +24,8 @@
<view class="txt active">14:00-16:00</view> <view class="txt active">14:00-16:00</view>
</view> </view>
<view class="u-p-t-30 u-flex u-flex-wrap time-list"> <view class="u-p-t-30 u-flex u-flex-wrap time-list">
<view @click="timeChange(item,index,timeList)" :class="{'time-item':true,'active':index===currentTime}" v-for="(item,index) in timeList" <view @click="timeChange(item,index,timeList)"
:class="{'time-item':true,'active':index===currentTime}" v-for="(item,index) in timeList"
:key="index"> :key="index">
<text class="time">{{item}}</text> <text class="time">{{item}}</text>
</view> </view>
...@@ -29,17 +33,22 @@ ...@@ -29,17 +33,22 @@
</view> </view>
</view> </view>
</view>
</view>
</template> </template>
<script> <script>
export default { export default {
props:{ props: {
titleShow: {
type: Boolean,
default: true
},
}, },
data() { data() {
return { return {
currentDay:0, currentDay: 0,
currentTime:0, currentTime: 0,
dateList: [{ dateList: [{
weekDay: '周三', weekDay: '周三',
day: '21' day: '21'
...@@ -64,35 +73,35 @@ ...@@ -64,35 +73,35 @@
] ]
} }
}, },
methods:{ methods: {
getDateList(){ getDateList() {
// 获取日期 // 获取日期
}, },
dateChange(item,index,list){ dateChange(item, index, list) {
let data = { let data = {
item, item,
index, index,
list, list,
} }
this.currentDay = index this.currentDay = index
this.$emit('date-change',data) this.$emit('date-change', data)
}, },
timeChange(item,index,list){ timeChange(item, index, list) {
let data = { let data = {
item, item,
index, index,
list, list,
} }
this.currentTime = index this.currentTime = index
this.$emit('time-change',data) this.$emit('time-change', data)
}, },
weekChange(item,index,list){ weekChange(item, index, list) {
let data = { let data = {
item, item,
index, index,
list, list,
} }
this.$emit('week-change',data) this.$emit('week-change', data)
}, },
} }
...@@ -100,6 +109,20 @@ ...@@ -100,6 +109,20 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.con-box {
margin-top: 30rpx;
padding: 30rpx 30rpx 30rpx 20rpx;
border-radius: 12rpx;
background-color: #FFFFFF;
.title {
font-weight: bold;
font-size: 32rpx;
line-height: 32rpx;
color: #333;
}
}
.txt { .txt {
font-size: 26rpx; font-size: 26rpx;
line-height: 26rpx; line-height: 26rpx;
...@@ -147,17 +170,20 @@ ...@@ -147,17 +170,20 @@
.time-list { .time-list {
margin-bottom: -30rpx; margin-bottom: -30rpx;
.time-item { .time-item {
min-width: 196rpx; min-width: 196rpx;
margin-right: 26rpx; margin-right: 26rpx;
margin-bottom: 24rpx; margin-bottom: 24rpx;
border-radius: 12rpx; border-radius: 12rpx;
padding:26rpx 20rpx 24rpx; padding: 26rpx 20rpx 24rpx;
background-color: #F4F5F7; background-color: #F4F5F7;
&:nth-child(3n){
&:nth-child(3n) {
margin-right: 0; margin-right: 0;
} }
.time{
.time {
font-size: 26rpx; font-size: 26rpx;
line-height: 26rpx; line-height: 26rpx;
color: #999; color: #999;
......
...@@ -3,15 +3,20 @@ ...@@ -3,15 +3,20 @@
<view class="feedback-box bg"> <view class="feedback-box bg">
<u-navbar back-icon-color="#FFFFFF" :background="background" title="过程反馈" title-color="#fff" :border-bottom="false"></u-navbar> <u-navbar back-icon-color="#FFFFFF" :background="background" title="过程反馈" title-color="#fff" :border-bottom="false"></u-navbar>
<view class="content u-p-l-30 u-p-r-30"> <view class="content u-p-l-30 u-p-r-30">
<view class="width-320 u-m-t-20">
<u-subsection <u-subsection
:bold="false"
:current="curNow" :current="curNow"
:list="list" :list="list"
active-color="white" active-color="white"
bg-color="white" bg-color="white"
height="72"
inactive-color="#666" inactive-color="#666"
button-color="#2272FF" button-color="#2272FF"
border-radius="36" border-radius="36"
></u-subsection> ></u-subsection>
</view>
<view class="con-box"> <view class="con-box">
<view class="title">{{feedback.own.title}}</view> <view class="title">{{feedback.own.title}}</view>
<view class="u-flex u-flex-wrap"> <view class="u-flex u-flex-wrap">
...@@ -29,21 +34,10 @@ ...@@ -29,21 +34,10 @@
</view> </view>
<u-input class="textarea" height="156" type="textarea" placeholder="请补充详细说明,以便于记录您的接单信用分"></u-input> <u-input class="textarea" height="156" type="textarea" placeholder="请补充详细说明,以便于记录您的接单信用分"></u-input>
</view> </view>
<view class="con-box">
<view class="title">{{feedback.appoint.title}}</view>
<view class="u-m-t-40">
<appoint-time @dateChange="dateChange" @timeChange="timeChange" @weekChange="weekChange"></appoint-time> <appoint-time @dateChange="dateChange" @timeChange="timeChange" @weekChange="weekChange"></appoint-time>
</view> </view>
<!-- <view class="u-flex u-flex-wrap">
<view :class="{'txt-item':true,'active':true}" v-for="(txt,index) in feedback.type.list" :key="index">
<text class="txt">{{txt}}</text>
</view>
</view> -->
</view>
</view>
<view class="u-m-60"> <view class="u-m-60">
<button class="btn">确定</button> <button class="btn">确定</button>
<!-- <u-button>确定</u-button> -->
</view> </view>
</view> </view>
</template> </template>
...@@ -71,13 +65,6 @@ ...@@ -71,13 +65,6 @@
} }
}, },
list:['报备','预约'], list:['报备','预约'],
// list: [{
// name: '报备'
// },
// {
// name: '改约'
// },
// ],
curNow: 1 curNow: 1
}; };
}, },
...@@ -120,6 +107,9 @@ ...@@ -120,6 +107,9 @@
background-size: 750rpx 600rpx; background-size: 750rpx 600rpx;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
/deep/ .u-subsection{
padding:4rpx!important;
}
.con-box{ .con-box{
margin-top:30rpx; margin-top:30rpx;
padding:30rpx 30rpx 30rpx 20rpx; padding:30rpx 30rpx 30rpx 20rpx;
...@@ -180,42 +170,7 @@ ...@@ -180,42 +170,7 @@
height:0; height:0;
} }
} }
.order-wrap { .width-320{
width:320rpx;
// width: 750rpx;
// height: 100vh;
// overflow: auto;
// background-color: #F4F5F7;
// background-image: linear-gradient(to top, #F4F5F7 , #2272FF);
// background-size: 750rpx 600rpx;
// background-repeat: no-repeat;
.header {
padding: 12rpx 30rpx 40rpx 30rpx;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 40rpx;
font-weight: bold;
color: #FFFFFF;
}
.button {
text-align: center;
width: 106rpx;
height: 52rpx;
background: #FFFFFF;
border-radius: 40rpx;
font-size: 24rpx;
font-weight: 400;
color: #2272FF;
line-height: 52rpx;
}
}
.content {
height: 2000rpx;
}
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment