remoteList.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. // if (gid != 1||gid != 236||name!="邱咪") {
  65. // this.show = true;
  66. // this.show2 = true;
  67. // }
  68. },
  69. methods: {
  70. sugar() {
  71. uni.navigateTo({
  72. url: 'dosugar',
  73. });
  74. },
  75. flowers(){
  76. uni.navigateTo({
  77. url:'flowerShow'
  78. })
  79. },
  80. parameters() {
  81. uni.navigateTo({
  82. url: './parameters',
  83. });
  84. },
  85. alarmClock() {
  86. uni.navigateTo({
  87. url: 'alarmClockList',
  88. });
  89. },
  90. volume() {
  91. uni.navigateTo({
  92. url: 'volume',
  93. });
  94. },
  95. jiebang() {
  96. uni.navigateTo({
  97. url: 'jiebang',
  98. });
  99. },
  100. lianjie() {
  101. uni.navigateTo({
  102. url: 'lianjie',
  103. });
  104. },
  105. password() {
  106. uni.navigateTo({
  107. url: 'updatePassword',
  108. });
  109. },
  110. price() {
  111. uni.navigateTo({
  112. url: '/packageB/pages/remote/updatePrice',
  113. });
  114. },
  115. }
  116. }
  117. </script>
  118. <style>
  119. </style>