12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- <template>
- <view class="content">
- <!-- 如果您是我们的ETC用户,需要导出个人的用户信息、车辆信息、银行卡信息和邮寄信息等,请通过联系客服进行处理并提供您的邮箱,我们会在15个工作日内发送到您的指定邮箱 -->
- {{textContent}}
- </view>
- </template>
-
-
- <script setup lang="ts">
- import {
- reactive,
- ref
- } from "vue";
- import {
- navTo
- } from "@/utils/utils"
- import {
- onLoad,
- onShow
- } from "@dcloudio/uni-app";
- import {
- stringToJson
- } from "@/utils/network/encryption.js";
- import {
- request
- } from "@/utils/network/request.js";
- import {
- infoQuery
- } from "@/utils/network/api.js"
-
- const textContent = ref('')
- // 获取文本信息----
- const getInfo = (type) => {
- //参数说明
- let options = {
- type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
- data: {
- businessType: 'INFORMATION_COPY'
- }, //请求参数
- method: "POST", //提交方式(默认POST)
- showLoading: true, //是否显示加载中(默认显示)
- };
-
- //调用方式
- request(infoQuery, options)
- .then((res) => {
- let data = stringToJson(res.bizContent)
- console.log(data);
- textContent.value = data.text
- })
- .catch((err) => {
- console.log(err);
- });
- }
-
-
-
-
-
- onLoad(() => {
-
- })
- onShow(() => {
- getInfo()
- console.log(1);
- })
- </script>
-
-
-
- <style lang="scss" scoped>
- .content {
- padding: 98rpx 50rpx 0rpx 50rpx;
- font-size: 28rpx;
- font-weight: 400;
- color: #333333;
- line-height: 40px;
- }
- </style>
|