remoteList.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <view>
  3. <view>
  4. <uni-collapse :accordion="true">
  5. <uni-list>
  6. <view v-show="show">
  7. <uni-list-item title="远程做糖" @click="sugar()" />
  8. </view>
  9. <view v-show="show">
  10. <uni-list-item title="屏蔽/显示售卖花型" @click="flowers()" />
  11. </view>
  12. <view v-show="show2">
  13. <uni-list-item title="参数调整" @click="parameters()" />
  14. </view>
  15. <view v-show="show">
  16. <uni-list-item title="闹钟(定时开关炉头/机器休眠)" @click="alarmClock()" />
  17. </view>
  18. <view v-show="show">
  19. <uni-list-item title="机器音量调节" @click="volume()" />
  20. </view>
  21. </uni-list>
  22. </uni-collapse>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import uniList from '@/components/uni-list/uni-list.vue'
  28. import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
  29. import {
  30. mapState,
  31. mapActions,
  32. mapMutations
  33. } from 'vuex'
  34. export default {
  35. data() {
  36. return {
  37. show: true,
  38. show2: true
  39. }
  40. },
  41. onShow(state) {
  42. var globalUser = uni.getStorageSync("globalUser");
  43. var gid = globalUser.id;
  44. var name = globalUser.name;
  45. // if (gid != 1||gid != 236||name!="邱咪") {
  46. // this.show = true;
  47. // this.show2 = true;
  48. // }
  49. },
  50. methods: {
  51. sugar() {
  52. uni.navigateTo({
  53. url: 'dosugar',
  54. });
  55. },
  56. flowers(){
  57. uni.navigateTo({
  58. url:'flowerShow'
  59. })
  60. },
  61. parameters() {
  62. uni.navigateTo({
  63. url: './parameters',
  64. });
  65. },
  66. alarmClock() {
  67. uni.navigateTo({
  68. url: 'alarmClockList',
  69. });
  70. },
  71. volume() {
  72. uni.navigateTo({
  73. url: 'volume',
  74. });
  75. },
  76. }
  77. }
  78. </script>
  79. <style>
  80. </style>