@@ -17,6 +17,7 @@ Page({ | |||||
teljpgUrl: imgurl.teljpg.url, | teljpgUrl: imgurl.teljpg.url, | ||||
share01: imgurl.share01.url, | share01: imgurl.share01.url, | ||||
actUrl: imgurl.act.url, | actUrl: imgurl.act.url, | ||||
wmhome: imgurl.wmhome.url, | |||||
page: 1, | page: 1, | ||||
imglist: null, | imglist: null, | ||||
shopVoList: [], | shopVoList: [], | ||||
@@ -56,6 +57,11 @@ Page({ | |||||
} | } | ||||
this.getUserInfo() | this.getUserInfo() | ||||
}, | }, | ||||
goback: function () { | |||||
wx.switchTab({ | |||||
url: '/pages/main/index', | |||||
}) | |||||
}, | |||||
/** | /** | ||||
* 绘制分享海报 | * 绘制分享海报 | ||||
*/ | */ | ||||
@@ -1,3 +1,4 @@ | |||||
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button> | |||||
<view> | <view> | ||||
<swiper class="index-slide" autoplay="true" circular="false"> | <swiper class="index-slide" autoplay="true" circular="false"> | ||||
<block wx:for="{{imglist}}" wx:key="unique"> | <block wx:for="{{imglist}}" wx:key="unique"> | ||||
@@ -384,3 +384,25 @@ | |||||
width: 300rpx; | width: 300rpx; | ||||
margin: 30rpx auto 0; | margin: 30rpx auto 0; | ||||
} | } | ||||
button::after{ border: none; } | |||||
.goback{ | |||||
position: fixed; | |||||
right: 20rpx; | |||||
bottom: 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%; | |||||
} | |||||
.goback image{ | |||||
position: absolute; | |||||
width: 60rpx; | |||||
left: 0; | |||||
right: 0; | |||||
top: 0; | |||||
bottom: 0; | |||||
margin: auto; | |||||
} |