Commit 0122ed8d authored by 和慭琛's avatar 和慭琛

工单完工页 页面搭建 99%

parent 1d9aba4a
......@@ -47,7 +47,7 @@
<text class="u-font-24 u-m-l-24 u-m-t-24">完工描述:</text>
<text class="u-font-24 u-m-l-24 u-m-t-24 bottomPadding">{{orderInfo.finish_description}}</text>
</view>
<view class="bottomView">
<view class="bottomView" v-if="orderInfo.status != '已完工'">
<view class="bottomLeftView" @click="cancelClick()">
<text class="bottomTitle">退单</text>
</view>
......
<template>
<view class="">
完工界面
<view class="topView">
<view class="nameView">
<text class="u-font-24 u-m-l-24">联系人:{{orderInfo.name}}</text>
<text class="u-font-24 u-m-l-24 underLine" @click="phoneCallClick(orderInfo.phone)">{{orderInfo.phone}}</text>
</view>
<text class="u-font-24 u-m-l-24 u-m-t-24">地址:{{orderInfo.address}}</text>
<view class="typeView">
<text class="u-font-24 u-m-l-24">类型:({{orderInfo.guard}}) {{orderInfo.type}}</text>
<text class="u-font-24 u-m-r-24">产品:{{orderInfo.product}}</text>
</view>
</view>
<template v-for="(item,ikey) in orderInfo.typeList">
<view class="clickTypeView" v-if="item.type=='click' || item.type=='scan'" @click="clickTypeClick(item)">
<text class="u-font-24 u-m-l-24">{{item.title}}</text>
<image class="arrowIcon u-m-r-24" src="" mode=""></image>
</view>
<view class="photoTypeView" v-if="item.type=='photo'">
<text class="u-font-24 u-m-l-24 u-m-t-24">{{item.title}}</text>
<view class="photoBackView u-p-b-24" v-if="item.images.length>0">
<view class="photoItemView" v-for="(item,ikey) in item.images":key="ikey">
<image class="photoImage" :src="item.image" mode="aspectFill"></image>
</view>
</view>
</view>
<view class="textAreaTypeView bottomPadding" v-if="item.type=='textArea'">
<text class="u-font-24 u-m-l-24 u-m-t-24">{{item.title}}</text>
<view class="textAreaView">
<textarea class="textArea u-m-l-24 u-m-r-24 u-m-t-24 u-m-b-24" value="" placeholder="请输入备注" />
</view>
</view>
</template>
<view class="bottomView">
<text class="bottomTitle">完工</text>
</view>
</view>
</template>
......@@ -12,8 +46,16 @@
name:'梵护博',
phone:'15811112222',
address:'广东省深圳市宝安区新安街道庭威产业园10C',
guard:'保内',
type:'维修-调试',
product:'小米 新风机',
typeList:[
{title:'产品规格',type:'click'},
{title:'购买日期',type:'click'},
{title:'机身条码',type:'scan'},
{title:'照片',type:'photo',images:[{image:'111'},{image:'222'},{image:'333'},{image:'444'}]},
{title:'备注',type:'textArea'},
]
},
}
},
......@@ -22,12 +64,17 @@
},
methods: {
finishClick: function () {
uni.navigateTo({
url: '/pages/take/finish'
})
clickTypeClick: function (item) {
console.log('点击类 点击')
console.log(item.title)
console.log(item.type)
},
}
}
</script>
......@@ -53,6 +100,10 @@
text-decoration:underline;
}
.bottomPadding{
padding-bottom: 144rpx;
}
.typeView{
width: 100%;
height: 80rpx;
......@@ -61,4 +112,91 @@
align-items: center;
justify-content: space-between;
}
.bottomView{
background-color: #FFFFFF;
width: 100%;
height: 110rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
border-top: 2rpx solid #999999;
position: fixed;
bottom: 0;
}
.bottomTitle{
font-size: 32rpx;
}
.arrowIcon{
background-color: #999999;
width: 20rpx;
height: 50rpx;
}
.clickTypeView{
background-color: #FFFFFF;
width: 100%;
height: 80rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
border: 2rpx solid #999999;
}
.photoTypeView{
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-direction: column;
}
.photoBackView{
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-wrap: wrap;
margin-top: 24rpx;
}
.photoItemView{
background-color: #FFFFFF;
width: 33.33%;
display: flex;
}
.photoImage{
background-color: #FAFAFA;
margin-left: 24rpx;
margin-right: 24rpx;
margin-top: 24rpx;
height: 260rpx;
}
.textAreaTypeView{
background-color: #FFFFFF;
width: 100%;
display: flex;
flex-direction: column;
}
.textAreaView{
background-color: #FFFFFF;
width: 100%;
height: 400rpx;
display: flex;
}
.textArea{
background-color: #FFFFFF;
width: 100%;
height: 90%;
border: 2rpx solid #999999;
}
</style>
......@@ -14,5 +14,6 @@
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"usingComponents": {}
"usingComponents": {},
"sitemapLocation": "sitemap58.json"
}
\ No newline at end of file
<view><view class="topView"><view class="nameView"><text class="u-font-24 u-m-l-24">{{"联系人:"+orderInfo.name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24">{{"地址:"+orderInfo.address}}</text><view class="typeView"><text class="u-font-24 u-m-l-24">{{"类型:("+orderInfo.guard+") "+orderInfo.type}}</text><text class="u-font-24 u-m-r-24">{{"产品:"+orderInfo.product}}</text></view><text class="u-font-24 u-m-l-24">{{"状态:"+orderInfo.status}}</text><text class="u-font-24 u-m-l-24 u-m-t-24">{{"描述:"+orderInfo.description}}</text><text class="u-font-24 u-m-l-24 u-m-t-24 u-p-b-24">{{"下单时间:"+orderInfo.create_time}}</text></view><block wx:if="{{orderInfo.status=='待接单'}}"><view class="willTakeView"><view class="nameView u-p-b-24"><text class="u-font-24 u-m-l-24 ">预约时间:</text><text data-event-opts="{{[['tap',[['bookClick']]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">待预约上门服务时间</text></view></view></block><block wx:if="{{orderInfo.status=='待完工'}}"><view class="willFinishView"><view class="nameView"><text class="u-font-24 u-m-l-24">预约时间:</text><text data-event-opts="{{[['tap',[['bookClick']]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.book_time}}</text></view><view class="nameView"><text class="u-font-24 u-m-l-24">{{"接单师傅:"+orderInfo.worker_name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.worker_phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24 u-p-b-24">{{"接单时间:"+orderInfo.take_time}}</text></view></block><block wx:if="{{orderInfo.status=='已完工'}}"><view class="finishView"><view class="nameView"><text class="u-font-24 u-m-l-24">{{"接单师傅:"+orderInfo.worker_name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.worker_phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24 u-p-b-24 bottomLine">{{"接单时间:"+orderInfo.take_time}}</text><text class="u-font-24 u-m-l-24 u-m-t-24">{{"完工时间:"+orderInfo.finish_time}}</text><text class="u-font-24 u-m-l-24 u-m-t-24">完工凭证:</text><block wx:if="{{orderInfo.finish_images.length>0}}"><view class="photoBackView u-p-b-24"><block wx:for="{{orderInfo.finish_images}}" wx:for-item="item" wx:for-index="ikey" wx:key="ikey"><view class="photoItemView"><image class="photoImage" src="{{item.image}}" mode="aspectFill"></image></view></block></view></block><text class="u-font-24 u-m-l-24 u-m-t-24">完工描述:</text><text class="u-font-24 u-m-l-24 u-m-t-24 bottomPadding">{{orderInfo.finish_description}}</text></view></block><view class="bottomView"><view data-event-opts="{{[['tap',[['cancelClick']]]]}}" class="bottomLeftView" bindtap="__e"><text class="bottomTitle">退单</text></view><view data-event-opts="{{[['tap',[['finishClick']]]]}}" class="bottomRightView" bindtap="__e"><text class="bottomTitle">完工</text></view></view></view>
\ No newline at end of file
<view><view class="topView"><view class="nameView"><text class="u-font-24 u-m-l-24">{{"联系人:"+orderInfo.name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24">{{"地址:"+orderInfo.address}}</text><view class="typeView"><text class="u-font-24 u-m-l-24">{{"类型:("+orderInfo.guard+") "+orderInfo.type}}</text><text class="u-font-24 u-m-r-24">{{"产品:"+orderInfo.product}}</text></view><text class="u-font-24 u-m-l-24">{{"状态:"+orderInfo.status}}</text><text class="u-font-24 u-m-l-24 u-m-t-24">{{"描述:"+orderInfo.description}}</text><text class="u-font-24 u-m-l-24 u-m-t-24 u-p-b-24">{{"下单时间:"+orderInfo.create_time}}</text></view><block wx:if="{{orderInfo.status=='待接单'}}"><view class="willTakeView"><view class="nameView u-p-b-24"><text class="u-font-24 u-m-l-24 ">预约时间:</text><text data-event-opts="{{[['tap',[['bookClick']]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">待预约上门服务时间</text></view></view></block><block wx:if="{{orderInfo.status=='待完工'}}"><view class="willFinishView"><view class="nameView"><text class="u-font-24 u-m-l-24">预约时间:</text><text data-event-opts="{{[['tap',[['bookClick']]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.book_time}}</text></view><view class="nameView"><text class="u-font-24 u-m-l-24">{{"接单师傅:"+orderInfo.worker_name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.worker_phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24 u-p-b-24">{{"接单时间:"+orderInfo.take_time}}</text></view></block><block wx:if="{{orderInfo.status=='已完工'}}"><view class="finishView"><view class="nameView"><text class="u-font-24 u-m-l-24">{{"接单师傅:"+orderInfo.worker_name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.worker_phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24 u-p-b-24 bottomLine">{{"接单时间:"+orderInfo.take_time}}</text><text class="u-font-24 u-m-l-24 u-m-t-24">{{"完工时间:"+orderInfo.finish_time}}</text><text class="u-font-24 u-m-l-24 u-m-t-24">完工凭证:</text><block wx:if="{{orderInfo.finish_images.length>0}}"><view class="photoBackView u-p-b-24"><block wx:for="{{orderInfo.finish_images}}" wx:for-item="item" wx:for-index="ikey" wx:key="ikey"><view class="photoItemView"><image class="photoImage" src="{{item.image}}" mode="aspectFill"></image></view></block></view></block><text class="u-font-24 u-m-l-24 u-m-t-24">完工描述:</text><text class="u-font-24 u-m-l-24 u-m-t-24 bottomPadding">{{orderInfo.finish_description}}</text></view></block><block wx:if="{{orderInfo.status!='已完工'}}"><view class="bottomView"><view data-event-opts="{{[['tap',[['cancelClick']]]]}}" class="bottomLeftView" bindtap="__e"><text class="bottomTitle">退单</text></view><view data-event-opts="{{[['tap',[['finishClick']]]]}}" class="bottomRightView" bindtap="__e"><text class="bottomTitle">完工</text></view></view></block></view>
\ No newline at end of file
<view>完工界面</view>
\ No newline at end of file
<view><view class="topView"><view class="nameView"><text class="u-font-24 u-m-l-24">{{"联系人:"+orderInfo.name}}</text><text data-event-opts="{{[['tap',[['phoneCallClick',['$0'],['orderInfo.phone']]]]]}}" class="u-font-24 u-m-l-24 underLine" bindtap="__e">{{orderInfo.phone}}</text></view><text class="u-font-24 u-m-l-24 u-m-t-24">{{"地址:"+orderInfo.address}}</text><view class="typeView"><text class="u-font-24 u-m-l-24">{{"类型:("+orderInfo.guard+") "+orderInfo.type}}</text><text class="u-font-24 u-m-r-24">{{"产品:"+orderInfo.product}}</text></view></view><block wx:for="{{orderInfo.typeList}}" wx:for-item="item" wx:for-index="ikey"><block wx:if="{{item.type=='click'||item.type=='scan'}}"><view data-event-opts="{{[['tap',[['clickTypeClick',['$0'],[[['orderInfo.typeList','',ikey]]]]]]]}}" class="clickTypeView" bindtap="__e"><text class="u-font-24 u-m-l-24">{{item.title}}</text><image class="arrowIcon u-m-r-24" src mode></image></view></block><block wx:if="{{item.type=='photo'}}"><view class="photoTypeView"><text class="u-font-24 u-m-l-24 u-m-t-24">{{item.title}}</text><block wx:if="{{item.images.length>0}}"><view class="photoBackView u-p-b-24"><block wx:for="{{item.images}}" wx:for-item="item" wx:for-index="ikey" wx:key="ikey"><view class="photoItemView"><image class="photoImage" src="{{item.image}}" mode="aspectFill"></image></view></block></view></block></view></block><block wx:if="{{item.type=='textArea'}}"><view class="textAreaTypeView bottomPadding"><text class="u-font-24 u-m-l-24 u-m-t-24">{{item.title}}</text><view class="textAreaView"><textarea class="textArea u-m-l-24 u-m-r-24 u-m-t-24 u-m-b-24" value="" placeholder="请输入备注"></textarea></view></view></block></block><view class="bottomView"><text class="bottomTitle">完工</text></view></view>
\ No newline at end of file
......@@ -28,6 +28,9 @@
.underLine{
text-decoration:underline;
}
.bottomPadding{
padding-bottom: 144rpx;
}
.typeView{
width: 100%;
height: 80rpx;
......@@ -45,4 +48,114 @@
-webkit-justify-content: space-between;
justify-content: space-between;
}
.bottomView{
background-color: #FFFFFF;
width: 100%;
height: 110rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
border-top: 2rpx solid #999999;
position: fixed;
bottom: 0;
}
.bottomTitle{
font-size: 32rpx;
}
.arrowIcon{
background-color: #999999;
width: 20rpx;
height: 50rpx;
}
.clickTypeView{
background-color: #FFFFFF;
width: 100%;
height: 80rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: horizontal;
-webkit-box-direction: normal;
-webkit-flex-direction: row;
flex-direction: row;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
border: 2rpx solid #999999;
}
.photoTypeView{
background-color: #FFFFFF;
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
flex-direction: column;
}
.photoBackView{
background-color: #FFFFFF;
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-flex-wrap: wrap;
flex-wrap: wrap;
margin-top: 24rpx;
}
.photoItemView{
background-color: #FFFFFF;
width: 33.33%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
}
.photoImage{
background-color: #FAFAFA;
margin-left: 24rpx;
margin-right: 24rpx;
margin-top: 24rpx;
height: 260rpx;
}
.textAreaTypeView{
background-color: #FFFFFF;
width: 100%;
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-webkit-flex-direction: column;
flex-direction: column;
}
.textAreaView{
background-color: #FFFFFF;
width: 100%;
height: 400rpx;
display: -webkit-box;
display: -webkit-flex;
display: flex;
}
.textArea{
background-color: #FFFFFF;
width: 100%;
height: 90%;
border: 2rpx solid #999999;
}
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