Commit 583edb5f authored by Mac's avatar Mac

1

parent 41552a99
...@@ -287,10 +287,12 @@ import tabbars from '@/components/tabbar/index'; ...@@ -287,10 +287,12 @@ import tabbars from '@/components/tabbar/index';
}else{ }else{
if(this.showteacher==1){ if(this.showteacher==1){
this.msg.TeacherId = this.u.UserTeacher this.msg.TeacherId = this.u.UserTeacher
this.init()
} }
this.getPointCourseClassList() this.getPointCourseClassList()
this.getTeacherList() this.getTeacherList()
} }
}, },
created() { created() {
......
...@@ -84,12 +84,12 @@ ...@@ -84,12 +84,12 @@
current:0, current:0,
msg:{ msg:{
pageIndex:1, pageIndex:1,
pageSize:10, pageSize:15,
Type:0 Type:0
}, },
msg2:{ msg2:{
pageIndex:1, pageIndex:1,
pageSize:10, pageSize:15,
OrderNo:0 OrderNo:0
}, },
g:[], g:[],
...@@ -104,6 +104,9 @@ ...@@ -104,6 +104,9 @@
} }
}, },
onLoad() { onLoad() {
},
onShow() {
this.u = uni.getStorageSync("mall_UserInfo"); this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) { if (!this.u) {
this.u = { this.u = {
...@@ -112,8 +115,12 @@ ...@@ -112,8 +115,12 @@
}; };
this.showAuth = true; this.showAuth = true;
}else{ }else{
this.current=0
this.msg.pageIndex = 1;
this.g = [];
this.init() this.init()
} }
}, },
created() { created() {
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<view class="recharge-top"> <view class="recharge-top">
<u-avatar :src="mall_UserInfo.Photo" size="80" ></u-avatar> <u-avatar :src="mall_UserInfo.Photo" size="80" ></u-avatar>
<view class="recharge-top-r"> <view class="recharge-top-r">
<text class="chaochu1">{{mall_UserInfo.Name}}</text> <text class="chaochu1" style="font-size:13px;color: #111111;" >{{mall_UserInfo.Name}}</text>
<text class="chaochu1" style='font-size: 11px;color: #666666;'>{{Point}}</text> <text class="chaochu1" style='font-size: 11px;color: #666666;'>可用点数:{{Point}}</text>
</view> </view>
</view> </view>
<view class="recharge-c"> <view class="recharge-c">
......
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
</view> </view>
</view> </view>
<!-- 排课点数 --> <!-- 排课点数 -->
<view class="order_bar" style="margin-top: 15px;display: flex;flex-direction: row;align-items: center;justify-content: space-between;" @click="gopointBalance"> <view class="order_bar paike" style="" @click="gopointBalance" v-if="meueData.user_center.is_point_status==1">
<span style='font-size: 14px;color: #111111;'>可用余额(点数):</span> <span style='font-size: 14px;color: #111111;'>可用余额(点数):</span>
<span style='font-size: 22px;color: #111111;font-family: aa;'>2000</span> <span style='font-size: 22px;color: #111111;font-family: aa;'>{{PointNum}}</span>
</view> </view>
<view class="order_bar" v-if="meueData.user_center.is_order_bar_status == 1"> <view class="order_bar" v-if="meueData.user_center.is_order_bar_status == 1">
<u-section title="我的订单" sub-title="查看更多" style="width: 100%;padding:0px 0 10px ;" @click="goUrl('/pages/order/index/index?status=0')"></u-section> <u-section title="我的订单" sub-title="查看更多" style="width: 100%;padding:0px 0 10px ;" @click="goUrl('/pages/order/index/index?status=0')"></u-section>
...@@ -198,6 +198,7 @@ ...@@ -198,6 +198,7 @@
shopBasics: {}, shopBasics: {},
mall_UserInfo: {}, mall_UserInfo: {},
IsEducation: 0, //1是0否是网课模式 IsEducation: 0, //1是0否是网课模式
PointNum:0,
}; };
}, },
components: { components: {
...@@ -246,6 +247,9 @@ ...@@ -246,6 +247,9 @@
}, },
onShow() { onShow() {
this.userinfo(2); this.userinfo(2);
if (this.mall_UserInfo) {
this.getUserPoint()
}
}, },
methods: { methods: {
goHome() { goHome() {
...@@ -287,6 +291,27 @@ ...@@ -287,6 +291,27 @@
} }
} }
break; break;
case "/pages/appointment/personal/studentAppointmentList":
if(this.meueData.user_center.is_point_status==1){
flag = true;
}else{
flag = false;
}
break;
case "/pages/appointment/personal/teacherOrderList":
if(this.meueData.user_center.is_point_status==1 && this.mall_UserInfo.UserTeacher>0){
flag = true;
}else{
flag = false;
}
break;
case "/pages/appointment/appointment?teacher=1":
if(this.meueData.user_center.is_point_status==1 && this.mall_UserInfo.UserTeacher>0){
flag = true;
}else{
flag = false;
}
break;
} }
return flag; return flag;
}, },
...@@ -360,6 +385,16 @@ ...@@ -360,6 +385,16 @@
} }
); );
}, },
getUserPoint(){
this.request2({
url: '/api/AppletPoint/GetAppletUserPointDetailPageList',
data: {pageIndex:1,pageSize:10,Type:0}
},
(res) => {
this.PointNum = res.data.pageData.PointNum;
}
);
},
goUrl(url) { goUrl(url) {
if (url == '/pages/balance/balance') { if (url == '/pages/balance/balance') {
uni.navigateTo({ uni.navigateTo({
...@@ -375,6 +410,7 @@ ...@@ -375,6 +410,7 @@
this.userinfo(); this.userinfo();
this.u = this.user_info; this.u = this.user_info;
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo") : {}; this.mall_UserInfo = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo") : {};
this.getUserPoint()
}, },
login(name) { login(name) {
if ((name && name.nickname == '') || !name || !name.nickname) { if ((name && name.nickname == '') || !name || !name.nickname) {
...@@ -716,4 +752,7 @@ ...@@ -716,4 +752,7 @@
.userBox .headHasTOP { .userBox .headHasTOP {
margin-top: 25px; margin-top: 25px;
} }
.userBox .paike{
margin-top: 15px;display: flex;flex-direction: row;align-items: center;justify-content: space-between;
}
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment