diff --git a/pages/discover/discover.vue b/pages/discover/discover.vue
index d99e217..51ccb7f 100644
--- a/pages/discover/discover.vue
+++ b/pages/discover/discover.vue
@@ -17,8 +17,11 @@
V
- {{item.user.nick_name}}
- {{item.user.mobile_replace}}
+
+ {{item.user.nick_name}}
+ {{item.user.mobile_replace}}
+
+
{{item.created_at}}
diff --git a/pages/discover/discoverdetails.vue b/pages/discover/discoverdetails.vue
index 57f547f..ac14e46 100644
--- a/pages/discover/discoverdetails.vue
+++ b/pages/discover/discoverdetails.vue
@@ -8,7 +8,7 @@
V
-
+
{{discover_details.user.nick_name}}
{{discover_details.user.mobile_replace}}
@@ -107,7 +107,7 @@
@@ -84,7 +85,8 @@
}],
filter_current: null,
token: '',
- point: {point: 0}
+ point: {point: 0},
+ car_num: 0
}
},
onLoad(){
@@ -92,7 +94,41 @@
this.getTotalPoint();
this.getCategoryList();
},
+ onShow() {
+ this.getcarNum();
+ },
methods: {
+ getcarNum() {
+ this.$http
+ .get({
+ api: 'api/shopping/cart/count',
+ header: {
+ Authorization: this.$cookieStorage.get('user_token')
+ },
+ })
+ .then(res => {
+ if (res.data.code == 200) {
+ if(res.data.data == null) {
+ this.car_num = 0;
+ }else {
+ this.car_num = res.data.data;
+ }
+ } else {
+ wx.showModal({
+ content: '请下拉页面刷新重试',
+ showCancel: false
+ });
+ }
+ })
+ .catch(() => {
+ wx.stopPullDownRefresh();
+ wx.hideLoading();
+ wx.showModal({
+ content: '请求失败',
+ showCancel: false
+ });
+ });
+ },
getTotalPoint(){
this.$http.get({
api: 'api/users/point',
@@ -158,7 +194,7 @@
sale: item.sale_count,
picture: item.img,
title: item.name,
- store_nums: item.store_nums
+ store_nums: item.redeem_point
}
})
let pagination = res.data.meta.pagination;
@@ -314,7 +350,7 @@
display: flex;
justify-content: center;
align-items: center;
- border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
+ // border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
width: max-content;
}
/deep/.u-scroll-box .u-tab-bar {