Authored by 肖亚东

TAB切位置调整

/* page/subPackage/pages/zeroSell/components/tabs-panel.wxss */
\ No newline at end of file
... ... @@ -353,6 +353,12 @@ Page(Object.assign({
this._init();
},
_jumpMyDrawCode() {
router.go('index', {
tabIndex: 3,
});
},
getUserInfo: function (e) {
var that = this;
if (e.detail.errMsg === 'getUserInfo:ok') {
... ...
<tabs tabs-class="tabs-class" current-key="{{tabIndex}}" bindchange="onTabChange">
<view class="list-top-blank"></view>
<tabs tabs-class="tabs-class {{tabIndex==3 ? 'hidden' : ''}}" current-key="{{tabIndex}}" bindchange="onTabChange">
<view class="list-top-blank {{tabIndex==3 ? 'hidden' : ''}}"></view>
<tabs-pane name="进行中">
<image class="topgif" src="./images/yoluck.gif"/>
... ... @@ -26,7 +26,8 @@
</view>
</tabs-pane>
<tabs-pane name="已参加">
<!-- 首页改版,tabIndex=3的已参加一栏取消,改为点击我的抽奖码进入 2019.6.20 -->
<!-- <tabs-pane name="已参加"> -->
<block wx:if="{{isLogin}}">
<view class="title-view">
<view class="space-line"></view>
... ... @@ -58,7 +59,7 @@
<block wx:else>
<login theme="light" openType="{{openType}}"></login>
</block>
</tabs-pane>
<!-- </tabs-pane> -->
<block wx:if="{{tabIndex !== 3}}">
<view class="list-foot-blank">{{footText}}</view>
</block>
... ... @@ -69,6 +70,12 @@
</view>
</block>
<block wx:if="{{tabIndex !== 3}}">
<view class="my-draw-code" bindtap="_jumpMyDrawCode">
<text class="my-draw-code-text">我的抽奖码</text>
</view>
</block>
<import src="../../vendors/zanui/toast/index.wxml"/>
<template is="zan-toast" data="{{zanToast}}"/>
... ...
... ... @@ -62,6 +62,10 @@ page {
border-bottom: 1rpx solid #E0E0E0;
}
.hidden {
display: none !important;
}
.topgif {
width: 100%;
height: 200rpx;
... ... @@ -87,3 +91,21 @@ page {
align-items: center;
font-family: PingFangSC-Medium;
}
.my-draw-code {
position: fixed;
z-index: 999;
left: 0;
bottom: 0;
width: 100%;
height: 80rpx;
background-color: white;
border-top: 2rpx solid #e0e0ee;
display: flex;
align-items: center;
justify-content: center;
}
.my-draw-code-text {
font-size: 26rpx;
}
\ No newline at end of file
... ...
... ... @@ -13,6 +13,8 @@
"libVersion": "2.0.0",
"appid": "wx7678b61d1e6702fe",
"projectname": "YO!LUCK",
"simulatorType": "wechat",
"simulatorPluginLibVersion": {},
"condition": {
"search": {
"current": -1,
... ...
{
"desc": "关于本文件的更多信息,请参考文档 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html",
"rules": [{
"action": "allow",
"page": "*"
}]
}
\ No newline at end of file
... ...