Commit 58d6d86a authored by Mac's avatar Mac

登录验证

parent 3d7940bc
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
res => { res => {
if(res.resultCode==1){ if(res.resultCode==1){
this.details = res.data; this.details = res.data;
console.log(this.details)
if(res.data.VideoUrl==''){ if(res.data.VideoUrl==''){
this.active=1 this.active=1
}; };
...@@ -259,8 +259,6 @@ ...@@ -259,8 +259,6 @@
} }
this.details.imgs.push(obj) this.details.imgs.push(obj)
}) })
console.log(this.details.imgs)
} }
} }
); );
......
...@@ -134,12 +134,18 @@ ...@@ -134,12 +134,18 @@
<u-button shape="square" :ripple="true" @click='showdelete=true' :custom-style="{background:'#F70027',border:'none',color:'#FFF'}">删除</u-button> <u-button shape="square" :ripple="true" @click='showdelete=true' :custom-style="{background:'#F70027',border:'none',color:'#FFF'}">删除</u-button>
</view> </view>
</view> </view>
<u-modal v-model="showdelete" content="删除该首店认证?" :show-cancel-button='true' @cancel='showdelete=false' @confirm='deletebtn()'></u-modal> <u-modal v-model="showdelete" content="删除该首店认证?" :show-cancel-button='true' @cancel='showdelete=false' @confirm='deletebtn()'></u-modal>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view> </view>
</template> </template>
<script> <script>
import auth from "../../../components/auth/index.vue";
export default { export default {
components: {
auth
},
data() { data() {
return { return {
pageTitle:'首店申请', pageTitle:'首店申请',
...@@ -151,6 +157,7 @@ ...@@ -151,6 +157,7 @@
minute: false, minute: false,
second: false second: false
}, },
showAuth:false,
action: this.host2 + "/api/File/UploadTencent", action: this.host2 + "/api/File/UploadTencent",
fileList:[], fileList:[],
showdelete:false, showdelete:false,
...@@ -203,11 +210,21 @@ ...@@ -203,11 +210,21 @@
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '申请详情' title: '申请详情'
}); });
}else{
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
}else{ }else{
this.GetAuthenticationTypeEnumList()//类型 this.GetAuthenticationTypeEnumList()//类型
this.GetBrandTypeEnumList()//品牌归属地枚举 this.GetBrandTypeEnumList()//品牌归属地枚举
this.GetBusinessTypeEnumList()//申请认证行业枚举 this.GetBusinessTypeEnumList()//申请认证行业枚举
this.GetAuthenticationCategoryEnumList()//认证分类枚举 this.GetAuthenticationCategoryEnumList()//认证分类枚举
}
let currentPages = getCurrentPages(); let currentPages = getCurrentPages();
let u = "/" + currentPages[currentPages.length - 1].route; let u = "/" + currentPages[currentPages.length - 1].route;
let pages = wx.getStorageSync("basedata") let pages = wx.getStorageSync("basedata")
...@@ -519,6 +536,17 @@ ...@@ -519,6 +536,17 @@
}, },
}); });
}, },
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
this.GetAuthenticationTypeEnumList()//类型
this.GetBrandTypeEnumList()//品牌归属地枚举
this.GetBusinessTypeEnumList()//申请认证行业枚举
this.GetAuthenticationCategoryEnumList()//认证分类枚举
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
} }
} }
</script> </script>
......
...@@ -28,14 +28,19 @@ ...@@ -28,14 +28,19 @@
/> />
</scroll-view> </scroll-view>
</view> </view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth= 'gbAuth'></auth>
</view> </view>
</template> </template>
<script> <script>
import auth from "../../../components/auth/index.vue";
export default { export default {
components: {
auth
},
data() { data() {
return { return {
showAuth:false,
mainColor:"", mainColor:"",
typeList:[{Id:0,Name:'全部'},{Id:1,Name:'未审核'},{Id:2,Name:'审核通过'},{Id:3,Name:'审核不通过'}], typeList:[{Id:0,Name:'全部'},{Id:1,Name:'未审核'},{Id:2,Name:'审核通过'},{Id:3,Name:'审核不通过'}],
active:0, active:0,
...@@ -60,7 +65,17 @@ ...@@ -60,7 +65,17 @@
title: '我的认证' title: '我的认证'
}); });
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: ""
};
this.showAuth = true;
}else{
this.init(); this.init();
}
}, },
methods: { methods: {
init() { init() {
...@@ -103,7 +118,16 @@ ...@@ -103,7 +118,16 @@
}, },
getsplice(index){ getsplice(index){
this.g.splice(index,1) this.g.splice(index,1)
} },
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.init();
},
//关闭登录窗口
gbAuth(){
uni.navigateBack()
},
} }
} }
</script> </script>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<!-- 公司认证状态 --> <!-- 公司认证状态 -->
</view> </view>
<view class="componyStatusBox" @click="goIdentification" v-if="is_show_korea==1"> <view class="componyStatusBox" @click="goIdentification" v-if="is_show_korea==1 && user_info.nickname">
<view class="renzhen" v-if="companyStatus==2 " > <view class="renzhen" v-if="companyStatus==2 " >
未认证 未认证
</view> </view>
......
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