buffeyu 4 years ago
parent
commit
d13d70a521
1 changed files with 9 additions and 4 deletions
  1. 13
      pages/mall/index.vue

13
pages/mall/index.vue

@ -1,6 +1,6 @@
<template> <template>
<view> <view>
<view v-if="hasCompany" class="wrapper">
<view v-if="hasCompany && hasLogin" class="wrapper">
<uni-nav-bar :fixed="true" color="#ffffff" background-color="#ffffff" :status-bar="true"> <uni-nav-bar :fixed="true" color="#ffffff" background-color="#ffffff" :status-bar="true">
<view slot="left" class="left-title">纸商城</view> <view slot="left" class="left-title">纸商城</view>
<view slot="right" class="right-title" @tap="shareTap">分享</view> <view slot="right" class="right-title" @tap="shareTap">分享</view>
@ -68,9 +68,10 @@
<uni-nav-bar :fixed="true" :status-bar="true"> <uni-nav-bar :fixed="true" :status-bar="true">
<view slot="left" style="font-size: 40rpx; color: #000000">纸商城</view> <view slot="left" style="font-size: 40rpx; color: #000000">纸商城</view>
</uni-nav-bar> </uni-nav-bar>
<view class="flex-col-center-center" style="margin-top: 100rpx">
<view v-if="!hasCompany" class="flex-col-center-center" style="margin-top: 100rpx">
<text style="font-size: 30rpx; text-align: center; font-weight: 600">请先完善企业基本信息</text> <text style="font-size: 30rpx; text-align: center; font-weight: 600">请先完善企业基本信息</text>
</view> </view>
<view class="" v-if="!hasLogin"><not-logged @loginChange="loginChange()"></not-logged></view>
</view> </view>
<view class="share-area" v-if="visible" @click="closeShare"> <view class="share-area" v-if="visible" @click="closeShare">
<view class="share-content"> <view class="share-content">
@ -91,13 +92,14 @@
</template> </template>
<script> <script>
import notLogged from '@/components/not-logged/not-logged.vue'
import uGap from '@/components/u-gap/u-gap.vue' import uGap from '@/components/u-gap/u-gap.vue'
import { back, go2, loginGo2, screenShot } from '@/utils/hook.js' import { back, go2, loginGo2, screenShot } from '@/utils/hook.js'
import { SupplierList, productStatus, storeDetail, getSupplierQrCode } from '@/apis/add-paper.js' import { SupplierList, productStatus, storeDetail, getSupplierQrCode } from '@/apis/add-paper.js'
import { getTimer } from '@/utils/index.js' import { getTimer } from '@/utils/index.js'
import noData from './no-data.vue' import noData from './no-data.vue'
export default { export default {
components: { uGap, noData },
components: { uGap, noData, notLogged },
filters: { filters: {
timeFilter(value) { timeFilter(value) {
var abs = '' var abs = ''
@ -150,7 +152,10 @@ export default {
computed: { computed: {
hasCompany() { hasCompany() {
return this.$store.state.supplierInfo.id != null return this.$store.state.supplierInfo.id != null
}
},
hasLogin() {
return this.$store.state.qnToken != ''
}
}, },
onShow() { onShow() {
if (this.hasCompany) { if (this.hasCompany) {

Loading…
Cancel
Save