remoteList.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view>
  3. <view>
  4. <uni-collapse :accordion="true">
  5. <uni-list>
  6. <view v-show="show">
  7. <uni-list-item :title="$t('remoteList.dosugur')" @click="sugar()" />
  8. </view>
  9. <view v-show="show">
  10. <uni-list-item :title="$t('remoteList.flowers')" @click="flowers()" />
  11. </view>
  12. <view v-show="show2">
  13. <uni-list-item :title="$t('remoteList.parameters')" @click="parameters()" />
  14. </view>
  15. <view v-show="show">
  16. <uni-list-item :title="$t('remoteList.alarmClock')" @click="alarmClock()" />
  17. </view>
  18. <view v-show="show">
  19. <uni-list-item :title="$t('remoteList.volume')" @click="volume()" />
  20. </view>
  21. <view v-show="show">
  22. <uni-list-item :title="$t('remoteList.password')" @click="password()" />
  23. </view>
  24. <view v-show="show">
  25. <uni-list-item :title="$t('remoteList.price')" @click="price()" />
  26. </view>
  27. <view v-show="show3">
  28. <uni-list-item title="解绑机器" @click="jiebang()" />
  29. </view>
  30. <view v-show="show3">
  31. <uni-list-item title="连接服务器审核" @click="lianjie()" />
  32. </view>
  33. </uni-list>
  34. </uni-collapse>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. import uniList from '@/components/uni-list/uni-list.vue'
  40. import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
  41. import {
  42. mapState,
  43. mapActions,
  44. mapMutations
  45. } from 'vuex'
  46. import {
  47. dateUtils
  48. } from '@/common/util.js';
  49. export default {
  50. data() {
  51. return {
  52. show: true,
  53. show2: true,
  54. show3:false
  55. }
  56. },
  57. onShow(state) {
  58. var globalUser = uni.getStorageSync("globalUser");
  59. var gid = globalUser.id;
  60. var name = globalUser.name;
  61. if(gid == 1150){
  62. this.show3 = true;
  63. }
  64. uni.setNavigationBarTitle({
  65. title: this.$t('remoteList.title')
  66. });
  67. // if (gid != 1||gid != 236||name!="邱咪") {
  68. // this.show = true;
  69. // this.show2 = true;
  70. // }
  71. },
  72. methods: {
  73. sugar() {
  74. uni.navigateTo({
  75. url: 'dosugar',
  76. });
  77. },
  78. flowers(){
  79. uni.navigateTo({
  80. url:'flowerShow'
  81. })
  82. },
  83. parameters() {
  84. uni.navigateTo({
  85. url: './parameters',
  86. });
  87. },
  88. alarmClock() {
  89. uni.navigateTo({
  90. url: 'alarmClockList',
  91. });
  92. },
  93. volume() {
  94. uni.navigateTo({
  95. url: 'volume',
  96. });
  97. },
  98. jiebang() {
  99. uni.navigateTo({
  100. url: 'jiebang',
  101. });
  102. },
  103. lianjie() {
  104. uni.navigateTo({
  105. url: 'lianjie',
  106. });
  107. },
  108. password() {
  109. uni.navigateTo({
  110. url: 'updatePassword',
  111. });
  112. },
  113. price() {
  114. uni.navigateTo({
  115. url: '/packageB/pages/remote/updatePrice',
  116. });
  117. },
  118. }
  119. }
  120. </script>
  121. <style>
  122. </style>