ソースを参照

feat:手机号绑定修改

zhanghui 2 年 前
コミット
1764a0209d

+ 0 - 16
App.vue

@@ -11,23 +11,7 @@
                     that.$api.wxLogin({code:re.code}).then(res=>{
                         uni.setStorageSync('userInfo',res.data.data.userInfo)
                         uni.setStorageSync('accessToken',res.data.data.access_token)
-                        uni.setStorageSync('phoneIsBind',res.data.data.phoneIsBind)
-
                         uni.removeStorageSync('parent_member_id');
-                        if (!res.data.data.phoneIsBind){
-                            uni.showModal({
-                                title:'温馨提示',
-                                content:'请绑定手机号,以便为你提供服务',
-                                success:res=>{
-                                    if (res.confirm){
-                                        uni.navigateTo({
-                                            url: '/myPages/setting/setting-telphone',
-                                        })
-                                    }
-                                }
-                            })
-                        }
-
                     })
 
                 },

+ 2 - 1
myPages/systemSwitch/index.vue

@@ -582,7 +582,7 @@ export default {
         if (!userInfo.phone){
           uni.showModal({
             title:'温馨提示',
-            content:'资产找回涉及资金安全,需绑定手机号才能进行查询',
+            content:'资产找回涉及资金安全,需绑定手机号才能进行查询,是否确认绑定手机号',
             success:res=>{
               if (res.confirm){
                 uni.navigateTo({
@@ -591,6 +591,7 @@ export default {
               }
             }
           })
+          return
         }
         this.$refs.form1.validate().then(res => {
           this.getOldMember();

+ 17 - 2
orderPages/bookService/index.vue

@@ -176,14 +176,13 @@
 		},
 		onLoad() {
 			this.store = uni.getStorageSync('storeInfo')
-			this.userInfo = uni.getStorageSync('userInfo')
 			this.orderParam.serviceStoreId = this.store.storeId
 			//获取排班日期
 			this.selectDate()
 
 		},
 		onShow() {
-
+			this.userInfo = uni.getStorageSync('userInfo')
 		},
 		mounted(){
 
@@ -513,6 +512,22 @@
 
 			//提交订单
 			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 {

+ 16 - 4
orderPages/storeService/index.vue

@@ -85,7 +85,6 @@
 		},
 		onLoad() {
 			this.store = uni.getStorageSync('storeInfo')
-			this.userInfo = uni.getStorageSync('userInfo')
 			this.orderParam.serviceStoreId = this.store.storeId
 			let date = new Date();
 			this.orderParam.serviceDate = date.getFullYear() + '-' + ('0' + (date.getMonth() + 1)).slice(-2) + '-' + ('0' +
@@ -94,6 +93,7 @@
 		},
 		onShow() {
 			// 服务对象
+			this.userInfo = uni.getStorageSync('userInfo')
 			this.listServiceObject()
 		},
 		methods: {
@@ -179,10 +179,22 @@
 					this.price = this.price * 1 + childService.fee * 1
 				}
 			},
-
-
-
 			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('请选择服务对象')
 					return

+ 1 - 66
pages/index/index.vue

@@ -28,7 +28,7 @@
                 <image  :src="userInfo.selfPhotoUrl || '/static/me/ud4.png'" mode=""></image>
               </view>
               <view class="text">
-                <view class="phone">{{ userInfo.cellPhone || ''}}</view>
+                <view class="phone">{{ userInfo.ncikName || ''}}</view>
 <!--                <view class="welcome">尊敬的{{ userInfo.ncikName || ''}},下午好~</view>-->
               </view>
               <view  @click="goQrCode" class="arrow-right">
@@ -399,21 +399,6 @@ export default {
     },
 
     goRights(){
-      this.userInfo = uni.getStorageSync('userInfo')
-      if (!this.userInfo.phone){
-        uni.showModal({
-          title:'温馨提示',
-          content:'请绑定手机号,以便为你提供服务',
-          success:res=>{
-            if (res.confirm){
-              uni.navigateTo({
-                url: '/myPages/setting/setting-telphone',
-              })
-            }
-          }
-        })
-        return
-      }
       uni.navigateTo({
         url: '/storePages/rights/index'
       })
@@ -422,45 +407,12 @@ export default {
     // 去服务点单页面
     gotoServiceOrder() {
 
-      this.userInfo = uni.getStorageSync('userInfo')
-      if (!this.userInfo.phone){
-        uni.showModal({
-          title:'温馨提示',
-          content:'请绑定手机号,以便为你提供服务',
-          success:res=>{
-            if (res.confirm){
-              uni.navigateTo({
-                url: '/myPages/setting/setting-telphone',
-              })
-            }
-          }
-        })
-        return
-      }
-
       uni.navigateTo({
         url: '/orderPages/storeService/index'
       })
     },
 
     goBookService() {
-
-      this.userInfo = uni.getStorageSync('userInfo')
-      if (!this.userInfo.phone){
-        uni.showModal({
-          title:'温馨提示',
-          content:'请绑定手机号,以便为你提供服务',
-          success:res=>{
-            if (res.confirm){
-              uni.navigateTo({
-                url: '/myPages/setting/setting-telphone',
-              })
-            }
-          }
-        })
-        return
-      }
-
       uni.navigateTo({
         url: '/orderPages/bookService/index'
       })
@@ -589,23 +541,6 @@ export default {
     },
     // 去商品下单页面
     gotoGoods() {
-
-      this.userInfo = uni.getStorageSync('userInfo')
-      if (!this.userInfo.phone){
-        uni.showModal({
-          title:'温馨提示',
-          content:'请绑定手机号,以便为你提供服务',
-          success:res=>{
-            if (res.confirm){
-              uni.navigateTo({
-                url: '/myPages/setting/setting-telphone',
-              })
-            }
-          }
-        })
-        return
-      }
-
       uni.navigateTo({
         url: '/orderPages/bookService/index',
       })

+ 0 - 17
pages/my/index.vue

@@ -157,26 +157,9 @@ export default {
   methods: {
     clickListItem(e){
       console.log(e)
-      // if (!this.userInfo.phone && e.title==='资产找回'){
-      //   uni.navigateTo({
-      //     url:e.to
-      //   })
-      //   uni.showModal({
-      //     title:'温馨提示',
-      //     content:'资产找回请先绑定手机号',
-      //     success:res=>{
-      //       if (res.confirm){
-      //         uni.navigateTo({
-      //           url: '/myPages/setting/setting-telphone',
-      //         })
-      //       }
-      //     }
-      //   })
-      // }else {
         uni.navigateTo({
           url:e.to
         })
-      // }
     },
     getUserInfo() {
       this.$api.getUserInfo().then(res => {

+ 1 - 26
storePages/rights/index.vue

@@ -59,31 +59,6 @@
 					<text class="payType">微信支付</text>
 					<image class="x" src="/static/common/ox.png" @click="closePayPopup"></image>
 				</view>
-				<!--				<view class="payTitle">-->
-				<!--					<text>选择微信支付或余额支付</text>-->
-				<!--				</view>-->
-
-
-				<!--				<view class="payItem flex-row justify-between" @click="payItem(1)">-->
-				<!--					<view class="flex-row">-->
-				<!--						<u-icon name="/static/me/u701.png" color="#38db38" size="36"></u-icon>-->
-				<!--						<view class="payName flex-col justify-center">-->
-				<!--							<text>余额支付</text>-->
-				<!--							<text class="balance">可以余额¥{{userInfo.balance || 0}}</text>-->
-				<!--						</view>-->
-				<!--					</view>-->
-
-				<!--					<view class="flex-col justify-center">-->
-				<!--						<view v-if="curServiceTab === 1" >-->
-				<!--							<u-icon name="checkmark-circle-fill" color="#38db38" size="25"></u-icon>-->
-				<!--						</view>-->
-				<!--						<view v-else>-->
-				<!--							<u-icon name="/static/order/ud9.png" color="green" size="25"></u-icon>-->
-				<!--						</view>-->
-				<!--					</view>-->
-
-				<!--				</view>-->
-
 				<view class="payItem flex-row justify-between" @click="payItem(2)">
 					<view class="flex-row">
 						<u-icon name="weixin-circle-fill" color="#38db38" size="36"></u-icon>
@@ -280,7 +255,7 @@ export default {
 			if (!this.userInfo.phone){
 				uni.showModal({
 					title:'温馨提示',
-					content:'请绑定手机号,以便为你提供服务',
+					content:'权益卡绑定信息需通过手机号进行获取,是否确认绑定手机号',
 					success:res=>{
 						if (res.confirm){
 							uni.navigateTo({