邓雄飞 4 years ago
parent
commit
19e1f68828
4 changed files with 27 additions and 14 deletions
  1. 4
      components/not-logged/not-logged.vue
  2. 3
      pages.json
  3. 16
      pages/mall/index.vue
  4. 18
      pages/trade/index.vue

4
components/not-logged/not-logged.vue

@ -42,8 +42,8 @@
margin-top: 40%;
}
.view-image{
width: 100rpx;
height: 100rpx;
width: 750rpx;
height: 456rpx;
}
.login-btn{
width: 90%;

3
pages.json

@ -330,8 +330,7 @@
"enablePullDownRefresh": false
}
}
],
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",

16
pages/mall/index.vue

@ -1,6 +1,6 @@
<template>
<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">
<view slot="left" class="left-title">纸商城</view>
<view slot="right" class="right-title" @tap="shareTap">分享</view>
@ -68,9 +68,10 @@
<uni-nav-bar :fixed="true" :status-bar="true">
<view slot="left" style="font-size: 40rpx; color: #000000">纸商城</view>
</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>
</view>
<view class="" v-if="!hasLogin"><not-logged @loginChange="loginChange()"></not-logged></view>
</view>
<view class="share-area" v-if="visible" @click="closeShare">
<view class="share-content">
@ -91,13 +92,14 @@
</template>
<script>
import notLogged from '@/components/not-logged/not-logged.vue'
import uGap from '@/components/u-gap/u-gap.vue'
import { back, go2, loginGo2, screenShot } from '@/utils/hook.js'
import { SupplierList, productStatus, storeDetail, getSupplierQrCode } from '@/apis/add-paper.js'
import { getTimer } from '@/utils/index.js'
import noData from './no-data.vue'
export default {
components: { uGap, noData },
components: { uGap, noData, notLogged },
filters: {
timeFilter(value) {
var abs = ''
@ -150,7 +152,10 @@ export default {
computed: {
hasCompany() {
return this.$store.state.supplierInfo.id != null
}
},
hasLogin() {
return this.$store.state.qnToken != ''
}
},
onShow() {
if (this.hasCompany) {
@ -163,6 +168,9 @@ export default {
},
methods: {
back,
loginChange() {
go2('login')
},
//
makeScreenShot() {
screenShot()

18
pages/trade/index.vue

@ -2,8 +2,8 @@
<view class="trade-index">
<uni-nav-bar :fixed="true" color="#ffffff" background-color="#ffffff" :status-bar="true">
<view class="left-title">
<view v-if="mainKey === '0'" class="text-view"><text class="title">交易大厅</text></view>
<view v-if="mainKey === '1'">
<view v-if="!hasLogin" class="text-view"><text class="title">交易大厅</text></view>
<view v-if="hasLogin">
<view class="bar-contant">
<view class="check-control title-left36" :class="current === '0' ? 'check-title' : 'oncheck-title'" @click="controlChange('0')">
<text>报价</text>
@ -24,8 +24,8 @@
</view>
</view>
</view> -->
<view class="" v-if="mainKey === '0'"><not-logged @loginChange="loginChange()"></not-logged></view>
<view class="" v-if="mainKey === '1'">
<view class="" v-if="!hasLogin"><not-logged @loginChange="loginChange()"></not-logged></view>
<view class="" v-if="hasLogin">
<view class="content">
<view v-if="current === '0'">
<quotationList :refresh="refresh"></quotationList>
@ -43,12 +43,13 @@ import notLogged from '@/components/not-logged/not-logged.vue'
import scrollList from '@/components/scroll-list/scroll-list.vue'
import quotationList from './quotationList.vue'
import orderList from './orderList.vue'
import { back, go2, uploadFile } from '@/utils/hook.js'
export default {
components: { notLogged, scrollList, quotationList, orderList },
data() {
return {
key: '',
mainKey: '1',
mainKey: '0',
current: '0',
items: ['报价', '订单'],
refresh: false
@ -57,9 +58,14 @@ export default {
onShow() {
this.refresh = !this.refresh
},
computed: {
hasLogin() {
return this.$store.state.qnToken != ''
}
},
methods: {
loginChange() {
this.mainKey === '0' ? '1' : '0'
go2('login')
},
//
controlChange(value) {

Loading…
Cancel
Save