瀏覽代碼

Merge remote-tracking branch 'origin/2024鹅状元' into 2024鹅状元

wangguoyu 4 月之前
父節點
當前提交
f5f8717a5f
共有 1 個文件被更改,包括 12 次插入6 次删除
  1. 12 6
      pages/my/telDialog.vue

+ 12 - 6
pages/my/telDialog.vue

@@ -64,10 +64,19 @@
 				this.sliderObj = data;
 				this.getYzmBtn();
 			},
+			
+			showToast(){
+				toast("请先完成滑块验证!")
+			},
+			
 			telClose(AWSC) {
 				AWSC.getReset();
 				this.$emit('telClose')
 			},
+			
+			telReset(){
+				this.myflag++;
+			},
 
 			// 清空手机号
 			clearTel() {
@@ -110,7 +119,7 @@
 				}else{
 					this.startCountdown();
 					this.getMessage();
-					this.myflag++;
+					this.telReset();
 					this.sliderObj = {};
 				}
 			},
@@ -194,7 +203,7 @@
 					if (res.code == 0) {
 						toast('手机号绑定成功')
 						this.updataTel(this.bindObj.telNumber);
-						this.telClose();
+						this.telReset();
 						this.$emit('bindBtn')
 					}
 				})
@@ -211,9 +220,6 @@
 </script>
 
 <script module="AWSC" lang="renderjs">
-	import {
-		toast
-	} from "../../utils/common";
 	export default {
 		mounted() {
 			const script = document.createElement('script');
@@ -277,7 +283,7 @@
 						token: this.token
 					})
 				} else {
-					toast("请先完成滑块验证!")
+					ownerInstance.callMethod('showToast')
 				}
 
 			}