Browse Source

调整背景色

yuxingxing 2 years ago
parent
commit
439db17ae3
1 changed files with 20 additions and 10 deletions
  1. 20 10
      pages/users/user_invoice_list/index.vue

+ 20 - 10
pages/users/user_invoice_list/index.vue

@@ -36,7 +36,7 @@
 				<view class="imageUrl">
 					<view class="imageUrlin" v-if="url">
 						<ayQrcode ref="qrcode" qrcode_id="qrcode" :modal="modal_qr" :url="url" @hideQrcode="hideQrcode"
-							:height="200" :width="200" />
+							:height="qr_height" :width="qr_width" />
 						<!-- <u--image src="https://cdn.uviewui.com/uview/album/1.jpg" height="200px" width="100%"
 							:showLoading="true">
 							<view slot="error" style="font-size: 24rpx;">加载失败</view>
@@ -140,7 +140,9 @@ export default {
 			limit: 300,
 			loading: false,
 			finished: false,
-			specialInvoice: true
+			specialInvoice: true,
+			qr_height: 200,
+			qr_width: 200
 		};
 	},
 	watch: {
@@ -167,11 +169,17 @@ export default {
 		if (option.from === 'invoice_form') {
 			this.nav = 2;
 		}
-		// uni.getSystemInfo({
-		// 	success: function (res) {
-		// 		// that.urlWidth = res.windowWidth
-		// 	},
-		// });
+		uni.getSystemInfo({
+			success: function (res) {
+				that.qr_width = res.windowWidth * 0.8
+				that.qr_height = res.windowHeight * 0.3
+				//res.windowHeight:获取整个窗口高度为px,*2为rpx;98为头部占据的高度;
+				// #ifndef APP-PLUS || H5 || MP-ALIPAY
+				that.navbarRight =
+					res.windowWidth - uni.getMenuButtonBoundingClientRect().left;
+				// #endif
+			},
+		});
 		this.getStatistics();
 	},
 	methods: {
@@ -319,7 +327,8 @@ export default {
 	text-align: center !important;
 	margin-top: 30px;
 	width: 100%;
-	height: 230px
+	height: 230px;
+	background-color: white;
 }
 
 .imageUrlin {
@@ -374,6 +383,7 @@ export default {
 	padding: 14rpx 32rpx;
 	margin-top: 90rpx;
 	margin-bottom: 140rpx;
+	background-color: white;
 }
 
 .list-nav3 {
@@ -495,8 +505,8 @@ export default {
 }
 
 .record-wrapper {
-	margin-top: 110rpx;
-
+	margin-top: 90rpx;
+	background-color: white;
 	.item {
 		padding-right: 30rpx;
 		padding-left: 30rpx;