소스 검색

重新对接

lianghanqiang 4 년 전
부모
커밋
1a02d9e151
5개의 변경된 파일9개의 추가작업 그리고 9개의 파일을 삭제
  1. 3 3
      assets/http/api.js
  2. 2 2
      assets/http/service.js
  3. 1 1
      pages/index/index.vue
  4. 2 2
      pages/login/account-login.vue
  5. 1 1
      pages/login/login.vue

+ 3 - 3
assets/http/api.js

@@ -11,9 +11,9 @@ const sms={
 }
 //商场管理
 const mall={
-	login:p => http.post('/cyzh-ldt/appaccount/login',p),
+	login:p => http.post('/shop/account/login',p),
 	detail:p => http.get("cyzh-ldt/mall/detail", {params:p}),
-	getListByPhone:p => http.get("cyzh-ldt/app/mall/getMyMallList", {params:p}),
+	getListByPhone:p => http.get("/ldt_mall/mall/list", {params:p}),
 	getShopLabelByMallId:p => http.get("cyzh-ldt/app/mall/getShopLabelByMallId?mallId="+p),
 	getMallAreaByMallId:p => http.get("cyzh-ldt/app/mall/getMallAreaByMallId?mallId="+p),
 	getShopList:p => http.get("cyzh-ldt/app/mall/getShopList",{params:p}),
@@ -25,7 +25,7 @@ const mall={
 }
 
 const appaccount={
-	login:p => http.post('/cyzh-ldt/appaccount/login',p),
+	login:p => http.post('/common/account/login',p),
 	setPassword:p => http.post('/cyzh-ldt/appaccount/setPassword',p),
 	forgetPassword:p => http.post('/cyzh-ldt/appaccount/forgetPassword',p),
 }

+ 2 - 2
assets/http/service.js

@@ -1,8 +1,8 @@
 import Request from 'luch-request'
 
-// let baseURL = 'http://localhost:2539/'
+let baseURL = 'http://localhost:2366/'
 // let baseURL = 'http://192.168.1.244:1888/api/'
-let baseURL = 'https://ldt.guosen-fumao.cn/api/'
+// let baseURL = 'https://ldt.guosen-fumao.cn/api/'
 
 
 let tokenUrl = baseURL +

+ 1 - 1
pages/index/index.vue

@@ -170,7 +170,7 @@
 			},
 			async init(){
 				let phone=this.$cache.get('phone')
-				let res=await this.$api.mall.getListByPhone({phone})
+				let res=await this.$api.mall.getListByPhone({personTel:phone})
 				this.mallList=res.data
 				this.mallId=this.mallList[0].id
 				this.mallLable=this.mallList[0].name

+ 2 - 2
pages/login/account-login.vue

@@ -88,9 +88,9 @@
 			},
 			async doLogin(){
 				let params={
-					type:1,
+					type: "MALL",
 					phone:this.form.phone,
-					password:md5Libs.md5(this.form.password)
+					secret: md5Libs.md5(this.form.password)
 				}
 				try{
 					let res=await this.$api.appaccount.login(params)

+ 1 - 1
pages/login/login.vue

@@ -94,7 +94,7 @@
 					return
 				}
 				let params={
-					phone:this.form.phone
+					personTel:this.form.phone
 				}
 				let res=await this.$api.mall.getListByPhone(params)
 				if (this.$isEmpty(res.data)){