<template>
	<view class="content">
		<view class="" @click="updateUserInfo">
			{{loginInfo.nickName?loginInfo.nickName:'点击刷新'}}
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				loginInfo:'',
				extdata:'',
				opendata:'',
			}
		},
		onLoad() {
			this.loginInfo = uni.getStorageInfoSync(userInfo);
			this.extdata=uni.getStorageInfoSync(extdata);
			this.opendata=uni.getStorageInfoSync(wxOpenData);
		},
		methods: {
            updateUserInfo(){
				return false;
				var that=this;
				 this.$http('miniApp2/sys/updateUserInfo', {
				   openId:this.opendata.openid,
				   shopId:this.extdata.shopId,
				   
				  },'POST').then(res => {
				 	this.wxOpenData=res.data;
					//that.wxPhoneLogin()
					uni.setStorage({
						key: 'wxOpenData',
						data: that.wxOpenData,
						 success: function () {
						    // that.uniLogin()
						 
						 }
					}); 
					
				  })
			}
		}
	}
</script>

<style>
	
</style>
