Commit a3a4a145 authored by 高铭波's avatar 高铭波

perf(order):勘查材料信息优化调整

parent 66c3bdd7
This diff is collapsed.
...@@ -35,3 +35,31 @@ display:none; ...@@ -35,3 +35,31 @@ display:none;
width: 460rpx; width: 460rpx;
} }
} }
$w-main-color: #333333;
$w-type-primary: #2272FF;
$w-type-warning: #ff9900;
$w-type-success: #19be6b;
$w-type-error: #FA5A49 ;
$w-type-info: #999999;
$u-content-color: #333333;
.w-main-color {
color: $w-main-color;
}
.w-content-color {
color: $w-main-color;
}
.w-primary-color {
color: $w-type-primary;
}
.w-warning-color {
color: $w-type-warning;
}
.w-success-color {
color: $w-type-success;
}
.w-error-color {
color: $w-type-error;
}
<!-- ******************* 输入框 ******************* --> <!-- ******************* 输入框 ******************* -->
<template> <template>
<view> <view>
<view class="list u-flex item-row-between"> <view class="list u-flex item-row-between">
<view class="item-title"> <view class="item-title">
<image class="item-image" :src="mixingImage" v-if="item.required"></image> <image
<view class="u-m-r-20">{{item.fieldsTitle}}</view> class="item-image"
</view> :src="mixingImage"
<view class="location-name" @click="toMaterialPage"> v-if="item.required"
<text class="arrow-text">{{arrowText}}</text> ></image>
<u-icon name="arrow-right" color="#2979ff" size="30"></u-icon> <view class="u-m-r-20">{{ item.fieldsTitle }}</view>
</view> <view class="u-m-r-20 w-error-color" v-show="item.subtitle">{{
</view> item.subtitle
<!-- <view class="u-flex-1 location">{{valueTxt || '正在获取中...'}}</view> --> }}</view>
</view> </view>
<view class="location-name" @click="toMaterialPage">
<text class="arrow-text">{{ arrowText }}</text>
<u-icon name="arrow-right" color="#2979ff" size="30"></u-icon>
</view>
</view>
<!-- <view class="u-flex-1 location">{{valueTxt || '正在获取中...'}}</view> -->
</view>
</template> </template>
<script> <script>
import arrMixin from './arrMixin' import arrMixin from "./arrMixin";
export default { export default {
name: 'XhInput', // 新建 input name: "XhInput", // 新建 input
components: {}, components: {},
mixins: [arrMixin], mixins: [arrMixin],
props: { props: {
placeholder: { placeholder: {
type: String, type: String,
default: '请输入' default: "请输入",
}, },
orderId: { orderId: {
type: String, type: String,
default: '请输入' default: "请输入",
}, },
}, },
data() { data() {
return { return {
maxlength: 140, maxlength: 140,
} };
}, },
computed: { computed: {
mixingImage() { mixingImage() {
return process.uniEnv.qn_base_url + 'mixing.png' return process.uniEnv.qn_base_url + "mixing.png";
}, },
arrowText() { arrowText() {
return this.dataValue && this.dataValue.length > 0 ? '已选择' : '请选择' return this.dataValue && this.dataValue.length > 0 ? "已选择" : "请选择";
} },
}, },
watch: {}, watch: {},
mounted() {}, mounted() {},
methods: { methods: {
toMaterialPage(){ toMaterialPage() {
let self = this let self = this;
uni.navigateTo({ uni.navigateTo({
url: 'pages/order/material?orderId='+this.orderId + '&fieldName='+ this.item.fieldsName, url:
// 接口调用成功的回调函数,即跳转到B页面 test.vue 后的回调函数 "pages/order/material?orderId=" +
success: function(res) { this.orderId +
// 通过eventChannel向被打开页面传送数据 "&fieldName=" +
res.eventChannel.emit('showMaterialData', self.dataValue); this.item.fieldsName,
} // 接口调用成功的回调函数,即跳转到B页面 test.vue 后的回调函数
success: function (res) {
}) // 通过eventChannel向被打开页面传送数据
}, res.eventChannel.emit("showMaterialData", self.dataValue);
} },
} });
},
},
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.required { .required {
padding-right: 10rpx; padding-right: 10rpx;
font-size: 28rpx; font-size: 28rpx;
line-height: 40rpx; line-height: 40rpx;
color: #fa3534; color: #fa3534;
} }
.item-image { .item-image {
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
.item-row-between { .item-row-between {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
.item-title { .item-title {
display: flex; display: flex;
font-size: 26rpx; font-size: 26rpx;
color: #333333; color: #333333;
align-items: center; align-items: center;
} }
.location-name { .location-name {
color: #2272FF; color: #2272ff;
text-align: right; text-align: right;
font-size: 26rpx; font-size: 26rpx;
display: flex; display: flex;
align-items: center; align-items: center;
.arrow-text { .arrow-text {
margin-right: 6rpx; margin-right: 6rpx;
} }
} }
} }
.location { .location {
background: #F4F5F7; background: #f4f5f7;
padding: 10rpx 20rpx; padding: 10rpx 20rpx;
border-radius: 12rpx; border-radius: 12rpx;
} }
</style> </style>
This diff is collapsed.
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