zhanghui 2 лет назад
Родитель
Сommit
e859535ace

+ 9 - 4
App.vue

@@ -14,13 +14,18 @@
                         uni.setStorageSync('phoneIsBind',res.data.data.phoneIsBind)
 
                         if (res.data.data.phoneIsBind){
-                            uni.switchTab({
-                                url: '/pages/index/index',
+                            // uni.switchTab({
+                            //     url: '/pages/index/index',
+                            // })
+                            uni.navigateTo({
+                                url: '/loginPages/bindAccount/index',
+                            })
+                        }else {
+                            uni.navigateTo({
+                                url: '/loginPages/bindAccount/index',
                             })
                         }
 
-
-
                     })
 
                 },

+ 16 - 0
api/coupon/coupon.js

@@ -0,0 +1,16 @@
+const http = uni.$u.http
+
+// get请求 查询可领取的优惠劵列表
+export const getUserDiscountsList = (params, config = {}) => http.get('/business/wechat/getUserDiscountsList', params, config)
+
+// get请求 我的优惠卷列表(0未使用, 1已使用, 2已过期 null查询全部)
+export const getMyCouponList = (params, config = {}) => http.get('/member/wechat/getCoupon', params, config)
+
+// get请求 查询可使用的优惠券
+export const getCanUseCouponList = (params, config = {}) => http.post('/member/wechat/getMemberCoupon', params, config)
+
+// post请求 领取优惠券
+export const claimCoupon = (params, config = {}) => http.post('/member/wechat/claimCoupon', params, config)
+
+
+

+ 21 - 0
api/goods/goods.js

@@ -0,0 +1,21 @@
+const http = uni.$u.http
+
+// get请求 获取门店所有服务列表
+export const storeAllServiceList = (params, config = {}) => http.get('/business/wechat/sp/all/'+params.data.storeId, params, config)
+
+// get请求 获取门店列表  
+export const storeList = (params, config = {}) => http.get('/store/uniapp/store-list/distance', params, config)
+
+// get请求 获取门店工作人员列表 关联岗位、工作时段、服务项目
+export const workPersonList = (params, config = {}) => http.get('/store/uniapp/work-person-ist/'+params.data.storeId, params, config)
+
+// get请求 根据服务日期及服务时段查询排班人员
+export const serviceWorkPersonList = (params, config = {}) => http.get('/business/wechat/scheduling/crewPageList', params, config)
+
+// get请求 根据门店查询排班日期
+export const selectDate = (params, config = {}) => http.post('/business/wechat/scheduling/selectDate', params, config)
+
+// get请求 根据门店、排班日期查询可用时段
+export const selectPeriodByDate = (params, config = {}) => http.post('/business/wechat/scheduling/selectPeriodByDate', params, config)
+
+ 

+ 21 - 0
api/index/index.js

@@ -0,0 +1,21 @@
+const http = uni.$u.http
+
+// post请求,用户绑定门店
+export const userBindStore = (params, config = {}) => http.post('/member/wechat/bindStore', params, config)
+
+// get请求 获取门店列表
+// export const storeList = (params, config = {}) => http.get('/store/uniapp/store-list', params, config)
+
+// get请求 获取公告列表
+export const noticeList = (params, config = {}) => http.get('/system/openapi/notice/list', params, config)
+
+// get请求 获取公告详情
+export const getNoticeDetail = (params, config = {}) => http.get('/system/openapi/notice/'+params.data.noticeId, params, config)
+
+// get请求 获取banner图列表
+export const getSlideshowList = (params, config = {}) => http.get('/system/openapi/getSlideshowList', params, config)
+
+
+
+
+

+ 8 - 0
api/integral/integral.js

@@ -0,0 +1,8 @@
+const http = uni.$u.http
+
+// post请求,获取积分列表信息
+export const getIntegralRecordList = (params, config = {}) => http.post('/member/wechat/getIntegralRecordVo', params, config)
+
+
+
+

+ 36 - 0
api/login/login.js

