fix: 增加刷新按钮,修改部分内容。
This commit is contained in:
80
src/components/refresh/refresh.vue
Normal file
80
src/components/refresh/refresh.vue
Normal file
@@ -0,0 +1,80 @@
|
||||
<template>
|
||||
<view>
|
||||
<movable-area class="movable-area">
|
||||
<movable-view class="movable-view" :x="x" :y="y" direction="all">
|
||||
<view class="refreshPages" @click="refreshPages">
|
||||
<image src="../../static/images/tabbar/refresh.png"></image>
|
||||
<!-- <text></text> -->
|
||||
</view>
|
||||
</movable-view>
|
||||
</movable-area>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
x: 1000, // x大于默认的值就会在最右边
|
||||
y: 1000
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 意见反馈
|
||||
refreshPages() {
|
||||
//#ifdef H5
|
||||
window.location.reload();
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
.movable-area {
|
||||
// 保持在右下角
|
||||
margin-top: 135rpx;
|
||||
margin-left: 100rpx;
|
||||
height: calc(100vh - 300rpx);
|
||||
width: calc(100vw - 150rpx);
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
position: fixed;
|
||||
z-index: 99999999;
|
||||
pointer-events: none; //此处要加,鼠标事件可以渗透
|
||||
.movable-view {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
pointer-events: auto; //恢复鼠标事件
|
||||
.refreshPages {
|
||||
width: 60rpx;
|
||||
height: 60rpx;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
background: #ffffff;
|
||||
border-radius: 50%;
|
||||
border: 1px solid #a6a6a6;
|
||||
image {
|
||||
width: 30rpx;
|
||||
height: 30rpx;
|
||||
}
|
||||
|
||||
text {
|
||||
margin-top: 10rpx;
|
||||
font-size: 16rpx;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -11,6 +11,7 @@ import { useDict } from '@/utils/dict'
|
||||
import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
|
||||
import mySelectCheckbox from '@/components/my-selectCheckbox/my-selectCheckbox.vue';
|
||||
import suspend from '@/components/suspend/suspend.vue';
|
||||
import refresh from '@/components/refresh/refresh.vue';
|
||||
|
||||
export function createApp() {
|
||||
const app = createSSRApp(App)
|
||||
@@ -20,6 +21,7 @@ export function createApp() {
|
||||
// 注册全局组件
|
||||
app.component('mySelectCheckbox', mySelectCheckbox);
|
||||
app.component('suspend', suspend);
|
||||
app.component('refresh', refresh);
|
||||
directive(app)
|
||||
|
||||
// 全局方法挂载
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||
</u-list>
|
||||
</view>
|
||||
<refresh></refresh>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||
</u-list>
|
||||
</view>
|
||||
<refresh></refresh>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||
</u-list>
|
||||
</view>
|
||||
<refresh></refresh>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
<u-loadmore :status="status" loadingIcon="semicircle" height="88" fontSize="32rpx" @loadmore="loadmore" />
|
||||
</u-list>
|
||||
</view>
|
||||
<refresh></refresh>
|
||||
</template>
|
||||
<script setup>
|
||||
import { listIuser, delIuser, reservation } from '@/api/imaotai/iuser.js'
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'phone-filled' }" title="手机号码"
|
||||
:rightText="user.phonenumber" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'email-filled' }" title="邮箱" :rightText="user.email" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'auth-filled' }" title="岗位" :rightText="postGroup" />
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'staff-filled' }" title="角色" :rightText="roleGroup" />
|
||||
<!-- <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'auth-filled' }" title="岗位" :rightText="postGroup" /> -->
|
||||
<!-- <uni-list-item showExtraIcon="true" :extraIcon="{ type: 'staff-filled' }" title="角色" :rightText="roleGroup" /> -->
|
||||
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'calendar-filled' }" title="创建日期"
|
||||
:rightText="user.createTime" />
|
||||
</uni-list>
|
||||
|
||||
<u-button @click="register()">绑定微信</u-button>
|
||||
<!--
|
||||
<u-button @click="register()">绑定微信</u-button> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
BIN
src/static/images/tabbar/refresh.png
Normal file
BIN
src/static/images/tabbar/refresh.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 86 KiB |
Reference in New Issue
Block a user