123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <template>
- <view class="setting">
- <view class="header-bg"></view>
- <view class="block b1">
- <view class="row portrait">
- <image class="image" src="../../static/images/login/logo.png" mode="scaleToFill"></image>
- </view>
- <view class="row">
- <view class="label">
- 昵称
- </view>
- <view class="option">
- 修改
- </view>
- </view>
- </view>
- <view class="block b2">
- <view class="row">
- <view class="label">支付宝绑定</view>
- <view class="option">未绑定</view>
- </view>
- <view class="line"></view>
- <view class="row">
- <view>微信绑定</view>
- <view class="option">未绑定</view>
- </view>
- </view>
- <view class="block b3">
- <view class="row">
- <view class="label">修改手机号 <text class="info">18111897865</text></view>
- <view class="option">已绑定</view>
- </view>
- <view class="line"></view>
- <view class="row">
- <view class="label">修改密码</view>
- <view class="option"></view>
- </view>
- </view>
- <view class="block b4">
- <view class="row">
- <view class="label">清除缓存 <text class="info">18.20MB</text></view>
- <view class="option"><button class="clear-cache-btn" type="default">清除缓存</button></view>
- </view>
- </view>
- <view class="logout-block">
- <button class="logout-btn" type="default" @tap="logout()">退出登录</button>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- }
- },
- methods: {
- logout() {
- uni.navigateBack({
- delta: 999,
- animationType:'none'
- })
- uni.navigateTo({
- url: '/pages/user/login'
- })
- this.$store.dispatch("user/logout")
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .setting {
- overflow: hidden;
- position: relative;
- }
- .header-bg {
- background-color: $primary-color;
- height: 120upx;
- position: absolute;
- top: 0;
- width: 100%;
- z-index: 1;
- }
- .portrait {
- justify-content: center !important;
- margin-top: 20upx;
- .image {
- width: 168upx;
- height: 168upx;
- border: 10upx solid $primary-color;
- border-radius: 100upx;
- }
- }
- .block {
- border-radius: 20upx;
- background-color: white;
- margin: 20upx;
- position: relative;
- overflow: hidden;
- z-index: 2;
- .row {
- display: flex;
- justify-content: space-between;
- padding: 20upx 40upx;
- align-items: center;
- font-size: 28upx;
- .info {
- color: #999999;
- font-size: 24upx;
- display: inline-block;
- margin-left: 20upx;
- }
- .option {
- color: #999999;
- }
- }
- }
- .logout-block {
- margin: 20upx;
- }
- .clear-cache-btn {
- line-height: normal;
- padding: 4upx 20upx;
- background: white;
- border: 2upx solid $primary-color;
- font-size: 24upx;
- border-radius: 50upx;
- color: $primary-color;
- }
- .logout-btn {
- background: $primary-color;
- color: white;
- font-size: 30upx;
- line-height: 80upx;
- }
- .line {
- border: 2upx solid #EEEEEE;
- transform: scale(0.9, 0.5);
- }
- </style>
|