Commit 8e751aff by kyle

增加没有列表信息时的提示

parent 327937c8
<template> <template>
<view class="container"> <view class="container">
<view class="ulBox"> <h4 class="noListTip" v-if="userCourses.length <=0 ">暂无售后</h4>
<view class="ulBox" v-if="userCourses.length > 0">
<view class="liBox" v-for="item in userCourses" :key="item.orderId"> <view class="liBox" v-for="item in userCourses" :key="item.orderId">
<course-item :thumbnailPath="item.displayImage" :title="item.fileTitle" :summaryBox="item.fileSynopsis" :dataList="{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :fileLecturerId="item.fileLecturerId"></course-item> <course-item :thumbnailPath="item.displayImage" :title="item.fileTitle" :summaryBox="item.fileSynopsis" :dataList="{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :fileLecturerId="item.fileLecturerId"></course-item>
<view class="statusBox"> <view class="statusBox">
......
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
if(uni.getStorageSync('applyId')){ if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null) this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){ }else if(options.shareId){
this.queryById(options.shareId,null) this.queryById(options.id,null)
}else{ }else{
this.queryById(null,uni.getStorageSync('cffp_userId')) this.queryById(null,uni.getStorageSync('cffp_userId'))
} }
......
<template> <template>
<view class="container"> <view class="container">
<h4 class="noListTip" v-if="!dropLists||dropLists.length <=0 ">暂无退课</h4>
<template v-if="dropLists.length >0 ">
<view class="dropItem" v-for="item in dropLists"> <view class="dropItem" v-for="item in dropLists">
<view class="ulBox"> <view class="ulBox">
<text>订单编号:</text> <text>订单编号:</text>
...@@ -22,6 +24,7 @@ ...@@ -22,6 +24,7 @@
<text>{{item.refundTime}}</text> <text>{{item.refundTime}}</text>
</view> </view>
</view> </view>
</template>
</view> </view>
</template> </template>
......
...@@ -78,7 +78,8 @@ ...@@ -78,7 +78,8 @@
tagIds:123, tagIds:123,
currentPage:'index', currentPage:'index',
carouselList:[], carouselList:[],
userId: uni.getStorageSync('cffp_userId') userId: uni.getStorageSync('cffp_userId'),
shareId:null
} }
}, },
components:{ components:{
...@@ -87,7 +88,7 @@ ...@@ -87,7 +88,7 @@
carousel, carousel,
search search
}, },
onLoad() { onLoad(options) {
this.queryAreaCenterInfo(); this.queryAreaCenterInfo();
this.announcementQuery(); this.announcementQuery();
}, },
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
</view> </view>
<!-- 邀请信息 --> <!-- 邀请信息 -->
<view class="inviteListsBox" v-if="tabType===2"> <view class="inviteListsBox" v-if="tabType===2">
<h4 class="noListTip" v-if="!inviteLists || inviteLists.length<=0">暂无邀请记录!</h4>
<view class="listUl ulBox" v-for="item in inviteLists"> <view class="listUl ulBox" v-for="item in inviteLists">
<view class="liBox"> <view class="liBox">
<text>姓名:</text> <text>姓名:</text>
......
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
<text :class="{'actived':tabType===2}" @click="switchTab(2)">分享课程</text> <text :class="{'actived':tabType===2}" @click="switchTab(2)">分享课程</text>
</view> </view>
<view class="totalCountBox">合计(单):<text>{{userCourseCountNum}}</text></view> <view class="totalCountBox">合计(单):<text>{{userCourseCountNum}}</text></view>
<h4 class="noListTip" v-if="!userCourses && tabType===1">暂无销售记录!</h4> <h4 class="noListTip" v-if="!userCourses || userCourses.length<=0 && tabType===1">暂无购买记录!</h4>
<h4 class="noListTip" v-if="!userShareCourseOrders && tabType===2">暂无分享记录!</h4> <h4 class="noListTip" v-if="!userShareCourseOrders || userShareCourseOrders.length <=0 && tabType===2">暂无分享记录!</h4>
<template v-if="userCourses && tabType===1"> <template v-if="userCourses && tabType===1">
<view class="saleOrderInfoItem" v-for="item in userCourses" :key="item.fileId"> <view class="saleOrderInfoItem" v-for="item in userCourses" :key="item.fileId">
<view class="courseInfoContent"> <view class="courseInfoContent">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment