瀏覽代碼

【ID1001632】C端门店商户详情需要添加返回首页按钮

tags/江西版6.1.0
meo 6 年之前
父節點
當前提交
6c8d567e6d
共有 3 個文件被更改,包括 29 次插入0 次删除
  1. +6
    -0
      pages/index/searchbar/detail/index.js
  2. +1
    -0
      pages/index/searchbar/detail/index.wxml
  3. +22
    -0
      pages/index/searchbar/detail/index.wxss

+ 6
- 0
pages/index/searchbar/detail/index.js 查看文件

@@ -17,6 +17,7 @@ Page({
teljpgUrl: imgurl.teljpg.url,
share01: imgurl.share01.url,
actUrl: imgurl.act.url,
wmhome: imgurl.wmhome.url,
page: 1,
imglist: null,
shopVoList: [],
@@ -56,6 +57,11 @@ Page({
}
this.getUserInfo()
},
goback: function () {
wx.switchTab({
url: '/pages/main/index',
})
},
/**
* 绘制分享海报
*/


+ 1
- 0
pages/index/searchbar/detail/index.wxml 查看文件

@@ -1,3 +1,4 @@
<button class='goback' bindtap='goback'><image src='{{wmhome}}' mode="widthFix"></image></button>
<view>
<swiper class="index-slide" autoplay="true" circular="false">
<block wx:for="{{imglist}}" wx:key="unique">


+ 22
- 0
pages/index/searchbar/detail/index.wxss 查看文件

@@ -384,3 +384,25 @@
width: 300rpx;
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;
}

Loading…
取消
儲存