2023-3-17

消息通知
This commit is contained in:
2023-03-17 17:39:03 +08:00
parent 9afc113da3
commit a049d9905c
9 changed files with 163 additions and 83 deletions

View File

@@ -4,7 +4,7 @@
<view v-for="(item, index) in goodsList" :key="index" class="goods-item">
<view class="listcard" @click="navToDetailPage(item)">
<view class="listcard-image">
<image :src="item.code=='交易物流'?pic1:pic2" mode="aspectFill"></image>
<image :src="typeUrl(item)" mode="aspectFill"></image>
</view>
<view class="listcard-content">
<view class="listcard-content_title">
@@ -33,6 +33,7 @@
pageNum: 1,
pic1: "http://mall.yyundong.com/wl.png",
pic2: "http://mall.yyundong.com/tx.png",
pic3: "http://mall.yyundong.com/tz.png",
goodsList: [
// {
// title: "交易物流",
@@ -70,7 +71,7 @@
},
//下拉刷新
onPullDownRefresh() {
this.pageNum = this.pageNum + 1;
this.pageNum = 1;
this.loadData('refresh');
},
//加载更多
@@ -85,6 +86,14 @@
},
},
methods: {
typeUrl(item) {
if ("交易物流" == item.code)
return this.pic1
if ("云链助手" == item.code)
return this.pic2
if ("系统消息" == item.code)
return this.pic3
},
//加载商品 ,带下拉刷新和上滑加载
async loadData(type = 'add', loading) {
//没有更多直接返回
@@ -96,7 +105,9 @@
} else {
this.loadingType = 'more';
}
let params = {};
let params = {
// pageNum: this.pageNum
};
let list = await Api.apiCall('get', Api.member.mesList, params);