Commit 94705533 authored by 李超鹏's avatar 李超鹏

修改

parent 6810ebc5
......@@ -24,13 +24,14 @@
'color': '#FFFFFF',
}"
:confirm-text="confirmText"
@confirm="confirmModel" ref="checkModel"
@cancel="cancel"
@confirm="confirm" ref="checkModel"
:show-cancel-button="true"
:show-title="false">
<view class="slot-content">
<view class="check-status">
<u-image width="224rpx" height="224rpx" :src="statusImage"></u-image>
<text class="check-status-txt">{{statusTxt}}</text>
<text :class="['status-txt', { 'pass-color': pass }]">{{statusTxt}}</text>
</view>
<view class="check-list">
<view class="u-flex u-row-between list-title">
......@@ -50,7 +51,7 @@
size="32"></u-icon>
</view>
<view class="item-txt">{{item.submitted}}/{{item.required}}</view>
<view class="item-txt" :class="item.pass ? 'pass-color' : 'no-pass-color'">
<view :class="['item-txt', item.pass ? 'pass-color' : 'no-pass-color']">
{{item.pass ? "通过" : "未通过"}}
</view>
</view>
......@@ -76,7 +77,7 @@
type: Array,
default(){
return [
{label: '基本信息', submitted: 3, required: 3, pass: false},
{label: '基本信息', submitted: 3, required: 3, pass: true},
{label: '勘察信息', submitted: 20, required: 20, pass: true},
{label: '安装信息', submitted: 15, required: 20, pass: false}
]
......@@ -105,6 +106,9 @@
noPassIcon() { return process.uniEnv.qn_base_url + 'icon/no-pass.png'},
},
methods: {
cancel() {
this.$emit('close')
},
confirm() {
if(this.pass) {
uni.navigateTo({
......@@ -117,6 +121,7 @@
this.$emit('handle-problem', data)
}
}
},
}
</script>
......@@ -130,7 +135,7 @@
flex-direction: column;
justify-content: center;
align-items: center;
.check-status-txt {
.status-txt {
height: 46rpx;
font-size: 40rpx;
font-weight: bold;
......@@ -162,10 +167,10 @@
line-height: 32rpx;
}
.pass-color {
color: #2272FF;
color: #2272FF !important;
}
.no-pass-color {
color: #FA5A49;
color: #FA5A49 !important;;
}
.u-border-top {
......
<!-- ******************* 输入框 ******************* -->
<template>
<view>
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :border="true" placeholder="请输入" />
<u-input :type="type" class="input-item" v-model="dataValue" @input="valueChange" :placeholder="placeholder" placeholder-style="placeholderStyle"
custom-style="customStyle"/>
</view>
</template>
......@@ -11,7 +12,12 @@
name: 'XhInput', // 新建 input
components: {},
mixins: [stringMixin],
props: {},
props: {
placeholder: {
type: String,
default: '请输入'
}
},
data() {
return {}
},
......@@ -22,6 +28,16 @@
} else {
return 'text'
}
},
placeholderStyle() {
return 'color:#FFFFFF;font-size:26rpx'
},
customStyle() {
return {
'background-color': '#F4F5F7',
'border-radius': '12rpx',
'color': '#ff0000'
}
}
},
watch: {},
......
This diff is collapsed.
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