|
|
|
@ -41,7 +41,12 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="codeBtn" @click="layoutHandle" color="#0076F6" v-if="isLogin">退出登录</view> |
|
|
|
|
<!-- --> |
|
|
|
|
<view style="display:flex" v-if="isLogin"> |
|
|
|
|
<view class="codeBtn" @click="layoutHandle" color="#0076F6" >退出登录</view> |
|
|
|
|
<view class="codeBtn" @click="existHandle" color="#0076F6" >注销账户</view> |
|
|
|
|
</view> |
|
|
|
|
<u-modal :show="show" title="提示" confirmText="关闭" :content='content' @confirm="confirmHandle"></u-modal> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
@ -53,6 +58,7 @@ |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
show:false, |
|
|
|
|
myList:[ |
|
|
|
|
{pic:require("static/m1.png"),title:'我的收藏'}, |
|
|
|
|
{pic:require("static/m2.png"),title:'浏览历史'}, |
|
|
|
@ -62,15 +68,22 @@ |
|
|
|
|
src:require("static/avatar.png"), |
|
|
|
|
userInfo:{}, |
|
|
|
|
isLogin:false, |
|
|
|
|
source:'phone' |
|
|
|
|
source:'phone', |
|
|
|
|
content:'正在审核中……' |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
confirmHandle(){ |
|
|
|
|
this.show=false |
|
|
|
|
}, |
|
|
|
|
goEditInfo(){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url:'/pages/my/editInfo' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
existHandle(){ |
|
|
|
|
this.show=true |
|
|
|
|
}, |
|
|
|
|
goDetails(item){ |
|
|
|
|
if(item.title=='设置'){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -217,8 +230,9 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.codeBtn{ |
|
|
|
|
width:80%; |
|
|
|
|
margin:50upx auto 0 auto; |
|
|
|
|
// width:80%; |
|
|
|
|
flex:1; |
|
|
|
|
margin:50upx 20upx; |
|
|
|
|
background: #0076F6; |
|
|
|
|
border-radius: 50upx; |
|
|
|
|
font-size: 30upx; |
|
|
|
|