123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <template>
- <view class="container clearfix">
- <view class="foot-list">
- <view class="list-cell-item">
- <view class="list-cell" @click="navigator(`/pages/user/setting/phone?phone=${bindMobile}`)" hover-class="cell-hover" :hover-stay-time="50">
- <text class="cell-tit">更换手机号</text>
- <text class="cell-more">
- <text class="txt">{{hidePhone(bindMobile)}}</text>
- <text class="iconfont icon-xiangyou"></text>
- </text>
- </view>
- <view class="list-cell" @click="navigator('/pages/login/password')" hover-class="cell-hover" :hover-stay-time="50">
- <text class="cell-tit">修改密码</text>
- <text class="cell-more iconfont icon-xiangyou"></text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- bindMobile:''
- }
- },
- onLoad(option) {
-
- },
- methods:{
- async initSetting() {
- const user = await this.$api.getStorage()
- console.log(user)
- this.bindMobile = user.bindMobile
- },
- navigator(url){
- this.$api.navigateTo(url)
- },
- hidePhone(val){
- let phone = this.$reg.hidePhone(val)
- return phone
- }
- },
- onShow() {
- this.initSetting()
- }
- }
- </script>
- <style lang='scss'>
- page {
- height: auto;
- }
- page,.container{
- /* padding-bottom: 120upx; */
- background: #fff;
- /* border-top: 1px solid #EBEBEB; */
- }
- .foot-list{
- width: 100%;
- margin-top: 30rpx;
- }
- .list-cell-item{
- width: 702rpx;
- height: auto;
- margin-bottom: 24rpx;
- padding:0 24rpx;
- background: $bg-color;
- }
- .list-cell{
- display:flex;
- width: 100%;
- align-items:baseline;
- line-height:100rpx;
- position:relative;
- background: $bg-color;
- justify-content: center;
- border-bottom: 1px solid #EBEBEB;
- &.cell-hover{
- background:#fafafa;
- }
- .cell-more{
- align-self: baseline;
- font-size:$font-size-28;
- color:#b2b2b2;
- margin-left:10rpx;
- .txt{
- color: #999999;
- padding-right: 10rpx;
- }
- }
- .cell-tit{
- flex: 1;
- font-size: $font-size-28;
- color: #666666;
- margin-right:10rpx;
- }
- .cell-tip{
- font-size: $font-size-28;
- color: $text-color;
- }
- }
- .list-cell.last{
- border-bottom: none;
- }
- </style>
|