@@ -3,7 +3,8 @@
<u-navbar
title="积分商城"
:placeholder="true"
- :autoBack="true"
+ @leftClick="leftClick"
+ :autoBack="false"
:safeAreaInsetTop="true"
>
</u-navbar>
@@ -83,6 +84,14 @@
this.getTypeList();
},
methods: {
+ leftClick(e){
+ let pages = getCurrentPages();
+ if(pages.length==1){
+ uni.$u.route('/pages/index/index')
+ }else{
+ uni.navigateBack()
+ };
+ },
/*下拉刷新的回调, 重置列表为第一页 (此处可删,mixins已默认)
downCallback(){
this.mescroll.resetUpScroll();