|
|
@@ -47,7 +47,7 @@
|
|
|
</view>
|
|
|
<view class="message-badge">9</view>
|
|
|
</view>
|
|
|
- <view class="function-item" @click="logout">
|
|
|
+ <view class="function-item" @click="">
|
|
|
<text class="function-icon">📱</text>
|
|
|
<text class="function-text">改号码</text>
|
|
|
</view>
|
|
|
@@ -171,7 +171,7 @@ import { getList } from "@/api/hd";
|
|
|
import { share } from "@/mixins";
|
|
|
import AppAvatarModule from "@/components/module/app-avatar";
|
|
|
import { mapGetters } from 'vuex'
|
|
|
-import { clearLogin,currentInfo } from "@/api/user";
|
|
|
+import { currentInfo } from "@/api/user";
|
|
|
import { list } from "@/mixins";
|
|
|
import { APIHOST } from '@/config'
|
|
|
export default {
|
|
|
@@ -236,25 +236,6 @@ export default {
|
|
|
uni.stopPullDownRefresh()
|
|
|
}
|
|
|
},
|
|
|
- logout(){
|
|
|
- let that = this
|
|
|
- that.$util.confirmModal({content:'确认退出?'},() => {
|
|
|
- // #ifdef APP-PLUS
|
|
|
- uni.clearStorage()
|
|
|
- that.$store.commit("setLoginInfo", {})
|
|
|
- plus.runtime.restart()
|
|
|
- // #endif
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- clearLogin().then(res=>{
|
|
|
- if(res.code == 1){
|
|
|
- uni.clearStorage()
|
|
|
- that.$store.commit("setLoginInfo", {})
|
|
|
- uni.reLaunch({url:'/pages/home/recent'})
|
|
|
- }
|
|
|
- })
|
|
|
- // #endif
|
|
|
- })
|
|
|
- },
|
|
|
getSettleList(item){
|
|
|
this.pageTo({ url:'/pages/settle/list?id='+item.id+'&account='+item.shopId})
|
|
|
},
|