修复新增按钮错位的bug

This commit is contained in:
weipengfei 2023-08-02 10:27:26 +08:00
parent 583450a39a
commit abfd777256
2 changed files with 6 additions and 5 deletions

View File

@ -97,6 +97,7 @@
password_confirm: '', // password_confirm: '', //
// channel: 6, //[1- 2- 3-H5 4-PC 5-APP 6-APP] // channel: 6, //[1- 2- 3-H5 4-PC 5-APP 6-APP]
id_card: '', id_card: '',
is_captain: '',//
sex: '', sex: '',
avatar: '', avatar: '',
nickname: '', nickname: '',

View File

@ -1,6 +1,5 @@
<template> <template>
<view class="personnel"> <view class="personnel">
<button class="new_btn" @click="navTo('/subpkg/newPersonnel/newPersonnel')">创建账号</button>
<view class="personnel_list"> <view class="personnel_list">
<block v-for="(item, index) in userList" :key="item.id"> <block v-for="(item, index) in userList" :key="item.id">
<view class="personnel_item"> <view class="personnel_item">
@ -50,6 +49,7 @@
</block> </block>
<u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText" :loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" /> <u-loadmore :status="loadConfig.status" :loading-text="loadConfig.loadingText" :loadmore-text="loadConfig.loadmoreText" :nomore-text="loadConfig.nomoreText" />
</view> </view>
<button class="new_btn" @click.stop="navTo('/subpkg/newPersonnel/newPersonnel')">创建账号</button>
</view> </view>
</template> </template>
@ -108,14 +108,14 @@ export default {
<style lang="scss"> <style lang="scss">
.personnel{ .personnel{
display: flex;
flex-direction: column;
align-items: center;
.new_btn{ .new_btn{
position: fixed; position: fixed;
bottom: 30rpx; bottom: 30rpx;
margin-top: 32rpx; // margin-top: 32rpx;
// margin-bottom: 40rpx; // margin-bottom: 40rpx;
left: 50%;
transform: translate(-50%);
z-index: 999;
width: 694rpx; width: 694rpx;
height: 84rpx; height: 84rpx;
background: $theme-oa-color; background: $theme-oa-color;