detail.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view>
  3. <view class="content">
  4. <view class="list">
  5. <view class="item" v-for="(item,index) in list" :key="index">
  6. <view class="label">{{item.name}}</view>
  7. <view class="inner">{{item.value}}</view>
  8. </view>
  9. </view>
  10. </view>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. list:[],
  18. };
  19. },
  20. onLoad(option) {
  21. // console.log(option.id)
  22. uni.setNavigationBarTitle({
  23. title:option.title
  24. })
  25. this.title = option.title
  26. this.$p_api.coalmine_working_face_info({
  27. id:option.id
  28. }).then((res)=>{
  29. console.log(res)
  30. this.list = res.data.data
  31. })
  32. }
  33. }
  34. </script>
  35. <style lang="scss">
  36. page{
  37. background-color: #009FE8;
  38. }
  39. .content{
  40. width: 750rpx;
  41. box-sizing: border-box;
  42. padding: 10rpx 25rpx;
  43. .list{
  44. width: 700rpx;
  45. background-color: #FFFFFF;
  46. border-radius: 16rpx;
  47. box-sizing: border-box;
  48. padding: 10rpx 30rpx;
  49. .item{
  50. display: flex;
  51. font-size: 28rpx;
  52. box-sizing: border-box;
  53. padding: 30rpx 0;
  54. border-bottom: 1rpx solid #eee;
  55. .label{
  56. width: 256rpx;
  57. color: #1e1e1e;
  58. }
  59. .inner{
  60. width: 380rpx;
  61. color: #666;
  62. }
  63. }
  64. }
  65. }
  66. </style>