Browse Source

Signed-off-by: liuboyan <632697560@qq.com>
bug

liuboyan 4 years ago
parent
commit
977b22c025
2 changed files with 8 additions and 8 deletions
  1. 1 1
      config/api.js
  2. 7 7
      pages/user/index.vue

+ 1 - 1
config/api.js

@@ -1,4 +1,4 @@
-const API_BASE = 'http://39.100.230.190:8019/ypdApi'
+const API_BASE = 'https://xinghuolanqiu.com/newApi'
 
 module.exports = {
 	//  微信授权登录

+ 7 - 7
pages/user/index.vue

@@ -14,7 +14,7 @@
 				<view class="member-info">
 					<view class="member-title">我的账号</view>
 					<view class="member-text">您目前尚未开通会员</view>
-				</view>>
+				</view>
 				<view class="member-handle">立即开通&nbsp;<u-icon name="arrow-right"></u-icon>
 				</view>
 			</view>
@@ -102,18 +102,18 @@
 			if (uni.getStorageSync('userData')) {
 				this.userData = uni.getStorageSync('userData')
 			}
-			NET.request(API.getMemberInfo, {}, 'POST').then(res => {
-				this.memberInfo = res.data
+		},
+		onShow() {
+			NET.request(API.getAllStudentList, {}, 'POST').then(res => {
+				this.studentList = res.data
 			}).catch(error => {
 				this.$refs.uTips.show({
 					title: error.message,
 					type: 'warning',
 				})
 			})
-		},
-		onShow() {
-			NET.request(API.getAllStudentList, {}, 'POST').then(res => {
-				this.studentList = res.data
+			NET.request(API.getMemberInfo, {}, 'POST').then(res => {
+				this.memberInfo = res.data
 			}).catch(error => {
 				this.$refs.uTips.show({
 					title: error.message,