|
@@ -5,7 +5,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<view class="top-fixed-c"
|
|
<view class="top-fixed-c"
|
|
|
:style="'height: '+ systems.navigationHeight + 'rpx;margin-top:' + systems.ktxStatusHeight + 'rpx;'">
|
|
:style="'height: '+ systems.navigationHeight + 'rpx;margin-top:' + systems.ktxStatusHeight + 'rpx;'">
|
|
|
- <navigator url="" hover-class="none" open-type="navigateBack" class="back ddflex"
|
|
|
|
|
|
|
+ <navigator @click="toBack" hover-class="none" class="back ddflex"
|
|
|
:style="'height: '+ systems.navigationHeight + 'rpx;'">
|
|
:style="'height: '+ systems.navigationHeight + 'rpx;'">
|
|
|
<image src="/static/pages/images/back_black.png"></image>
|
|
<image src="/static/pages/images/back_black.png"></image>
|
|
|
</navigator>
|
|
</navigator>
|
|
@@ -500,7 +500,17 @@ import util from '../../utils/util.js';
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
-
|
|
|
|
|
|
|
+ toBack(){
|
|
|
|
|
+ let page = getCurrentPages()
|
|
|
|
|
+ let pages = page[page.length-2]
|
|
|
|
|
+ if(pages){
|
|
|
|
|
+ uni.navigateBack()
|
|
|
|
|
+ }else{
|
|
|
|
|
+ uni.switchTab({
|
|
|
|
|
+ url:'/pages/index/index'
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getConfig() {
|
|
getConfig() {
|
|
|
var _this = this;
|
|
var _this = this;
|
|
|
return new Promise((res, rej) => {
|
|
return new Promise((res, rej) => {
|