Commit f93951f7 authored by Facius's avatar Facius

improve: 悬浮弹窗关闭按钮自定义

parent 183ec30b
<template> <template>
<u-popup <u-popup
v-model="show" v-model="visible"
mode="center" mode="center"
safe-area-inset-bottom safe-area-inset-bottom
closeable
width="690rpx" width="690rpx"
border-radius="12" border-radius="12"
@close="handleClose" @close="handleClose"
...@@ -12,9 +11,14 @@ ...@@ -12,9 +11,14 @@
<view class="pop-view"> <view class="pop-view">
<image :src="chakanjiluImage" class="back-image" mode="widthFix"></image> <image :src="chakanjiluImage" class="back-image" mode="widthFix"></image>
<view class="head-view"> <view class="head-view">
<view class="left-view">
<view>最近查看记录</view> <view>最近查看记录</view>
<view class="head-message">最近查看或操作过的5条订单</view> <view class="head-message">最近查看或操作过的5条订单</view>
</view> </view>
<view class="close-button" @click="$u.throttle(handleClose, 500)">
<u-icon name="close"></u-icon>
</view>
</view>
<view class="none-view" v-if="orderList.length <= 0"> <view class="none-view" v-if="orderList.length <= 0">
<NoOrder text="当前暂无查看记录" /> <NoOrder text="当前暂无查看记录" />
</view> </view>
...@@ -59,7 +63,6 @@ export default { ...@@ -59,7 +63,6 @@ export default {
data() { data() {
return { return {
// orderList: [], // orderList: [],
show: false,
loaded: false, loaded: false,
} }
}, },
...@@ -71,14 +74,6 @@ export default { ...@@ -71,14 +74,6 @@ export default {
return process.uniEnv.qn_base_url + 'chakanjilu.png' return process.uniEnv.qn_base_url + 'chakanjilu.png'
}, },
}, },
watch: {
visible(val) {
this.show = val
},
},
created() {
this.show = this.visible
},
methods: { methods: {
// getOrderList() { // getOrderList() {
// this.loaded = false // this.loaded = false
...@@ -163,6 +158,10 @@ export default { ...@@ -163,6 +158,10 @@ export default {
z-index: -1; z-index: -1;
} }
.head-view { .head-view {
display: flex;
justify-content: space-between;
align-items: flex-start;
.left-view {
padding: 30rpx 30rpx 20rpx 30rpx; padding: 30rpx 30rpx 20rpx 30rpx;
font-size: 48rpx; font-size: 48rpx;
font-weight: bold; font-weight: bold;
...@@ -174,6 +173,15 @@ export default { ...@@ -174,6 +173,15 @@ export default {
margin-top: 14rpx; margin-top: 14rpx;
} }
} }
.close-button {
width: 60rpx;
height: 60rpx;
display: flex;
justify-content: center;
align-items: center;
margin: 14rpx;
}
}
.none-view { .none-view {
margin-top: 30rpx; margin-top: 30rpx;
margin-bottom: 50rpx; margin-bottom: 50rpx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment