index.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. margin-top: 30rpx;
  86. .option_item {
  87. display: flex;
  88. justify-content: space-between;
  89. align-items: center;
  90. height: 120rpx;
  91. border-bottom: 2rpx solid #dfdfdf;
  92. .item_left {
  93. display: flex;
  94. align-items: center;
  95. image {
  96. width: 32rpx;
  97. height: 32rpx;
  98. margin-right: 20rpx;
  99. }
  100. .label {
  101. font-size: 30rpx;
  102. color: #666666;
  103. }
  104. }
  105. .item-right {
  106. display: flex;
  107. justify-content: space-between;
  108. align-items: center;
  109. ::v-deep .u-icon__icon {
  110. font-size: 30rpx !important;
  111. }
  112. text{
  113. font-size: 24rpx;
  114. color: #999999;
  115. margin-right: 20rpx;
  116. }
  117. .copy_btn{
  118. display: flex;
  119. font-size: 24rpx;
  120. color: #108CFF;
  121. margin-right: 30rpx;
  122. }
  123. }
  124. }
  125. }
  126. </style>