shish 1 rok pred
rodič
commit
9f38225c80
1 zmenil súbory, kde vykonal 37 pridanie a 24 odobranie
  1. 37 24
      hdApp/src/admin/member/detail.vue

+ 37 - 24
hdApp/src/admin/member/detail.vue

@@ -167,7 +167,7 @@
     </modal-module>
 
     <!-- 充值弹框 - 使用uni-popup替代 -->
-    <uni-popup ref="rechargePopupRef" background-color="#fff" type="center" :animation="true" :mask-click="false">
+    <uni-popup ref="rechargePopupRef" background-color="#fff" type="center" :animation="true" :mask-click="false" :safe-area="false">
       <view class="recharge-popup-container">
         <!-- 弹框头部 -->
         <view class="popup-header">
@@ -533,18 +533,25 @@ export default {
 		getRecharge(amount){
 			this.rForm.rechargeAmount = amount
 		},
-         // 打开充值弹框
-     openRechargePopup(){
-       this.$refs.rechargePopupRef.open('center')
-     },
-     // 关闭充值弹框
-     closeRechargePopup(){
-       this.$refs.rechargePopupRef.close()
-       // 重置表单
-       this.rForm.rechargeAmount = ''
-       this.rForm.rechargeRemark = ''
-       this.rForm.rechargePayWay = 0
-     },
+               // 打开充值弹框
+      openRechargePopup(){
+        this.$refs.rechargePopupRef.open('center')
+        // 禁用背景页面滚动
+        setTimeout(() => {
+          uni.pageScrollTo({
+            scrollTop: 0,
+            duration: 0
+          })
+        }, 100)
+      },
+           // 关闭充值弹框
+      closeRechargePopup(){
+        this.$refs.rechargePopupRef.close()
+        // 重置表单
+        this.rForm.rechargeAmount = ''
+        this.rForm.rechargeRemark = ''
+        this.rForm.rechargePayWay = 0
+      },
      // 确认充值
      confirmRecharge(){
        if (this.$util.isEmpty(this.rForm.rechargeAmount)){
@@ -985,18 +992,24 @@ export default {
     }
   }
 }
- .user_tag{
-   border:1px solid #CCCCCC;
-   padding:5upx 12upx 5upx 12upx;
-   border-radius:25upx;
-   color:#BBBBBB;
-   margin-right:10upx;
-   margin-bottom:12upx;
-   display:inline-block;
-   font-size:30upx;
- }
+   .user_tag{
+    border:1px solid #CCCCCC;
+    padding:5upx 12upx 5upx 12upx;
+    border-radius:25upx;
+    color:#BBBBBB;
+    margin-right:10upx;
+    margin-bottom:12upx;
+    display:inline-block;
+    font-size:30upx;
+  }
+
+  .flex-center {
+    display: flex;
+    align-items: center;
+    justify-content: center;
+  }
 
-   // 充值弹框样式
+  // 充值弹框样式
   .recharge-popup-container {
     width: 95vw;
     max-width: 700upx;