Commit 64f51e17 by 赵雅纹

bug修改

parent 73528bfc
...@@ -25,7 +25,8 @@ Component({ ...@@ -25,7 +25,8 @@ Component({
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
currentTab:'999' currentTab:'999',
currentPrice:0
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
...@@ -84,9 +85,11 @@ Component({ ...@@ -84,9 +85,11 @@ Component({
}, 200) }, 200)
}, },
switchNav(e){ switchNav(e){
console.log(e)
this.setData({ this.setData({
currentTab: e.currentTarget.dataset.current, currentTab: e.currentTarget.dataset.current,
id: e.currentTarget.dataset.id id: e.currentTarget.dataset.id,
currentPrice: e.currentTarget.dataset.price
}) })
}, },
payPlus() { payPlus() {
......
...@@ -14,11 +14,13 @@ ...@@ -14,11 +14,13 @@
data-endTimeStr="{{navItem.endTimeStr}}" data-endTimeStr="{{navItem.endTimeStr}}"
data-btnText="{{navItem.buttonText}}" data-btnText="{{navItem.buttonText}}"
data-id="{{navItem.id}}" data-id="{{navItem.id}}"
data-price="{{navItem.price}}"
bindtap="switchNav" bindtap="switchNav"
style="{{currentTab == idx ? 'background-image: url('+ plusBgi.activeUrl +');' : 'background-image: url('+ plusBgi.inactiveUrl +');'}}" style="{{currentTab == idx ? 'background-image: url('+ plusBgi.activeUrl +');' : 'background-image: url('+ plusBgi.inactiveUrl +');'}}"
> >
<view class="plus-choose"> <view class="plus-choose">
<text>每月仅¥{{navItem.price / navItem.duration * 30}}</text> <text wx:if="{{navItem.duration == 365}}">每月仅¥{{navItem.price / 12}}</text>
<text wx:else>每月仅¥{{navItem.price / navItem.duration * 30}}</text>
</view> </view>
<view class="card-kinds"> <view class="card-kinds">
{{navItem.name}} {{navItem.name}}
...@@ -35,6 +37,7 @@ ...@@ -35,6 +37,7 @@
</view> </view>
</block> </block>
</scroll-view> </scroll-view>
<view class="pay-wrap">
<view class="pay"> <view class="pay">
<!--微信授权--> <!--微信授权-->
<block wx:if="{{!currentHasUserInfo}}"> <block wx:if="{{!currentHasUserInfo}}">
...@@ -46,15 +49,16 @@ ...@@ -46,15 +49,16 @@
hover-class="btn-hover" hover-class="btn-hover"
> >
<text>立即支付</text> <text>立即支付</text>
<text>¥158</text> <text>¥{{currentPrice}}</text>
</button> </button>
</block> </block>
<block wx:else> <block wx:else>
<button class="btn btn-primary" bindtap="payPlus"> <button class="btn btn-primary" bindtap="payPlus">
<text>立即支付</text> <text>立即支付</text>
<text>¥158</text> <text>¥{{currentPrice}}</text>
</button> </button>
</block> </block>
</view> </view>
</view>
</view> </view>
...@@ -39,11 +39,10 @@ ...@@ -39,11 +39,10 @@
.pay{ .pay{
height: 88rpx; height: 88rpx;
line-height: 88rpx; line-height: 88rpx;
position: fixed;
bottom: 0;
right: 30rpx;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: row-reverse;
margin-right: 30rpx;
} }
.pay button{ .pay button{
width: 280rpx; width: 280rpx;
...@@ -89,6 +88,14 @@ ...@@ -89,6 +88,14 @@
line-height: 26rpx; line-height: 26rpx;
text-align: center; text-align: center;
} }
.pay-wrap{
width: 750rpx;
background-color: #ffffff;
height: 88rpx;
position: fixed;
bottom: 0;
right: 0;
}
/* pages/userCenter.wxss */ /* pages/userCenter.wxss */
@import './../../base/base.wxss'; @import './../../base/base.wxss';
page{
padding-bottom: 320rpx;
}
.user-center{ .user-center{
box-sizing: border-box; box-sizing: border-box;
padding-bottom: 200rpx; padding-bottom: 200rpx;
......
...@@ -125,7 +125,7 @@ wxService.page({ ...@@ -125,7 +125,7 @@ wxService.page({
// 点击去分享页面 // 点击去分享页面
gotoInviteShare(){ gotoInviteShare(){
if (this.data.inviteMemberList && this.data.isGoToInvite){ if (this.data.isGoToInvite){
wxService.router('/subPackage/page/pages/share/share') wxService.router('/subPackage/page/pages/share/share')
} }
}, },
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</view> </view>
<!-- <navigator url="/subPackage/page/pages/share/share" hover-class="none"> --> <!-- <navigator url="/subPackage/page/pages/share/share" hover-class="none"> -->
<view class="invite-banner" bindtap="gotoInviteShare"> <view class="invite-banner" bindtap="gotoInviteShare">
<image src="{{inviteMemberList && isGoToInvite ? inviteBanner : '/assets/imgs/7_1_0/coming-soon.jpg'}}"></image> <image src="{{isGoToInvite ? inviteBanner : '/assets/imgs/7_1_0/coming-soon.jpg'}}"></image>
</view> </view>
<!-- </navigator> --> <!-- </navigator> -->
<view class="order-benefit-wrap"> <view class="order-benefit-wrap">
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
</view> </view>
</view> --> </view> -->
</view> </view>
<view class="empty">
暂无邀请记录~
</view>
</view> </view>
<view class="benefit-tips"> <view class="benefit-tips">
<text>邀请好友只显示前50名</text> <text>邀请好友只显示前50名</text>
......
...@@ -96,3 +96,9 @@ ...@@ -96,3 +96,9 @@
line-height: 35rpx; line-height: 35rpx;
font-size: 18rpx; font-size: 18rpx;
} }
.empty{
color: #808080;
text-align: center;
width: 100%;
margin-top: 200rpx;
}
\ No newline at end of file
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
<view class="release-num weui-flex df-j--bt"> <view class="release-num weui-flex df-j--bt">
<view class="num-invite df-1 border_box"> <view class="num-invite df-1 border_box">
<view class="num">{{inviteSum}}</view> <view class="num">{{inviteSum}}</view>
<view class="desc">当前邀请人数</view> <view class="desc">当前分享订单</view>
</view> </view>
<view class="num-invite-yesterday df-1 border_box"> <view class="num-invite-yesterday df-1 border_box">
<view class="num">{{yesterdayInviteSum}}</view> <view class="num">{{yesterdayInviteSum}}</view>
<view class="desc">昨天邀请新增</view> <view class="desc">昨天新增分享订单</view>
</view> </view>
</view> </view>
<view class="diy-banner"> <view class="diy-banner">
......
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 to comment