From 43f66f8e4820ce898c12f6c7ee6fcdc038cee2ea Mon Sep 17 00:00:00 2001 From: meo <18801474720@163.com> Date: Thu, 28 Mar 2019 20:48:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=8B=BC=E5=9B=A2][=E4=BF=AE=E6=94=B9]:[?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/spellDetail/index.js | 4 ++-- pages/spellDetail/index.wxml | 2 +- pages/spellDetail/index.wxss | 23 ++++++++++++++++++++++- 3 files changed, 25 insertions(+), 4 deletions(-) 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%;