gjy 3 年 前
コミット
cad4fff1c9

+ 18 - 1
pages/erpbusiness/acquisitionInspection/grossWeightDetail.vue

@@ -37,7 +37,7 @@
 				<input class="right-bottom" placeholder="输入毛重" v-model="detailData.grossWeight"></input>
 			</view>
 		</view>
-		<u-button type="primary" class="submit" @click="submit">提交</u-button>
+		<u-button v-if='tabbar' type="primary" class="submit" @click="submit">提交</u-button>
 		<u-toast ref="uToast" />
 	</view>
 </template>
@@ -46,6 +46,8 @@
 	export default {
 		data() {
 			return {
+				tabbar:true,
+				windowHeight: '',
 				detailData: {
 					grossWeight:''
 				}
@@ -53,7 +55,22 @@
 		},
 		onShow() {},
 		onLoad(options) {
+			uni.onWindowResize((res) => {
+			    if(res.size.windowHeight < this.windowHeight){
+			        this.tabbar = false
+			    }else{
+			        this.tabbar = true
+			   }
+			   })
 			this.detailData = JSON.parse(options.detailData)
+			uni.getSystemInfo({
+				success:(res) => {
+					this.windowHeight = res.windowHeight;
+					// console.log(res)
+					this.system = res.system  // ios
+					this.platform = res.platform  // 14.3
+				}
+			})
 			console.log(this.detailData)
 		},
 		methods: {