zhongtianhaoyuan 3 vuotta sitten
vanhempi
commit
7f60bad946

+ 2 - 2
config/index.js

@@ -1,7 +1,7 @@
 const dev = {
 	// baseUrlNew: 'https://apitest.eliangeyun.com',
-	// baseUrlNew: 'http://192.168.110.9:8099',
-	baseUrlNew: 'http://192.168.110.82:8999',
+	baseUrlNew: 'http://192.168.110.9:8099',
+	// baseUrlNew: 'http://192.168.110.82:8999',
 	// baseUrlNew: 'http://192.168.1.119:8999',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false

+ 1 - 1
pages/mine/settings/editPassword.vue

@@ -146,7 +146,7 @@
 				uni.showLoading({
 					title: '重置密码中'
 				})
-				this.$request.baseRequest('post','/commonUser/resetPassword',{phone:this.phone,password:this.password,verifyCode:this.verifyCode}).then(res => {
+				this.$request.baseRequest('post','/commonUser/resetPassword',{phone:this.phone,password:this.password,verifyCode:this.verifyCode,identification:1}).then(res => {
 				    console.log("重置密码",res)
 					// 获得数据
 					if(res.data.code==200){

+ 2 - 1
pages/public/code.vue

@@ -120,7 +120,8 @@
 					that.$request.baseRequest('get', '/commonUser/loginVerifyCode', {
 							phone: this.phone,
 							verifyCode: this.inputList,
-							loginFlag: 2
+							loginFlag: 2,
+							identification:1
 						}).then(res => {
 							if (res.code == 200) {
 								uni.setStorageSync('userInfo', res.data)

+ 3 - 2
pages/public/login.vue

@@ -154,7 +154,7 @@
 				    plus.runtime.quit();
 				}
 			},
-			passlogin(e) {debugger
+			passlogin(e) {
 				var that = this
 				uni.showLoading({
 					title: '登录中',
@@ -164,7 +164,8 @@
 				that.$request.baseRequest('get', '/commonUser/login', {
 						phone: this.phone,
 						password: this.password,
-						loginFlag: 2
+						loginFlag: 2,
+						identification: 1
 					}).then(res => {
 						if (res.code == 200) {
 							console.log("userInfo", res.data)

+ 4 - 2
pages/public/register.vue

@@ -224,7 +224,8 @@
 						phone: this.phone,
 						password: this.password,
 						verifyCode: this.verifyCode,
-						userName: username
+						userName: username,
+						identification:1,//司机标识
 					}).then(res => {
 						if (res.code == '11002') {
 							uni.showToast({
@@ -248,7 +249,8 @@
 							that.$request.baseRequest('get', '/commonUser/login', {
 									phone: this.phone,
 									password: this.password,
-									loginFlag: 2
+									loginFlag: 2,
+									identification:1  //司机标识
 								}).then(res => {
 									if (res.code == 200) {
 										// // pc登录