Commit 63260856 authored by zhengke's avatar zhengke

修改

parent eba49cbd
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
class="imgicon" class="imgicon"
/> />
<view class="iconname">订单消息</view> <view class="iconname">订单消息</view>
<view class="tipNum">1</view> <view class="tipNum">{{OrderNumber}}</view>
</view> </view>
<!-- <view class="itemBox"> <!-- <view class="itemBox">
<image <image
...@@ -284,6 +284,7 @@ export default { ...@@ -284,6 +284,7 @@ export default {
cWidth: "", cWidth: "",
cHeight: "", cHeight: "",
pixelRatio: 1, pixelRatio: 1,
OrderNumber:0 //订单数量
}; };
}, },
methods: { methods: {
...@@ -492,6 +493,17 @@ export default { ...@@ -492,6 +493,17 @@ export default {
url: url, url: url,
}); });
}, },
getOrderNumber(){
this.requestAdmin("/api/MemberUser/GetAdminMessageNoticeNum", {}, res => {
if (res.resultCode == 1) {
this.OrderNumber = res.data.TotalNum;
} else {
uni.showToast({
title: res.message
});
}
})
}
}, },
onLoad() { onLoad() {
_self = this; _self = this;
...@@ -504,6 +516,7 @@ export default { ...@@ -504,6 +516,7 @@ export default {
}); });
this.getBasicData(); this.getBasicData();
this.photo=uni.getStorageSync('mall_UserInfo')?.Photo this.photo=uni.getStorageSync('mall_UserInfo')?.Photo
this.getOrderNumber();
}, },
}; };
</script> </script>
......
...@@ -4,26 +4,30 @@ ...@@ -4,26 +4,30 @@
<u-tabs :list="RemarkList" :is-scroll="false" :current="current" name="Name" @change="change" <u-tabs :list="RemarkList" :is-scroll="false" :current="current" name="Name" @change="change"
:active-color="mainColor" bg-color="#FFF" height="80" bar-width="100"></u-tabs> :active-color="mainColor" bg-color="#FFF" height="80" bar-width="100"></u-tabs>
</view> </view>
<!-- <view style="height: calc(100vh - 120px); background: #F7F7F7;" v-if="dataList.length == 0"> <view style="height: calc(100vh - 120px); background: #F7F7F7;" v-if="dataList.length == 0">
<u-empty text="暂无相关数据" mode="order"></u-empty> <u-empty text="暂无相关数据" mode="order"></u-empty>
</view> --> </view>
<view <view v-if="dataList.length>0"
style="height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;"> style="height: calc(100vh - 80px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;">
<scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lowerTwo" <scroll-view :scroll-y="true" :enable-back-to-top="true" :enable-flex="true" @scrolltolower="lowerTwo"
:style="{ height: '100%' }"> :style="{ height: '100%' }">
<view class="orderList"> <view class="orderList" v-for="(item,index) in dataList" :key="index">
<view class="user_Top"> <view class="user_Top">
<view class="order_Header"> <view class="order_Header">
<view class="tk_Apply">退款申请</view> <view class="tk_Apply">
<view class="tk_Date">2021-11-01</view> <text v-if="item.Type==1">下单提醒</text>
<text v-if="item.Type==2">退款申请</text>
<text v-if="item.Type==3">售后申请</text>
</view>
<view class="tk_Date">{{item.CreateDate}}</view>
</view> </view>
<view class="order_Bottom"> <view class="order_Bottom">
<view class="order_LeftHeader"> <view class="order_LeftHeader">
<img :src="item.GoodsCoverImage" style="width:100%;height:100%;" alt="" />
</view> </view>
<view style="width:100%;position:relative;padding:20rpx;"> <view style="width:100%;position:relative;padding:10rpx 10rpx 10rpx 20rpx;">
<view class="order_btmTop">春花秋月合适了</view> <view class="order_btmTop">{{item.GoodsName}}</view>
<view class="order_btnTwo">来自用户嘎啦嘎啦</view> <view class="order_btnTwo">来自用户 {{item.UserName}}</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -91,8 +95,7 @@ ...@@ -91,8 +95,7 @@
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getList(); this.getList();
}, },
getList(type) { getList() {
this.dataList = [];
uni.showLoading({ uni.showLoading({
title: '加载中' title: '加载中'
}); });
...@@ -164,6 +167,6 @@ ...@@ -164,6 +167,6 @@
font-size:28rpx; font-size:28rpx;
color:#A3A3A3; color:#A3A3A3;
position: absolute; position: absolute;
bottom:20rpx; bottom:10rpx;
} }
</style> </style>
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