Explorar el Código

首页列表分页参数修改

贾宇博 hace 3 semanas
padre
commit
d7cdb4602f
Se han modificado 4 ficheros con 12 adiciones y 16 borrados
  1. 2 2
      config.js
  2. 1 1
      pages/index.vue
  3. 1 4
      pages/login.vue
  4. 8 9
      pages_mine/pages/selectAddress/index.vue

+ 2 - 2
config.js

@@ -2,8 +2,8 @@
 const config = {
 	// baseUrl: 'https://vue.ruoyi.vip/prod-api',
 	//cloud后台网关地址
-	// baseUrl: 'http://192.168.100.94:9527',
-	baseUrl: 'https://zybooks.tech/prod-api',
+	baseUrl: 'http://192.168.100.94:9527',
+	// baseUrl: 'https://zybooks.tech/prod-api',
 	// 应用信息
 	appInfo: {
 		// 应用名称

+ 1 - 1
pages/index.vue

@@ -127,7 +127,7 @@ const getList = async () => {
 
 		// 请求时传递分页参数
 		const res = await volunteerinfolist({
-			pageNumber: pages.value.current, // 当前页码
+			pageNum: pages.value.current, // 当前页码
 			pageSize: pages.value.pageSize // 每页大小
 		});
 

+ 1 - 4
pages/login.vue

@@ -4,9 +4,6 @@
 			<image :src="imagePath" mode="aspectFit" style="width: 100rpx;height: 100rpx;"></image>
 			<text class="title">金邻助家</text>
 		</view>
-		<view>
-
-		</view>
 
 		<up-popup :show="show" mode="bottom" @close="close" @open="open">
 			<view class="popup-content">
@@ -192,7 +189,7 @@
 			width: 100%;
 			font-size: 21px;
 			text-align: center;
-			padding-top: 15%;
+			padding-top: 25%;
 
 			image {
 				border-radius: 4px;

+ 8 - 9
pages_mine/pages/selectAddress/index.vue

@@ -135,12 +135,13 @@
 	}
 
 	.address-item {
-		display: flex;
-		align-items: flex-start;
-		padding: 24rpx 0;
-		border-bottom: 1rpx solid #f0f0f0;
+	  display: flex;
+	  align-items: center; /* 确保垂直居中 */
+	  justify-content: space-between; /* 让内容均匀分布 */
+	  padding: 24rpx 0;
+	  border-bottom: 1rpx solid #f0f0f0;
+	  position: relative; /* 可选:用于绝对定位 */
 	}
-
 	.radio-group {
 		flex-shrink: 0;
 		/* 禁止压缩 */
@@ -153,11 +154,9 @@
 	}
 
 	.edit-icon {
-		flex-shrink: 0;
-		margin-left: 300rpx;
-		padding: 8rpx;
+	  flex-shrink: 0;
+	  padding: 8rpx;
 	}
-
 	.address-text {
 		display: inline-block;
 		max-width: 100%;