Commit 1274b33e authored by 刘用法's avatar 刘用法

完工页面不显示金额的情况

parent 82e4515c
...@@ -4,14 +4,17 @@ ...@@ -4,14 +4,17 @@
<u-navbar :is-back="false" :background="{ background: 'transparent' }" :border-bottom="false"> <u-navbar :is-back="false" :background="{ background: 'transparent' }" :border-bottom="false">
<text class="title-view">我的</text> <text class="title-view">我的</text>
</u-navbar> </u-navbar>
<view v-if="!takeStatus" class="mine-content"> <view class="mine-content">
<view class="u-flex header-view"> <view class="header-view">
<view class="u-m-r-10"> <view class="head-image">
<u-avatar :src="pic" size="140"></u-avatar> <u-avatar :src="headImageUrl" size="142" mode="circle"></u-avatar>
</view>
<view class="header-content">
<view class="name-view">{{name}}</view>
<view :class="['tel-view', {'active': info.tel}]">
<text>{{tel}}</text>
<icon name="arrow-left-fill"></icon>
</view> </view>
<view class="u-flex-1">
<view class="u-font-18 u-p-b-20">uView ui</view>
<view class="u-font-14 u-tips-color">微信号:helang_uView</view>
</view> </view>
</view> </view>
...@@ -46,6 +49,7 @@ ...@@ -46,6 +49,7 @@
data() { data() {
return { return {
serviceTel: '0755-81773817', serviceTel: '0755-81773817',
info: {},
pic: 'https://uviewui.com/common/logo.png', pic: 'https://uviewui.com/common/logo.png',
show: true, show: true,
takeStatus: false, takeStatus: false,
...@@ -109,17 +113,34 @@ ...@@ -109,17 +113,34 @@
} }
] ]
}, },
imageUrl(name) { name() {
return this.info.name || '点击登录'
},
tel() {
return this.info.tel ? '已绑定手机号' : '绑定手机号'
},
imageUrl() {
return process.uniEnv.qn_base_url return process.uniEnv.qn_base_url
}, },
pages() { pages() {
return [] return ['', '', '', '', 'address', '', '']
},
headImageUrl() {
return this.info.headImage || this.placeholderImage
},
placeholderImage() {
return this.imageUrl + 'touxiang.png'
} }
}, },
onLoad() { onLoad() {
}, },
methods: { methods: {
handleClick(index) {
uni.navigateTo({
url: 'pages/mine/' + this.pages[index]
})
},
take() { take() {
uni.hideTabBar() uni.hideTabBar()
this.takeStatus = true this.takeStatus = true
...@@ -127,11 +148,6 @@ ...@@ -127,11 +148,6 @@
closeTake(img) { closeTake(img) {
console.log(img) console.log(img)
this.takeStatus = false this.takeStatus = false
},
handleClick(index) {
uni.navigateTo({
url: 'pages/mine/' + this.pages[index]
})
} }
} }
} }
...@@ -140,18 +156,49 @@ ...@@ -140,18 +156,49 @@
<style lang="scss" scoped> <style lang="scss" scoped>
.mine-view { .mine-view {
position: relative; position: relative;
.header-image { .header-image {
position: absolute; position: absolute;
width: 100%; width: 100%;
} }
.title-view { .title-view {
color: #FFFFFF; color: #FFFFFF;
font-weight: bold; font-weight: bold;
font-size: 40rpx; font-size: 40rpx;
padding-left: 30rpx;
} }
.mine-content { .mine-content {
background-color: #F4F5F7; background-color: #F4F5F7;
.header-view {}
.header-view {
padding: 30rpx;
display: flex;
.head-image {
width: 142rpx;
height: 142rpx;
}
.header-content {
color: #FFFFFF;
z-index: 0;
.name-view {
}
.tel-view {
background-color: #FFFFFF;
border-radius: 26rpx;
color: #2272FF;
width: 164rpx;
height: 52rpx;
&.active {
color: #FFFFFF;
border: 1rpx bold #FFFFFF;
}
}
}
}
.list-view { .list-view {
background-color: #FFFFFF; background-color: #FFFFFF;
......
...@@ -124,7 +124,6 @@ ...@@ -124,7 +124,6 @@
inGuaranteePeriod:'', inGuaranteePeriod:'',
list: [], list: [],
tabIndex: 0, tabIndex: 0,
show200: true, // 基础信息显示金额输入框
scrollTop: 0, //tab标题的滚动条位置 scrollTop: 0, //tab标题的滚动条位置
oldScrollTop: 0, oldScrollTop: 0,
current: 0, // 预设当前项的值 current: 0, // 预设当前项的值
...@@ -239,6 +238,9 @@ ...@@ -239,6 +238,9 @@
'font-size': '32rpx', 'font-size': '32rpx',
} }
}, },
show200() { /// 基础信息显示金额输入框
return this.form.paymentMethodsType != '03'
}
}, },
methods: { methods: {
getCompleteData() {//获取工单配置的完工项目 getCompleteData() {//获取工单配置的完工项目
...@@ -391,11 +393,12 @@ ...@@ -391,11 +393,12 @@
if(innerItem.fieldsType ==='multiInput'){ if(innerItem.fieldsType ==='multiInput'){
// 多个输入框的值触发 // 多个输入框的值触发
let key = Object.keys(data.value)[0] let key = Object.keys(data.value)[0]
debugger
this.form[key] = data.value[key] this.form[key] = data.value[key]
}else{ }else{
this.$set(this.form,innerItem.fieldsName,data.value) this.$set(this.form,innerItem.fieldsName,data.value)
} }
this.show200 = innerItem.fieldsId != 199 || data.value != '03'
console.log(this.form) console.log(this.form)
}, },
nextStep() { nextStep() {
......
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