12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <template>
- <view>
- <view>
- <uni-collapse :accordion="true">
- <uni-list>
- <view v-show="show">
- <uni-list-item :title="$t('remoteList.dosugur')" @click="sugar()" />
- </view>
- <view v-show="show">
- <uni-list-item :title="$t('remoteList.flowers')" @click="flowers()" />
- </view>
- <view v-show="show2">
- <uni-list-item :title="$t('remoteList.parameters')" @click="parameters()" />
- </view>
- <view v-show="show">
- <uni-list-item :title="$t('remoteList.alarmClock')" @click="alarmClock()" />
- </view>
- <view v-show="show">
- <uni-list-item :title="$t('remoteList.volume')" @click="volume()" />
- </view>
- </uni-list>
- </uni-collapse>
- </view>
- </view>
- </template>
- <script>
- import uniList from '@/components/uni-list/uni-list.vue'
- import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
- import {
- mapState,
- mapActions,
- mapMutations
- } from 'vuex'
- import {
- dateUtils
- } from '@/common/util.js';
- export default {
- data() {
- return {
- show: true,
- show2: true
- }
- },
- onShow(state) {
- var globalUser = uni.getStorageSync("globalUser");
- var gid = globalUser.id;
- var name = globalUser.name;
- // if (gid != 1||gid != 236||name!="邱咪") {
- // this.show = true;
- // this.show2 = true;
- // }
- },
- methods: {
- sugar() {
- uni.navigateTo({
- url: 'dosugar',
- });
- },
- flowers(){
- uni.navigateTo({
- url:'flowerShow'
- })
- },
- parameters() {
- uni.navigateTo({
- url: './parameters',
- });
- },
- alarmClock() {
- uni.navigateTo({
- url: 'alarmClockList',
- });
- },
- volume() {
- uni.navigateTo({
- url: 'volume',
- });
- },
- }
- }
-
-
- </script>
- <style>
- </style>
|