ymy преди 6 месеца
родител
ревизия
4d95dc714c
променени са 3 файла, в които са добавени 9 реда и са изтрити 12 реда
  1. 2 2
      env/dev.js
  2. 1 1
      pages/home/home.vue
  3. 6 9
      pages/login/login.vue

+ 2 - 2
env/dev.js

@@ -1,6 +1,6 @@
 const ENV_PATH = {
-  serverPath: 'https://www.boxuetech.top/ch/prod-api', // 请求前缀地址
-  //serverFilePath: 'https://lsfdev.benyuntech.com/data/access', // 文件前缀地址
+  serverPath: 'https://dev.boxuetech.top/prod-api', // 请求前缀地址
+  clientid: '428a8310cd442757ae699df5d894f051',
   appId: 'wxfc1ae62fd810717d', // 小程序 appid
   appName: '销售小程序', // 小程序名称(登录页面显示的名称)
   name: '销售系统', // 小程序名称

+ 1 - 1
pages/home/home.vue

@@ -95,7 +95,7 @@
 			const e = uni.getStorageSync('carl')
 			this.cList = e
 			this.fatchDate()
-			this.carListMeg()
+			// this.carListMeg()
 		},
 		methods: {
 			// 加购

+ 6 - 9
pages/login/login.vue

@@ -25,10 +25,10 @@
 			if (wx.getUserProfile) {
 				this.canIUseGetUserProfile = true;
 			}
-			uni.setStorageSync('dinnerId', '1806258588536201217')
-			if(e.id){
-				uni.setStorageSync('dinnerId', e.id)
-			}
+			// uni.setStorageSync('dinnerId', '1806258588536201217')
+			// if(e.id){
+			// 	uni.setStorageSync('dinnerId', e.id)
+			// }
 			
 			let infoData = uni.getStorageSync('infoData');
 			if(infoData){
@@ -63,10 +63,7 @@
 							success: async (loginRes) => {
 								console.log('数据:', loginRes)
 								// 发送code到开发者服务器换取用户信息
-								const result = await this.$request('post', '/auth/miniLogin', {
-									tenantId: '000000',
-									code: loginRes.code
-								})
+								const result = await this.$request('post', '/system/appUser/miniLogin?tenantId=000000&code='+loginRes.code)
 									console.log('登录成功:', result);
 								if (result && result.data !== false) {
 									// 保存token
@@ -88,7 +85,7 @@
 								}
 								// 更新用户信息
 								const id = uni.getStorageSync('appUserId');
-								console.log('id', id)
+								// console.log('id', id)
 								uni.setStorageSync("userName", res.userInfo.nickName);
 								const userInfo = {
 									"userId": id,