Commit 583edb5f authored by Mac's avatar Mac

1

parent 41552a99
......@@ -287,10 +287,12 @@ import tabbars from '@/components/tabbar/index';
}else{
if(this.showteacher==1){
this.msg.TeacherId = this.u.UserTeacher
this.init()
}
this.getPointCourseClassList()
this.getTeacherList()
}
},
created() {
......
......@@ -84,12 +84,12 @@
current:0,
msg:{
pageIndex:1,
pageSize:10,
pageSize:15,
Type:0
},
msg2:{
pageIndex:1,
pageSize:10,
pageSize:15,
OrderNo:0
},
g:[],
......@@ -104,6 +104,9 @@
}
},
onLoad() {
},
onShow() {
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
......@@ -112,8 +115,12 @@
};
this.showAuth = true;
}else{
this.current=0
this.msg.pageIndex = 1;
this.g = [];
this.init()
}
},
created() {
this.mainColor = this.$uiConfig.mainColor;
......
......@@ -3,8 +3,8 @@
<view class="recharge-top">
<u-avatar :src="mall_UserInfo.Photo" size="80" ></u-avatar>
<view class="recharge-top-r">
<text class="chaochu1">{{mall_UserInfo.Name}}</text>
<text class="chaochu1" style='font-size: 11px;color: #666666;'>{{Point}}</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>
</view>
</view>
<view class="recharge-c">
......
......@@ -72,9 +72,9 @@
</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: 22px;color: #111111;font-family: aa;'>2000</span>
<span style='font-size: 22px;color: #111111;font-family: aa;'>{{PointNum}}</span>
</view>
<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>
......@@ -198,6 +198,7 @@
shopBasics: {},
mall_UserInfo: {},
IsEducation: 0, //1是0否是网课模式
PointNum:0,
};
},
components: {
......@@ -246,6 +247,9 @@
},
onShow() {
this.userinfo(2);
if (this.mall_UserInfo) {
this.getUserPoint()
}
},
methods: {
goHome() {
......@@ -287,6 +291,27 @@
}
}
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;
},
......@@ -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) {
if (url == '/pages/balance/balance') {
uni.navigateTo({
......@@ -375,6 +410,7 @@
this.userinfo();
this.u = this.user_info;
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo") ? uni.getStorageSync("mall_UserInfo") : {};
this.getUserPoint()
},
login(name) {
if ((name && name.nickname == '') || !name || !name.nickname) {
......@@ -716,4 +752,7 @@
.userBox .headHasTOP {
margin-top: 25px;
}
.userBox .paike{
margin-top: 15px;display: flex;flex-direction: row;align-items: center;justify-content: space-between;
}
</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