소스 검색

首页优化

shish 1 년 전
부모
커밋
91fbecffb0
2개의 변경된 파일12개의 추가작업 그리고 10개의 파일을 삭제
  1. 5 3
      ghsApp/src/admin/home/workbench.vue
  2. 7 7
      ghsApp/src/admin/item/list2.vue

+ 5 - 3
ghsApp/src/admin/home/workbench.vue

@@ -112,7 +112,7 @@
 				<image @click="skKd()" :src="isScanEnv ? skSrc3 : skSrc" mode="widthFix"></image>
 				<image @click="customKd()" :src="isScanEnv ? pfSrc3 : pfSrc" mode="widthFix" ></image>
 			</view>
-			<view class="tabs-head_bx">
+			<view class="tabs-head_bx" v-if="pfLevel == 1">
 				<image @click="orderGather()" :src="ydhz" mode="widthFix" ></image>
 				<image @click="bookOrder()" :src="ydd" mode="widthFix"></image>
 			</view>
@@ -258,7 +258,8 @@ export default {
 			sendOrderList:[],
 			showSendPage:0,
 			renewType:0,
-			yesterdayIncome:0
+			yesterdayIncome:0,
+			pfLevel:0
 		};
 	},
 	onShareAppMessage(res) {
@@ -437,10 +438,11 @@ export default {
 		getShopName(){
 			currentShop().then(res => {
 				if(res.code == 1){
+					this.pfLevel = res.data.pfLevel ? res.data.pfLevel : 0
 					let sjName = res.data.merchantName ? res.data.merchantName : ''
 					let shopName = res.data.shopName ? res.data.shopName : ''
 					let title = shopName == '首店' ? sjName : sjName+' '+shopName
-					 uni.setNavigationBarTitle({ title: title })
+					uni.setNavigationBarTitle({ title: title })
 				}
 			})
 		},

+ 7 - 7
ghsApp/src/admin/item/list2.vue

@@ -16,7 +16,7 @@
 				</view>
 			</view>
 
-			<button class="admin-button-com middle blue" @click="refreshItem()" style="position: absolute;top:120upx;right:24upx;z-index:299;">刷新</button>
+			<button class="admin-button-com middle blue" @click="refreshItem()" style="position: absolute;top:120upx;right:24upx;z-index:99;">刷新</button>
 
 			<view class="scroll-middle_bx">
 				<scroll-view scroll-y scroll-with-animation class="tab-view">
@@ -91,14 +91,14 @@
 
 		<uni-popup ref="searchOptionRef" background-color="#fff" type="center" :animation="false" class="class-popup-style">
 			<view style="display:flex;padding:80upx;height:auto;justify-content: space-between;align-items:center;flex-wrap:wrap;max-height:100vh;overflow:auto;">
-				<view @tap.stop="changeHasStock(2)" style="margin-bottom:20upx;margin-left:3upx;">
-					<view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:100upx;text-align:center;font-size:35upx;">没库存</view>
+				<view @tap.stop="changeHasStock(2)" style="margin-bottom:20upx;">
+					<view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:150upx;text-align:center;font-size:38upx;">没库存</view>
 				</view>
-				<view @tap.stop="changeHasStock(1)" style="margin-bottom:20upx;margin-left:3upx;">
-					<view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:100upx;text-align:center;font-size:35upx;">有库存</view>
+				<view @tap.stop="changeHasStock(1)" style="margin-bottom:20upx;">
+					<view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:150upx;text-align:center;font-size:38upx;">有库存</view>
 				</view>
-				<view @tap.stop="changeHasStock(0)" style="margin-bottom:20upx;margin-left:3upx;">
-					<view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:140upx;text-align:center;font-size:35upx;">重新选</view>
+				<view @tap.stop="changeHasStock(0)" style="margin-bottom:20upx;">
+					<view style="margin-top:5upx;overflow: hidden;white-space: nowrap;width:150upx;text-align:center;font-size:38upx;">重新选</view>
 				</view>
 			</view>
 		</uni-popup>