黄琪勇 5 mesi fa
parent
commit
42bbf0653c

+ 1 - 0
miniprogram/pages/address/addressList.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "addAddress": "../address/addAddress"

+ 1 - 0
miniprogram/pages/index/index.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "service": "/components/service/service",

+ 7 - 4
miniprogram/pages/index/index.less

@@ -182,11 +182,14 @@ page {
     padding: 40rpx 0 56rpx;
     box-sizing: border-box;
     .iconClose {
+      right: 26rpx;
+      top: 30rpx;
       position: absolute;
-      right: 40rpx;
-      top: 40rpx;
-      width: 32rpx;
-      height: 32rpx;
+      width: 64rpx;
+      height: 64rpx;
+      background: url("https://oss.dayaedu.com/ktyq/1739246513167.png") no-repeat;
+      background-size: 52rpx 52rpx;
+      background-position: center center;
     }
     .product-section {
       display: flex;

+ 2 - 2
miniprogram/pages/index/index.wxml

@@ -1,5 +1,5 @@
 <!--index.wxml-->
-<scroll-view class="scrollarea" scroll-y="{{popupShow ? false : true}}" type="list" bindscroll="onScroll" enable-passive="true">
+<scroll-view enhanced="{{true}}" bounces="{{false}}" class="scrollarea" scroll-y="{{popupShow ? false : true}}" type="list" bindscroll="onScroll" enable-passive="true">
   <view class="container">
 
     <view class="goodsSection">
@@ -28,7 +28,7 @@
     <view class="popup-section" wx:if="{{popupShow}}">
       <view class="popup-mask" bind:tap="onClose"></view>
       <view class="popup-container">
-        <image bind:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
+        <view bind:tap="onClose" class="iconClose"></view>
 
         <view class="product-section">
           <view class="product-img">

+ 1 - 0
miniprogram/pages/login/login.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar"
   }

+ 1 - 0
miniprogram/pages/member/addMember.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "van-popup": "@vant/weapp/popup/index",

+ 18 - 1
miniprogram/pages/member/addMember.ts

@@ -85,6 +85,8 @@ Page({
     classId: "",
     className: "",
     classIndex: 0,
+
+    isSaveDisable: false
   },
   async onLoad(options: any) {
     const { redirectUrl, id } = options;
@@ -646,12 +648,19 @@ Page({
         return
       }
 
+      if (this.data.isSaveDisable) {
+        return
+      }
+
       const pages = getCurrentPages();
       const prevPage = pages[pages.length - 2]; // 获取上一个页面实例
       wx.showLoading({
         mask: true,
         title: "",
       });
+      this.setData({
+        isSaveDisable: true
+      })
       // 编辑
       if (params.id) {
         await api_userBeneficiaryUpdate({
@@ -683,8 +692,16 @@ Page({
         title: '保存成功',
         icon: 'none'
       })
-      setTimeout(() => { wx.navigateBack() }, 1000)
+      setTimeout(() => {
+        this.setData({
+          isSaveDisable: false
+        })
+        wx.navigateBack()
+      }, 1000)
     } catch {
+      this.setData({
+        isSaveDisable: false
+      })
       wx.hideLoading()
       // 
     }

+ 1 - 0
miniprogram/pages/member/memberList.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar"
   }

+ 1 - 0
miniprogram/pages/orders/order-detail.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "service": "/components/service/service",

+ 1 - 0
miniprogram/pages/orders/order-result.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "service": "/components/service/service",

+ 1 - 0
miniprogram/pages/orders/orders.json

@@ -1,4 +1,5 @@
 {
+  "disableScroll": true,
   "usingComponents": {
     "navigation-bar": "/components/navigation-bar/navigation-bar",
     "apply-refound": "/components/apply-refound/apply-refound",