about.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <template>
  2. <view class="container">
  3. <uNavBar dark :fixed="true" backgroundColor="#3F9EFF" statusBar="false" left-icon="left" left-text="返回"
  4. :title="title" @clickLeft="toBack">
  5. </uNavBar>
  6. <view class="content">
  7. <view class="form">
  8. <view class="cell">
  9. <view class="name">APP版本</view>
  10. <input type="text" placeholder="" disabled="true" v-model="versionText" class="ipt"
  11. placeholder-class="hold" style="color: skyblue;" />
  12. </view>
  13. <view class="cell">
  14. <text>开发单位:</text>
  15. <text style="color: skyblue;">北京大恒软件技术有限公司</text>
  16. </view>
  17. <view class="cell">
  18. <text>技术支持电话:</text>
  19. <text @click="call('18600457599')" style="color: skyblue;text-decoration-line: underline;">18600457599</text>
  20. </view>
  21. <view class="cell">
  22. <view style="flex: 1;flex-direction: column;">
  23. <view>
  24. <uni-link :href="apkUrl" text="安卓APP安装包下载地址" color="#007BFF" fontSize="16"
  25. copyTips="已自动复制下载地址,请在手机浏览器里粘贴该下载地址"></uni-link>
  26. </view>
  27. <view style="margin-top: 10px;">
  28. <text
  29. style="font-size: 0.6rem;color: lightcoral;">备注:在小程序内点击下载地址可复制安装包链接,需自行打开手机浏览器进行粘贴安装包链接进行下载,在app内点击下载地址可直接打开手机浏览器。</text>
  30. </view>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import http from '@/http/api.js'
  39. import uNavBar from '@/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue'
  40. import {
  41. version
  42. } from '@/common/setting.js'
  43. export default {
  44. components: {
  45. uNavBar
  46. },
  47. data() {
  48. return {
  49. versionText: '',
  50. title: '关于',
  51. apkUrl: '',
  52. };
  53. },
  54. onLoad() {
  55. this.versionText = version;
  56. this.getAppUrl();
  57. },
  58. methods: {
  59. toBack() {
  60. uni.navigateBack({
  61. delta: 1
  62. })
  63. },
  64. getAppUrl() {
  65. let that = this;
  66. http.request({
  67. url: '/galaxy-business/version/app',
  68. method: 'GET'
  69. }).then(res => {
  70. console.log(JSON.stringify(res))
  71. if (res.data != null) {
  72. that.apkUrl = res.data.apkUrl;
  73. }
  74. }).catch(err => {
  75. console.log(err)
  76. })
  77. },
  78. call(phone) {
  79. console.log(phone)
  80. uni.showModal({
  81. content: '是否需要拨打[' + phone + ']?',
  82. showCancel: true,
  83. success(res) {
  84. if (res.confirm) {
  85. uni.makePhoneCall({
  86. phoneNumber: phone
  87. });
  88. }
  89. }
  90. });
  91. },
  92. }
  93. };
  94. </script>
  95. <style lang="scss">
  96. .container {
  97. background-color: #f7f7f7;
  98. min-height: 100vh;
  99. padding: 0 0 200rpx;
  100. overflow: hidden;
  101. }
  102. .content {
  103. background-color: #ffffff;
  104. overflow: hidden;
  105. }
  106. .form {
  107. padding: 0 36rpx;
  108. .cell {
  109. display: flex;
  110. justify-content: space-between;
  111. align-items: center;
  112. padding: 40rpx 0;
  113. font-size: 30rpx;
  114. // font-family: Source Han Sans CN;
  115. // font-weight: bold;
  116. color: #666666;
  117. &:not(:last-of-type) {
  118. border-bottom: 2rpx solid #efefef;
  119. }
  120. .name {
  121. font-size: 0.8rem;
  122. }
  123. .ipt {
  124. flex: 1;
  125. margin-left: 40rpx;
  126. text-align: right;
  127. font-size: 0.8rem;
  128. // font-family: Source Han Sans CN;
  129. // font-weight: bold;
  130. color: #333333;
  131. }
  132. .hold {
  133. font-size: 27rpx;
  134. // font-family: Source Han Sans CN;
  135. // font-weight: bold;
  136. color: #c8c8ce;
  137. }
  138. }
  139. }
  140. </style>