index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="about_wrap">
  3. <u-navbar title="关于" :autoBack="true" :placeholder="true" v-hideNav></u-navbar>
  4. <view class="about_top">
  5. <view class="box">
  6. <image src="@/static/about/logo.png" mode=""></image>
  7. <view class="title">时与</view>
  8. <view class="desc">客户关系管理</view>
  9. <view class="version">v{{currentVersion}}</view>
  10. </view>
  11. </view>
  12. <view class="about_main_wrap">
  13. <view class="option_item" @click="handleUpdateDynamic">
  14. <view class="item_left">
  15. <text class="label">更新动态</text>
  16. </view>
  17. <view class="item-right">
  18. <u-icon name="arrow-right" color="#aaa"></u-icon>
  19. </view>
  20. </view>
  21. <view class="option_item" @click="handleCheckVersion">
  22. <view class="item_left">
  23. <text class="label">最新版本</text>
  24. </view>
  25. <view class="item-right">
  26. <text>v{{lastVersion}}</text>
  27. <u-icon name="arrow-right" color="#aaa"></u-icon>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. import APPUpdate from '@/uni_modules/zhouWei-APPUpdate/js_sdk/appUpdate';
  35. export default {
  36. data() {
  37. return {
  38. }
  39. },
  40. computed : {
  41. lastVersion(){
  42. return this.$store.state.app.lastVersion;
  43. },
  44. currentVersion(){
  45. return this.$store.state.app.currentVersion;
  46. },
  47. },
  48. methods: {
  49. handleUpdateDynamic(){
  50. uni.navigateTo({
  51. url : "/pages/updateDynamic/index"
  52. })
  53. },
  54. handleCheckVersion(){
  55. APPUpdate(true);
  56. },
  57. },
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. .about_wrap {
  62. .about_top {
  63. width: 100%;
  64. height: 514rpx;
  65. display: flex;
  66. justify-content: center;
  67. align-items: center;
  68. .box {
  69. text-align: center;
  70. image {
  71. width: 156rpx;
  72. height: 156rpx;
  73. }
  74. .desc {
  75. margin: 20rpx 0 10rpx 0;
  76. color: #999999;
  77. font-size: 26rpx;
  78. }
  79. .version {
  80. color: #999999;
  81. font-size: 26rpx;
  82. }
  83. .title {
  84. margin-top: 30rpx;
  85. font-size: 40rpx;
  86. color: #30323a;
  87. }
  88. }
  89. }
  90. .option_item {
  91. display: flex;
  92. justify-content: space-between;
  93. align-items: center;
  94. height: 100rpx;
  95. background-color: #fff;
  96. border-bottom: 1px solid #ddd;
  97. padding: 0 30rpx;
  98. &:last-child{
  99. border: none;
  100. }
  101. .item_left {
  102. display: flex;
  103. align-items: center;
  104. .label {
  105. font-size: 28rpx;
  106. color: #202020;
  107. }
  108. }
  109. .item-right {
  110. display: flex;
  111. justify-content: space-between;
  112. align-items: center;
  113. ::v-deep .u-icon__icon {
  114. font-size: 30rpx !important;
  115. }
  116. text {
  117. font-size: 24rpx;
  118. color: #999999;
  119. margin-right: 20rpx;
  120. }
  121. .copy_btn {
  122. display: flex;
  123. font-size: 24rpx;
  124. color: #108CFF;
  125. margin-right: 30rpx;
  126. }
  127. }
  128. }
  129. }
  130. </style>