about.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <view class="container padding-lr-sm" v-if="fetch">
  3. <use-tabbar :tabbar="false"></use-tabbar>
  4. <!-- Logo -->
  5. <view class="dflex-c pos-r margin-bottom margin-top-xxl">
  6. <image :src="fetch.logo" mode="widthFix" ></image>
  7. </view>
  8. <!-- 标题与副标题 -->
  9. <view class="dflex-c dflex-flow-c">
  10. <text class="fwb fs-lg">{{fetch.name}}</text>
  11. <text class="ft-dark fs-xxs">{{fetch.info}}</text>
  12. </view>
  13. <view class="gap padding"></view>
  14. <!-- 协议相关 -->
  15. <view class="border-radius">
  16. <view class="use-list-title dflex-b padding-lr w-full bg-main" @click="Dever.location('tool/page?title=使用协议')">
  17. <text class="flex1" style="font-size: 13px;">使用协议</text>
  18. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  19. </view>
  20. <view class="use-list-title dflex-b padding-lr w-full bg-main" @click="Dever.location('tool/page?title=隐私政策')">
  21. <text class="flex1" style="font-size: 13px;">隐私政策</text>
  22. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  23. </view>
  24. <view class="border-line"></view>
  25. <view class="use-list-title dflex-b padding-lr w-full bg-main" @click="Dever.location('tool/page?title=关于我们')">
  26. <text class="flex1" style="font-size: 13px;">关于我们</text>
  27. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  28. </view>
  29. </view>
  30. <!-- 版本与官网 -->
  31. <view class="border-radius margin-top-sm" @click="show">
  32. <view class="use-list-title dflex-b padding-lr w-full bg-main">
  33. <text class="flex1" style="font-size: 13px;">版本更新</text>
  34. <view class="dflex">
  35. <text class="tip line-height-1 margin-right-xs">{{fetch.version}}</text>
  36. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  37. </view>
  38. </view>
  39. <view class="use-list-title dflex-b padding-lr w-full bg-main" @click="Dever.location('http://'+fetch.site+'')">
  40. <text class="flex1" style="font-size: 13px;">{{fetch.name}}官网</text>
  41. <view class="dflex">
  42. <text class="tip line-height-1 margin-right-xs">{{fetch.site}}</text>
  43. <view class="iconfont fs-sm iconjiantou-01" style="color: #c0c0c0;"></view>
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 页脚版权 -->
  48. <view class="pos-f pos-b-full dflex-c dflex-flow-c ft-dark fs-xxs margin-bottom-xl">
  49. <text>{{fetch.company}}</text>
  50. <text>{{fetch.copyright}}</text>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. fetch: {},
  59. }
  60. },
  61. onShow() {
  62. this.loadData();
  63. },
  64. methods: {
  65. loadData() {
  66. this.DeverApi.get(this, 'version');
  67. },
  68. quit() {
  69. this.Dever.confirm('确认退出登录吗?', () => {
  70. this.Dever.setToken('');
  71. this.Dever.location('user/index', 'go');
  72. })
  73. },
  74. show() {
  75. this.Dever.alert('已是最新版');
  76. // 请求版本号
  77. },
  78. goLogin() {
  79. this.Dever.goLogin();
  80. },
  81. }
  82. }
  83. </script>
  84. <style>
  85. image {
  86. width: 48px;
  87. height: 48px;
  88. }
  89. </style>