瀏覽代碼

拼团详情增加返回首页按钮

tags/安徽版C.4.1.6最终版
刘晖 6 年之前
父節點
當前提交
044bd028fd
共有 3 個文件被更改,包括 30 次插入2 次删除
  1. +6
    -0
      pages/spellGroup/mySpellGroup/index.js
  2. +1
    -0
      pages/spellGroup/mySpellGroup/index.wxml
  3. +23
    -2
      pages/spellGroup/mySpellGroup/index.wxss

+ 6
- 0
pages/spellGroup/mySpellGroup/index.js 查看文件

@@ -10,6 +10,7 @@ Page({
*/ */
data: { data: {
teljpgUrl: imgurl.teljpg.url, teljpgUrl: imgurl.teljpg.url,
home: imgurl.home.url,
couponChannelId:'', couponChannelId:'',
couponId:'', couponId:'',
data:[], data:[],
@@ -51,6 +52,11 @@ Page({
}) })
}) })
}, },
gotoIndex() {
wx.reLaunch({
url: '/pages/index/index',
})
},
/** /**
* 拨打电话 * 拨打电话
*/ */


+ 1
- 0
pages/spellGroup/mySpellGroup/index.wxml 查看文件

@@ -50,6 +50,7 @@
</view> </view>
</view> </view>
<view class='edit'> <view class='edit'>
<button class='goback' bindtap='gotoIndex'><image src='{{home}}' mode="widthFix"></image></button>
<view class='edit-left' bindtap='{{canBuyIf?"gotoBuy":""}}'> <view class='edit-left' bindtap='{{canBuyIf?"gotoBuy":""}}'>
<view class='edit-left-top'> <view class='edit-left-top'>
<view class='price'>{{data.price}}</view> <view class='price'>{{data.price}}</view>


+ 23
- 2
pages/spellGroup/mySpellGroup/index.wxss 查看文件

@@ -8,6 +8,27 @@
width: 100%; width: 100%;
height: 533rpx; height: 533rpx;
} }
.goback {
float:left;
width:122rpx!important;
height:95rpx;
background:rgba(255,255,255,1);
line-height:95rpx;
border:1rpx solid rgba(227,227,227,1);
box-shadow:0px 8px 8px 1px rgba(189,189,189,0.32);
border-radius:48rpx;
margin-right:25rpx;
}
.goback image{
position:absolute;
width:60rpx;
left:0;
right:0;
top:0;
bottom:0;
margin:auto;
height: 80rpx;
}
.content-box{ .content-box{
box-sizing: content-box; box-sizing: content-box;
height: auto; height: auto;
@@ -170,7 +191,7 @@
} }
.edit-left{ .edit-left{
float: left; float: left;
width: 330rpx;
width: 269rpx;
height: 95rpx; height: 95rpx;
background:rgba(255,169,2,1); background:rgba(255,169,2,1);
box-shadow:0px 8rpx 8rpx 1rpx rgba(255,169,2,0.32); box-shadow:0px 8rpx 8rpx 1rpx rgba(255,169,2,0.32);
@@ -178,7 +199,7 @@
} }
.edit-right{ .edit-right{
float: right; float: right;
width: 330rpx;
width: 269rpx;
height: 95rpx; height: 95rpx;
line-height: 46rpx; line-height: 46rpx;
background:linear-gradient(90deg,rgba(236,59,45,1) 0%,rgba(248,98,52,1) 100%); background:linear-gradient(90deg,rgba(236,59,45,1) 0%,rgba(248,98,52,1) 100%);


Loading…
取消
儲存