|
@@ -2,7 +2,7 @@
|
|
<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
|
|
<view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
|
|
<tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
|
|
<tm-menubars title="消息列表" :shadow="0" :showback="true"></tm-menubars>
|
|
<div class="zhuti">
|
|
<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 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)">
|
|
<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>
|
|
<image class="logo" :src="item.image" mode="widthFix"></image>
|
|
@@ -22,7 +22,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view style="clear: both;"></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>
|
|
<image src="/static/img/30.png" mode="widthFix"></image>
|
|
<text class="text-size-s">下拉加载更多~</text>
|
|
<text class="text-size-s">下拉加载更多~</text>
|
|
</view>
|
|
</view>
|
|
@@ -43,7 +43,7 @@ export default {
|
|
listdata:[],
|
|
listdata:[],
|
|
soId:'',
|
|
soId:'',
|
|
page:1,
|
|
page:1,
|
|
- pagesize:8
|
|
|
|
|
|
+ pagesize:8,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(op) {
|
|
onLoad(op) {
|
|
@@ -74,8 +74,12 @@ export default {
|
|
data:{id:that.soId,page:that.page,pagesize:that.pagesize}
|
|
data:{id:that.soId,page:that.page,pagesize:that.pagesize}
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
if(res.data.code==200){
|
|
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;
|
|
that.listdata=res.data.data.data;
|
|
|
|
+ }else{
|
|
|
|
+ that.listdata=[]
|
|
|
|
+ }
|
|
}else{
|
|
}else{
|
|
that.$refs.toast.show({
|
|
that.$refs.toast.show({
|
|
model: 'error',
|
|
model: 'error',
|