index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <template>
  2. <view class="option_list">
  3. <view class="option_item" @click="handleCircumstances">
  4. <view class="item_left" >
  5. <image src="@/static/parson/hjjc.png" mode=""></image>
  6. <text class="label">环境监测</text>
  7. </view>
  8. <view class="item-right">
  9. <u-icon name="arrow-right" color="#aaa"></u-icon>
  10. </view>
  11. </view>
  12. <view class="option_item" @click="handleFeedback">
  13. <view class="item_left">
  14. <image src="@/static/parson/icon-yj.png" mode=""></image>
  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. <image src="@/static/parson/icon-about.png" mode=""></image>
  24. <text class="label">关于应用</text>
  25. </view>
  26. <view class="item-right">
  27. <text>版本号 v{{version}}</text>
  28. <u-icon name="arrow-right" color="#aaa"></u-icon>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {
  37. uuid : this.$store.state.user.uuid,
  38. // version : this.$store.state.app.currentVersion
  39. }
  40. },
  41. computed : {
  42. version(){
  43. return this.$store.state.app.currentVersion;
  44. }
  45. },
  46. methods : {
  47. handleCircumstances(){
  48. uni.navigateTo({
  49. url: "/pages/circumstances/index"
  50. })
  51. },
  52. handleFeedback(){
  53. uni.navigateTo({
  54. url: "/pages/feedback/index"
  55. })
  56. },
  57. // 检查版本更新
  58. handleCheckVersion(){
  59. uni.navigateTo({
  60. url: "/pages/about/index"
  61. })
  62. // uni.$u.toast("已经是最新版");
  63. },
  64. handleCopyMac(){
  65. uni.setClipboardData({
  66. data: this.uuid,
  67. success:()=> {
  68. uni.showToast({
  69. title: '复制成功',
  70. })
  71. },
  72. fail: () => {
  73. uni.showToast({
  74. icon:"error",
  75. title: '复制失败'
  76. })
  77. }
  78. });
  79. }
  80. },
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. .option_list {
  85. .option_item {
  86. display: flex;
  87. justify-content: space-between;
  88. align-items: center;
  89. height: 100rpx;
  90. border-bottom: 2rpx solid #dfdfdf;
  91. background-color: #fff;
  92. padding: 0 30rpx;
  93. .item_left {
  94. display: flex;
  95. align-items: center;
  96. image {
  97. width: 32rpx;
  98. height: 32rpx;
  99. margin-right: 20rpx;
  100. }
  101. .label {
  102. font-size: 28rpx;
  103. color: #202020;
  104. }
  105. }
  106. .item-right {
  107. display: flex;
  108. justify-content: space-between;
  109. align-items: center;
  110. ::v-deep .u-icon__icon {
  111. font-size: 30rpx !important;
  112. }
  113. text{
  114. font-size: 24rpx;
  115. color: #999999;
  116. margin-right: 20rpx;
  117. }
  118. .copy_btn{
  119. display: flex;
  120. font-size: 24rpx;
  121. color: #108CFF;
  122. margin-right: 30rpx;
  123. }
  124. }
  125. }
  126. }
  127. </style>