Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

information-deletion.vue 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <view class="content">
  3. <!-- 如果您是我们的ETC用户,需要删除个人的用户信息、车辆信息、银行卡信息和邮寄信息等,请通过联系在线客服 4008 0087 87 进行处理 -->
  4. {{content}}
  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. request
  24. } from "../../utils/network/request.js";
  25. import {
  26. infoQuery
  27. } from "@/utils/network/api.js"
  28. const content=ref('')
  29. // 获取文本信息----用户协议
  30. const getInfo = (type) => {
  31. //参数说明
  32. let options = {
  33. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  34. data: {
  35. businessType: 'USER_DELETE'
  36. }, //请求参数
  37. method: "POST", //提交方式(默认POST)
  38. showLoading: true, //是否显示加载中(默认显示)
  39. };
  40. //调用方式
  41. request(infoQuery, options)
  42. .then((res) => {
  43. let data=stringToJson(res.bizContent)
  44. console.log(data);
  45. content.value=data.text
  46. })
  47. .catch((err) => {
  48. console.log(err);
  49. });
  50. }
  51. onLoad(() => {
  52. getInfo()
  53. })
  54. </script>
  55. <style lang="scss" scoped>
  56. .content {
  57. padding: 98rpx 50rpx 0rpx 50rpx;
  58. font-size: 28rpx;
  59. font-weight: 400;
  60. color: #333333;
  61. line-height: 40px;
  62. }
  63. </style>