List.vue 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <view class="wrap">
  3. <!-- v-for="li in list" -->
  4. <view class="list_box" @click="gotodetail">
  5. <view class="list">
  6. <view>{{list.name}}</view>
  7. <view style="font-size: 24rpx;color: #999999;">身份证卡:{{list.number}}</view>
  8. </view>
  9. </view>
  10. </view>
  11. </template>
  12. <script>
  13. export default {
  14. data() {
  15. return {
  16. list: {
  17. name: '',
  18. number: ''
  19. }
  20. }
  21. },
  22. onLoad() {
  23. this.list.name = this.$store.state.data.userInfo.name,
  24. this.list.number = this.$store.state.data.userInfo.id_card_no
  25. },
  26. methods: {
  27. gotodetail(val) {
  28. console.log(val,'val')
  29. uni.navigateTo({
  30. url:'/pages/Patient/detail'
  31. })
  32. }
  33. },
  34. }
  35. </script>
  36. <style>
  37. page {
  38. height: 100%;
  39. background-color: #f3f3f9;
  40. }
  41. .wrap {
  42. height: 100vh;
  43. padding: 0 30rpx;
  44. }
  45. .list_box {
  46. height: 140rpx;
  47. background-color: #fff;
  48. margin: 40rpx 0;
  49. box-shadow: 0px 14rpx 16rpx 0px rgba(56, 104, 244, 0.07);
  50. text-align: left;
  51. padding: 25rpx;
  52. display: flex;
  53. align-items: center;
  54. border-radius: 15rpx;
  55. }
  56. .list {}
  57. </style>