Commit 63260856 authored by zhengke's avatar zhengke

修改

parent eba49cbd
......@@ -38,7 +38,7 @@
class="imgicon"
/>
<view class="iconname">订单消息</view>
<view class="tipNum">1</view>
<view class="tipNum">{{OrderNumber}}</view>
</view>
<!-- <view class="itemBox">
<image
......@@ -284,6 +284,7 @@ export default {
cWidth: "",
cHeight: "",
pixelRatio: 1,
OrderNumber:0 //订单数量
};
},
methods: {
......@@ -492,6 +493,17 @@ export default {
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() {
_self = this;
......@@ -504,6 +516,7 @@ export default {
});
this.getBasicData();
this.photo=uni.getStorageSync('mall_UserInfo')?.Photo
this.getOrderNumber();
},
};
</script>
......
......@@ -4,26 +4,30 @@
<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>
</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>
</view> -->
<view
style="height: calc(100vh - 50px);width: calc(100vw);overflow: hidden;padding: 25rpx;background-color: #F7F7F7;">
</view>
<view v-if="dataList.length>0"
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"
:style="{ height: '100%' }">
<view class="orderList">
<view class="orderList" v-for="(item,index) in dataList" :key="index">
<view class="user_Top">
<view class="order_Header">
<view class="tk_Apply">退款申请</view>
<view class="tk_Date">2021-11-01</view>
<view class="tk_Apply">
<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 class="order_Bottom">
<view class="order_LeftHeader">
<img :src="item.GoodsCoverImage" style="width:100%;height:100%;" alt="" />
</view>
<view style="width:100%;position:relative;padding:20rpx;">
<view class="order_btmTop">春花秋月合适了</view>
<view class="order_btnTwo">来自用户嘎啦嘎啦</view>
<view style="width:100%;position:relative;padding:10rpx 10rpx 10rpx 20rpx;">
<view class="order_btmTop">{{item.GoodsName}}</view>
<view class="order_btnTwo">来自用户 {{item.UserName}}</view>
</view>
</view>
</view>
......@@ -91,8 +95,7 @@
this.msg.pageIndex = 1;
this.getList();
},
getList(type) {
this.dataList = [];
getList() {
uni.showLoading({
title: '加载中'
});
......@@ -164,6 +167,6 @@
font-size:28rpx;
color:#A3A3A3;
position: absolute;
bottom:20rpx;
bottom:10rpx;
}
</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