setUp.vue 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <template>
  2. <view style="background: #FABB43;height: 100vh;">
  3. <image src="/static/images/tabBar/104.png"
  4. style="width:100%;height: 645rpx;margin-right: 10rpx;position: relative;bottom: 150rpx;" mode="scaleToFill">
  5. </image>
  6. <!-- <u-navbar :autoBack="true" title="设置" bgColor="#fd5003" leftIconColor="#fff" titleStyle="color:#fff"></u-navbar> -->
  7. <view class="content">
  8. <view style="text-align: center;">
  9. <image src="/static/images/tabBar/105.png"
  10. style="width:563rpx;height: 176rpx;" mode="scaleToFill">
  11. </image>
  12. <view style="color: #fff;font-size: 26rpx;margin-top: 20rpx;">version:{{versionNumber}}</view>
  13. </view>
  14. </view>
  15. <view style="width: 100%;position:fixed; bottom:200rpx;padding: 0;">
  16. <view style="width:468rpx;margin: 0 auto;">
  17. <u-button type="primary" @click="logOut" text="退出登录" color="#E75F37" shape='circle'></u-button>
  18. </view>
  19. <view style="width: 100%;position:fixed;bottom:20rpx;text-align: center;">
  20. <!-- <view>
  21. {{name}}软件许可及服务协议
  22. </view> -->
  23. <!-- <view style="color: #fd5003;">
  24. 《隐私保护指引》
  25. </view> -->
  26. <!-- <web-view src="http://www.turbosoft.net/privacyPolicy.html" bindload="bindload" binderror="binderror"></web-view> -->
  27. <!-- <a href="http://www.turbosoft.net/privacyPolicy.html" style="color: #fd5003;">《隐私保护指引》</a> -->
  28. </view>
  29. </view>
  30. </u-modal>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. name: '获取失败',
  38. versionNumber: '获取失败'
  39. }
  40. },
  41. created() {
  42. // #ifdef MP-WEIXIN
  43. let _this = this
  44. const accountInfo = wx.getAccountInfoSync();
  45. if (accountInfo.miniProgram) {
  46. _this.versionNumber = accountInfo.miniProgram.version?accountInfo.miniProgram.version:'获取失败' // 小程序 版本号
  47. }
  48. // #endif
  49. },
  50. methods: {
  51. logOut() {
  52. uni.clearStorageSync();
  53. uni.navigateTo()
  54. uni.reLaunch({
  55. url: '/pages/login/login'
  56. });
  57. }
  58. }
  59. }
  60. </script>
  61. <style lang="scss" scoped>
  62. .content {
  63. width: 96%;
  64. margin: 60rpx auto;
  65. }
  66. .head{
  67. padding-top: var(--status-bar-height);
  68. }
  69. .head ::v-deep.u-navbar-inner {
  70. z-index: -99999;
  71. }
  72. </style>