Commit f031722a authored by 刘用法's avatar 刘用法

数字键盘,布局

parent 0e6b5eff
...@@ -29,18 +29,25 @@ ...@@ -29,18 +29,25 @@
}, },
computed: { computed: {
type() { type() {
let ty = this.item.fieldsType.toLocaleLowerCase() if (this.item) {
if (this.item.fieldsId == 200) { let ty = this.item.fieldsType.toLocaleLowerCase()
this.maxlength = 9 switch (ty) {
return 'digit' case 'text':
} else { return 'textarea'
if (this.item && ty == 'password') { case 'password':
return this.item.fieldsType return this.item.fieldsType
}else if (this.item && ty == 'text') { case 'decimal':
return 'textarea' case 'number':
} else { case 'double':
return 'text' case 'integer':
this.maxlength = 9
return 'digit'
case 'textarea':
default:
return 'text'
} }
} else {
return 'text'
} }
}, },
......
...@@ -26,8 +26,9 @@ ...@@ -26,8 +26,9 @@
</view> </view>
<view class="line-view"></view> <view class="line-view"></view>
<view class="reason-view" v-if="showReason"><text class="reason-text">未通过原因:</text> <view class="reason-view" v-if="showReason">
<text v-for="(item, index) in orderData.auditResults" :key="index">{{item}}</text> <view><text class="reason-title">未通过原因:</text></view>
<view class="reason-text"><text v-for="(item, index) in orderData.auditResults" :key="index">{{item}}</text></view>
</view> </view>
<view class="bottom-view"> <view class="bottom-view">
<view> <view>
...@@ -407,10 +408,15 @@ ...@@ -407,10 +408,15 @@
font-size: 26rpx; font-size: 26rpx;
color: #FA5A49; color: #FA5A49;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
.reason-text { display: flex;
.reason-title {
flex-shrink: 0; flex-shrink: 0;
color: #666666; color: #666666;
}
.reason-text {
display: flex;
flex-direction: column;
} }
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<text>{{ order.contactPhone }}</text> <text>{{ order.contactPhone }}</text>
</view> </view>
<view class="between-cell address-cell"> <view class="between-cell address-cell">
<view class="left"> <view class="left-address">
<u-icon name="map" size="28"></u-icon> <u-icon name="map" size="28"></u-icon>
<text class="address-txt">{{ formatAddress }}</text> <text class="address-txt">{{ formatAddress }}</text>
</view> </view>
...@@ -857,9 +857,13 @@ ...@@ -857,9 +857,13 @@
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
.left { .left-address {
display: flex;
align-items: flex-start;
.address-txt { .address-txt {
line-height: 30rpx;
margin-left: 8rpx; margin-left: 8rpx;
margin-right: 20rpx;
} }
} }
} }
...@@ -949,19 +953,19 @@ ...@@ -949,19 +953,19 @@
z-index: 1; z-index: 1;
} }
.address-cell { // .address-cell {
height: 24rpx; // height: 24rpx;
font-size: 24rpx; // font-size: 24rpx;
font-weight: 400; // font-weight: 400;
color: #333333; // color: #333333;
line-height: 24rpx; // line-height: 24rpx;
.left { // .left {
.address-txt { // .address-txt {
margin-left: 8rpx; // margin-left: 8rpx;
} // }
} // }
} // }
} }
.record-item { .record-item {
......
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