@@ -0,0 +1,36 @@
+const http = uni.$u.http
+
+
+// post请求,保存用户信息
+export const saveWechatUser = (params, config = {}) => http.post('/auth/wechat/saveWeChatUserInfo', params, config)
+
+// post请求,获取微信电话号码
+export const getWechatUserPhoneNumber = (params, config = {}) => http.post('/auth/wechat/getWechatUserPhoneNumber', params, config)
+
+// post请求,验证手机号码是否被注册
+export const phoneIsExist = (params, config = {}) => http.post('/member/wechat/phoneIsExist', params, config)
+
+// post请求,新微新手机绑定
+export const wechatRegister = (params, config = {}) => http.post('/auth/xcxRegister', params, config)
+
+// get请求,获取手机验证码
+export const getSmsCode = (params, config = {}) => http.get('/resource/sms/code', params, config)
+
+// post请求,验证手机验证码
+export const validateSmsCode = (params, config = {}) => http.post('/member/wechat/validateSmsCode', params, config)
+
+// post请求,找回账号密码登录
+export const wechatRetrieveAccountPwdLogin = (params, config = {}) => http.post('/auth/xcxRetrieveMemberByPwd', params, config)
+
+// post请求,实名认证登录(新微信老手机)
+export const realNameAuthLogin = (params, config = {}) => http.post('/auth/xcxRetrieveMember', params, config)
+
+// post请求,验证身份证是滞存在
+export const idCardIsExist = (params, config = {}) => http.post('/member/wechat/idCardIsExist', params, config)
+
+// post请求验证手机找回密码
+export const passwordByPhone = (params, config = {}) => http.post('/member/wechat/passwordByPhone', params, config)
+
+
+
+

+ 32 - 0
api/me/me.js

@@ -0,0 +1,32 @@
+const http = uni.$u.http
+
+// post请求,用户实名认证
+export const userRealNameAuth = (params, config = {}) => http.post('/member/wechat/idCardAuthentication', params, config)
+
+// post请求,用户信息保存
+export const saveUserInfo = (params, config = {}) => http.post('/member/wechat/saveUserInfo', params, config)
+
+// post请求,修改用户账号密码
+export const updateUserAccountPassword = (params, config = {}) => http.post('/member/wechat/setPassword', params, config)
+
+// post请求,修改用户交易密码
+export const updateUserTransactionPassword = (params, config = {}) => http.post('/member/wechat/setTransactionPassword', params, config)
+
+// post请求,绑定微信
+export const bindWechat = (params, config = {}) => http.post('/member/wechat/setOpenId', params, config)
+
+// get请求,获取服务条款协议
+export const getTermOfServiceByType = (params, config = {}) => http.get('/system/openapi/getAboutByType', params, config)
+
+// get请求,获取公共文件路径
+export const getCommonFile = (params, config = {}) => http.get('/resource/oss/listByIds/'+params.data.ossId, params, config)
+
+// post请求,重新设置手机号
+export const setPhone = (params, config = {}) => http.post('/member/wechat/setPhone', params, config)
+
+// get请求,获取用户信息
+export const getUserInfo = (params, config = {}) => http.get('/member/wechat/getUserInfo', params, config)
+
+
+
+

+ 26 - 0
api/object/service-object.js

@@ -0,0 +1,26 @@
+const http = uni.$u.http
+
+// post请求,识别人脸  
+export const verifyFace = (params, config = {}) => http.post('/member/wechat/verifyFace', params, config)
+
+// post请 查询服务对象列表
+export const listServiceObject = (params, config = {}) => http.post('/member/wechat/listServiceObject', params, config)
+
+// post请 获取服务对象协议
+export const getServiceDealFile = (params, config = {}) => http.post('/member/wechat/getServiceDealFile', params, config)
+
+// post请求 服务对象签名
+export const serviceObjectSignPdf = (params, config = {}) => http.post('/member/wechat/signPdf', params, config)
+
+// post请求 保存服务对象
+export const saveServiceObject = (params, config = {}) => http.post('/member/wechat/saveServiceObject', params, config)
+
+// post请求 绑定服务对象
+export const bindServiceObject = (params, config = {}) => http.post('/member/wechat/bindServiceObject', params, config)
+
+// post请求 修改服务对象
+export const updateServiceObject = (params, config = {}) => http.post('/member/wechat/updateServiceObject', params, config)
+
+
+
+

+ 60 - 0
api/order/order.js

