加入退出

This commit is contained in:
java110 2020-02-27 18:01:34 +08:00
parent 619777f933
commit c6d5b22ef1
2 changed files with 42 additions and 3 deletions

View File

@ -4,8 +4,8 @@
* add by wuxw 2019-12-28
*/
// 服务器域名
//const baseUrl = 'https://app.demo.winqi.cn/';
const baseUrl = '/';
const baseUrl = 'https://app.demo.winqi.cn/';
//const baseUrl = '/';
const hcBaseUrl = 'https://hc.demo.winqi.cn'; // 登录接口
const loginUrl = baseUrl + 'app/loginProperty';

View File

@ -42,6 +42,34 @@
</view>
</view>
<view class="margin-top">
<view class="cu-list menu">
<view class="cu-item " @tap="_logout()">
<view class="content text-center">
<text class="text-red">退 </text>
</view>
</view>
</view>
</view>
<view class="cu-modal" :class="logoutUser==true?'show':''">
<view class="cu-dialog">
<view class="cu-bar bg-white justify-end">
<view class="content">退出系统</view>
<view class="action" @tap="_cancleLogout()">
<text class="cuIcon-close text-red"></text>
</view>
</view>
<view class="padding-xl">
您确认退出系统吗
</view>
<view class="cu-bar bg-white justify-end">
<view class="action margin-0 flex-sub solid-left" @tap="_cancleLogout()">取消</view>
<view class="action margin-0 flex-sub text-green solid-left" @tap="_doLogoutUser()">确定</view>
</view>
</view>
</view>
</view>
</template>
@ -54,7 +82,8 @@
img: 'https://ossweb-img.qq.com/images/lol/web201310/skin/big99008.jpg',
name: '一纸荒年',
},
currentCommunityName:''
currentCommunityName:'',
logoutUser:false
}
},
@ -89,6 +118,16 @@
uni.navigateTo({
url:"/pages/changePwd/changePwd"
});
},
//退
_logout:function(){
this.logoutUser = true;
},
_cancleLogout:function(){
this.logoutUser = false;
},
_doLogoutUser:function(){
}
}