diff --git a/pages/annex/vip_paid/index.vue b/pages/annex/vip_paid/index.vue
index b64a723..abbc1a9 100644
--- a/pages/annex/vip_paid/index.vue
+++ b/pages/annex/vip_paid/index.vue
@@ -171,9 +171,9 @@
-
+
-
+
@@ -317,7 +317,8 @@
discountId:this.newcomer_products[this.libaoindex].id,
member_type: this.memberType[this.tykindex].id
};
- postCartAdd(data).then(res => {
+ postCartAdd(data)
+ .then(res => {
console.log(987, res);
uni.navigateTo({
url: '/pages/goods/order_confirm/index?huiyuanka=1&product_id=""&discountInfos' +
@@ -328,7 +329,11 @@
.tykindex].price +
'&vipprice=' + this.memberType[this.tykindex].pre_price+'&member_type=' + this.memberType[this.tykindex].id
})
- })
+ }).catch(res => {
+ this.$util.Tips({
+ title: res
+ });
+ });
} else {
this.$util.Tips({
@@ -618,6 +623,12 @@
height: 400px;
overflow-y: auto;
}
+ .neir ::-webkit-scrollbar {
+ display: none;
+ width: 0;
+ height: 0;
+ color: transparent;
+ }
}
.fotbut {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index a2cc3ba..78ea2c4 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -448,10 +448,10 @@
onShow() {
this.getLocation()
if (this.cartNum > 0) {
- // uni.setTabBarBadge({
- // index: 3,
- // text: this.cartNum > 99 ? '99+' : this.cartNum + ''
- // })
+ uni.setTabBarBadge({
+ index: 2,
+ text: this.cartNum > 99 ? '99+' : this.cartNum + ''
+ })
uni.hideTabBarRedDot({
index: 3
})
diff --git a/utils/request.js b/utils/request.js
index 6cab415..cc54916 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -67,7 +67,7 @@ function baseRequest(url, method, data, {
header: header,
data: data || {},
success: (res) => {
-
+ console.log(res);
if (res.data.data && res.data.gzde === 1) {
try{
res.data.data = JSON.parse(decompress(res.data.data));
@@ -107,6 +107,7 @@ function baseRequest(url, method, data, {
} else if(res.data.status == 403){
reject(res.data);
} else
+ console.log(res.data.msg)
reject(res.data.msg || '系统错误');
},
fail: (msg) => {