Commit bb00091a authored by Mac's avatar Mac

意见调查表的登录

parent dd6b48d9
......@@ -163,16 +163,18 @@
</view>
</view>
</template>
<!-- <template v-if="surveyData.isEnd==1&& usershow==false">
</template> -->
</view>
<auth v-if="showAuth" @changeuserinfo="reloadUserinfo" @gbAuth="gbAuth"></auth>
</view>
</template>
<script>
import auth from '../../components/auth/index.vue';
export default{
components: {
auth
},
data(){
return{
loading:false,
......@@ -180,7 +182,8 @@
surveyData:{},
mainColor: "",
usershow:true,
showAuth: false,
mall_UserInfo:{}
}
},
onLoad(options){
......@@ -188,11 +191,13 @@
uni.setNavigationBarTitle({
title: '意见调查表',
});
if(options && options.ID){
this.mall_UserInfo = uni.getStorageSync("mall_UserInfo");
if (!this.mall_UserInfo) {
this.showAuth = true;
}else if(options && options.ID){
this.ID = options.ID;
this.init()
}
},
methods:{
init(){
......@@ -353,6 +358,13 @@
goindex(){
uni.redirectTo({ url: "/pages/index/index" });
},
reloadUserinfo() {
this.init()
},
//关闭登录窗口
gbAuth() {
uni.navigateBack();
},
}
}
</script>
......
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