feat(auth): access token 缩到 2 小时 + refresh token 机制 #3
@@ -3,5 +3,7 @@
|
||||
}
|
||||
.pet-switch .pet-chip{margin-right:20rpx}
|
||||
.pet-switch .pet-chip:last-child{margin-right:0}
|
||||
.mini-avatar{overflow:hidden}
|
||||
.mini-avatar-img{width:100%;height:100%;display:block}
|
||||
/* flex 子项默认 min-width:auto,图片的固有尺寸(320×240)会把 chip 撑大,
|
||||
真机比模拟器更明显。flex:none 锁死成 app.wxss 里定的 52rpx 见方 */
|
||||
.mini-avatar{overflow:hidden;flex:none}
|
||||
.mini-avatar-img{width:52rpx;height:52rpx;display:block}
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
<view class="card">
|
||||
<view class="section-head">
|
||||
<view class="sh-title">我的毛孩子</view>
|
||||
<view class="link" bindtap="onAddPet">+ 添加</view>
|
||||
</view>
|
||||
<view wx:for="{{pets}}" wx:key="id" class="pet-row" data-id="{{item.id}}" bindtap="onPickPet">
|
||||
<view class="pet-emoji">
|
||||
@@ -30,21 +29,8 @@
|
||||
<view wx:if="{{!pets.length}}" class="empty">还没有毛孩子,先建一份档案</view>
|
||||
</view>
|
||||
|
||||
<!-- 常用入口。设置类的都收进设置页了,这里只留高频的 -->
|
||||
<!-- 档案/计划/多宠都从首页和宠物卡进,这里只留设置 -->
|
||||
<view class="profile-list">
|
||||
<view class="profile-row" bindtap="goPetForm">
|
||||
<view class="pr-ic"><pt-icon name="user" size="{{34}}"></pt-icon></view>
|
||||
<text class="pr-label">宠物档案</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||||
</view>
|
||||
<view class="profile-row" bindtap="goPlan">
|
||||
<view class="pr-ic"><pt-icon name="plan" size="{{34}}"></pt-icon></view>
|
||||
<text class="pr-label">养护计划</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||||
</view>
|
||||
<view class="profile-row" data-type="managePets" bindtap="openSheet">
|
||||
<view class="pr-ic"><pt-icon name="community" size="{{34}}"></pt-icon></view>
|
||||
<text class="pr-label">多宠物管理</text><text class="pr-val">{{card.stats.pet_count || 0}} 只</text>
|
||||
<view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||||
</view>
|
||||
<view class="profile-row" bindtap="goSettings">
|
||||
<view class="pr-ic"><pt-icon name="settings" size="{{34}}"></pt-icon></view>
|
||||
<text class="pr-label">设置</text><view class="pr-arrow"><pt-icon name="next" size="{{28}}"></pt-icon></view>
|
||||
|
||||
Reference in New Issue
Block a user