1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <template>
- <view>
- <scroll-view :scroll-y="modalName==null" class="page" :class="modalName!=null?'show':''">
- <cu-custom bgColor="bg-gradual-pink" :isBack="false">
- <!-- <block slot="backText">返回</block> -->
- <block slot="content">退出页</block>
- </cu-custom>
- <view class="solids-bottom padding-xs flex align-center">
- <view class="flex-sub text-center">
- <view class="solid-bottom text-xsl padding">
- <text class=" cuIcon-roundcheckfill text-green"></text>
- </view>
- <view class="padding">{{item.msg}}</view>
- </view>
- </view>
- <view class="padding flex flex-direction">
- <button class="cu-btn bg-green shadow-blur round lg" @tap="goback()">返回登录
- </button>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- import api from "@/api/api";
- import store from '@/store/index.js'
- export default {
- data() {
- return {
- modalName: null,
- item:{msg:'退出成功'},
- }
- },
- onLoad: function (option) {
- api.logout().then(res=>{
- uni.clearStorageSync()
- store.commit('SET_TOKEN',"");
- store.commit('SET_USERID',"");
- })
- },
- methods: {
- goback(){
- /* window.location.reload() */
- // uni.navigateTo({
- // url:'/pages/login/login'
- // })
- window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=ww7c43b4b5f33945ad&redirect_uri=hr3.gksports.net.cn:8082&response_type=code&scope=snsapi_userinfo&agentid=1000018&state=STATE#wechat_redirect";
- //window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wwd372e7740b9b586f&redirect_uri=zdd.g.dr1997.com&response_type=code&scope=snsapi_userinfo&agentid=1000003&state=STATE#wechat_redirect";
- }
- }
- }
- </script>
- <style>
- </style>
|