Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

info-export.vue 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view class="content">
  3. <!-- 如果您是我们的ETC用户,需要导出个人的用户信息、车辆信息、银行卡信息和邮寄信息等,请通过联系客服进行处理并提供您的邮箱,我们会在15个工作日内发送到您的指定邮箱 -->
  4. {{textContent}}
  5. </view>
  6. </template>
  7. <script setup lang="ts">
  8. import {
  9. reactive,
  10. ref
  11. } from "vue";
  12. import {
  13. navTo
  14. } from "@/utils/utils"
  15. import {
  16. onLoad,
  17. onShow
  18. } from "@dcloudio/uni-app";
  19. import {
  20. stringToJson
  21. } from "@/utils/network/encryption.js";
  22. import {
  23. requestNew
  24. } from "@/utils/network/request.js";
  25. import {
  26. infoQuery
  27. } from "@/utils/network/api.js"
  28. const textContent = ref('')
  29. // 获取文本信息----
  30. const getInfo = (type) => {
  31. //参数说明
  32. let options = {
  33. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  34. data: {
  35. businessType: 'INFORMATION_COPY'
  36. }, //请求参数
  37. method: "POST", //提交方式(默认POST)
  38. showLoading: true, //是否显示加载中(默认显示)
  39. };
  40. //调用方式
  41. requestNew(infoQuery, options)
  42. .then((res) => {
  43. let data = res
  44. console.log(data);
  45. textContent.value = data.text
  46. })
  47. .catch((err) => {
  48. console.log(err);
  49. });
  50. }
  51. onLoad(() => {
  52. })
  53. onShow(() => {
  54. getInfo()
  55. console.log(1);
  56. })
  57. </script>
  58. <style lang="scss" scoped>
  59. .content {
  60. padding: 98rpx 50rpx 0rpx 50rpx;
  61. font-size: 28rpx;
  62. font-weight: 400;
  63. color: #333333;
  64. line-height: 40px;
  65. }
  66. </style>