| | |
| | | <template> |
| | | <view> |
| | | <view class="status_bar"> |
| | | <!-- 这里是状态栏 --> |
| | | </view> |
| | | <uni-nav-bar background-color="#f8f8f8" title="主 页" @clickLeft="back" :fixed="true" |
| | | :border="false" rightWidth="160rpx" leftWidth="160rpx" |
| | | > |
| | | <block slot="right"> |
| | | <view class="city"> |
| | | <view> |
| | | <text class="uni-nav-bar-text">{{store}}</text> |
| | | </view> |
| | | </view> |
| | | </block> |
| | | </uni-nav-bar> |
| | | <scroll-view scroll-y class="page"> |
| | | <view class="nav-list"> |
| | | <navigator hover-class='none' :url="'/pages' + item.url" class="nav-li" navigateTo |
| | | :class="'bg-'+item.color" :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" |
| | | v-for="(item,index) in elements" :key="index"> |
| | | v-for="(item,index) in elements2" :key="index"> |
| | | <view class="nav-title">{{item.title}}</view> |
| | | <view class="nav-name">{{item.name}}</view> |
| | | <text :class="'cuIcon-' + item.cuIcon"></text> |
| | |
| | | baseUrl: '', |
| | | token: '', |
| | | icon: '', |
| | | username: '', |
| | | storeId: 0, |
| | | store: '', |
| | | elements: [], |
| | | elements2: [ |
| | | { |
| | |
| | | }, |
| | | { |
| | | title: '平库上架', |
| | | name: 'print', |
| | | name: 'WarehouseIn', |
| | | color: 'purple', |
| | | cuIcon: 'text', |
| | | url: '/print/print' |
| | | url: '/pakin/WarehouseIn' |
| | | }, |
| | | { |
| | | title: '平库下架', |
| | |
| | | color: 'green', |
| | | cuIcon: 'pulldown', |
| | | url: '/order/orderPickConfirm' |
| | | }, |
| | | { |
| | | title: '制令入库', |
| | | name: 'pakin', |
| | | color: 'green', |
| | | cuIcon: 'pulldown', |
| | | url: '/order/zlOrderPakin' |
| | | }, |
| | | // { |
| | | // title: '库存查询', |
| | |
| | | onShow() { |
| | | this.baseUrl = uni.getStorageSync('baseUrl'); |
| | | this.token = uni.getStorageSync('token'); |
| | | this.storeId = uni.getStorageSync('store') |
| | | if (this.storeId == 1) { |
| | | this.store = '宁波仓' |
| | | } |
| | | if (this.storeId == 2) { |
| | | this.store = '新昌仓' |
| | | } |
| | | this.getAuth() |
| | | }, |
| | | methods: { |
| | | back() { uni.navigateBack({}) }, |
| | | getAuth() { |
| | | let that = this |
| | | uni.request({ |
| | |
| | | </script> |
| | | |
| | | <style> |
| | | ::v-deep .uni-nav-bar-text{ |
| | | font-size: 16px; |
| | | font-weight: 600; |
| | | } |
| | | .uni-nav-bar-text { |
| | | font-size: 12px; |
| | | } |
| | | .page { |
| | | height: 100vh; |
| | | } |