applyFor.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <template>
  2. <view class="container container-apply-for">
  3. <blcok v-if="Object.keys(detaList).length">
  4. <view class="item-content">
  5. <text class="item-key"> 姓名:</text>
  6. <text class="item-value"> {{ detaList.RealName }}</text>
  7. </view>
  8. <view class="item-content">
  9. <text class="item-key"> 公司名:</text>
  10. <text class="item-value"> {{ detaList.CompanyName }}</text>
  11. </view>
  12. <view class="item-content">
  13. <text class="item-key"> 联系方式:</text>
  14. <text class="item-value"> {{ detaList.Mobile }}</text>
  15. </view>
  16. <view class="item-content">
  17. <text class="item-key"> 申请来源:</text>
  18. <text class="item-value"> {{ detaList.ApplicationSource }}</text>
  19. </view>
  20. <view class="item-content">
  21. <text class="item-key"> 名片:</text>
  22. </view>
  23. <image class="card-box" :src="detaList.BusinessCardUrl" @click="lookImage"></image>
  24. </blcok>
  25. <Loading />
  26. </view>
  27. </template>
  28. <script>
  29. import { MsgTemplate } from "@/config/api.js";
  30. export default {
  31. data() {
  32. return {
  33. detaList: {},
  34. applyId: 0,
  35. };
  36. },
  37. methods: {
  38. async getDetail() {
  39. const res = await MsgTemplate.userApplyDetail({
  40. ApplyRecordId: this.applyId,
  41. });
  42. if (res.Ret === 200) {
  43. let { Data } = res;
  44. this.detaList = Data.Detail || {};
  45. }
  46. },
  47. lookImage() {
  48. uni.previewImage({
  49. urls: [this.detaList.BusinessCardUrl], //查看图片的数组
  50. });
  51. },
  52. },
  53. onLoad(options) {
  54. this.applyId = Number(options.id) || 0;
  55. this.applyId && this.getDetail();
  56. },
  57. };
  58. </script>
  59. <style lang="scss">
  60. .container-apply-for {
  61. padding: 20rpx 20rpx 20rpx 35rpx;
  62. color: #333;
  63. font-size: 34rpx;
  64. .item-content {
  65. display: flex;
  66. margin-top: 50rpx;
  67. .item-key {
  68. width: 170rpx;
  69. flex-shrink: 0;
  70. text-align: right;
  71. }
  72. .item-value {
  73. flex: 1;
  74. }
  75. }
  76. .card-box {
  77. width: 682rpx;
  78. height: 425rpx;
  79. margin-top: 20rpx;
  80. }
  81. }
  82. </style>