This commit is contained in:
2024-03-20 11:34:50 +08:00
parent 340ff4afd7
commit 85e28a0436
2 changed files with 54 additions and 5 deletions

View File

@ -1,7 +1,40 @@
.app {
color: #333333;
::v-deep .u-toast{
width:95% !important;
max-width: 95% !important;
}
.popup{
text-align: center;
position: relative;
.title{
height: 100rpx;
line-height: 100rpx;
font-size: 30rpx;
font-weight: 600;
}
.text{
padding-top: 30rpx;
}
.btns{
position: absolute;
bottom:0;
left:0;
width:100%;
display: flex;
height:80rpx;
.btn{
line-height: 80rpx;
height: 80rpx;
border: 1rpx solid #26A888;
width: 50%;
text-align: center;
color: #26A888;
}
}
}
.bottom {
position: fixed;
bottom: 50rpx;

View File

@ -10,8 +10,8 @@
{{!item.signNo ?"未签约":'已签约'}}
</view>
</view>
<view class="primaryAccountFlag">
{{Number(item.primaryAccountFlag)==0?'主账号':''}}
<view class="primaryAccountFlag" v-if="Number(item.primaryAccountFlag)==0">
主账号
</view>
<view class="card">
{{item.cardNo}}
@ -46,8 +46,23 @@
添加家庭成员
</view>
</view>
<u-modal v-model="updatashow" content="是否确认设置该用户为主账号?" :show-cancel-button='true'
@confirm='updataconfirm'></u-modal>
<u-popup v-model="updatashow" mode="center" width="80%" height="400rpx" class="popup" closeable>
<view class="title">
提示
</view>
<view class="text">是否确认设置该用户为主账号?</view>
<view class="text" style="color: red;">
30天内只能设置一次
</view>
<view class="btns">
<view class="btn" @click="updatashow=false">
取消
</view>
<view class="btn" @click="updataconfirm" style="background-color: #26A888;color: #fff;">
确定
</view>
</view>
</u-popup>
<u-toast ref="uToast" />
</view>
</template>
@ -91,6 +106,7 @@
type: 'error',
})
}
this.updatashow = false
})
},
//