Forráskód Böngészése

订单二维码不加时间信息

gcz 1 éve
szülő
commit
2cd2913345
1 módosított fájl, 12 hozzáadás és 8 törlés
  1. 12 8
      center/orderdetails.vue

+ 12 - 8
center/orderdetails.vue

@@ -282,10 +282,12 @@
 				this.modal_qr = false;
 			},
 			refreshCode(){
-				this.qrContent = {};
-				this.qrContent.qrcode = this.orderDetails.parentQrcodeNo;
-				this.qrContent.time = Date.now();
-				this.qrContent = JSON.stringify(this.qrContent);
+				// this.qrContent = {};
+				// this.qrContent.qrcode = this.orderDetails.parentQrcodeNo;
+				// this.qrContent.time = Date.now();
+				// this.qrContent = JSON.stringify(this.qrContent);
+				
+				this.qrContent = this.orderDetails.parentQrcodeNo;
 				this.showQrcode()
 			},
 			hideSingleQrcode(){
@@ -302,10 +304,12 @@
 						this.deadline = new Date(`${res.data.performDateTime}`).getTime();
 					}
 					if(res.data.parentQrcodeStatus==0){
-						this.qrContent = {};
-						this.qrContent.qrcode = res.data.parentQrcodeNo;
-						this.qrContent.time = Date.now();
-						this.qrContent = JSON.stringify(this.qrContent);
+						// this.qrContent = {};
+						// this.qrContent.qrcode = res.data.parentQrcodeNo;
+						// this.qrContent.time = Date.now();
+						// this.qrContent = JSON.stringify(this.qrContent);
+						
+						this.qrContent = res.data.parentQrcodeNo;
 						let that = this;
 						that.showQrcode();//一加载生成二维码
 						// this.refreshCode()