wuyongxiang před 4 roky
rodič
revize
2b024a8328
2 změnil soubory, kde provedl 38 přidání a 7 odebrání
  1. 1 1
      screenAndroid/homeNew.html
  2. 37 6
      screenIos/homeNew.html

+ 1 - 1
screenAndroid/homeNew.html

@@ -310,7 +310,7 @@
 							console.log("打印数据", data, this.urlData.data.sn)
 							wx.miniProgram.navigateTo({
 								url: '/pages/trialInterface/trialInterface?record=' + data.id + '&sn=' + this
-									.urlData.sn,
+									.urlData.data.sn,
 							})
 						} else {
 							$(".wxTips").show()

+ 37 - 6
screenIos/homeNew.html

@@ -71,6 +71,23 @@
              .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;">
@@ -164,7 +181,9 @@
 					<div class="boximg"><img src="../static/img/wx/guanbi_icon.png"></div>
 				</div>
 			</div>
-
+            <div class="wxTips">
+            	云手机数量不足,请稍后再试
+            </div>
 		</div>
 
 		<div id="copy-txt" style="position: absolute;opacity: 0;">
@@ -306,9 +325,22 @@
 				},
 				methods: {
 					homeinfo(data) {
-						wx.miniProgram.navigateTo({
-							url: '/pages/trialInterface/trialInterface?record=' + data.id,
-						})
+						console.log("打印数据", data, this.urlData)
+						if (this.urlData.status === 0) {
+							console.log("打印数据", data, this.urlData.data.sn)
+							wx.miniProgram.navigateTo({
+								url: '/pages/trialInterface/trialInterface?record=' + data.id + '&sn=' + this
+									.urlData.data.sn,
+							})
+						} else {
+							$(".wxTips").show()
+							$('.wxTips').delay(2000).hide(0);
+							// wx.miniProgram.showToast({
+							// 	title: this.urlData.msg,
+							// 	icon: "none",
+							// 	duration: 500,
+							// });
+						}
 					},
 					renew(data) {
 						console.log("续费啊", data);
@@ -414,8 +446,7 @@
 								"Authorization": tokens.substring(6, tokens.length)
 							},
 							success: function(data) {
-
-								that.urlData = data.data;
+								that.urlData = data;
 								console.log("挂载安卓卡成功", that.urlData);
 								//                       
 							}