调整修复一些问题

This commit is contained in:
唐明明
2022-12-27 09:17:32 +08:00
parent 1f3f6b230a
commit 8344496487
16 changed files with 484 additions and 101 deletions

View 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>