Commit 4eec980b by 赵雅纹

Merge branch 'feature-zyw-sc' into 'dev_7.1.0'

分享

See merge request !39
parents 1171161e f247b4fe
...@@ -16,7 +16,8 @@ ...@@ -16,7 +16,8 @@
"component/bottom/bottom", "component/bottom/bottom",
"pages/wantToBuyDetail/wantToBuyDetail", "pages/wantToBuyDetail/wantToBuyDetail",
"component/buyImageSwiper/buyImageSwiper", "component/buyImageSwiper/buyImageSwiper",
"pages/myShare/myShare" "pages/myShare/myShare",
"pages/user-center/user-center"
], ],
"subPackages": [ "subPackages": [
{ {
......
<view class='page-want-buy'> <view class='page-want-buy'>
<view class="swiper-tab"> <view class="swiper-tab">
<view class="swiper-tab-item {{currentTab==0?'active':''}}" data-current="0" bindtap="clickTab">分享订单</view> <view class="swiper-tab-item" data-current="0" bindtap="clickTab">
<view class="swiper-tab-item {{currentTab==1?'active':''}}" data-current="1" bindtap="clickTab">分享会员</view> 分享订单
<view class="swiper-tab-item {{currentTab==2?'active':''}}" data-current="2" bindtap="clickTab">发现分享</view> <view class="line" wx-if="{{currentTab==0}}"></view>
</view>
<view class="swiper-tab-item" data-current="1" bindtap="clickTab">分享会员
<view class="line" wx-if="{{currentTab==1}}"></view>
</view>
<view class="swiper-tab-item" data-current="2" bindtap="clickTab">发现分享
<view class="line" wx-if="{{currentTab==2}}"></view>
</view>
</view> </view>
<swiper current="{{currentTab}}" duration="300" bindchange="swiperTab"> <swiper current="{{currentTab}}" duration="300" bindchange="swiperTab">
<swiper-item> <swiper-item>
......
...@@ -11,23 +11,31 @@ scroll-view{ ...@@ -11,23 +11,31 @@ scroll-view{
} }
.swiper-tab{ .swiper-tab{
width: 100%; width: 100%;
height: 46rpx; height: 60rpx;
line-height: 46rpx;
display: flex; display: flex;
background-color: #ffffff; background-color: #ffffff;
color: #000000; color: #000000;
position:fixed; position:fixed;
z-index:1; z-index:1;
justify-content: space-around; justify-content: space-around;
padding-top: 32rpx;
} }
.swiper-tab-item{ .swiper-tab-item{
text-align: center; text-align: center;
font-size: 26rpx; font-size: 26rpx;
} }
.active{ /* .active{
color: #C09A74; color: #C09A74;
border-bottom: 5rpx solid #C09A74; border-bottom: 5rpx solid #C09A74;
} */
.line{
width: 60rpx;
height: 5rpx;
margin: 0 auto;
background-color: #C09A74;
margin-top: 8rpx;
border-radius: 8rpx;
} }
swiper { swiper {
width: 100%; width: 100%;
...@@ -36,7 +44,7 @@ swiper { ...@@ -36,7 +44,7 @@ swiper {
/* padding-bottom:20rpx; */ /* padding-bottom:20rpx; */
position: absolute; position: absolute;
overflow: scroll; overflow: scroll;
top: 46rpx; top: 60rpx;
} }
......
// pages/user-center/user-center.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{
"usingComponents": {}
}
\ No newline at end of file
<!--pages/user-center/user-center.wxml-->
<text>pages/user-center/user-center.wxml</text>
/* pages/user-center/user-center.wxss */
\ No newline at end of file
...@@ -19,6 +19,8 @@ scroll-view{ ...@@ -19,6 +19,8 @@ scroll-view{
position:fixed; position:fixed;
z-index:1; z-index:1;
justify-content: center; justify-content: center;
/* padding-top: 32rpx;
margin-bottom: 14rpx; */
} }
.swiper-tab-item{ .swiper-tab-item{
text-align: center; text-align: center;
......
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