Commit 8e751aff by kyle

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

parent 327937c8
<template>
<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">
<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">
......
......@@ -133,7 +133,7 @@
if(uni.getStorageSync('applyId')){
this.queryById(uni.getStorageSync('applyId'),null)
}else if(options.shareId){
this.queryById(options.shareId,null)
this.queryById(options.id,null)
}else{
this.queryById(null,uni.getStorageSync('cffp_userId'))
}
......
<template>
<view class="container">
<view class="dropItem" v-for="item in dropLists">
<view class="ulBox">
<text>订单编号:</text>
<text>{{item.orderNo}}</text>
<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="ulBox">
<text>订单编号:</text>
<text>{{item.orderNo}}</text>
</view>
<view class="ulBox">
<text>课程名称:</text>
<text>{{item.itemName}}</text>
</view>
<view class="ulBox">
<text>课程状态:</text>
<text @click="viewDetail(item)" class="dropStatus">{{item.orderStatus}}<i class="iconfont icon-youjiantou" style="margin-left: 5rpx;font-size: 26rpx;"></i></text>
</view>
<view class="ulBox">
<text>退课积分:</text>
<text>{{Math.abs(item.commissionAmount)}}</text>
</view>
<view class="ulBox">
<text>退课时间:</text>
<text>{{item.refundTime}}</text>
</view>
</view>
<view class="ulBox">
<text>课程名称:</text>
<text>{{item.itemName}}</text>
</view>
<view class="ulBox">
<text>课程状态:</text>
<text @click="viewDetail(item)" class="dropStatus">{{item.orderStatus}}<i class="iconfont icon-youjiantou" style="margin-left: 5rpx;font-size: 26rpx;"></i></text>
</view>
<view class="ulBox">
<text>退课积分:</text>
<text>{{Math.abs(item.commissionAmount)}}</text>
</view>
<view class="ulBox">
<text>退课时间:</text>
<text>{{item.refundTime}}</text>
</view>
</view>
</template>
</view>
</template>
......
......@@ -78,7 +78,8 @@
tagIds:123,
currentPage:'index',
carouselList:[],
userId: uni.getStorageSync('cffp_userId')
userId: uni.getStorageSync('cffp_userId'),
shareId:null
}
},
components:{
......@@ -87,7 +88,7 @@
carousel,
search
},
onLoad() {
onLoad(options) {
this.queryAreaCenterInfo();
this.announcementQuery();
},
......
......@@ -68,6 +68,7 @@
</view>
<!-- 邀请信息 -->
<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="liBox">
<text>姓名:</text>
......
......@@ -41,8 +41,8 @@
<text :class="{'actived':tabType===2}" @click="switchTab(2)">分享课程</text>
</view>
<view class="totalCountBox">合计(单):<text>{{userCourseCountNum}}</text></view>
<h4 class="noListTip" v-if="!userCourses && tabType===1">暂无销售记录!</h4>
<h4 class="noListTip" v-if="!userShareCourseOrders && tabType===2">暂无分享记录!</h4>
<h4 class="noListTip" v-if="!userCourses || userCourses.length<=0 && tabType===1">暂无购买记录!</h4>
<h4 class="noListTip" v-if="!userShareCourseOrders || userShareCourseOrders.length <=0 && tabType===2">暂无分享记录!</h4>
<template v-if="userCourses && tabType===1">
<view class="saleOrderInfoItem" v-for="item in userCourses" :key="item.fileId">
<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