Commit 07ecad60 by 梁建民

好友助力

parent 250a33b0
......@@ -82,6 +82,8 @@ Page({
let share_id = wx.getStorageSync('share_id'); //记录分享者的user_id
let invites_id = wx.getStorageSync('invites_id'); //记录邀请者的user_id
let help_exchange_id = wx.getStorageSync('help_exchange_id'); //好友助力记录的兑换id
if (share_id) {
http.getData(apis.shareAdd, 'GET', {
user_id: share_id
......@@ -97,9 +99,23 @@ Page({
//登录环信帐号
getApp().getImUser();
wx.switchTab({
url: '/pages/tab/home/home'
});
if (help_exchange_id) {
wx.navigateTo({
url: "/pages/person/helpfriend/index?exchange_id=" + help_exchange_id,
success: function () {
wx.removeStorage({
key: 'help_exchange_id'
})
}
});
} else {
wx.switchTab({
url: '/pages/tab/home/home'
});
}
} else if (res.errcode === 505) {
......
......@@ -102,7 +102,11 @@ Page({
this.setData({
assistsList: res.data
});
} else if (res.errcode === -1) {
wx.setStorage({
key: "help_exchange_id",
data: this.data.exchange_id
});
}
}, true, false, true);
......
......@@ -135,23 +135,26 @@
margin: 60rpx auto 0;
.list {
width: 100rpx;
height: 100rpx;
background: rgba(5, 5, 5, 0.2);
border: dashed 2px #ffffff;
color: #fff;
text-align: center;
line-height: 100rpx;
box-sizing: border-box;
border-radius: 50%;
&.list-pic {
border: solid 2px transparent;
background: none;
box-sizing: border-box;
image {
width: 100rpx;
height: 100rpx;
width: 96rpx;
height: 96rpx;
border-radius: 50%;
border: 1px solid #999;
border: 1px solid #999;
}
}
......
.helpfriend{background:#e01b34;width:100%;padding-bottom:57rpx;overflow-x:hidden}.helpfriend .wrap{position:relative;width:100%;height:970rpx;background:url('http://img.ichunt.com/images/ichunt/minProgram/3e45f01531a74905046d3366b17a858d.png') no-repeat center;background-size:cover}.helpfriend .wrap .con{position:absolute;top:374rpx;left:0;right:0;width:100%;height:746rpx;background:url('http://img.ichunt.com/images/ichunt/minProgram/14a97c92b299de4fd8e0d7fc014b022a.png') no-repeat center;background-size:cover;z-index:11}.helpfriend .wrap .con .im{position:absolute;top:-72rpx;left:0;right:0;width:160rpx;height:160rpx;border-radius:50%;border:2px solid #fff;box-sizing:border-box;margin:0 auto}.helpfriend .wrap .con .t1{margin-top:121rpx;display:block;font-size:36rpx;color:#000000;text-align:center;font-weight:600}.helpfriend .wrap .con .t2{margin:55rpx auto 29rpx;color:#1a1a1a;font-size:32rpx;text-align:center}.helpfriend .wrap .con .t2 text{font-size:38rpx;color:#de1c27;font-weight:600}.helpfriend .wrap .con .t3{text-align:center;display:block;font-size:32rpx;color:#1a1a1a}.helpfriend .wrap .con .t4{margin-top:36rpx;text-align:center;font-size:28rpx;color:#1a1a1a}.helpfriend .wrap .con .t4 text{color:#de1c27;font-weight:600}.helpfriend .wrap .con .btn{margin:168rpx auto 0;width:380rpx;height:80rpx;background-image:linear-gradient(0deg, #ff7316 0, #f3cc14 100%);box-shadow:0 6rpx 0 0 #cb7700,inset 0 0 10rpx 0 rgba(255,255,255,0.26);border-radius:40rpx;color:#ffffff;font-size:38rpx;text-align:center;line-height:80rpx}.helpfriend .wrap .con .btn_1{margin:168rpx auto 0;width:380rpx;height:80rpx;background-image:linear-gradient(0deg, #dd1b33 0, #e9196c 100%);box-shadow:0 6rpx 0 0 #cb0a3f,inset 0 0 10rpx 0 rgba(255,255,255,0.26);border-radius:40rpx;color:#ffffff;font-size:38rpx;text-align:center;line-height:80rpx}.helpfriend .wrap .con .btn_2{font-size:30rpx !important}.helpfriend .bar{padding-top:155rpx;text-align:center}.helpfriend .bar .t1{text-align:center;font-size:24rpx;color:#ed6f6f}.helpfriend .bar .bg{width:222rpx;height:47rpx;background:url('http://img.ichunt.com/images/ichunt/minProgram/4b9701dd685f038d017ef70fb9f40b23.png') no-repeat center;background-size:contain;font-size:36rpx;color:#ffffff;text-align:center;line-height:47rpx;margin:84rpx auto 0}.helpfriend .bar .pic{margin:60rpx auto 0}.helpfriend .bar .pic .list{background:rgba(5,5,5,0.2);border:dashed 2px #ffffff;color:#fff;text-align:center;line-height:100rpx;box-sizing:border-box}.helpfriend .bar .pic .list.list-pic{border:solid 2px transparent;background:none}.helpfriend .bar .pic .list.list-pic image{width:100rpx;height:100rpx;border-radius:50%;border:1px solid #999}.helpfriend .bar .pic .list:first-child{margin-right:59rpx}.helpfriend .text{margin:57rpx auto 83rpx;padding:0 0 0 55rpx}.helpfriend .text text{font-size:24rpx;color:#ff9292;line-height:31rpx;display:block;margin-bottom:24rpx}.helpfriend .footer{display:block;font-size:22rpx;color:#ed6f6f;text-align:center}
\ No newline at end of file
.helpfriend{background:#e01b34;width:100%;padding-bottom:57rpx;overflow-x:hidden}.helpfriend .wrap{position:relative;width:100%;height:970rpx;background:url('http://img.ichunt.com/images/ichunt/minProgram/3e45f01531a74905046d3366b17a858d.png') no-repeat center;background-size:cover}.helpfriend .wrap .con{position:absolute;top:374rpx;left:0;right:0;width:100%;height:746rpx;background:url('http://img.ichunt.com/images/ichunt/minProgram/14a97c92b299de4fd8e0d7fc014b022a.png') no-repeat center;background-size:cover;z-index:11}.helpfriend .wrap .con .im{position:absolute;top:-72rpx;left:0;right:0;width:160rpx;height:160rpx;border-radius:50%;border:2px solid #fff;box-sizing:border-box;margin:0 auto}.helpfriend .wrap .con .t1{margin-top:121rpx;display:block;font-size:36rpx;color:#000000;text-align:center;font-weight:600}.helpfriend .wrap .con .t2{margin:55rpx auto 29rpx;color:#1a1a1a;font-size:32rpx;text-align:center}.helpfriend .wrap .con .t2 text{font-size:38rpx;color:#de1c27;font-weight:600}.helpfriend .wrap .con .t3{text-align:center;display:block;font-size:32rpx;color:#1a1a1a}.helpfriend .wrap .con .t4{margin-top:36rpx;text-align:center;font-size:28rpx;color:#1a1a1a}.helpfriend .wrap .con .t4 text{color:#de1c27;font-weight:600}.helpfriend .wrap .con .btn{margin:168rpx auto 0;width:380rpx;height:80rpx;background-image:linear-gradient(0deg, #ff7316 0, #f3cc14 100%);box-shadow:0 6rpx 0 0 #cb7700,inset 0 0 10rpx 0 rgba(255,255,255,0.26);border-radius:40rpx;color:#ffffff;font-size:38rpx;text-align:center;line-height:80rpx}.helpfriend .wrap .con .btn_1{margin:168rpx auto 0;width:380rpx;height:80rpx;background-image:linear-gradient(0deg, #dd1b33 0, #e9196c 100%);box-shadow:0 6rpx 0 0 #cb0a3f,inset 0 0 10rpx 0 rgba(255,255,255,0.26);border-radius:40rpx;color:#ffffff;font-size:38rpx;text-align:center;line-height:80rpx}.helpfriend .wrap .con .btn_2{font-size:30rpx !important}.helpfriend .bar{padding-top:155rpx;text-align:center}.helpfriend .bar .t1{text-align:center;font-size:24rpx;color:#ed6f6f}.helpfriend .bar .bg{width:222rpx;height:47rpx;background:url('http://img.ichunt.com/images/ichunt/minProgram/4b9701dd685f038d017ef70fb9f40b23.png') no-repeat center;background-size:contain;font-size:36rpx;color:#ffffff;text-align:center;line-height:47rpx;margin:84rpx auto 0}.helpfriend .bar .pic{margin:60rpx auto 0}.helpfriend .bar .pic .list{width:100rpx;height:100rpx;background:rgba(5,5,5,0.2);border:dashed 2px #ffffff;color:#fff;text-align:center;line-height:100rpx;box-sizing:border-box;border-radius:50%}.helpfriend .bar .pic .list.list-pic{border:solid 2px transparent;background:none;box-sizing:border-box}.helpfriend .bar .pic .list.list-pic image{width:96rpx;height:96rpx;border-radius:50%;border:1px solid #999}.helpfriend .bar .pic .list:first-child{margin-right:59rpx}.helpfriend .text{margin:57rpx auto 83rpx;padding:0 0 0 55rpx}.helpfriend .text text{font-size:24rpx;color:#ff9292;line-height:31rpx;display:block;margin-bottom:24rpx}.helpfriend .footer{display:block;font-size:22rpx;color:#ed6f6f;text-align:center}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment