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

过程反馈-静态页面

parent 6c427e39
<!-- 预约时间 -->
<template>
<view class="appoint-box">
<view class="select-date">
<view class="u-flex u-row-between ">
<view class="txt">选择日期</view>
<view class="txt active">2021.04.21</view>
</view>
<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"
:key="index">
<text class="day week">{{item.weekDay}}</text>
<text class="day">{{item.day}}</text>
</view>
</view>
</view>
<!-- weekChange -->
<view class="select-time u-p-t-50">
<view class="u-flex u-row-between">
<view class="txt">选择时间</view>
<view class="txt active">14:00-16:00</view>
</view>
<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"
:key="index">
<text class="time">{{item}}</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
props:{
},
data() {
return {
currentDay:0,
currentTime:0,
dateList: [{
weekDay: '周三',
day: '21'
}, {
weekDay: '周三',
day: '21'
}, {
weekDay: '周三',
day: '21'
}, {
weekDay: '周三',
day: '21'
}, {
weekDay: '周三',
day: '21'
}, {
weekDay: '周三',
day: '21'
}, ],
timeList: ['06:00-08:00', '06:00-08:00', '06:00-08:00', '06:00-08:00', '06:00-08:00', '06:00-08:00',
'06:00-08:00', '06:00-08:00', '06:00-08:00'
]
}
},
methods:{
getDateList(){
// 获取日期
},
dateChange(item,index,list){
let data = {
item,
index,
list,
}
this.currentDay = index
this.$emit('date-change',data)
},
timeChange(item,index,list){
let data = {
item,
index,
list,
}
this.currentTime = index
this.$emit('time-change',data)
},
weekChange(item,index,list){
let data = {
item,
index,
list,
}
this.$emit('week-change',data)
},
}
}
</script>
<style lang="scss" scoped>
.txt {
font-size: 26rpx;
line-height: 26rpx;
color: #333;
&.active {
color: #2272FF
}
}
.date-list {
.date-item {
padding: 14rpx;
border-radius: 12rpx;
background-color: #F4F5F7;
.day {
display: block;
font-size: 36rpx;
line-height: 36rpx;
color: #333;
&.week {
margin-bottom: 10rpx;
font-size: 24rpx;
line-height: 26rpx;
color: #999;
}
&.time {
padding: 6rpx 10rpx;
font-size: 26rpx;
}
}
&.active {
background-color: #2272FF;
.day {
color: #fff !important;
}
}
}
}
.time-list {
margin-bottom: -30rpx;
.time-item {
min-width: 196rpx;
margin-right: 26rpx;
margin-bottom: 24rpx;
border-radius: 12rpx;
padding:26rpx 20rpx 24rpx;
background-color: #F4F5F7;
&:nth-child(3n){
margin-right: 0;
}
.time{
font-size: 26rpx;
line-height: 26rpx;
color: #999;
}
}
}
</style>
......@@ -21,6 +21,14 @@
"style": {
"navigationBarTitleText": "订单-完工配置"
}
},{
"path": "pages/order/feedback",
"style": {
"navigationBarTitleText": "订单-过程反馈",
"enablePullDownRefresh": false,
"navigationStyle": "custom", // 隐藏系统导航栏
"disableScroll": true
}
},
{
"path": "pages/mine/index",
......@@ -264,8 +272,8 @@
"query": "" //启动参数,在页面的onLoad函数里面得到
},
{
"name": "订单 - 完工配置", //模式名称
"path": "pages/order/complete", //启动页面,必选
"name": "订单 - 过程反馈", //模式名称
"path": "pages/order/feedback", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到
}
]
......
......@@ -37,14 +37,8 @@
<style lang="scss">
.order-wrap {
width: 750rpx;
height: 100vh;
overflow: auto;
// height: 1600rpx;
// background: linear-gradient(360deg, #F4F5F7 0%, #2272FF 100%);
background-color: #F4F5F7;
background-image: linear-gradient(to top, #F4F5F7 , #2272FF);
background-size: 750rpx 600rpx;
background-repeat: no-repeat;
height: 600rpx;
background: linear-gradient(360deg, #F4F5F7 0%, #2272FF 100%);
.header {
padding: 12rpx 30rpx 40rpx 30rpx;
display: flex;
......
<!-- 过程反馈 -->
<template>
<view class="feedback-box bg">
<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">
<u-subsection
:current="curNow"
:list="list"
active-color="white"
bg-color="white"
inactive-color="#666"
button-color="#2272FF"
border-radius="36"
></u-subsection>
<view class="con-box">
<view class="title">{{feedback.own.title}}</view>
<view class="u-flex u-flex-wrap">
<view :class="{'txt-item':true,'active':true}" v-for="(txt,index) in feedback.own.list" :key="index">
<text class="txt">{{txt}}</text>
</view>
</view>
</view>
<view class="con-box">
<view class="title">{{feedback.type.title}}</view>
<view class="u-flex u-flex-wrap">
<view :class="{'txt-item':true,'active':false}" v-for="(txt,index) in feedback.type.list" :key="index">
<text class="txt">{{txt}}</text>
</view>
</view>
<u-input class="textarea" height="156" type="textarea" placeholder="请补充详细说明,以便于记录您的接单信用分"></u-input>
</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>
</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">
<button class="btn">确定</button>
<!-- <u-button>确定</u-button> -->
</view>
</view>
</template>
<script>
import appointTime from '@/components/appoint/appoint-time.vue'
export default {
data() {
return {
background: {
backgroundColor: 'none',
},
// questionList: ['个人', '客户', '现场/客户'],
feedback: {
own:{
title:'问题归属',
list:['个人', '客户', '现场/客户'],
},
type:{
title:'问题类型',
list:['有事耽搁', '未带齐工具', '个人改约','其他']
},
appoint:{
title:'预约时间',
}
},
list:['报备','预约'],
// list: [{
// name: '报备'
// },
// {
// name: '改约'
// },
// ],
curNow: 1
};
},
components:{
appointTime
},
methods: {
/**
* 拒单
*/
rejectOrder() {
console.log("点击拒单")
},
sectionChange(index) {
this.curNow = index;
},
weekChange(data){
// 点击下一周
console.log(data,'week-data')
},
dateChange(data){
// 点击日期选择
console.log(data,'week-data')
},
timeChange(data){
// 时间段选择变化
console.log(data,'week-data')
},
}
}
</script>
<style lang="scss">
.bg {
width: 750rpx;
height: 100vh;
overflow: auto;
background-color: #F4F5F7;
background-image: linear-gradient(to top, #F4F5F7 0%, #2272FF 100%);
background-size: 750rpx 600rpx;
background-repeat: no-repeat;
}
.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;
}
&>.u-flex{
margin-top:40rpx;
margin-right:-20rpx;
.txt-item{
border-radius: 12rpx;
padding:24rpx 38rpx;
min-width: 196rpx;
text-align: center;
margin-right: 20rpx;
margin-bottom: 20rpx;
background-color: #F4F5F7;
&.active{
background-color: #2272FF;
.txt{
color: #fff;
}
}
}
}
.txt{
display:block;
font-size: 26rpx;
line-height: 26rpx;
color: #333;
}
.textarea{
/deep/ .u-input{
textarea{
margin-top:20rpx;
border: 2rpx solid #ECECEC;
padding:18rpx 30rpx;
}
}
}
}
.btn{
padding:30rpx;
border-radius: 52rpx;
line-height: 44rpx;
font-size:32rpx;
text-align: center;
background-color: #2272FF;
color:#fff;
&::after{
content:'';
height:0;
}
}
.order-wrap {
// 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>
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