Quellcode durchsuchen

feat:下单页面提示修改

zhanghui vor 2 Jahren
Ursprung
Commit
d499284642
2 geänderte Dateien mit 31 neuen und 30 gelöschten Zeilen
  1. 14 16
      orderPages/bookService/index.vue
  2. 17 14
      orderPages/storeService/index.vue

+ 14 - 16
orderPages/bookService/index.vue

@@ -237,6 +237,20 @@
 			},
 
 			openSetting(){
+				if (!this.userInfo.phone){
+					uni.showModal({
+						title:'温馨提示',
+						content:'预约叫号是通过手机尾号进行查询,是否确认绑定手机号',
+						success:res=>{
+							if (res.confirm){
+								uni.navigateTo({
+									url: '/myPages/setting/setting-telphone',
+								})
+							}
+						}
+					})
+					return
+				}
 				uni.requestSubscribeMessage({
 					tmplIds: this.templateId,
 					success: (res) =>{
@@ -598,22 +612,6 @@
 
 			//提交订单
 			commitOrder() {
-
-				if (!this.userInfo.phone){
-					uni.showModal({
-						title:'温馨提示',
-						content:'预约叫号是通过手机尾号进行查询,是否确认绑定手机号',
-						success:res=>{
-							if (res.confirm){
-								uni.navigateTo({
-									url: '/myPages/setting/setting-telphone',
-								})
-							}
-						}
-					})
-					return
-				}
-
 				if (this.subOrderNo){
 					this.$refs.myPay.openPopup()
 				}else {

+ 17 - 14
orderPages/storeService/index.vue

@@ -291,6 +291,22 @@
 			},
 
 			openSetting(){
+
+				if (!this.userInfo.phone){
+					uni.showModal({
+						title:'温馨提示',
+						content:'预约叫号是通过手机尾号进行查询,是否确认绑定手机号!',
+						success:res=>{
+							if (res.confirm){
+								uni.navigateTo({
+									url: '/myPages/setting/setting-telphone',
+								})
+							}
+						}
+					})
+					return
+				}
+
 				uni.requestSubscribeMessage({
 					tmplIds: this.templateId,
 					success: (res) =>{
@@ -311,20 +327,7 @@
 			},
 
 			commonGeneralOrder() {
-				if (!this.userInfo.phone){
-					uni.showModal({
-						title:'温馨提示',
-						content:'预约叫号是通过手机尾号进行查询,是否确认绑定手机号!',
-						success:res=>{
-							if (res.confirm){
-								uni.navigateTo({
-									url: '/myPages/setting/setting-telphone',
-								})
-							}
-						}
-					})
-					return
-				}
+
 
 				if (!this.orderParam.childService.length) {
 					uni.$u.toast('请选择服务对象')