Commit e9eb1314 authored by Mac's avatar Mac

1

parent ba1b2ac4
......@@ -139,7 +139,7 @@ export default {
msg:{
pageIndex: 1,
pageSize:10,
ActivityType:0
EnrollState:3
},
page_count: 1,
g: [],
......@@ -189,9 +189,9 @@ export default {
change(index) {
this.current = index
if(index==0){
this.msg.ActivityType = 0
this.msg.EnrollState = 3
}else{
this.msg.ActivityType = index;
this.msg.EnrollState = index;
}
this.msg.pageIndex = 1;
......@@ -272,7 +272,7 @@ export default {
icon: 'success',
})
if(res.data != 1){
if(this.msg.ActivityType==1){
if(this.msg.EnrollState==1){
this.g.splice(this.bmobj.index,1)
}else{
this.g[this.bmobj.index].Status=1
......
......@@ -90,6 +90,10 @@
<view class="tijiao" @click="tj()">
提交绑定
</view>
</view>
<view v-if="isAttestationEdu==1" style="width: 100%;display: flex;flex-direction: column;align-items: center;">
<image src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/Jhrenzcg.png" style="width: 300rpx;height: 324rpx;margin-top: 256rpx;"></image>
<text style="font-size: 20px;color: #111111;margin-top: 53px;">验证成功 成为学员</text>
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</div>
......@@ -236,7 +240,12 @@
res => {
uni.hideLoading()
if (res.resultCode == 1) {
uni.showToast({
title:res.message,
icon:'none'
})
this.isAttestationEdu = 1;
this.getHome()
}
},
error=>{
......@@ -249,11 +258,25 @@
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.getHome()
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
getHome(){
this.request2({
url: "/api/Mall/GetHome",
data: {page_id: 0,open_school: 0,StoreId: 0},
},
(res) => {
uni.setStorageSync("basedata", res.data);
let basedata = wx.getStorageSync("basedata")
this.isAttestationEdu = basedata.user_info.isAttestationEdu ? basedata.user_info.isAttestationEdu:0
},
(error) => {}
);
},
}
......
......@@ -19,6 +19,10 @@
<view style="display: flex;flex-direction: column;justify-content: center;height: 50px;margin-left: 20rpx">
<Text class="nickname" style="color: #FFF;font-size: 40rpx;font-weight:800;max-width: 200px;overflow: hidden;display: inline-block;white-space: nowrap; text-overflow:ellipsis;"
@click="login(user_info)">{{ user_info.nickname ? user_info.nickname : '立即登录' }}</Text>
<!-- 判断是甲鹤小程序 -->
<view v-if="AppletID == 5">
<u-tag text="甲鹤学员" bg-color='#40766E' color='#FFF' size='mini' border-color='#40766E'/>
</view>
<view style="display: flex; align-items: center;">
<view class="member" v-if="is_icon_members_grade == 1&& user_info.nickname">
<image :src="user_info.identity.level_icon" mode="aspectFill" style="width: 22px;height: 22px;border-radius: 11px;"></image>
......@@ -48,6 +52,9 @@
<image :src="user_info.identity.level_icon" mode="aspectFill" style="width: 22px;height: 22px;border-radius: 11px;"></image>
<Text style="margin-right: 10px;">{{ user_info.identity.level_name != null ? user_info.identity.level_name : '普通用户' }}</Text>
</view>
<view v-if="AppletID == 5">
<u-tag text="甲鹤学员" bg-color='#40766E' color='#FFF' size='mini' border-color='#40766E'/>
</view>
</view>
<view class="top_b">
<view class="top_b_item" v-if="meueData.user_center.is_foot_bar_status == 1" @click="goUrl('/pages/favorite/favorite')">
......@@ -237,6 +244,8 @@
companyName:"",
is_show_korea:0,//是否显示认证标识
IsDeposit:0,//是否开启储蓄卡功能
AppletID:0,//小程序id 5-8日 判断是否是甲鹤
isAttestationEdu:0,//学员是否认证了 0否1是
};
},
components: {
......@@ -254,6 +263,10 @@
this.userinfo();
this.setting = uni.getStorageSync("basedata").mall.setting;
this.isCompany=uni.getStorageSync("user_type")?uni.getStorageSync("user_type")=="company":true; //完成动态加载系统所属类型
let basedata =uni.getStorageSync("basedata")?uni.getStorageSync("basedata"):'';
this.AppletID = basedata.home_pages.id?basedata.home_pages.id:0;
this.isAttestationEdu = basedata.user_info.isAttestationEdu ? basedata.user_info.isAttestationEdu:0
},
onLoad() {
this.navHeight = this.$navHeight - 2;
......@@ -295,6 +308,8 @@
if (this.mall_UserInfo) {
this.getUserPoint()
}
let basedata =uni.getStorageSync("basedata")?uni.getStorageSync("basedata"):'';
this.isAttestationEdu = basedata.user_info.isAttestationEdu ? basedata.user_info.isAttestationEdu:0
},
methods: {
goHome() {
......
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