setUp.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <view class="head">
  3. <!-- <u-navbar :autoBack="true" title="设置" bgColor="#fd5003" leftIconColor="#fff" titleStyle="color:#fff"></u-navbar> -->
  4. <view class="content">
  5. <view style="text-align: center;">
  6. <image src="https://td.echepei.com/file/applets/resources/parts/images/logo/logo.png" mode=""
  7. style="width: 500rpx;height: 160rpx;border-radius: 40rpx;"></image>
  8. <!-- <h3>{{name}}</h3> -->
  9. <view>version:{{versionNumber}}</view>
  10. </view>
  11. <!-- <view class="u-m-t-20" style="margin-top: 100rpx;">
  12. <u-cell-group>
  13. <u-cell icon="setting-fill" :isLink="true" title="检查更新" @click="checkVersion"
  14. :iconStyle="{color: '#fd5003'}"></u-cell>
  15. </u-cell-group>
  16. </view> -->
  17. </view>
  18. <view style="width: 100%;position:fixed; bottom:200rpx;padding: 0;">
  19. <view style="width: 92%;margin: 0 auto;">
  20. <u-button type="primary" @click="logOut" text="退出登录" color="#fd5003"></u-button>
  21. </view>
  22. <view style="width: 100%;position:fixed;bottom:20rpx;text-align: center;">
  23. <!-- <view>
  24. {{name}}软件许可及服务协议
  25. </view> -->
  26. <!-- <view style="color: #fd5003;">
  27. 《隐私保护指引》
  28. </view> -->
  29. <!-- <web-view src="http://www.turbosoft.net/privacyPolicy.html" bindload="bindload" binderror="binderror"></web-view> -->
  30. <!-- <a href="http://www.turbosoft.net/privacyPolicy.html" style="color: #fd5003;">《隐私保护指引》</a> -->
  31. </view>
  32. </view>
  33. </u-modal>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. name: '获取失败',
  41. versionNumber: '获取失败'
  42. }
  43. },
  44. created() {
  45. // #ifdef MP-WEIXIN
  46. let _this = this
  47. const accountInfo = wx.getAccountInfoSync();
  48. if (accountInfo.miniProgram) {
  49. _this.versionNumber = accountInfo.miniProgram.version?accountInfo.miniProgram.version:'获取失败' // 小程序 版本号
  50. }
  51. // #endif
  52. },
  53. methods: {
  54. logOut() {
  55. uni.clearStorageSync();
  56. uni.redirectTo({
  57. url: '/pages/login/login'
  58. });
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .content {
  65. width: 96%;
  66. margin: 140rpx auto;
  67. }
  68. .head{
  69. padding-top: var(--status-bar-height);
  70. }
  71. .head ::v-deep.u-navbar-inner {
  72. z-index: -99999;
  73. }
  74. </style>