lilei před 2 roky
rodič
revize
d0f78ae32f
4 změnil soubory, kde provedl 11 přidání a 11 odebrání
  1. 1 1
      App.vue
  2. 7 7
      api/login.js
  3. 1 1
      api/request.js
  4. 2 2
      pages/index/index.vue

+ 1 - 1
App.vue

@@ -1,7 +1,7 @@
 <script>
 	export default {
 		globalData: {
-			// baseUrl: 'http://192.168.2.113:9110/saas/clz/', // 本地
+			// baseUrl: 'http://192.168.2.103:7002/saas/clz/', // 本地
 			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
 			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},

+ 7 - 7
api/login.js

@@ -3,7 +3,7 @@ import request from './request';
 // 微信授权登录
 export const wxlogin = params => {
   return request({
-    url: 'auth/wxlogin',
+    url: 'wxauth/wxlogin',
     data: params,
     method: 'post'
   },true)
@@ -11,7 +11,7 @@ export const wxlogin = params => {
 // 获取openid
 export const code2Session = params => {
   return request({
-    url: 'auth/getOpenId',
+    url: 'wxauth/getOpenId',
     data: params,
     method: 'get'
   })
@@ -19,7 +19,7 @@ export const code2Session = params => {
 // 手机登录
 export const login = params => {
   return request({
-    url: `auth/loginVerify`,
+    url: `wxauth/loginVerify`,
     data: params,
     method: 'post',
   })
@@ -29,7 +29,7 @@ export const checkLogin = () => {
   let token = uni.getStorageSync('token')
   if (token&&token!='') {
     return request({
-      url: `auth/checkLogin`,
+      url: `wxauth/checkLogin`,
       method: 'get'
     })
   } else {
@@ -44,7 +44,7 @@ export const checkLogin = () => {
 // 退出登录
 export const logout = params => {
   return request({
-    url: `auth/logout`,
+    url: `wxauth/logout`,
     data: params,
     method: 'get'
   })
@@ -52,7 +52,7 @@ export const logout = params => {
 // 获取图片验证码
 export const getCaptcha = randomCode => {
   return request({
-    url: `auth/captchaCreate/${randomCode}`,
+    url: `wxauth/captchaCreate/${randomCode}`,
     method: 'get',
     responseType: 'text',
   },true)
@@ -60,7 +60,7 @@ export const getCaptcha = randomCode => {
 // 验证手机
 export const sendLoginVerifyCode = params => {
   return request({
-    url: `auth/sendVerifyCode`,
+    url: `wxauth/sendVerifyCode`,
     method: 'post',
 	data:params,
   },true)

+ 1 - 1
api/request.js

@@ -20,7 +20,7 @@ function request(options,hasNoToken) {
 	if(userInfo.sysUserFlag == '0'){
 		header['auth-token'] = hasNoToken ? '' : uni.getStorageSync('token')
 	}else{
-		header['authorization'] = hasNoToken ? '' : uni.getStorageSync('token')
+		header['access-token'] = hasNoToken ? '' : uni.getStorageSync('token')
 	}
 	_obj.header = header
 	_obj.header['X-HEADER-APPID'] = '!z2Yc.aes|STw5oReFk+wACvW4IGVHZsFe+/MgMT9cp0amuic1gqE=';

+ 2 - 2
pages/index/index.vue

@@ -351,7 +351,7 @@
 			},
 			// 获取上方滚动扫描记录
 			getScrollLog(){
-				scanVinLogQueryRoll({pageNo:1,pageSize:1000}).then(res => {
+				scanVinLogQueryRoll({pageNo:1,pageSize:100}).then(res => {
 					console.log(res)
 					this.list = res.data.list || []
 					this.list.map(item => {
@@ -391,7 +391,7 @@
 				})
 			},
 			getRedScroll(){
-				getRewardRollList({pageNo:1,pageSize:1000}).then(res => {
+				getRewardRollList({pageNo:1,pageSize:100}).then(res => {
 					this.slist = res.data || []
 					this.slist.map(item => {
 						item.placeText = item.userName + '刚刚得到了'+item.totalRewardAmount+'元 红包奖励'