浏览代码

bug修复

zhaoxw 4 年之前
父节点
当前提交
b650dec265
共有 4 个文件被更改,包括 22 次插入16 次删除
  1. 2 2
      config/api.js
  2. 1 1
      pagesGood/goodDetails.vue
  3. 10 8
      pagesMain/entrustList.vue
  4. 9 5
      pagesMain/plantList.vue

+ 2 - 2
config/api.js

@@ -1,7 +1,7 @@
 // const WX_API_BASE = 'https://www.qianjiadi.com/'
-// const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
+const WX_API_BASE = 'http://ch.jihengcc.cn:17080/'
 // const WX_API_BASE = 'https://test.jihengcc.cn/'
-const WX_API_BASE = 'https://www.qianjiadi.com/'
+   // const WX_API_BASE = 'https://www.qianjiadi.com/'
 
 module.exports = {
 	//  微信登录

+ 1 - 1
pagesGood/goodDetails.vue

@@ -3,7 +3,7 @@
 		<swiper class="swiper" :indicator-dots="true" indicator-color="#9A9A9A" indicator-active-color="#52A63A" :autoplay="true"
 		 :interval="3000" :duration="500">
 			<swiper-item v-for="(item,index) in goodData.imgs" :key="index">
-				<image :src="item.imgPath"></image>
+				<image :src="item.imgPath" style="background-size: contain; background-position: center center;"></image>
 			</swiper-item>
 		</swiper>
 		<view class="good-info">

+ 10 - 8
pagesMain/entrustList.vue

@@ -1,5 +1,5 @@
 <template>
-	<scroll-view class="container" scroll-y="true" @scrolltolower="handleLoadMore()">
+	<scroll-view class="container" :style="{backgroundColor: entrustTotle ? '#f7f7f7' : '#FFFFFF'}" scroll-y="true" @scrolltolower="handleLoadMore()">
 		<view class="entrust-info">
 			<view class="entrust-info-text">共{{entrustTotle}}个委托订单</view>
 		</view>
@@ -67,14 +67,15 @@
 					if (res.isSuccess) {
 						if (res.data.list.length) {
 							this.isOver = res.data.list.length != 10
-							this.plantList = this.plantList.concat(res.data.list)
+							this.entrustList = this.entrustList.concat(res.data.list)
 							this.entrustTotle = res.data.total
-						} else {
-							this.$refs.uTips.show({
-								title: '当前无委托订单',
-								type: 'warning',
-							})
-						}
+						} 
+						// else {
+						// 	this.$refs.uTips.show({
+						// 		title: '当前无委托订单',
+						// 		type: 'warning',
+						// 	})
+						// }
 					}
 				}).catch(error => {
 					this.$refs.uTips.show({
@@ -105,6 +106,7 @@
 		height: 100%;
 		float: left;
 		background-color: #f7f7f7;
+		// background-color: #FFFFFF;
 		overflow-y: auto;
 		position: relative;
 		box-sizing: border-box;

+ 9 - 5
pagesMain/plantList.vue

@@ -1,5 +1,8 @@
 <template>
 	<scroll-view class="container" scroll-y="true" @scrolltolower="handleLoadMore()">
+		<view style="padding-top: 20px;background-color: #FFFFFF;" v-if="plantList.length<=0">
+			<u-divider color="#909399" border-color="#909399">没有更多了</u-divider>
+		</view>
 		<view class="goods-row" v-for="(item, index) in plantList" :key="index" @click="goToGoodDetail(item)">
 			<image class="goods-img" :src="item.imgPath"></image>
 			<view class="goods-info">
@@ -54,12 +57,13 @@
 						if (res.data.list) {
 							this.isOver = res.data.list.length != 10
 							this.plantList = this.plantList.concat(res.data.list)
-						} else {
-							this.$refs.uTips.show({
-								title: res.msg,
-								type: 'warning',
-							})
 						}
+						// else {
+						// 	this.$refs.uTips.show({
+						// 		title: res.msg,
+						// 		type: 'warning',
+						// 	})
+						// }
 					}
 				}).catch(error => {
 					console.log(error)