This commit is contained in:
unknown 2020-04-06 14:37:02 +08:00
parent 2479b19629
commit 74adf183e6
3 changed files with 131 additions and 4 deletions

View File

@ -126,6 +126,12 @@
"style" : {
"navigationBarTitleText": "我的维修"
}
},
{
"path" : "pages/myModify/myModifyDetail",
"style" : {
"navigationBarTitleText": "我的维修详情"
}
}
],
"globalStyle": {

View File

@ -13,7 +13,7 @@
<view class="margin-top" v-if="state=='10001'">
<view class="cu-list menu-avatar">
<view class="cu-item arrow" v-for="(item,index) in myOrders" :key="index" @tap="_toModifyMyOrder(item)">
<view class="cu-item arrow" v-for="(item,index) in myOrders" :key="index" @tap="_toModifyMyOrder(item,communityId)">
<view class="cu-avatar round lg" :style="'background-image:url('+orderImg+');'">
</view>
<view class="content">
@ -174,16 +174,17 @@
},
_toModifyMyOrder:function(_item){
console.log('_item',_item);
wx.setStorageSync("_auditComplaint_"+_item.complaintId, _item);
wx.setStorageSync("_toModifyComplaint_"+_item.complaintId, _item);
uni.navigateTo({
url:"/pages/auditComplaintOrder/auditComplaintOrder?complaintId="+_item.complaintId
url:"/pages/myModify/myModifyDetail?complaintId=" + _item.complaintId
});
},
_toModifyHistoryOrder:function(_item){
console.log('_item',_item);
uni.setStorageSync("_complaintOrderDetail_"+_item.complaintId, _item);
uni.navigateTo({
url:"/pages/complaintOrderDetail/complaintOrderDetail?complaintId="+_item.complaintId
url:"/pages/myModify/myModifyDetail?complaintId="+_item.complaintId
});
}
}

View File

@ -0,0 +1,120 @@
<template>
<view>
<view class="padding margin-top">
<text>保修详情</text>
</view>
<view class="cu-list menu" >
<view class="cu-item">
<view class="content">
<text class="cuIcon-edit text-green"></text>
<text class="text-grey">报修ID</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.repairId}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-ticket text-green"></text>
<text class="text-grey">报修类型</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.repairTypeName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-footprint text-green"></text>
<text class="text-grey">报修人</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.userName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-profile text-green"></text>
<text class="text-grey">联系方式</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.tel}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-phone text-green"></text>
<text class="text-grey">房屋编号</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.roomId}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-time text-green"></text>
<text class="text-grey">预约时间</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.appointmentTime}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-time text-green"></text>
<text class="text-grey">维修师傅</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.repairName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-time text-green"></text>
<text class="text-grey">状态</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.stateName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-time text-green"></text>
<text class="text-grey">报修内容</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{modifyComplaint.context}}</text>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
complaintId:'',
modifyComplaint:{}
}
},
onLoad(options) {
let _complaintId = options.complaintId;
console.log('options',options);
this.complaintId = _complaintId;
this._loadModfiyHistoryOrder();
},
methods: {
_loadModfiyHistoryOrder:function(){
//
this.modifyComplaint = wx.getStorageSync("_toModifyComplaint_"+this.complaintId);
},
}
}
</script>
<style>
</style>