@@ -0,0 +1,60 @@
+const http = uni.$u.http
+
+// get请求,获取订单列表
+export const getOrderList = (params, config = {}) => http.get('/business/wechat/order/list', params, config)
+
+// get请求,获取订单详情
+export const getOrderDetailByOrderId = (params, config = {}) => http.get('/business/wechat/order/detail', params, config)
+
+// get请求,保存订单评价
+export const saveOrderComment = (params, config = {}) => http.post('/business/wechat/order/comment', params, config)
+
+// post请求,再来一单
+export const comeOrder = (params, config = {}) => http.post('/business/wechat/order/copy/'+params.data.orderId, params, config)
+
+// post请求  删除订单
+export const deleteOrder = (params, config = {}) => http.delete('/business/wechat/order/'+params.data.orderId, params, config)
+
+// put请求  取消订单
+export const cancelOrder = (params, config = {}) => http.put('/business/wechat/order/cancel/'+params.data.orderId, params, config)
+
+// post请求,通用下单接口
+export const commonGeneralOrder  = (params, config = {}) => http.post('/business/wechat/order/common', params, config)
+
+// post请求,查询充值订单列表
+export const orderRechargeList  = (params, config = {}) => http.get('/business/wechat/orderRecharge/list', params, config)
+
+// post请求,充值订单退款
+export const orderRechargeRefund  = (params, config = {}) => http.post('/business/wechat/orderRecharge/refund', params, config)
+
+// post请求,获取用户余额
+export const getUserBalance  = (params, config = {}) => http.post('/business/wechat/orderRecharge/getBalance', params, config)
+
+// get请求,订单签到
+export const orderSign  = (params, config = {}) => http.get('/business/wechat/scheduling/orderSign', params, config)
+
+// get请求,查看订单排号情况
+export const getOrderSign  = (params, config = {}) => http.get('/business/wechat/scheduling/getOrderSign', params, config)
+
+// post请求,微信支付(根据订单ID)
+export const wechatPay  = (params, config,requestConfig = {}) => http.post('/business/wxPay/jsapiPay', params, config,requestConfig)
+
+// post请求,余额支付(根据订单ID)
+export const balancePay  = (params, config = {}) => http.post('/business/balancePay/pay', params, config)
+
+// get请求,查询交易记录列表
+export const transactionRecordsList  = (params, config = {}) => http.get('/business/wechat/transactionFlow/list', params, config)
+
+// get请求,查询充值优惠列表
+export const getRechargeList  = (params, config = {}) => http.get('/business/wechat/getRechargeList', params, config)
+
+// get请求,查询交易流水统计
+export const transactionFlowstatistic  = (params, config = {}) => http.get('/business/wechat/transactionFlow/statistic', params, config)
+
+// get请求 获取预约价格
+export const getAppointmentPrice  = (params, config = {}) => http.get('/business/wechat/sp/subPrice', params, config)
+
+
+
+
+

+ 19 - 0
api/system/system.js

@@ -0,0 +1,19 @@
+const http = uni.$u.http
+
+
+// get请求 通过电话及名称获取老系统会员信息
+export const getOldMember = (params, config = {}) => http.get('/member/wechat/getOldMember', params, config)
+
+// get请求 通过会员编号获取老系统充值记录
+export const getOrderRechargeOldList = (params, config = {}) => http.get('/member/wechat/getOrderRechargeOldList', params, config)
+
+// get请求,通过会员编号获取老系统消费记录
+export const getOrderConsumeLogOld = (params, config = {}) => http.get('/member/wechat/getOrderConsumeLogOld', params, config)
+
+// post请求 通过会员编号提交迁移申请,默认迁移到当前迁移账户上
+export const submitOldData = (params, config = {}) => http.post('/member/wechat/submitOldData', params, config)
+
+
+
+
+

+ 10 - 0
common/js/api.js

@@ -16,6 +16,16 @@ export default {
             data: data
         })
     },
