From 9d928b12c49b7b604c0b52ce1d98846813d5b613 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期日, 15 六月 2025 19:30:13 +0800
Subject: [PATCH] 视频发布支持多商品

---
 pages/userPermissions/userPermissions.vue |   67 +++++++++++++++++----------------
 1 files changed, 34 insertions(+), 33 deletions(-)

diff --git a/pages/userPermissions/userPermissions.vue b/pages/userPermissions/userPermissions.vue
index 12cf83f..c13d57d 100644
--- a/pages/userPermissions/userPermissions.vue
+++ b/pages/userPermissions/userPermissions.vue
@@ -23,6 +23,7 @@
 				</view>
 				<!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
 				<view class="action-buttons">
+					<u-button type="primary" size="mini" @click.stop="restPassword(user.memberId)" class="edit-btn">閲嶇疆瀵嗙爜</u-button>
 					<u-button type="primary" size="mini" @click.stop="navigateToDetail(user.id)" class="edit-btn">淇敼</u-button>
 					<u-button type="error" size="mini" @click.stop="deleteUser(user.id)"
 						class="delete-btn">鍒犻櫎</u-button>
@@ -31,18 +32,24 @@
 			</view>
 
 			<!-- 鍔犺浇鏇村鎻愮ず -->
-			<view class="load-more" v-if="loading">
-				<u-loading :show="loading"></u-loading>
+			
+			<view class="load-more">
+			  <u-loadmore 
+			    v-if="mockData.length > 0"
+			    :status="loading ? 'loading' : noMore ? 'nomore' : 'loadmore'"
+			    :load-text="{
+			      loadmore: '涓婃媺鍔犺浇鏇村',
+			      loading: '姝e湪鍔犺浇',
+			      nomore: '娌℃湁鏇村浜�'
+			    }"
+			  />
 			</view>
-			<view class="load-more" v-if="noMoreData">
-				<text>娌℃湁鏇村鏁版嵁浜�</text>
+			<view style="height:150rpx">
+								  
 			</view>
 		</scroll-view>
 
-		<!-- 绌虹姸鎬� -->
-		<view class="empty" v-else>
-			<text>鏆傛棤鐢ㄦ埛鏁版嵁</text>
-		</view>
+
 	</view>
 </template>
 
@@ -51,7 +58,8 @@
 		getPage,
 		del,
 		add,
-		update
+		update,
+		restPassword
 	} from "@/api/userPermissions.js"
 	import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue';
 	import UButton from '@/uview-components/uview-ui/components/u-button/u-button.vue';
@@ -95,6 +103,17 @@
 			this.getPage()
 		},
 		methods: {
+			restPassword(id){
+				restPassword(id).then(res=>{
+					if(res.statusCode === 200){
+						uni.showToast({
+							title: res.data.msg, // 鎻愮ず鏂囧瓧
+							icon: 'none', // 鍥炬爣绫诲瀷锛坰uccess/loading/none锛�
+							mask: true // 鏄惁鏄剧ず閫忔槑钂欏眰锛堥槻姝㈣Е鎽哥┛閫忥級
+						});
+					}
+				})
+			},
 			async getPage() {
 				//
 				uni.showLoading({
@@ -257,30 +276,12 @@
 			}
 		}
 	}
-
 	.load-more {
-		padding: 20rpx;
-		text-align: center;
-		color: #999;
-		font-size: 28rpx;
-	}
+				padding: 20rpx 0;
+				text-align: center;
+				color: #999;
+				font-size: 26rpx;
+				background-color: #f7f8fa;
+			}
 
-	.empty {
-		flex: 1;
-		display: flex;
-		flex-direction: column;
-		align-items: center;
-		justify-content: center;
-		padding: 40rpx;
-
-		image {
-			width: 200rpx;
-			margin-bottom: 20rpx;
-		}
-
-		text {
-			color: #999;
-			font-size: 28rpx;
-		}
-	}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0