LXT-NJ\Admin hace 1 año
padre
commit
def2dec25f
Se han modificado 1 ficheros con 8 adiciones y 4 borrados
  1. 8 4
      pages/sort/index.vue

+ 8 - 4
pages/sort/index.vue

@@ -2,7 +2,7 @@
 	<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
 		<tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
 		<div class="zhuti">
-			<tm-sheet class="kuang" style="padding-bottom: 30px !important;">
+			<tm-sheet class="kuang" style="padding-bottom: 30px !important;" v-if="listdata.length!=0" >
 				<view style="width: 94%;margin:0 auto;" class="remen">
 					<view v-for="(item,index) in listdata"  class="round-5 contone black mt-20" :class="index%2==0?'fl':'fr'" @click="goDetail(item.category_id)">
 						<image class="logo" :src="item.image" mode="widthFix"></image>
@@ -22,7 +22,7 @@
 						</view>
 					</view>
 					<view style="clear: both;"></view>
-					<view style="clear: both;" class="more ma-40 pt-40" @click="gengmore()" v-if="listdata.length!=0">
+					<view style="clear: both;" class="more ma-40 pt-40" @click="gengmore()"  >
 						<image src="/static/img/30.png" mode="widthFix"></image>
 						<text class="text-size-s">下拉加载更多~</text>
 					</view>
@@ -43,7 +43,7 @@ export default {
 			listdata:[],
 			soId:'',
 			page:1,
-			pagesize:8
+			pagesize:8,
 		};
 	},
 	onLoad(op) {
@@ -74,8 +74,12 @@ export default {
 				data:{id:that.soId,page:that.page,pagesize:that.pagesize}
 			}).then(res=>{
 				if(res.data.code==200){
-					console.log(res.data.data.data,'liebiao');
+					if(res.data.data.length!=0){
+							console.log(res.data.data,'liebiao');
 					that.listdata=res.data.data.data;
+					}else{
+						that.listdata=[]
+					}
 				}else{
 					that.$refs.toast.show({
 						model: 'error',