Files
crmeb_java/app/pages/auth/index.vue
stivepeim be34f57322 ## v1.3.1 更新列表
1. 【修复】申请退款后积分等操作可能出现错误的问题
	2. 【修复】拼团支付可能出现支付错误的问题
	3. 【修复】退款申请后的订单流程优化和积分赠送的问题
	4. 【修复】回收站中的商品无法恢复的问题
	5. 【修复】一号通短信查询记录不完整的问题
	6. 【修复】用户管理批量加分组,标签的问题
	7. 【修复】积分日志搜索显示有误的问题
	8. 【修复】手动发送优惠券可能会出错的问题
	9. 【修复】核销订单创建在某种条件下会出错的问题
	10. 【修复】移动端商品详情,购物车等样式兼容问题
	11. 【修复】业务流程性的优化
2021-01-19 10:16:45 +08:00

76 lines
1.3 KiB
Vue

<template>
<view class="lottie-bg">
<view id="lottie">
<image src="/static/img/live-logo.gif" rel="preload" />
</view>
</view>
</template>
<script>
import wechat from "@/libs/wechat";
import {
getUserInfo
} from "@/api/user";
export default {
name: "Auth",
mounted() {
},
onLoad(option) {
let that = this
const {
code,
state
} = option;
wechat.auth(code, state)
.then(() => {
getUserInfo().then(res => {
that.$store.commit("SETUID", res.data.uid);
location.href = decodeURIComponent(
decodeURIComponent(option.back_url)
);
}).catch(res => {
console.log('getUserInfo错误='+res);
});
})
.catch((err) => {
// location.replace("/");
console.log('auth错误='+err);
});
}
};
</script>
<style scoped lang="scss">
.lottie-bg {
position: fixed;
left: 0;
top: 0;
background-color: #fff;
width: 100%;
height: 100%;
z-index: 999;
display: flex;
align-items: center;
justify-content: center;
}
#lottie {
display: block;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transform: translate3d(0, 0, 0);
margin: auto;
image {
width: 200rpx;
height: 200rpx;
}
}
</style>