调整修复一些问题
This commit is contained in:
66
pages/work/perfectInstitutionsInfo.vue
Normal file
66
pages/work/perfectInstitutionsInfo.vue
Normal file
@@ -0,0 +1,66 @@
|
||||
<template>
|
||||
<view>
|
||||
<view class="item-flex" v-for="(item, index) in params" :key="index">
|
||||
<label>{{item.title}}</label>
|
||||
<view class="value">{{item.value_text || '-'}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { baseBase } from '@/apis/interfaces/order.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
params: []
|
||||
};
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
baseBase(this.$Route.query.itemId).then(res => {
|
||||
let { params } = res;
|
||||
this.params = params
|
||||
uni.hideLoading()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.item-flex{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 30rpx;
|
||||
position: relative;
|
||||
line-height: 40rpx;
|
||||
align-items: center;
|
||||
label{
|
||||
width: 300rpx;
|
||||
font-size: 30rpx;
|
||||
color: gray;
|
||||
@extend .nowrap;
|
||||
}
|
||||
.value{
|
||||
text-align: right;
|
||||
width: calc( 100% - 300rpx );
|
||||
font-size: 30rpx;
|
||||
}
|
||||
&::after{
|
||||
position: absolute;
|
||||
left: 30rpx;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 1rpx;
|
||||
content: " ";
|
||||
background: #f6f6f6;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user