diff --git a/components/shopping-carts/cart-slide.vue b/components/shopping-carts/cart-slide.vue index 0c8da30..ce968aa 100644 --- a/components/shopping-carts/cart-slide.vue +++ b/components/shopping-carts/cart-slide.vue @@ -38,7 +38,7 @@ - 合计:¥{{allPrice>0?allPrice:'0'}} + 合计:{{allPrice>0?'¥'+allPrice:'0'}} {{allPrice==0 ? '去购物' : '立即购买'}} diff --git a/components/status-nav/status-nav.vue b/components/status-nav/status-nav.vue index aad9e10..92b7815 100644 --- a/components/status-nav/status-nav.vue +++ b/components/status-nav/status-nav.vue @@ -81,6 +81,11 @@ type: String, default: '20rpx' }, + // 是否返回我的页面 + ifBackMy: { + type: Boolean, + default: false + } }, data() { return { @@ -120,14 +125,20 @@ }, //返回事件 backEv() { - uni.navigateBack({ - delta: 1, - fail: () => { - uni.reLaunch({ - url: '/pages/tabbar/index/index' - }) - } - }) + if(this.ifBackMy){ + uni.reLaunch({ + url:`/pages/my/my` + }) + }else{ + uni.navigateBack({ + delta: 1, + fail: () => { + uni.reLaunch({ + url: '/pages/tabbar/index/index' + }) + } + }) + } } } } diff --git a/components/tabbar/tabbar.vue b/components/tabbar/tabbar.vue index 579895f..2c67a34 100644 --- a/components/tabbar/tabbar.vue +++ b/components/tabbar/tabbar.vue @@ -1,12 +1,12 @@