+    /**
+     * 查询电话是否存在
+     */
+    phoneIsExist(data){
+        return request({
+            url: '/member/wechat/phoneIsExist',
+            method: 'POST',
+            data: data
+        })
+    },
 
      payTheBill(data) {
         return request({

+ 26 - 0
config/http-requst.js

@@ -0,0 +1,26 @@
+
+// 引入vuex
+// import store from '@/common/store';
+// 引入拦截器配置
+import {requestInterceptors,responseInterceptors} from './interceptors.js'
+
+//  初始化请求配置
+const initRequest=(vm)=>{
+	uni.$u.http.setConfig((defaultConfig) => {
+		/* defaultConfig 为默认全局配置 */
+		// defaultConfig.baseURL = "http://222.85.201.140:10001/" /* 根域名 */
+		// 域名
+		defaultConfig.baseURL = "https://jje.admin.xinyuekj.com.cn/" /* 根域名 */
+		
+		return defaultConfig;
+	})
+	requestInterceptors()
+	responseInterceptors()
+}
+export {
+	initRequest
+}
+
+
+
+

+ 73 - 0
config/interceptors.js

@@ -0,0 +1,73 @@
+// 引入vuex
+import store from '@/common/store';
+
+const requestInterceptors=(vm)=>{
+	/**
+	 * 请求拦截
+	 * @param {Object} http
+	 */
+	uni.$u.http.interceptors.request.use((config) => { // 可使用async await 做异步操作
+		// 初始化请求拦截器时,会执行此方法,此时data为undefined,赋予默认{}
+		config.data = config.data || {}
+		// 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
+		// console.log(vm.$store.state);
+		// console.log("----------------------------------")
+		if(config?.data?.auth) {
+			// 获取请数据token
+			const token = uni.getStorageSync('accessToken');
+			// console.log("token:"+token)
+			// 可以在此通过vm引用vuex中的变量,具体值在vm.$store.state中
+			// config.header.token = vm.$store.state.userInfo.token
+			if(config?.data?.requstForm){
+				config.header = {
+					'Content-Type': 'application/x-www-form-urlencoded'
+				}
+			}
+			config.header.Authorization = 'Bearer ' + token
+		}
+		// console.log("----------------------------------")
+		return config
+	}, (config) => // 可使用async await 做异步操作
+		Promise.reject(config))
+}
+const responseInterceptors=(vm)=>{
+	/**
+	 * 响应拦截
+	 * @param {Object} http
+	 */
+	uni.$u.http.interceptors.response.use((response) => { /* 对响应成功做点什么 可使用async await 做异步操作*/
+		const data = response.data
+		// 自定义参数
+		const custom = response.config?.custom
+		if (data.code !== 200) { // 服务端返回的状态码不等于200,则reject()
+			if (data.msg) {
+				uni.$u.toast(data.msg)
+			}
+			// 如果没有显式定义custom的toast参数为false的话,默认对报错进行toast弹出提示
+			if (custom.toast !== false) {
+				uni.$u.toast(data.msg)
+			}
+			// 如果需要catch返回,则进行reject
+			if (custom?.catch) {
+				return Promise.reject(data)
+			} else {
+				// 否则返回一个pending中的promise
+				return new Promise(() => { })
+			}
+
+		} else if(data.rows){
+			return data;
+		}
+
+		return data.data || {}
+	}, (response) => { /*  对响应错误做点什么 (statusCode !== 200)*/
+		return Promise.reject(response)
+	})
+}
+
+export {
+	requestInterceptors,
+	responseInterceptors
+}
+
+

+ 311 - 0
loginPages/bindAccount/index.vue

@@ -0,0 +1,311 @@
+<template>
+	<view class="container">
+		<view class="login-wrap">
+			<view class="login-form">
+				<u--form labelPosition="left" :model="userInfo" :rules="rules" ref="form1">
+					<u-form-item label="手机号" prop="phonenumber" labelWidth="auto" labelAlign="right">
+						<u--input v-model="userInfo.phonenumber" placeholder="请输入手机号" border="bottom" type="number"
+							maxlength="11"></u--input>
+					</u-form-item>
+					<u-form-item labelWidth="auto" labelAlign="right" label="验证码" prop="smsCode" width="120">
+						<u--input v-model="userInfo.smsCode" disabledColor="#ffffff" placeholder="请输入验证码"
+							border="bottom" maxlength="6"></u--input>
+						<template #right>
+							<view class="identifying-code">
+								<u-code ref="uCode2" @change="codeChange2" keep-running start-text="获取验证码"></u-code>
+								<text @tap="getCode2" :text="tips2" class="u-page__code-text">{{tips2}}</text>
+							</view>
+						</template>
+
+					</u-form-item>
+				</u--form>
+			</view>
+		</view>
+		<view @click="gotoBindAccountPassword()" class="op-btn-wrap">
+			<view class="h-btn">
+				<text>下一步</text>
+			</view>
+		</view>
+
+		<!-- 密码正确 -->
+		<u-popup :show="errShow" :round="10" mode="center">
+			<view class="h-popo-content">
+				<view class="h-img">
+					<!-- <u-icon name="close" color="red" size="40"></u-icon> -->
+					<u-icon name="/static/login/u01.png" color="red" size="50"></u-icon>
+				</view>
+				<view class="h-text">
+					<text>系统已检测到该手机号已绑定过账号</text>
+				</view>
+				<view class="h-text">
+					<text>请选择</text>
+				</view>
+				<view class="h-btn-wrap">
+					<view @click="createNewAccount()" class="h-left-btn">
+						<text>创建新账号</text>
+					</view>
+					<view @click="loginOldAccount()" class="h-right-btn">
+						<text>登录老账号</text>
+					</view>
+				</view>
+			</view>
+		</u-popup>
+
+	</view>
+</template>
+<script>
+
+
+	export default {
+		data() {
+			return {
+				errShow: false,
+				userInfo: {
+					phonenumber: '',
+					phone: '',
+					smsCode: '',
+					openId: '',
+					password: "",
+					transactionPassword: "",
+					reference: "",
+					type: '' // 实名认证创建新账号
+				},
+				tips2: '',
+				rules: {
+					phonenumber: [{
+							required: true,
+							min: 10,
+							max: 12,
+							message: '请输入11位电话号码',
+							trigger: ['blur', 'change'],
+						},
+						{
+							// 此为同步验证,可以直接返回true或者false,如果是异步验证,稍微不同,见下方说明
+							validator: (rule, value, callback) => {
+								// 调用uView自带的js验证规则,详见:https://www.uviewui.com/js/test.html
+								return !this.$isDataEmpty(value);
+							},
+							message: "请认真填写电话号码",
+							trigger: ['blur', 'change'],
+						}
+					],
+					smsCode: {
+						required: true,
+						min: 4,
+						max: 6,
+						message: '请输入4位验证码',
+						trigger: ['blur', 'change'],
+					},
+				},
+			}
+		},
+		onLoad(option) {
+			// 判断Openid是否为空
+			if (!this.$isDataEmpty(option.openId)) {
+				this.userInfo.openId = option.openId;
+				console.log(option)
+			}
+		},
+		onReady() {
+			this.$refs.form1.setRules(this.rules)
+		},
+		methods: {
+			// 创建新账号
+			createNewAccount() {
+				this.errShow = false;
+				this.userInfo.type = "2";
+				uni.$u.route({
+					url: '/pages/login/login-real-name-auth',
+					params: {
+						data: JSON.stringify(this.userInfo)
+					}
+				})
+			},
+			// 登录老账号
+			loginOldAccount() {
+				this.errShow = false;
+				uni.$u.route({
+					url: '/pages/login/login-old-account',
+					params: {
+						phone: this.userInfo.phonenumber
+					}
+				})
+			},
+			// 验证电话号码是否存在
+			phoneIsExist() {
+				let that = this;
+				// 验证电话号码是否存在
+				this.$api.phoneIsExist({
+					data: this.userInfo
+				}).then((res) => {
+					console.log(res)
+					if (res.phoneIsExist) { // 存在
+						that.errShow = true;
+					} else {
+						that.userInfo.phone = that.userInfo.phonenumber;
+						that.userInfo.type = "1";
+
+
+						uni.$u.route({
+							url: '/pages/login/bind-transaction-password',
+							params: {
+								data: JSON.stringify(that.userInfo)
+							}
+						})
+
+						/* uni.$u.route({
+							url: '/pages/login/bind-account-password',
+							params: {
+								data: JSON.stringify(that.userInfo)
+							}
+						}) */
+
+					}
+				}).catch(() => {
+					uni.showToast({
+						title: "操作失败"
+					})
+				});
+			},
+			// 去绑定账号密码页面
+			gotoBindAccountPassword() {
+				this.$refs.form1.validate().then(res => {
+					this.phoneIsExist();
+				}).catch(errors => {
+					uni.$u.toast('校验失败,请认真填写')
+				})
+			},
+			codeChange2(text) {
+				this.tips2 = text;
+			},
+			getCode2() {
+				let that = this;
+				if (this.$refs.uCode2.canGetCode) {
+					that.getSmsCode();
+				} else {
+					uni.$u.toast('倒计时结束后再发送');
+				}
+			},
+			// 获取手机验证码
+			getSmsCode() {
+				let that = this;
+				// 模拟向后端请求验证码
+				uni.showLoading({
+					title: '正在获取验证码'
+				})
+				getSmsCode({
+					data: {
+						phonenumber: this.userInfo.phonenumber,
+						auth: true
+					}
+				}).then((res) => {
+					uni.hideLoading();
+					// 这里此提示会被this.start()方法中的提示覆盖
+					uni.$u.toast('验证码已发送');
+					// 通知验证码组件内部开始倒计时
+					that.$refs.uCode2.start();
+				}).catch(() => {
+					uni.showToast({
+						title: "操作失败"
+					})
+				});
+			},
+		}
+	}
+</script>
+<style lang="scss">
+	page,
+	body {
+		background: #fff;
+	}
+
+	.h-popo-content {
+		height: 380rpx;
+		padding: 24rpx;
+		width: 600rpx;
+		text-align: center;
+		font-size: 28rpx;
+		font-family: PingFangSC-Semibold, PingFang SC;
+
+		.h-img {
+			display: flex;
+			justify-content: center;
+		}
+
+		.h-text {
+			margin-top: 24rpx;
+			font-weight: 400;
+			color: #666666;
+		}
+
+		.text {
+			margin-top: 12rpx;
+			font-weight: 400;
+			color: #666666;
+		}
+
+		.h-btn-wrap {
+			display: flex;
+			justify-content: space-between;
+			color: #333333;
+			text-align: center;
+			margin-top: 28rpx;
+
+			.h-left-btn {
+				height: 64rpx;
+				line-height: 60rpx;
+				background: #EEEEEE;
+				width: 200rpx;
+				text-align: center;
+				border-radius: 32rpx;
+				margin: 0 auto;
+			}
+
+			.h-right-btn {
+				height: 64rpx;
+				line-height: 60rpx;
+				background: #FFE05C;
+				width: 200rpx;
+				border-radius: 32rpx;
+				margin: 0 auto;
+
+			}
+		}
+	}
+
+	.container {
+		background: #fff;
+		height: 600rpx;
+
+		.login-wrap {
+			display: flex;
+			justify-content: center;
+
+			.login-form {
+				width: 90%;
+			}
+
+			.account {
+				display: flex;
+			}
+
+			.identifying-code {}
+		}
+
+		.op-btn-wrap {
+			margin-top: 60rpx;
+			display: flex;
+			justify-content: center;
+			align-items: center;
+
+			.h-btn {
+				text-align: center;
+				width: 686rpx;
+				height: 84rpx;
+				background: #FFE05C;
+				border-radius: 54rpx;
+				line-height: 84rpx;
+			}
+		}
+	}
+</style>

+ 19 - 5
pages.json

@@ -43,9 +43,11 @@
 				"navigationBarTitleText": "我的"
 			}
 		}
-	],
 
