diff --git a/pages/spellDetail/index.js b/pages/spellDetail/index.js index 560eca3..c1348a5 100644 --- a/pages/spellDetail/index.js +++ b/pages/spellDetail/index.js @@ -47,8 +47,8 @@ Page({ }) }, gotoIndex(){ - wx.reLaunch({ - url: '/pages/index/index', + wx.switchTab({ + url: '/pages/main/index', }) }, gotoshare() { diff --git a/pages/spellDetail/index.wxml b/pages/spellDetail/index.wxml index e0427eb..c0edefd 100644 --- a/pages/spellDetail/index.wxml +++ b/pages/spellDetail/index.wxml @@ -3,7 +3,7 @@ - + diff --git a/pages/spellDetail/index.wxss b/pages/spellDetail/index.wxss index e1841dc..9329784 100644 --- a/pages/spellDetail/index.wxss +++ b/pages/spellDetail/index.wxss @@ -153,7 +153,7 @@ page { background:rgba(255,255,255,1); border-radius:15rpx; } -.return-index{ +/* .return-index{ position: absolute; right: 30rpx; top: 30rpx; @@ -164,6 +164,27 @@ page { display: block; width: 50rpx; height: 50rpx; +} */ +.return-index{ + position: fixed; + right: 50rpx; + top: 60rpx; + width:100rpx!important; + height:100rpx; + z-index: 100; + background:rgba(255,255,255,1); + line-height: 95rpx; + border:1rpx solid rgba(227,227,227,1); + border-radius:50%; +} +.return-index image{ + position: absolute; + width: 60rpx; + left: 0; + right: 0; + top: 0; + bottom: 0; + margin: auto; } .detail-top{ width: 100%;