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);

View File

@@ -525,6 +525,7 @@
authCode: this.code,
cid: uni.getStorageSync('cid')
};
console.log("params>>>>", params);
let data = await Api.apiCall('post', Api.index.loginByCode, params);
//this.logining = false;
if (data) {
@@ -552,7 +553,7 @@
password: this.password,
cid: uni.getStorageSync('cid')
};
console.log("params>>>>",params);
console.log("params>>>>", params);
let data = await Api.apiCall('post', Api.index.login, params);
if (data) {
console.log(data);

View File

@@ -82,7 +82,9 @@
if (e.confirm) {
this.logout();
this.$db.del('token');
Api.apiCall('post', Api.index.logout, {});
Api.apiCall('post', Api.index.logout, {
cid: uni.getStorageSync('cid')
});
setTimeout(() => {
uni.navigateBack();
uni.removeStorageSync('userInfo');