@@ -29,7 +29,14 @@ Component({ | |||||
statusBarHeight: app.statusBarHeight + 'px', | statusBarHeight: app.statusBarHeight + 'px', | ||||
navigationBarHeight: (app.statusBarHeight + 44) + 'px' | navigationBarHeight: (app.statusBarHeight + 44) + 'px' | ||||
}, | }, | ||||
ready(){ | |||||
let pages = getCurrentPages(); | |||||
if (pages&&pages.length>0){ | |||||
this.setData({ | |||||
back:false | |||||
}) | |||||
} | |||||
}, | |||||
methods: { | methods: { | ||||
backHome: function () { | backHome: function () { | ||||
wx.switchTab({ | wx.switchTab({ | ||||
@@ -5,8 +5,6 @@ | |||||
left: 0; | left: 0; | ||||
top: 0; | top: 0; | ||||
z-index: 400000000; | z-index: 400000000; | ||||
top:0; | |||||
left: 0; | |||||
} | } | ||||
.title-container { | .title-container { | ||||
@@ -19,12 +17,12 @@ | |||||
.capsule { | .capsule { | ||||
margin-left: 10px; | margin-left: 10px; | ||||
height: 32px; | height: 32px; | ||||
border: 1px solid #f2f2f2; | |||||
border: 1px solid #e1e1e3; | |||||
border-radius: 60px; | border-radius: 60px; | ||||
display: flex; | display: flex; | ||||
background: #fbfbfd; | |||||
align-items: center; | align-items: center; | ||||
padding: 0 20rpx; | padding: 0 20rpx; | ||||
background: #fbfbfd; | |||||
} | } | ||||
.capsule > view { | .capsule > view { | ||||
@@ -8,7 +8,7 @@ Page({ | |||||
*/ | */ | ||||
data: { | data: { | ||||
navigationBarHeight, | navigationBarHeight, | ||||
success01: imgurl.success01.url, | |||||
chenggong: imgurl.chenggong.url, | |||||
couponOrderId:'' | couponOrderId:'' | ||||
}, | }, | ||||
@@ -4,7 +4,7 @@ | |||||
<view class='c-top-top'></view> | <view class='c-top-top'></view> | ||||
<view class='c-top-center'> | <view class='c-top-center'> | ||||
<view class='content-left'> | <view class='content-left'> | ||||
<image src='{{success01}}'></image> | |||||
<image src='{{chenggong}}'></image> | |||||
</view> | </view> | ||||
<view class='content-right'> | <view class='content-right'> | ||||
<view class='title'>领取成功</view> | <view class='title'>领取成功</view> | ||||
@@ -9,7 +9,7 @@ page { | |||||
margin: 60rpx auto 0; | margin: 60rpx auto 0; | ||||
width:657rpx; | width:657rpx; | ||||
height:11rpx; | height:11rpx; | ||||
background:rgba(2,192,255,1); | |||||
background:linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
border-radius:6px; | border-radius:6px; | ||||
} | } | ||||
.c-top-center{ | .c-top-center{ | ||||
@@ -55,5 +55,5 @@ line-height:50rpx; | |||||
width: 636rpx; | width: 636rpx; | ||||
border-radius: 50rpx; | border-radius: 50rpx; | ||||
margin-top: 30rpx; | margin-top: 30rpx; | ||||
background: #02C0FF!important; | |||||
background: linear-gradient(127deg,rgba(252,177,74,1) 0%,rgba(254,70,20,1) 100%); | |||||
} | } |
@@ -26,6 +26,7 @@ Page({ | |||||
}, | }, | ||||
onLoad(options) { | onLoad(options) { | ||||
let that = this; | let that = this; | ||||
wx.hideShareMenu(); | |||||
if(options&&options.id){ | if(options&&options.id){ | ||||
that.setData({ | that.setData({ | ||||
activityId: options.id | activityId: options.id | ||||
@@ -100,5 +101,14 @@ Page({ | |||||
url: '/pages/main/index', | url: '/pages/main/index', | ||||
}) | }) | ||||
}, | }, | ||||
onShareAppMessage: function (options) { | |||||
var that = this; | |||||
let shareObj = {}; | |||||
// 来自页面内的按钮的转发 | |||||
if (options.from == 'button') { | |||||
var eData = options.target.dataset.id; | |||||
shareObj.path = `/pages/index/index?id=${eData}&type=ra`; | |||||
} | |||||
return shareObj; | |||||
}, | |||||
}); | }); |
@@ -13,7 +13,7 @@ | |||||
<view class='box'> | <view class='box'> | ||||
<view class='act'> | <view class='act'> | ||||
<view class='fenxiang' bindtap='showshare'> | <view class='fenxiang' bindtap='showshare'> | ||||
<button class='share user-motto' open-type="share" style="height:48rpx;width:100rpx;position: absolute;top: 10rpx;right: 10rpx;background: transparent;" hover-class="other-button-hover"></button> | |||||
<button class='share user-motto' open-type="share" data-id="{{data.id}}" style="height:52rpx;width:100rpx;position: absolute;top: 10rpx;right: 10rpx;background: transparent;" hover-class="other-button-hover"></button> | |||||
<image src='{{fenxiang}}' mode="widthFix"></image> | <image src='{{fenxiang}}' mode="widthFix"></image> | ||||
<text class='gift'>分享</text> | <text class='gift'>分享</text> | ||||
</view> | </view> | ||||