Commit e9eb1314 authored by Mac's avatar Mac

1

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