Commit 07a2ea43 by 杨北旺

Merge branch 'v3.0' into ybw_dev_3.0

2 parents 01fed4f0 49765d1f
{ {
"usingComponents": { "usingComponents": {
"van-button": "@vant/weapp/button/index" "active-box": "./components/activeBox/activeBox",
"activity-diagnosis": "./components/activityDiagnosis/activityDiagnosis"
}, },
"navigationStyle": "custom", "navigationStyle": "custom",
"onReachBottomDistance": 10, "onReachBottomDistance": 10,
......
...@@ -3,4 +3,40 @@ ...@@ -3,4 +3,40 @@
<view class="bar-text">门店助手</view> <view class="bar-text">门店助手</view>
</navigation-bar> </navigation-bar>
</view> </view>
<van-button type="warning">警告按钮</van-button> <block wx:if="{{navHeight}}">
<view class="layout" style="top:{{navHeight}}px">
<!-- 背景图 -->
<view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<image webp src="{{IMGURL}}/index_bg.png?v={{img_version}}"></image>
</view>
</view>
<view class="content">
<!-- tab切换 -->
<view class="tab-box" style="top: {{navHeight}}px">
<block wx:for="{{tab}}" wx:key="index">
<view class="tab {{index == tabIndex? 'active' : '' }}" bindtap="click" data-index="{{index}}">
<view class="text">{{item.name}} ({{item.account}})</view>
<view class="line"></view>
</view>
</block>
</view>
<!-- 活动中 -->
<view class="active-content">
<block wx:if="{{tabIndex == 0}}">
<active-box activeList="{{activeList}}"></active-box>
</block>
</view>
<!-- 活动诊断 -->
<view class="activity-diag-content">
<block wx:if="{{tabIndex == 1}}">
<activity-diagnosis activityList="{{activityEndList}}"></activity-diagnosis>
</block>
</view>
</view>
<!-- 申请活动 -->
<view class="add-activity" bind:tap="applyActivity">
<image webp src="{{IMGURL}}application_activity.png"></image>
</view>
</view>
</block>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!