wuyongxiang 4 роки тому
батько
коміт
2d7ffee9c0
1 змінених файлів з 28 додано та 6 видалено
  1. 28 6
      screenAndroid/homeNew.html

+ 28 - 6
screenAndroid/homeNew.html

@@ -72,6 +72,24 @@
 			.swiper-container-rtl .swiper-button-next:after {
 				content: "" !important;
 			}
+
+			.wxTips {
+				text-align: center;
+				position: absolute;
+				top: 50%;
+				left: 50%;
+				transform: translate(-50%, -50%);
+				z-index: 99999;
+				height: 2.5rem;
+				line-height: 2.5rem;
+				border-radius: .2rem;
+				padding: 0 .8rem;
+				background-color: rgba(0, 0, 0, 0.5);
+				margin-top: -5rem;
+				color: #fff;
+				font-size: .7rem;
+				display: none;
+			}
 		</style>
 	</head>
 	<body style="background: #F8F9FA;overflow:scroll;overflow-y: hidden;overflow-x: hidden;">
@@ -170,7 +188,9 @@
 					<div class="boximg"><img src="../static/img/wx/guanbi_icon.png"></div>
 				</div>
 			</div>
-
+			<div class="wxTips">
+				{{urlData.msg}}
+			</div>
 		</div>
 
 		<div id="copy-txt" style="position: absolute;opacity: 0;">
@@ -293,11 +313,13 @@
 									.urlData.sn,
 							})
 						} else {
-							wx.miniProgram.showToast({
-								title: this.urlData.msg,
-								icon: "none",
-								duration: 500,
-							});
+							$(".wxTips").show()
+							$('.wxTips').delay(2000).hide(0);
+							// wx.miniProgram.showToast({
+							// 	title: this.urlData.msg,
+							// 	icon: "none",
+							// 	duration: 500,
+							// });
 						}
 					},
 					renew(data) {