李程龙 3 lat temu
rodzic
commit
519948c95a

+ 4 - 2
components/ui-search/ui-search.vue

@@ -1,7 +1,7 @@
 <template>
 	<!-- 全局搜索框封装 -->
 	<view class="ui-search">
-		<uni-search-bar @confirm="confirmSearch" :focus="true" bgColor="#f3f5f9" cancelButton="none" v-model="searchValue"
+		<uni-search-bar @confirm="confirmSearch" bgColor="#f3f5f9" cancelButton="none" v-model="searchValue"
 		  @cancel="cancelSearch" @clear="cancelSearch"
 			:placeholder="placeholder">
 			<template v-slot:searchIcon>
@@ -47,11 +47,13 @@
 	.ui-search .uni-searchbar {
 		padding: 12rpx 24rpx;
 		background-color: $bg-color;
+		
 
 		::v-deep .uni-searchbar__box {
 			height: 64rpx;
 			border-radius: 36rpx !important;
-
+			justify-content: flex-start;
 		}
+		
 	}
 </style>

+ 9 - 5
pages/aftersale/index.vue

@@ -6,17 +6,19 @@
 			<view class="form-title">
 				基本信息
 			</view>
-			<input class="form-input" v-model="aftersale.device_id" maxlength="50" placeholder="设备ID" type="text" />
-			<input class="form-input" v-model="aftersale.device_name" maxlength="20" placeholder="设备名称" type="text" />
+			<input class="form-input" disabled v-model="aftersale.device_id" maxlength="50" placeholder="设备ID"
+				type="text" />
+			<input class="form-input" disabled v-model="aftersale.device_name" maxlength="20" placeholder="设备名称"
+				type="text" />
 			<input class="form-input" v-model="aftersale.user" maxlength="10" placeholder="请输入联系人名称" type="text" />
 			<input class="form-input" v-model="aftersale.phone" maxlength="11" placeholder="请输入联系人电话" type="text" />
-			<input class="form-input" v-model="aftersale.addr" maxlength="50" placeholder="请输入联系人地址" type="text" />
+			<input class="form-input" v-model="aftersale.addr" maxlength="200" placeholder="请输入联系人地址" type="text" />
 			<view class="form-title" style="padding-top: 24rpx;">
 				故障信息
 			</view>
-			<textarea class="form-textarea" v-model="aftersale.errordesc" maxlength="300"
+			<textarea class="form-textarea" v-model="aftersale.errordesc" maxlength="200"
 				placeholder="请尽量详细描述您所反馈的意见(不少于10个文字)" />
-			<view class="form-words">{{aftersale.errordesc.length}}/300</view>
+			<view class="form-words">{{aftersale.errordesc.length}}/200</view>
 			<view class="row-between form-title">
 				图片上传
 				<text class="font-10">最多5张图片</text>
@@ -146,6 +148,8 @@
 				this.$api.hide();
 				if (res) {
 					this.$api.msg('上报成功', 'success');
+					await this.$util.sleep(1500);
+					uni.navigateBack();
 				}
 			},
 			// 预览图片

+ 1 - 1
pages/weather/history.vue

@@ -30,7 +30,7 @@
 				</uni-tr>
 			</uni-table>
 			<!-- 页码 -->
-			<uni-pagination v-if="!pageLoading" :total="total" title="标题文字" @change="changePagination" />
+			<uni-pagination :current="params.page" :total="total" title="标题文字" @change="changePagination" />
 			<!-- 页码end -->
 		</view>
 		<!-- 历史数据列表end -->

+ 2 - 2
pages/worm/analyse.vue

@@ -52,7 +52,7 @@
 					</uni-tr>
 				</uni-table>
 				<!-- 页码 -->
-				<uni-pagination :total="imageSourceTotal" @change="getPestImageSourceList" />
+				<uni-pagination :current="imageSourcePage" :total="imageSourceTotal" @change="getPestImageSourceList" />
 				<!-- 页码end -->
 			</view>
 			<!-- 害虫基础信息溯源 -->
@@ -70,7 +70,7 @@
 					</uni-tr>
 				</uni-table>
 				<!-- 页码 -->
-				<uni-pagination :total="baseTotal" @change="getPestBaseDataList" />
+				<uni-pagination :current="basePage" :total="baseTotal" @change="getPestBaseDataList" />
 				<!-- 页码end -->
 			</view>
 		</view>

+ 3 - 1
pages/worm/history.vue

@@ -37,7 +37,7 @@
 				</uni-tr>
 			</uni-table>
 			<!-- 页码 -->
-			<uni-pagination :total="total" v-if="!loading" @change="getHistoryList" />
+			<uni-pagination :total="total" :current="params.page"  @change="getHistoryList" />
 			<!-- 页码end -->
 		</view>
 		<!-- 历史数据列表end -->
@@ -113,10 +113,12 @@
 			 */
 			async getHistoryList(e) {
 				this.params.page = e?.current ?? 1;
+				this.loading=true;
 				const {
 					data,
 					counts
 				} = await getWormLampHistory(this.params);
+				this.loading=false;
 				const historyList = data.map(item => item.d_h_t);
 				this.historyList = historyList;
 				this.total = counts;