Commit 31144aca authored by 刘用法's avatar 刘用法
parents c330d0ff 44afb4c8
...@@ -139,6 +139,14 @@ ...@@ -139,6 +139,14 @@
{ {
"root": "pages/mine", "root": "pages/mine",
"pages": [ "pages": [
{
"path":"contract/index",
"style":{
"navigationBarTitleText":"",
"enablePullDownRefresh":false,
"navigationStyle":"custom"//隐藏系统导航栏
}
},
{ {
"path": "address/index", "path": "address/index",
"style": { "style": {
......
...@@ -129,7 +129,7 @@ ...@@ -129,7 +129,7 @@
return this.info.headImage || this.placeholderImage return this.info.headImage || this.placeholderImage
}, },
wodebeijingImage() { wodebeijingImage() {
return this.imageUrl+ 'wodebeijing.png' return this.imageUrl + 'wodebeijing.png'
}, },
placeholderImage() { placeholderImage() {
return this.imageUrl + 'touxiang.png' return this.imageUrl + 'touxiang.png'
...@@ -186,30 +186,36 @@ ...@@ -186,30 +186,36 @@
font-size: 40rpx; font-size: 40rpx;
padding-left: 30rpx; padding-left: 30rpx;
} }
.mine-content { .mine-content {
.header-view { .header-view {
padding: 30rpx 30rpx 80rpx 30rpx; padding: 30rpx 30rpx 80rpx 30rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.head-image { .head-image {
width: 144rpx; width: 144rpx;
height: 144rpx; height: 144rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 72rpx; border-radius: 72rpx;
&.has-image { &.has-image {
border: 4rpx solid #FFFFFF; border: 4rpx solid #FFFFFF;
} }
} }
.header-content { .header-content {
color: #FFFFFF; color: #FFFFFF;
z-index: 1; z-index: 1;
margin-left: 24rpx; margin-left: 24rpx;
.name-view { .name-view {
font-size: 44rpx; font-size: 44rpx;
font-weight: bold; font-weight: bold;
margin-bottom: 14rpx; margin-bottom: 14rpx;
margin-top: 6rpx; margin-top: 6rpx;
} }
.tel-view { .tel-view {
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 26rpx; border-radius: 26rpx;
...@@ -220,13 +226,15 @@ ...@@ -220,13 +226,15 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&.active { &.active {
color: #FFFFFF; color: #FFFFFF;
border:2rpx solid #FFFFFF; border: 2rpx solid #FFFFFF;
background-color: #2272FF; background-color: #2272FF;
} }
.tel-arrow-icon { .tel-arrow-icon {
transform:rotate(90deg); transform: rotate(90deg);
margin-left: 6rpx; margin-left: 6rpx;
} }
} }
...@@ -237,6 +245,7 @@ ...@@ -237,6 +245,7 @@
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 16rpx 16rpx 0 0; border-radius: 16rpx 16rpx 0 0;
overflow: hidden; overflow: hidden;
.item-title { .item-title {
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
......
...@@ -335,6 +335,7 @@ ...@@ -335,6 +335,7 @@
+ "&categoryId=" + item.categoryId + "&categoryId=" + item.categoryId
+ "&orderServiceType=" + item.orderServiceType + "&orderServiceType=" + item.orderServiceType
+ "&inGuaranteePeriod=" + item.inGuaranteePeriod + "&inGuaranteePeriod=" + item.inGuaranteePeriod
+ "&auditResultsId=" + Object.keys(item.auditResults)[0]
}) })
}, },
handleAction(item) { handleAction(item) {
......
<template>
<view class="contract">
<u-navbar
title="我的合同"
b:is-back="false"
:background="background"
:border-bottom="false"
></u-navbar>
<view class="content">
<text class="title">合同清单</text>
<view class="jf-currency-class">
<view class="left"> 自营平台技 工入驻签约 合同 </view>
<view class="text1">《自营平台技工入驻签约合同》</view>
<view class="text2">下载时间: 2021.05.06 14:25:00</view>
</view>
<view class="jf-currency-class">
<view class="left">新风机技工入驻签约合同</view>
<view class="text1">《新风机技工入驻签约合同》</view>
<view class="text2">下载时间: 2021.05.06 15:01:48</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
background: {
backgroundColor: "#F4F5F7",
// 导航栏背景图
// background: 'url(https://cdn.uviewui.com/uview/swiper/1.jpg) no-repeat',
// 还可以设置背景图size属性
// backgroundSize: 'cover',
// 渐变色
// backgroundImage: 'linear-gradient(45deg, rgb(28, 187, 180), rgb(141, 198, 63))'
},
};
},
onLoad() {},
methods: {},
};
</script>
<style lang="scss" scoped>
.contract {
width: 100%;
height: 100vh;
background: #f4f5f7;
}
.content {
width: 100%;
height: 100%;
padding: 40rpx 30rpx 0 30rpx;
}
.title {
width: 65px;
height: 16px;
font-size: 16px;
font-family: PingFang-SC-Bold, PingFang-SC;
font-weight: bold;
color: #333333;
line-height: 16px;
}
.jf-currency-class {
width: 100%;
height: 180rpx;
border-radius: 12rpx;
padding-top: 40rpx;
margin-top: 74rpx;
background: #ffffff;
position: relative;
.left {
width: 160rpx;
height: 200rpx;
padding: 30rpx 14rpx 0 14rpx;
position: absolute;
top: -40rpx;
left: 30rpx;
background: url(@/static/photo/hetong.png);
border-radius: 6px;
color: #ffffff;
font-size: 26rpx;
line-height: 38rpx;
font-family: PingFang-SC-Bold, PingFang-SC;
font-weight: bold;
}
.text1 {
font-size: 32rpx;
font-family: PingFang-SC-Bold, PingFang-SC;
font-weight: bold;
color: #2272ff;
margin-left: 208rpx;
}
.text2 {
font-size: 24rpx;
color: #999999;
margin-left: 220rpx;
margin-top: 22rpx;
}
}
.current-img {
width: 100%;
height: 100%;
position: absolute;
}
</style>
\ No newline at end of file
...@@ -122,6 +122,7 @@ ...@@ -122,6 +122,7 @@
categoryId:0, categoryId:0,
orderServiceType:'', orderServiceType:'',
inGuaranteePeriod:'', inGuaranteePeriod:'',
auditResultsId: '',
list: [], list: [],
tabIndex: 0, tabIndex: 0,
scrollTop: 0, //tab标题的滚动条位置 scrollTop: 0, //tab标题的滚动条位置
...@@ -195,6 +196,7 @@ ...@@ -195,6 +196,7 @@
this.categoryId = option.categoryId this.categoryId = option.categoryId
this.orderServiceType = decodeURIComponent(option.orderServiceType) this.orderServiceType = decodeURIComponent(option.orderServiceType)
this.inGuaranteePeriod = option.inGuaranteePeriod this.inGuaranteePeriod = option.inGuaranteePeriod
this.auditResultsId = option.auditResultsId
} else { } else {
this.orderId = 11880091 this.orderId = 11880091
this.categoryId = 1100000214 this.categoryId = 1100000214
...@@ -250,12 +252,29 @@ ...@@ -250,12 +252,29 @@
if (res.code == 200) { if (res.code == 200) {
self.list = res.data.config self.list = res.data.config
self.form = res.data.value || {} self.form = res.data.value || {}
// 异常单处理
if (self.auditResultsId) self.checkCompleteError()
} else { } else {
console.log(res.message, "获取订单完工项目失败!"); console.log(res.message, "获取订单完工项目失败!");
} }
}); });
} }
}, },
checkCompleteError() { // 异常单定位错误项
let self = this
self.list.forEach((panel, panelIndex)=>{
panel.items.forEach((group, groupIndex) =>{
group.items.forEach((ele, eleIndex)=>{
if (ele.fieldsName === self.auditResultsId) {
self.waitHandlerPanelIndex = panelIndex
self.waitHandlerGroupIndex = groupIndex
self.waitHandlerEleIndex = eleIndex
}
})
})
})
this.locationCompleteItem(self.waitHandlerPanelIndex, self.waitHandlerGroupIndex, self.waitHandlerEleIndex)
},
saveComplete(){// 保存完工信息 saveComplete(){// 保存完工信息
let self = this let self = this
let param = {} let param = {}
...@@ -307,7 +326,6 @@ ...@@ -307,7 +326,6 @@
}else if(value&&Array.isArray(value)&&value.length > 0){ }else if(value&&Array.isArray(value)&&value.length > 0){
panelResult.submitted++ panelResult.submitted++
}else if(first){// 记录第一个 为空 并且需要必填的项 用于定位 }else if(first){// 记录第一个 为空 并且需要必填的项 用于定位
console.log(ele)
first = false first = false
self.waitHandlerPanelIndex = panelIndex self.waitHandlerPanelIndex = panelIndex
self.waitHandlerGroupIndex = groupIndex self.waitHandlerGroupIndex = groupIndex
......
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