123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127 |
- <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>
- <view v-show="show">
- <uni-list-item :title="$t('remoteList.password')" @click="password()" />
- </view>
- <view v-show="show">
- <uni-list-item :title="$t('remoteList.price')" @click="price()" />
- </view>
- <view v-show="show3">
- <uni-list-item title="解绑机器" @click="jiebang()" />
- </view>
- <view v-show="show3">
- <uni-list-item title="连接服务器审核" @click="lianjie()" />
- </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,
- show3:false
- }
- },
- onShow(state) {
- var globalUser = uni.getStorageSync("globalUser");
- var gid = globalUser.id;
- var name = globalUser.name;
- if(gid == 1150){
- this.show3 = true;
- }
- uni.setNavigationBarTitle({
- title: this.$t('remoteList.title')
- });
- // 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',
- });
- },
- jiebang() {
- uni.navigateTo({
- url: 'jiebang',
- });
- },
- lianjie() {
- uni.navigateTo({
- url: 'lianjie',
- });
- },
- password() {
- uni.navigateTo({
- url: 'updatePassword',
- });
- },
- price() {
- uni.navigateTo({
- url: '/packageB/pages/remote/updatePrice',
- });
- },
- }
- }
-
-
- </script>
- <style>
- </style>
|