|
@@ -14,7 +14,7 @@
|
|
|
<view class="member-info">
|
|
|
<view class="member-title">我的账号</view>
|
|
|
<view class="member-text">您目前尚未开通会员</view>
|
|
|
- </view>>
|
|
|
+ </view>
|
|
|
<view class="member-handle">立即开通 <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,
|