Commit bb00091a authored by Mac's avatar Mac

意见调查表的登录

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