123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <template>
- <view class="home">
-
-
- {{i.name}}
- {{j.name}}
- <uni-card>
- <view class="title">
- 库存
- </view>
- <view class="menu-list-warp">
- <view class="menu-list-box" @click="toRouter('/submit/submit')">
- <image :src="'../static/smck.png'" mode=""></image>
- <view class="">
- 异常上报
- </view>
- </view>
- <view class="menu-list-box" @click="toRouter('/usedTotal/usedTotal')" v-if="isRoom">
- <image :src="'../static/tj.png'" mode=""></image>
- <view class="">
- 库存统计
- </view>
- </view>
- </view>
- </uni-card>
- </view>
- </template>
- <script>
- import {
- getInfo
- } from "@/util/api.js";
- import Vue from 'vue'
- export default {
- data() {
- return {
- userInfoData: [],
- notificationData: [],
- isRoom: false,
- }
- },
- onLoad() {
-
-
-
-
-
-
-
-
-
- const v = this
- if (
- Vue.prototype.$token.role_id == '1552548151620026370' ||
- Vue.prototype.$token.role_id == '1552550790307004417' ||
- Vue.prototype.$token.role_id == '1552550978346041346') {
- this.isRoom = true
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- },
- methods: {
- toRouter(j) {
- console.log(j)
- wx.requestSubscribeMessage({
- tmplIds: ['Tt0C6SOrtd2QXIdLqrm0CNdarUE4LG_lNJblUnkqTPM'],
- success(res) {
-
- },
- fail(err){
- console.log(err)
- }
- })
- uni.navigateTo({
- url: '/pages' + j
- })
- },
- },
- }
- </script>
- <style lang="less">
- .menu-list-warp {
- .menu-list-box {
- width: 25%;
- text-align: center;
- float: left;
- padding: 20rpx;
- image {
- width: 100rpx;
- height: 100rpx;
- }
- }
- }
- </style>
|