-	"subPackages": [{
+    ],
+
+	"subPackages": [
+		{
 		"root": "orderPages",
 		"pages": [{
 			"path": "orderDetail/index",
@@ -60,7 +62,19 @@
 				"enablePullDownRefresh": false
 			}
 		}]
-	}],
+	},
+		{
+			"root": "loginPages",
+			"pages": [{
+				"path": "bindAccount/index",
+				"style": {
+					"navigationBarTitleText": "绑定手机号",
+					"enablePullDownRefresh": false
+				}
+			}]
+		}
+
+	],
 
 	"tabBar": {
 		"color": "#282828",
@@ -92,8 +106,8 @@
 	"globalStyle": {
 		"navigationBarTextStyle": "black",
 		"navigationBarTitleText": "加载中",
-		"navigationBarBackgroundColor": "#fff",
-		"backgroundColor": "#F8F8F8",
+		"navigationBarBackgroundColor": "#FFE05C",
+		"backgroundColor": "#FFE05C",
 		"titleNView": false
 	},
 	"uniIdRouter": {}

+ 8 - 3
pages/login/login.vue

@@ -62,11 +62,16 @@
 							uni.setStorageSync('phoneIsBind',res.data.data.phoneIsBind)
 
 							if (res.data.data.phoneIsBind){
-								uni.switchTab({
-									url: '/pages/index/index',
+								// uni.switchTab({
+								// 	url: '/pages/index/index',
+								// })
+								uni.navigateTo({
+									url: '/loginPages/bindAccount/index',
 								})
 							}else {
-
+								uni.navigateTo({
+									url: '/loginPages/bindAccount/index',
+								})
 							}
 
 						})