選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

usage-instructions.vue 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <template>
  2. <view class="content">
  3. <!-- 本协议是由用户(以下简称为“您”)与北京巴别时代科技股份有限公司及其关联公司海南巴别时代科技有限公司(以下简称为“我们”)就我们所提供的产品和网络服务(包括我们的网站以及我们现在正在提供和将来可能向您提供的网络服务和游戏服务,以下统称为“产品和服务”)所订立的协议,本
  4. 协议包括《用户协议》、《用户个人信息保护政策》、《巴别时代儿童个人信息保护指引》、游戏规则(包括但不限于用户守则、玩家条例、游戏公告、提示及通知等内容)及其修订版本,上述内容一经正式发布,即为本协议不可分割的组成部分(以下简称“本协议”)。
  5. -->
  6. {{textContent}}
  7. </view>
  8. </template>
  9. <script setup lang="ts">
  10. import {
  11. reactive,
  12. ref
  13. } from "vue";
  14. import {
  15. navTo
  16. } from "@/utils/utils"
  17. import {
  18. onLoad,
  19. onShow
  20. } from "@dcloudio/uni-app";
  21. import {
  22. stringToJson
  23. } from "@/utils/network/encryption.js";
  24. import {
  25. request
  26. } from "@/utils/network/request.js";
  27. import {
  28. infoQuery
  29. } from "@/utils/network/api.js"
  30. const textContent = ref('')
  31. // 获取文本信息----用户协议
  32. const getInfo = (type) => {
  33. //参数说明
  34. let options = {
  35. type: 2, //type: 2,JSON格式提交数据(默认表单形式提交)
  36. data: {
  37. businessType: 'PRIVILEGE_USE'
  38. }, //请求参数
  39. method: "POST", //提交方式(默认POST)
  40. showLoading: true, //是否显示加载中(默认显示)
  41. };
  42. //调用方式
  43. request(infoQuery, options)
  44. .then((res) => {
  45. let data = stringToJson(res.bizContent)
  46. console.log(data);
  47. textContent.value = data.text
  48. })
  49. .catch((err) => {
  50. console.log(err);
  51. });
  52. }
  53. onLoad(() => {
  54. })
  55. onShow(() => {
  56. getInfo()
  57. console.log(1);
  58. })
  59. </script>
  60. <style lang="scss" scoped>
  61. .content {
  62. padding: 98rpx 50rpx 0rpx 50rpx;
  63. font-size: 28rpx;
  64. font-weight: 400;
  65. color: #333333;
  66. line-height: 40px;
  67. }
  68. </style>