From c69b2a0ccd8ed4fe8f11b7bad34bc00b0aa2aaf7 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 08 七月 2024 15:39:38 +0800 Subject: [PATCH] # --- pages/home/home.vue | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 44 insertions(+), 5 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index b294171..abf2670 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -1,10 +1,24 @@ <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> @@ -22,6 +36,9 @@ baseUrl: '', token: '', icon: '', + username: '', + storeId: 0, + store: '', elements: [], elements2: [ { @@ -40,10 +57,10 @@ }, { title: '骞冲簱涓婃灦', - name: 'print', + name: 'WarehouseIn', color: 'purple', cuIcon: 'text', - url: '/print/print' + url: '/pakin/WarehouseIn' }, { title: '骞冲簱涓嬫灦', @@ -65,6 +82,13 @@ color: 'green', cuIcon: 'pulldown', url: '/order/orderPickConfirm' + }, + { + title: '鍒朵护鍏ュ簱', + name: 'pakin', + color: 'green', + cuIcon: 'pulldown', + url: '/order/zlOrderPakin' }, // { // title: '搴撳瓨鏌ヨ', @@ -123,9 +147,17 @@ 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({ @@ -156,9 +188,9 @@ } that.elements.push({ title: '閫�鍑虹櫥褰�', - name: 'logOut', + name: '', color: 'grey', - cuIcon: 'exit', + cuIcon: '', url: '/login/logOut' }) } else if (res.code === 403) { @@ -203,6 +235,13 @@ </script> <style> + ::v-deep .uni-nav-bar-text{ + font-size: 16px; + font-weight: 600; + } + .uni-nav-bar-text { + font-size: 12px; + } .page { height: 100vh; } -- Gitblit v1.9.1