chengjunhui месяцев назад: 2
Родитель
Сommit
a53b1abf31

+ 6 - 5
pages/experience/index/index.js

@@ -219,17 +219,18 @@ Page({
       });
       return false;
     }
-    console.log(this.data.cityListPickerData);
+    // console.log(this.data.cityListPickerData);
+    // console.log(this.data.statusList, this.data.statusListIndex);
     this.setData({
       listData: isRefresh ? [] : this.data.listData,
       params: {
         ...this.data.params,
         page: isRefresh ? 1 : this.data.params.page + 1,
-        city: this.data.cityListPickerData[0][this.data.cityListIndex[0]].id,
+        city: this.data.cityListPickerData.length ? this.data.cityListPickerData[0][this.data.cityListIndex[0]].id : '',
         // area: this.data.cityListPickerData[1][this.data.cityListIndex[1]].id,
-        time: this.data.timeList[this.data.timeListIndex].code,
-        status: this.data.statusList[this.data.statusListIndex].itemcode,
-        titleCode: that.data.nameList[that.data.nameIndex].itemcode,
+        time: this.data.timeList.length ? this.data.timeList[this.data.timeListIndex].code : '',
+        status: this.data.statusList.length ? this.data.statusList[this.data.statusListIndex].itemcode : '',
+        titleCode: that.data.nameList.length ? that.data.nameList[that.data.nameIndex].itemcode : '',
       },
       noMore: isRefresh ? false : this.data.noMore,
     });

+ 4 - 7
pages/practicalExperience/practicalExperience.js

@@ -252,9 +252,9 @@ Page({
 					})
 					// let listData = that.data.listData;
 					// listData.push(...res.page.list);
-					that.setData({
-						listData: []
-					})
+					// that.setData({
+					// 	listData: []
+					// })
 					setTimeout(() => {
 						const dataList = res.page.list || []
 						const page = {
@@ -262,7 +262,7 @@ Page({
 							totalPage: res.page.totalPage,
 						}
 						that.setData({
-							listData: dataList,
+							listData: [...that.data.listData,...dataList],
 							total: page,
 							noMore: res.page.totalPage == res.page.currPage
 						})
@@ -438,9 +438,6 @@ Page({
 		})
 		this.loadList(true);
 	},
-	onReachBottom: function() {
-		// this.loadList();
-	},
 	onPreviousPage() {
 		let num = this.data.params.pageNum
 		if (num <= 1) return;

+ 2 - 2
pages/practicalExperience/practicalExperience.wxml

@@ -99,11 +99,11 @@
 				</view>
 
 			</view>
-			<view class="paging" wx:if="{{listData.length>0}}">
+			<!--<view class="paging" wx:if="{{listData.length>0}}">
 				<button class="previous-page page-btn" bindtap="onPreviousPage">上一页</button>
 				<view class="page-num">{{params.pageNum}} / {{total.totalPage}}</view>
 				<button class="next-page  page-btn" bindtap="onNextPage">下一页</button>
-			</view>
+			</view>-->
 			<block wx:if="{{listData.length<=0}}">
 				<view class='tc h100'>
 					<image src="{{nodata}}" class='nodata-img'></image>

+ 3 - 3
pages/quality/index/index.wxml

@@ -16,10 +16,10 @@
         </view>
         <view class="goods-classify">{{item.categoryName}}</view>
         <view class="goods-total-num">剩余:<text>{{item.quantity}}</text></view>
-        <view class="getCouponBox">
+        <!--<view class="getCouponBox">
           <view class="getCoupon">我想要</view>
-        </view>
-
+        </view>-->
+        <view class="getCoupon getCoupon1">我想要</view>
         <!-- <view class="goods-price">{{item.price}}</view> -->
       </view>
     </view>

+ 8 - 1
pages/quality/index/index.wxss

@@ -86,6 +86,7 @@ page {
   font-weight: 400;
   font-family: FZZhunYuan-M02S, FZZhunYuan-M02S-Regular;
   flex: 1;
+  position: relative;
 }
 .getCouponBox{
   width: 100%;
@@ -105,7 +106,7 @@ page {
   overflow: hidden;
   text-overflow: ellipsis;
   display: -webkit-box;
-  -webkit-line-clamp: 1; /* 设置行数 */
+  -webkit-line-clamp: 2; /* 设置行数 */
   -webkit-box-orient: vertical;
 }
 
@@ -156,3 +157,9 @@ page {
 /* .goods .goods-item .body .goods-price text {
   font-size: 32rpx;
 } */
+
+.getCoupon1{
+  position: absolute;
+  bottom: 0;
+  right: 0;
+}